From c387d5275a15af0491b4021f79a97cb395f3e079 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 17 Nov 2021 20:50:23 +0000 Subject: [PATCH 1/2] docs: fix docstring formatting Committer: @parthea PiperOrigin-RevId: 410565213 Source-Link: https://github.com/googleapis/googleapis/commit/35b8704427d5dc5190ce96404b35c175d9669ee2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/16a2cf923b63d5ebce1c8a961d36808487e89114 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZhMmNmOTIzYjYzZDVlYmNlMWM4YTk2MWQzNjgwODQ4N2U4OTExNCJ9 --- .../google/cloud/automl/v1/AutoMlGrpc.java | 2438 -------- .../cloud/automl/v1beta1/AutoMlGrpc.java | 3228 ----------- .../google/cloud/automl/v1/AutoMlClient.java | 64 +- .../cloud/automl/v1/AutoMlSettings.java | 13 +- .../automl/v1/PredictionServiceClient.java | 148 +- .../automl/v1/PredictionServiceSettings.java | 7 +- .../cloud/automl/v1/gapic_metadata.json | 0 .../google/cloud/automl/v1/package-info.java | 0 .../cloud/automl/v1/stub/AutoMlStub.java | 0 .../automl/v1/stub/AutoMlStubSettings.java | 24 +- .../v1/stub/GrpcAutoMlCallableFactory.java | 0 .../cloud/automl/v1/stub/GrpcAutoMlStub.java | 1 + .../GrpcPredictionServiceCallableFactory.java | 0 .../v1/stub/GrpcPredictionServiceStub.java | 1 + .../automl/v1/stub/PredictionServiceStub.java | 0 .../stub/PredictionServiceStubSettings.java | 6 +- .../cloud/automl/v1/AutoMlClientTest.java | 0 .../google/cloud/automl/v1/MockAutoMl.java | 0 .../cloud/automl/v1/MockAutoMlImpl.java | 0 .../automl/v1/MockPredictionService.java | 0 .../automl/v1/MockPredictionServiceImpl.java | 0 .../v1/PredictionServiceClientTest.java | 0 .../google/cloud/automl/v1/AutoMlGrpc.java | 1962 +++++++ .../automl/v1/PredictionServiceGrpc.java | 292 +- .../cloud/automl/v1/AnnotationPayload.java | 1022 ++-- .../automl/v1/AnnotationPayloadOrBuilder.java | 79 +- .../v1/AnnotationPayloadOuterClass.java | 84 + .../cloud/automl/v1/AnnotationSpec.java | 414 +- .../cloud/automl/v1/AnnotationSpecName.java | 0 .../automl/v1/AnnotationSpecOrBuilder.java | 39 +- .../automl/v1/AnnotationSpecOuterClass.java | 68 + .../google/cloud/automl/v1/AutoMlProto.java | 478 ++ .../automl/v1/BatchPredictInputConfig.java | 434 +- .../v1/BatchPredictInputConfigOrBuilder.java | 38 + .../v1/BatchPredictOperationMetadata.java | 1007 ++-- ...atchPredictOperationMetadataOrBuilder.java | 49 +- .../automl/v1/BatchPredictOutputConfig.java | 427 +- .../v1/BatchPredictOutputConfigOrBuilder.java | 38 +- .../cloud/automl/v1/BatchPredictRequest.java | 889 ++- .../v1/BatchPredictRequestOrBuilder.java | 107 +- .../cloud/automl/v1/BatchPredictResult.java | 491 +- .../v1/BatchPredictResultOrBuilder.java | 50 +- .../automl/v1/BoundingBoxMetricsEntry.java | 1087 ++-- .../v1/BoundingBoxMetricsEntryOrBuilder.java | 67 +- .../google/cloud/automl/v1/BoundingPoly.java | 348 +- .../automl/v1/BoundingPolyOrBuilder.java | 36 +- .../automl/v1/ClassificationAnnotation.java | 272 +- .../v1/ClassificationAnnotationOrBuilder.java | 21 +- .../v1/ClassificationEvaluationMetrics.java | 3223 ++++------- ...ssificationEvaluationMetricsOrBuilder.java | 112 +- .../cloud/automl/v1/ClassificationProto.java | 125 + .../cloud/automl/v1/ClassificationType.java | 80 +- .../v1/CreateDatasetOperationMetadata.java | 241 +- ...eateDatasetOperationMetadataOrBuilder.java | 9 + .../cloud/automl/v1/CreateDatasetRequest.java | 464 +- .../v1/CreateDatasetRequestOrBuilder.java | 52 +- .../v1/CreateModelOperationMetadata.java | 238 +- ...CreateModelOperationMetadataOrBuilder.java | 9 + .../cloud/automl/v1/CreateModelRequest.java | 444 +- .../v1/CreateModelRequestOrBuilder.java | 43 +- .../com/google/cloud/automl/v1/DataItems.java | 159 + .../com/google/cloud/automl/v1/Dataset.java | 2085 +++---- .../google/cloud/automl/v1/DatasetName.java | 0 .../cloud/automl/v1/DatasetOrBuilder.java | 241 +- .../cloud/automl/v1/DatasetOuterClass.java | 110 + .../cloud/automl/v1/DeleteDatasetRequest.java | 332 +- .../v1/DeleteDatasetRequestOrBuilder.java | 29 + .../cloud/automl/v1/DeleteModelRequest.java | 329 +- .../v1/DeleteModelRequestOrBuilder.java | 29 + .../automl/v1/DeleteOperationMetadata.java | 235 +- .../v1/DeleteOperationMetadataOrBuilder.java | 9 + .../v1/DeployModelOperationMetadata.java | 238 +- ...DeployModelOperationMetadataOrBuilder.java | 9 + .../cloud/automl/v1/DeployModelRequest.java | 832 +-- .../v1/DeployModelRequestOrBuilder.java | 85 + .../com/google/cloud/automl/v1/Detection.java | 109 + .../com/google/cloud/automl/v1/Document.java | 1341 ++--- .../cloud/automl/v1/DocumentDimensions.java | 439 +- .../v1/DocumentDimensionsOrBuilder.java | 30 +- .../cloud/automl/v1/DocumentInputConfig.java | 328 +- .../v1/DocumentInputConfigOrBuilder.java | 26 +- .../cloud/automl/v1/DocumentOrBuilder.java | 63 +- .../cloud/automl/v1/ExamplePayload.java | 605 +- .../automl/v1/ExamplePayloadOrBuilder.java | 42 +- .../v1/ExportDataOperationMetadata.java | 881 ++- .../ExportDataOperationMetadataOrBuilder.java | 38 +- .../cloud/automl/v1/ExportDataRequest.java | 475 +- .../automl/v1/ExportDataRequestOrBuilder.java | 56 + .../v1/ExportModelOperationMetadata.java | 830 ++- ...ExportModelOperationMetadataOrBuilder.java | 39 + .../cloud/automl/v1/ExportModelRequest.java | 476 +- .../v1/ExportModelRequestOrBuilder.java | 56 + .../cloud/automl/v1/GcsDestination.java | 301 +- .../automl/v1/GcsDestinationOrBuilder.java | 27 +- .../com/google/cloud/automl/v1/GcsSource.java | 326 +- .../cloud/automl/v1/GcsSourceOrBuilder.java | 36 +- .../com/google/cloud/automl/v1/Geometry.java | 69 + .../automl/v1/GetAnnotationSpecRequest.java | 339 +- .../v1/GetAnnotationSpecRequestOrBuilder.java | 29 + .../cloud/automl/v1/GetDatasetRequest.java | 329 +- .../automl/v1/GetDatasetRequestOrBuilder.java | 29 + .../automl/v1/GetModelEvaluationRequest.java | 339 +- .../GetModelEvaluationRequestOrBuilder.java | 29 + .../cloud/automl/v1/GetModelRequest.java | 329 +- .../automl/v1/GetModelRequestOrBuilder.java | 29 + .../com/google/cloud/automl/v1/Image.java | 384 +- .../ImageClassificationDatasetMetadata.java | 310 +- ...lassificationDatasetMetadataOrBuilder.java | 24 +- ...ClassificationModelDeploymentMetadata.java | 311 +- ...ationModelDeploymentMetadataOrBuilder.java | 21 +- .../v1/ImageClassificationModelMetadata.java | 629 +- ...eClassificationModelMetadataOrBuilder.java | 57 +- .../v1/ImageObjectDetectionAnnotation.java | 379 +- ...ageObjectDetectionAnnotationOrBuilder.java | 29 +- .../ImageObjectDetectionDatasetMetadata.java | 260 +- ...jectDetectionDatasetMetadataOrBuilder.java | 9 + ...ImageObjectDetectionEvaluationMetrics.java | 603 +- ...ctDetectionEvaluationMetricsOrBuilder.java | 58 +- ...bjectDetectionModelDeploymentMetadata.java | 317 +- ...ctionModelDeploymentMetadataOrBuilder.java | 21 +- .../v1/ImageObjectDetectionModelMetadata.java | 554 +- ...ObjectDetectionModelMetadataOrBuilder.java | 48 +- .../cloud/automl/v1/ImageOrBuilder.java | 33 +- .../google/cloud/automl/v1/ImageProto.java | 139 + .../v1/ImportDataOperationMetadata.java | 238 +- .../ImportDataOperationMetadataOrBuilder.java | 9 + .../cloud/automl/v1/ImportDataRequest.java | 478 +- .../automl/v1/ImportDataRequestOrBuilder.java | 61 + .../google/cloud/automl/v1/InputConfig.java | 631 +- .../cloud/automl/v1/InputConfigOrBuilder.java | 58 +- .../java/com/google/cloud/automl/v1/Io.java | 184 + .../cloud/automl/v1/ListDatasetsRequest.java | 558 +- .../v1/ListDatasetsRequestOrBuilder.java | 66 +- .../cloud/automl/v1/ListDatasetsResponse.java | 452 +- .../v1/ListDatasetsResponseOrBuilder.java | 46 +- .../v1/ListModelEvaluationsRequest.java | 536 +- .../ListModelEvaluationsRequestOrBuilder.java | 56 +- .../v1/ListModelEvaluationsResponse.java | 453 +- ...ListModelEvaluationsResponseOrBuilder.java | 45 +- .../cloud/automl/v1/ListModelsRequest.java | 551 +- .../automl/v1/ListModelsRequestOrBuilder.java | 64 +- .../cloud/automl/v1/ListModelsResponse.java | 454 +- .../v1/ListModelsResponseOrBuilder.java | 46 +- .../google/cloud/automl/v1/LocationName.java | 0 .../com/google/cloud/automl/v1/Model.java | 2222 +++---- .../cloud/automl/v1/ModelEvaluation.java | 1553 ++--- .../cloud/automl/v1/ModelEvaluationName.java | 0 .../automl/v1/ModelEvaluationOrBuilder.java | 171 +- .../automl/v1/ModelEvaluationOuterClass.java | 101 + .../automl/v1/ModelExportOutputConfig.java | 765 ++- .../v1/ModelExportOutputConfigOrBuilder.java | 79 +- .../com/google/cloud/automl/v1/ModelName.java | 0 .../cloud/automl/v1/ModelOrBuilder.java | 231 +- .../cloud/automl/v1/ModelOuterClass.java | 113 + .../cloud/automl/v1/NormalizedVertex.java | 303 +- .../automl/v1/NormalizedVertexOrBuilder.java | 29 + .../cloud/automl/v1/OperationMetadata.java | 1868 ++---- .../automl/v1/OperationMetadataOrBuilder.java | 155 +- .../google/cloud/automl/v1/Operations.java | 243 + .../google/cloud/automl/v1/OutputConfig.java | 414 +- .../automl/v1/OutputConfigOrBuilder.java | 38 +- .../cloud/automl/v1/PredictRequest.java | 742 +-- .../automl/v1/PredictRequestOrBuilder.java | 87 +- .../cloud/automl/v1/PredictResponse.java | 733 +-- .../automl/v1/PredictResponseOrBuilder.java | 76 +- .../automl/v1/PredictionServiceProto.java | 205 + .../v1/TextClassificationDatasetMetadata.java | 309 +- ...lassificationDatasetMetadataOrBuilder.java | 24 +- .../v1/TextClassificationModelMetadata.java | 302 +- ...tClassificationModelMetadataOrBuilder.java | 24 +- .../cloud/automl/v1/TextExtraction.java | 89 + .../automl/v1/TextExtractionAnnotation.java | 417 +- .../v1/TextExtractionAnnotationOrBuilder.java | 29 +- .../v1/TextExtractionDatasetMetadata.java | 238 +- ...extExtractionDatasetMetadataOrBuilder.java | 9 + .../v1/TextExtractionEvaluationMetrics.java | 1088 ++-- ...tExtractionEvaluationMetricsOrBuilder.java | 68 + .../v1/TextExtractionModelMetadata.java | 238 +- .../TextExtractionModelMetadataOrBuilder.java | 9 + .../com/google/cloud/automl/v1/TextProto.java | 122 + .../google/cloud/automl/v1/TextSegment.java | 368 +- .../cloud/automl/v1/TextSegmentOrBuilder.java | 33 +- .../cloud/automl/v1/TextSegmentProto.java | 57 + .../automl/v1/TextSentimentAnnotation.java | 269 +- .../v1/TextSentimentAnnotationOrBuilder.java | 21 +- .../v1/TextSentimentDatasetMetadata.java | 272 +- ...TextSentimentDatasetMetadataOrBuilder.java | 21 +- .../v1/TextSentimentEvaluationMetrics.java | 684 +-- ...xtSentimentEvaluationMetricsOrBuilder.java | 62 +- .../automl/v1/TextSentimentModelMetadata.java | 238 +- .../TextSentimentModelMetadataOrBuilder.java | 9 + .../cloud/automl/v1/TextSentimentProto.java | 78 + .../google/cloud/automl/v1/TextSnippet.java | 452 +- .../cloud/automl/v1/TextSnippetOrBuilder.java | 45 +- .../automl/v1/TranslationAnnotation.java | 332 +- .../v1/TranslationAnnotationOrBuilder.java | 26 +- .../automl/v1/TranslationDatasetMetadata.java | 393 +- .../TranslationDatasetMetadataOrBuilder.java | 36 +- .../v1/TranslationEvaluationMetrics.java | 318 +- ...TranslationEvaluationMetricsOrBuilder.java | 29 + .../automl/v1/TranslationModelMetadata.java | 469 +- .../v1/TranslationModelMetadataOrBuilder.java | 45 +- .../cloud/automl/v1/TranslationProto.java | 108 + .../v1/UndeployModelOperationMetadata.java | 241 +- ...deployModelOperationMetadataOrBuilder.java | 9 + .../cloud/automl/v1/UndeployModelRequest.java | 332 +- .../v1/UndeployModelRequestOrBuilder.java | 29 + .../cloud/automl/v1/UpdateDatasetRequest.java | 492 +- .../v1/UpdateDatasetRequestOrBuilder.java | 52 +- .../cloud/automl/v1/UpdateModelRequest.java | 474 +- .../v1/UpdateModelRequestOrBuilder.java | 43 +- .../cloud/automl/v1/annotation_payload.proto | 0 .../cloud/automl/v1/annotation_spec.proto | 0 .../cloud/automl/v1/classification.proto | 0 .../google/cloud/automl/v1/data_items.proto | 0 .../google/cloud/automl/v1/dataset.proto | 0 .../google/cloud/automl/v1/detection.proto | 0 .../google/cloud/automl/v1/geometry.proto | 0 .../proto/google/cloud/automl/v1/image.proto | 0 .../proto/google/cloud/automl/v1/io.proto | 0 .../proto/google/cloud/automl/v1/model.proto | 0 .../cloud/automl/v1/model_evaluation.proto | 0 .../google/cloud/automl/v1/operations.proto | 0 .../cloud/automl/v1/prediction_service.proto | 0 .../google/cloud/automl/v1/service.proto | 9 +- .../proto/google/cloud/automl/v1/text.proto | 0 .../cloud/automl/v1/text_extraction.proto | 0 .../google/cloud/automl/v1/text_segment.proto | 0 .../cloud/automl/v1/text_sentiment.proto | 0 .../google/cloud/automl/v1/translation.proto | 0 .../cloud/automl/v1beta1/AutoMlClient.java | 74 +- .../cloud/automl/v1beta1/AutoMlSettings.java | 13 +- .../v1beta1/PredictionServiceClient.java | 144 +- .../v1beta1/PredictionServiceSettings.java | 7 +- .../cloud/automl/v1beta1/gapic_metadata.json | 0 .../cloud/automl/v1beta1/package-info.java | 0 .../cloud/automl/v1beta1/stub/AutoMlStub.java | 0 .../v1beta1/stub/AutoMlStubSettings.java | 24 +- .../stub/GrpcAutoMlCallableFactory.java | 0 .../automl/v1beta1/stub/GrpcAutoMlStub.java | 1 + .../GrpcPredictionServiceCallableFactory.java | 0 .../stub/GrpcPredictionServiceStub.java | 1 + .../v1beta1/stub/PredictionServiceStub.java | 0 .../stub/PredictionServiceStubSettings.java | 6 +- .../automl/v1beta1/AutoMlClientTest.java | 0 .../cloud/automl/v1beta1/MockAutoMl.java | 0 .../cloud/automl/v1beta1/MockAutoMlImpl.java | 0 .../automl/v1beta1/MockPredictionService.java | 0 .../v1beta1/MockPredictionServiceImpl.java | 0 .../v1beta1/PredictionServiceClientTest.java | 0 .../cloud/automl/v1beta1/AutoMlGrpc.java | 2518 ++++++++ .../automl/v1beta1/PredictionServiceGrpc.java | 302 +- .../automl/v1beta1/AnnotationPayload.java | 1729 ++---- .../v1beta1/AnnotationPayloadOrBuilder.java | 145 +- .../v1beta1/AnnotationPayloadOuterClass.java | 95 + .../cloud/automl/v1beta1/AnnotationSpec.java | 414 +- .../automl/v1beta1/AnnotationSpecName.java | 0 .../v1beta1/AnnotationSpecOrBuilder.java | 39 +- .../v1beta1/AnnotationSpecOuterClass.java | 68 + .../cloud/automl/v1beta1/ArrayStats.java | 325 +- .../automl/v1beta1/ArrayStatsOrBuilder.java | 26 +- .../cloud/automl/v1beta1/AutoMlProto.java | 643 +++ .../v1beta1/BatchPredictInputConfig.java | 495 +- .../BatchPredictInputConfigOrBuilder.java | 34 +- .../BatchPredictOperationMetadata.java | 1162 ++-- ...atchPredictOperationMetadataOrBuilder.java | 52 +- .../v1beta1/BatchPredictOutputConfig.java | 514 +- .../BatchPredictOutputConfigOrBuilder.java | 37 +- .../automl/v1beta1/BatchPredictRequest.java | 917 ++- .../v1beta1/BatchPredictRequestOrBuilder.java | 107 +- .../automl/v1beta1/BatchPredictResult.java | 501 +- .../v1beta1/BatchPredictResultOrBuilder.java | 50 +- .../automl/v1beta1/BigQueryDestination.java | 311 +- .../v1beta1/BigQueryDestinationOrBuilder.java | 27 +- .../cloud/automl/v1beta1/BigQuerySource.java | 301 +- .../v1beta1/BigQuerySourceOrBuilder.java | 27 +- .../v1beta1/BoundingBoxMetricsEntry.java | 1113 ++-- .../BoundingBoxMetricsEntryOrBuilder.java | 68 +- .../cloud/automl/v1beta1/BoundingPoly.java | 358 +- .../automl/v1beta1/BoundingPolyOrBuilder.java | 33 +- .../cloud/automl/v1beta1/CategoryStats.java | 879 ++- .../v1beta1/CategoryStatsOrBuilder.java | 57 +- .../automl/v1beta1/ClassificationProto.java | 5097 ++++++----------- .../cloud/automl/v1beta1/ColumnSpec.java | 1361 ++--- .../cloud/automl/v1beta1/ColumnSpecName.java | 0 .../automl/v1beta1/ColumnSpecOrBuilder.java | 99 +- .../automl/v1beta1/ColumnSpecOuterClass.java | 93 + .../automl/v1beta1/CorrelationStats.java | 272 +- .../v1beta1/CorrelationStatsOrBuilder.java | 19 + .../automl/v1beta1/CreateDatasetRequest.java | 488 +- .../CreateDatasetRequestOrBuilder.java | 56 + .../v1beta1/CreateModelOperationMetadata.java | 245 +- ...CreateModelOperationMetadataOrBuilder.java | 9 + .../automl/v1beta1/CreateModelRequest.java | 466 +- .../v1beta1/CreateModelRequestOrBuilder.java | 52 +- .../cloud/automl/v1beta1/DataItems.java | 179 + .../cloud/automl/v1beta1/DataStats.java | 1024 ++-- .../automl/v1beta1/DataStatsOrBuilder.java | 75 +- .../automl/v1beta1/DataStatsOuterClass.java | 251 + .../google/cloud/automl/v1beta1/DataType.java | 661 +-- .../automl/v1beta1/DataTypeOrBuilder.java | 55 +- .../cloud/automl/v1beta1/DataTypes.java | 90 + .../google/cloud/automl/v1beta1/Dataset.java | 2496 +++----- .../cloud/automl/v1beta1/DatasetName.java | 0 .../automl/v1beta1/DatasetOrBuilder.java | 275 +- .../automl/v1beta1/DatasetOuterClass.java | 111 + .../automl/v1beta1/DeleteDatasetRequest.java | 339 +- .../DeleteDatasetRequestOrBuilder.java | 29 + .../automl/v1beta1/DeleteModelRequest.java | 339 +- .../v1beta1/DeleteModelRequestOrBuilder.java | 29 + .../v1beta1/DeleteOperationMetadata.java | 238 +- .../DeleteOperationMetadataOrBuilder.java | 9 + .../v1beta1/DeployModelOperationMetadata.java | 245 +- ...DeployModelOperationMetadataOrBuilder.java | 9 + .../automl/v1beta1/DeployModelRequest.java | 845 +-- .../v1beta1/DeployModelRequestOrBuilder.java | 85 + .../cloud/automl/v1beta1/Detection.java | 142 + .../google/cloud/automl/v1beta1/Document.java | 1396 ++--- .../automl/v1beta1/DocumentDimensions.java | 453 +- .../v1beta1/DocumentDimensionsOrBuilder.java | 30 +- .../automl/v1beta1/DocumentInputConfig.java | 338 +- .../v1beta1/DocumentInputConfigOrBuilder.java | 26 +- .../automl/v1beta1/DocumentOrBuilder.java | 63 +- .../cloud/automl/v1beta1/DoubleRange.java | 303 +- .../automl/v1beta1/DoubleRangeOrBuilder.java | 29 + .../cloud/automl/v1beta1/ExamplePayload.java | 712 +-- .../v1beta1/ExamplePayloadOrBuilder.java | 50 +- .../v1beta1/ExportDataOperationMetadata.java | 1023 ++-- .../ExportDataOperationMetadataOrBuilder.java | 36 + .../automl/v1beta1/ExportDataRequest.java | 485 +- .../v1beta1/ExportDataRequestOrBuilder.java | 56 + ...ortEvaluatedExamplesOperationMetadata.java | 955 ++- ...tedExamplesOperationMetadataOrBuilder.java | 39 + .../ExportEvaluatedExamplesOutputConfig.java | 439 +- ...valuatedExamplesOutputConfigOrBuilder.java | 29 +- .../ExportEvaluatedExamplesRequest.java | 532 +- ...portEvaluatedExamplesRequestOrBuilder.java | 58 + .../v1beta1/ExportModelOperationMetadata.java | 861 ++- ...ExportModelOperationMetadataOrBuilder.java | 39 + .../automl/v1beta1/ExportModelRequest.java | 498 +- .../v1beta1/ExportModelRequestOrBuilder.java | 56 + .../cloud/automl/v1beta1/Float64Stats.java | 1029 ++-- .../automl/v1beta1/Float64StatsOrBuilder.java | 66 +- .../cloud/automl/v1beta1/GcrDestination.java | 301 +- .../v1beta1/GcrDestinationOrBuilder.java | 27 +- .../cloud/automl/v1beta1/GcsDestination.java | 301 +- .../v1beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/automl/v1beta1/GcsSource.java | 333 +- .../automl/v1beta1/GcsSourceOrBuilder.java | 36 +- .../google/cloud/automl/v1beta1/Geometry.java | 69 + .../v1beta1/GetAnnotationSpecRequest.java | 342 +- .../GetAnnotationSpecRequestOrBuilder.java | 29 + .../automl/v1beta1/GetColumnSpecRequest.java | 427 +- .../GetColumnSpecRequestOrBuilder.java | 43 +- .../automl/v1beta1/GetDatasetRequest.java | 339 +- .../v1beta1/GetDatasetRequestOrBuilder.java | 29 + .../v1beta1/GetModelEvaluationRequest.java | 342 +- .../GetModelEvaluationRequestOrBuilder.java | 29 + .../cloud/automl/v1beta1/GetModelRequest.java | 332 +- .../v1beta1/GetModelRequestOrBuilder.java | 29 + .../automl/v1beta1/GetTableSpecRequest.java | 427 +- .../v1beta1/GetTableSpecRequestOrBuilder.java | 43 +- .../google/cloud/automl/v1beta1/Image.java | 498 +- .../ImageClassificationDatasetMetadata.java | 354 +- ...lassificationDatasetMetadataOrBuilder.java | 24 +- ...ClassificationModelDeploymentMetadata.java | 374 +- ...ationModelDeploymentMetadataOrBuilder.java | 21 +- .../ImageClassificationModelMetadata.java | 649 +-- ...eClassificationModelMetadataOrBuilder.java | 57 +- .../ImageObjectDetectionAnnotation.java | 394 +- ...ageObjectDetectionAnnotationOrBuilder.java | 29 +- .../ImageObjectDetectionDatasetMetadata.java | 275 +- ...jectDetectionDatasetMetadataOrBuilder.java | 9 + ...ImageObjectDetectionEvaluationMetrics.java | 626 +- ...ctDetectionEvaluationMetricsOrBuilder.java | 62 +- ...bjectDetectionModelDeploymentMetadata.java | 377 +- ...ctionModelDeploymentMetadataOrBuilder.java | 21 +- .../ImageObjectDetectionModelMetadata.java | 576 +- ...ObjectDetectionModelMetadataOrBuilder.java | 48 +- .../cloud/automl/v1beta1/ImageOrBuilder.java | 41 +- .../cloud/automl/v1beta1/ImageProto.java | 138 + .../v1beta1/ImportDataOperationMetadata.java | 238 +- .../ImportDataOperationMetadataOrBuilder.java | 9 + .../automl/v1beta1/ImportDataRequest.java | 485 +- .../v1beta1/ImportDataRequestOrBuilder.java | 61 + .../cloud/automl/v1beta1/InputConfig.java | 744 +-- .../automl/v1beta1/InputConfigOrBuilder.java | 66 +- .../com/google/cloud/automl/v1beta1/Io.java | 237 + .../v1beta1/ListColumnSpecsRequest.java | 624 +- .../ListColumnSpecsRequestOrBuilder.java | 64 +- .../v1beta1/ListColumnSpecsResponse.java | 464 +- .../ListColumnSpecsResponseOrBuilder.java | 45 +- .../automl/v1beta1/ListDatasetsRequest.java | 568 +- .../v1beta1/ListDatasetsRequestOrBuilder.java | 66 +- .../automl/v1beta1/ListDatasetsResponse.java | 460 +- .../ListDatasetsResponseOrBuilder.java | 45 +- .../v1beta1/ListModelEvaluationsRequest.java | 536 +- .../ListModelEvaluationsRequestOrBuilder.java | 56 +- .../v1beta1/ListModelEvaluationsResponse.java | 452 +- ...ListModelEvaluationsResponseOrBuilder.java | 45 +- .../automl/v1beta1/ListModelsRequest.java | 561 +- .../v1beta1/ListModelsRequestOrBuilder.java | 64 +- .../automl/v1beta1/ListModelsResponse.java | 459 +- .../v1beta1/ListModelsResponseOrBuilder.java | 46 +- .../automl/v1beta1/ListTableSpecsRequest.java | 624 +- .../ListTableSpecsRequestOrBuilder.java | 64 +- .../v1beta1/ListTableSpecsResponse.java | 463 +- .../ListTableSpecsResponseOrBuilder.java | 45 +- .../cloud/automl/v1beta1/LocationName.java | 0 .../google/cloud/automl/v1beta1/Model.java | 2497 +++----- .../cloud/automl/v1beta1/ModelEvaluation.java | 2142 +++---- .../automl/v1beta1/ModelEvaluationName.java | 0 .../v1beta1/ModelEvaluationOrBuilder.java | 235 +- .../v1beta1/ModelEvaluationOuterClass.java | 114 + .../v1beta1/ModelExportOutputConfig.java | 834 ++- .../ModelExportOutputConfigOrBuilder.java | 78 +- .../cloud/automl/v1beta1/ModelName.java | 0 .../cloud/automl/v1beta1/ModelOrBuilder.java | 271 +- .../cloud/automl/v1beta1/ModelOuterClass.java | 114 + .../automl/v1beta1/NormalizedVertex.java | 310 +- .../v1beta1/NormalizedVertexOrBuilder.java | 29 + .../automl/v1beta1/OperationMetadata.java | 2188 +++---- .../v1beta1/OperationMetadataOrBuilder.java | 212 +- .../cloud/automl/v1beta1/Operations.java | 270 + .../cloud/automl/v1beta1/OutputConfig.java | 501 +- .../automl/v1beta1/OutputConfigOrBuilder.java | 34 +- .../cloud/automl/v1beta1/PredictRequest.java | 739 +-- .../v1beta1/PredictRequestOrBuilder.java | 87 +- .../cloud/automl/v1beta1/PredictResponse.java | 739 +-- .../v1beta1/PredictResponseOrBuilder.java | 76 +- .../v1beta1/PredictionServiceProto.java | 207 + .../cloud/automl/v1beta1/RangesProto.java | 56 + .../cloud/automl/v1beta1/RegressionProto.java | 612 +- .../com/google/cloud/automl/v1beta1/Row.java | 480 +- .../cloud/automl/v1beta1/RowOrBuilder.java | 55 +- .../cloud/automl/v1beta1/StringStats.java | 808 +-- .../automl/v1beta1/StringStatsOrBuilder.java | 48 +- .../cloud/automl/v1beta1/StructStats.java | 488 +- .../automl/v1beta1/StructStatsOrBuilder.java | 49 +- .../cloud/automl/v1beta1/StructType.java | 476 +- .../automl/v1beta1/StructTypeOrBuilder.java | 49 +- .../cloud/automl/v1beta1/TableSpec.java | 719 +-- .../cloud/automl/v1beta1/TableSpecName.java | 0 .../automl/v1beta1/TableSpecOrBuilder.java | 72 +- .../automl/v1beta1/TableSpecOuterClass.java | 73 + .../google/cloud/automl/v1beta1/Tables.java | 159 + .../automl/v1beta1/TablesAnnotation.java | 747 +-- .../v1beta1/TablesAnnotationOrBuilder.java | 69 +- .../automl/v1beta1/TablesDatasetMetadata.java | 957 ++-- .../TablesDatasetMetadataOrBuilder.java | 108 +- .../automl/v1beta1/TablesModelColumnInfo.java | 430 +- .../TablesModelColumnInfoOrBuilder.java | 39 +- .../automl/v1beta1/TablesModelMetadata.java | 1065 ++-- .../v1beta1/TablesModelMetadataOrBuilder.java | 104 +- .../google/cloud/automl/v1beta1/Temporal.java | 60 + .../TextClassificationDatasetMetadata.java | 350 +- ...lassificationDatasetMetadataOrBuilder.java | 24 +- .../TextClassificationModelMetadata.java | 342 +- ...tClassificationModelMetadataOrBuilder.java | 24 +- .../cloud/automl/v1beta1/TextExtraction.java | 90 + .../v1beta1/TextExtractionAnnotation.java | 418 +- .../TextExtractionAnnotationOrBuilder.java | 32 +- .../TextExtractionDatasetMetadata.java | 246 +- ...extExtractionDatasetMetadataOrBuilder.java | 9 + .../TextExtractionEvaluationMetrics.java | 1143 ++-- ...tExtractionEvaluationMetricsOrBuilder.java | 68 + .../v1beta1/TextExtractionModelMetadata.java | 314 +- .../TextExtractionModelMetadataOrBuilder.java | 27 +- .../cloud/automl/v1beta1/TextProto.java | 123 + .../cloud/automl/v1beta1/TextSegment.java | 375 +- .../automl/v1beta1/TextSegmentOrBuilder.java | 33 +- .../automl/v1beta1/TextSegmentProto.java | 57 + .../v1beta1/TextSentimentDatasetMetadata.java | 279 +- ...TextSentimentDatasetMetadataOrBuilder.java | 21 +- .../v1beta1/TextSentimentModelMetadata.java | 238 +- .../TextSentimentModelMetadataOrBuilder.java | 9 + .../automl/v1beta1/TextSentimentProto.java | 1482 ++--- .../cloud/automl/v1beta1/TextSnippet.java | 459 +- .../automl/v1beta1/TextSnippetOrBuilder.java | 45 +- .../cloud/automl/v1beta1/TimeSegment.java | 427 +- .../automl/v1beta1/TimeSegmentOrBuilder.java | 34 +- .../cloud/automl/v1beta1/TimestampStats.java | 1060 ++-- .../v1beta1/TimestampStatsOrBuilder.java | 61 +- .../automl/v1beta1/TranslationAnnotation.java | 338 +- .../TranslationAnnotationOrBuilder.java | 26 +- .../v1beta1/TranslationDatasetMetadata.java | 393 +- .../TranslationDatasetMetadataOrBuilder.java | 36 +- .../v1beta1/TranslationEvaluationMetrics.java | 325 +- ...TranslationEvaluationMetricsOrBuilder.java | 29 + .../v1beta1/TranslationModelMetadata.java | 472 +- .../TranslationModelMetadataOrBuilder.java | 45 +- .../automl/v1beta1/TranslationProto.java | 108 + .../google/cloud/automl/v1beta1/TypeCode.java | 110 +- .../UndeployModelOperationMetadata.java | 259 +- ...deployModelOperationMetadataOrBuilder.java | 9 + .../automl/v1beta1/UndeployModelRequest.java | 339 +- .../UndeployModelRequestOrBuilder.java | 29 + .../v1beta1/UpdateColumnSpecRequest.java | 480 +- .../UpdateColumnSpecRequestOrBuilder.java | 46 +- .../automl/v1beta1/UpdateDatasetRequest.java | 480 +- .../UpdateDatasetRequestOrBuilder.java | 46 +- .../v1beta1/UpdateTableSpecRequest.java | 483 +- .../UpdateTableSpecRequestOrBuilder.java | 46 +- .../VideoClassificationDatasetMetadata.java | 274 +- ...lassificationDatasetMetadataOrBuilder.java | 9 + .../VideoClassificationModelMetadata.java | 262 +- ...oClassificationModelMetadataOrBuilder.java | 9 + .../VideoObjectTrackingAnnotation.java | 549 +- ...ideoObjectTrackingAnnotationOrBuilder.java | 46 +- .../VideoObjectTrackingDatasetMetadata.java | 274 +- ...bjectTrackingDatasetMetadataOrBuilder.java | 9 + .../VideoObjectTrackingEvaluationMetrics.java | 660 +-- ...ectTrackingEvaluationMetricsOrBuilder.java | 65 +- .../VideoObjectTrackingModelMetadata.java | 262 +- ...oObjectTrackingModelMetadataOrBuilder.java | 9 + .../cloud/automl/v1beta1/VideoProto.java | 95 + .../automl/v1beta1/annotation_payload.proto | 0 .../automl/v1beta1/annotation_spec.proto | 0 .../cloud/automl/v1beta1/classification.proto | 0 .../cloud/automl/v1beta1/column_spec.proto | 0 .../cloud/automl/v1beta1/data_items.proto | 0 .../cloud/automl/v1beta1/data_stats.proto | 0 .../cloud/automl/v1beta1/data_types.proto | 0 .../google/cloud/automl/v1beta1/dataset.proto | 0 .../cloud/automl/v1beta1/detection.proto | 0 .../cloud/automl/v1beta1/geometry.proto | 0 .../google/cloud/automl/v1beta1/image.proto | 0 .../google/cloud/automl/v1beta1/io.proto | 0 .../google/cloud/automl/v1beta1/model.proto | 0 .../automl/v1beta1/model_evaluation.proto | 0 .../cloud/automl/v1beta1/operations.proto | 0 .../automl/v1beta1/prediction_service.proto | 0 .../google/cloud/automl/v1beta1/ranges.proto | 0 .../cloud/automl/v1beta1/regression.proto | 0 .../google/cloud/automl/v1beta1/service.proto | 9 +- .../cloud/automl/v1beta1/table_spec.proto | 0 .../google/cloud/automl/v1beta1/tables.proto | 0 .../cloud/automl/v1beta1/temporal.proto | 0 .../google/cloud/automl/v1beta1/text.proto | 0 .../automl/v1beta1/text_extraction.proto | 0 .../cloud/automl/v1beta1/text_segment.proto | 0 .../cloud/automl/v1beta1/text_sentiment.proto | 0 .../cloud/automl/v1beta1/translation.proto | 0 .../google/cloud/automl/v1beta1/video.proto | 0 .../v1/AnnotationPayloadOuterClass.java | 106 - .../automl/v1/AnnotationSpecOuterClass.java | 83 - .../google/cloud/automl/v1/AutoMlProto.java | 516 -- .../v1/BatchPredictInputConfigOrBuilder.java | 68 - .../cloud/automl/v1/ClassificationProto.java | 168 - ...eateDatasetOperationMetadataOrBuilder.java | 24 - ...CreateModelOperationMetadataOrBuilder.java | 24 - .../com/google/cloud/automl/v1/DataItems.java | 179 - .../cloud/automl/v1/DatasetOuterClass.java | 139 - .../v1/DeleteDatasetRequestOrBuilder.java | 54 - .../v1/DeleteModelRequestOrBuilder.java | 54 - .../v1/DeleteOperationMetadataOrBuilder.java | 24 - ...DeployModelOperationMetadataOrBuilder.java | 24 - .../v1/DeployModelRequestOrBuilder.java | 143 - .../com/google/cloud/automl/v1/Detection.java | 131 - .../automl/v1/ExportDataRequestOrBuilder.java | 95 - ...ExportModelOperationMetadataOrBuilder.java | 70 - .../v1/ExportModelRequestOrBuilder.java | 95 - .../com/google/cloud/automl/v1/Geometry.java | 85 - .../v1/GetAnnotationSpecRequestOrBuilder.java | 54 - .../automl/v1/GetDatasetRequestOrBuilder.java | 54 - .../GetModelEvaluationRequestOrBuilder.java | 54 - .../automl/v1/GetModelRequestOrBuilder.java | 54 - ...jectDetectionDatasetMetadataOrBuilder.java | 24 - .../google/cloud/automl/v1/ImageProto.java | 168 - .../ImportDataOperationMetadataOrBuilder.java | 24 - .../automl/v1/ImportDataRequestOrBuilder.java | 100 - .../java/com/google/cloud/automl/v1/Io.java | 210 - .../automl/v1/ModelEvaluationOuterClass.java | 126 - .../cloud/automl/v1/ModelOuterClass.java | 143 - .../automl/v1/NormalizedVertexOrBuilder.java | 51 - .../google/cloud/automl/v1/Operations.java | 277 - .../automl/v1/PredictionServiceProto.java | 231 - .../cloud/automl/v1/TextExtraction.java | 108 - ...extExtractionDatasetMetadataOrBuilder.java | 24 - ...tExtractionEvaluationMetricsOrBuilder.java | 111 - .../TextExtractionModelMetadataOrBuilder.java | 24 - .../com/google/cloud/automl/v1/TextProto.java | 136 - .../cloud/automl/v1/TextSegmentProto.java | 72 - .../TextSentimentModelMetadataOrBuilder.java | 24 - .../cloud/automl/v1/TextSentimentProto.java | 101 - ...TranslationEvaluationMetricsOrBuilder.java | 51 - .../cloud/automl/v1/TranslationProto.java | 126 - ...deployModelOperationMetadataOrBuilder.java | 24 - .../v1/UndeployModelRequestOrBuilder.java | 54 - .../v1beta1/AnnotationPayloadOuterClass.java | 120 - .../v1beta1/AnnotationSpecOuterClass.java | 83 - .../cloud/automl/v1beta1/AutoMlProto.java | 689 --- .../automl/v1beta1/ColumnSpecOuterClass.java | 109 - .../v1beta1/CorrelationStatsOrBuilder.java | 38 - .../CreateDatasetRequestOrBuilder.java | 95 - ...CreateModelOperationMetadataOrBuilder.java | 24 - .../cloud/automl/v1beta1/DataItems.java | 200 - .../automl/v1beta1/DataStatsOuterClass.java | 297 - .../cloud/automl/v1beta1/DataTypes.java | 107 - .../automl/v1beta1/DatasetOuterClass.java | 141 - .../DeleteDatasetRequestOrBuilder.java | 54 - .../v1beta1/DeleteModelRequestOrBuilder.java | 54 - .../DeleteOperationMetadataOrBuilder.java | 24 - ...DeployModelOperationMetadataOrBuilder.java | 24 - .../v1beta1/DeployModelRequestOrBuilder.java | 143 - .../cloud/automl/v1beta1/Detection.java | 169 - .../automl/v1beta1/DoubleRangeOrBuilder.java | 51 - .../ExportDataOperationMetadataOrBuilder.java | 67 - .../v1beta1/ExportDataRequestOrBuilder.java | 95 - ...tedExamplesOperationMetadataOrBuilder.java | 73 - ...portEvaluatedExamplesRequestOrBuilder.java | 98 - ...ExportModelOperationMetadataOrBuilder.java | 71 - .../v1beta1/ExportModelRequestOrBuilder.java | 95 - .../google/cloud/automl/v1beta1/Geometry.java | 85 - .../GetAnnotationSpecRequestOrBuilder.java | 54 - .../v1beta1/GetDatasetRequestOrBuilder.java | 54 - .../GetModelEvaluationRequestOrBuilder.java | 54 - .../v1beta1/GetModelRequestOrBuilder.java | 54 - ...jectDetectionDatasetMetadataOrBuilder.java | 24 - .../cloud/automl/v1beta1/ImageProto.java | 167 - .../ImportDataOperationMetadataOrBuilder.java | 24 - .../v1beta1/ImportDataRequestOrBuilder.java | 100 - .../com/google/cloud/automl/v1beta1/Io.java | 267 - .../v1beta1/ModelEvaluationOuterClass.java | 141 - .../cloud/automl/v1beta1/ModelOuterClass.java | 144 - .../v1beta1/NormalizedVertexOrBuilder.java | 51 - .../cloud/automl/v1beta1/Operations.java | 309 - .../v1beta1/PredictionServiceProto.java | 237 - .../cloud/automl/v1beta1/RangesProto.java | 71 - .../automl/v1beta1/TableSpecOuterClass.java | 94 - .../google/cloud/automl/v1beta1/Tables.java | 194 - .../google/cloud/automl/v1beta1/Temporal.java | 75 - .../cloud/automl/v1beta1/TextExtraction.java | 109 - ...extExtractionDatasetMetadataOrBuilder.java | 24 - ...tExtractionEvaluationMetricsOrBuilder.java | 112 - .../cloud/automl/v1beta1/TextProto.java | 139 - .../automl/v1beta1/TextSegmentProto.java | 72 - .../TextSentimentModelMetadataOrBuilder.java | 24 - ...TranslationEvaluationMetricsOrBuilder.java | 51 - .../automl/v1beta1/TranslationProto.java | 126 - ...deployModelOperationMetadataOrBuilder.java | 24 - .../UndeployModelRequestOrBuilder.java | 54 - ...lassificationDatasetMetadataOrBuilder.java | 24 - ...oClassificationModelMetadataOrBuilder.java | 24 - ...bjectTrackingDatasetMetadataOrBuilder.java | 24 - ...oObjectTrackingModelMetadataOrBuilder.java | 24 - .../cloud/automl/v1beta1/VideoProto.java | 105 - 647 files changed, 60859 insertions(+), 100043 deletions(-) delete mode 100644 grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java delete mode 100644 grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java (97%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java (97%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java (86%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java (96%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/gapic_metadata.json (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/package-info.java (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java (98%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlCallableFactory.java (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java (99%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceCallableFactory.java (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java (99%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java (98%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/AutoMlClientTest.java (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/MockAutoMl.java (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/MockAutoMlImpl.java (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/MockPredictionService.java (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/MockPredictionServiceImpl.java (100%) rename {google-cloud-automl => owl-bot-staging/v1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/PredictionServiceClientTest.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java rename {grpc-google-cloud-automl-v1 => owl-bot-staging/v1/grpc-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java (67%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java (73%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/AnnotationSpec.java (72%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOuterClass.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlProto.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfig.java (78%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfigOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java (63%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java (61%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java (83%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java (50%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java (77%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java (89%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java (65%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java (70%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java (65%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java (55%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java (76%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java (64%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java (68%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java (52%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java (70%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ClassificationType.java (68%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java (65%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java (51%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java (67%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java (56%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DataItems.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/Dataset.java (64%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DatasetName.java (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOuterClass.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequestOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java (58%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/Document.java (76%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java (70%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java (62%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java (70%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java (65%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java (81%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java (69%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java (73%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java (63%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java (54%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java (62%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequestOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GcsDestination.java (71%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java (62%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GcsSource.java (72%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequestOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/Image.java (71%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java (66%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java (55%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java (63%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java (56%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java (82%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java (90%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java (68%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java (65%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java (62%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java (69%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java (66%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java (63%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java (57%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java (80%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java (88%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadata.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequestOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/InputConfig.java (85%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequest.java (69%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java (60%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java (74%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java (66%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java (73%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java (73%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java (75%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java (71%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java (70%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java (63%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java (74%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java (65%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/LocationName.java (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/Model.java (66%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java (67%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOuterClass.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfig.java (74%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java (83%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelName.java (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java (75%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOuterClass.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/NormalizedVertex.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/NormalizedVertexOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java (72%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/OutputConfig.java (72%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java (65%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/PredictRequest.java (69%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java (80%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/PredictResponse.java (75%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java (86%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceProto.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadata.java (66%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java (55%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java (67%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java (57%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtraction.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotation.java (70%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java (69%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadataOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java (62%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetricsOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSegment.java (71%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java (62%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentProto.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotation.java (72%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java (65%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java (69%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java (54%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java (68%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java (69%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadataOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentProto.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSnippet.java (72%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java (68%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java (68%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java (60%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java (70%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java (61%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetricsOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java (72%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadata.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequestOrBuilder.java rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java (67%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java (63%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java (69%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java (67%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/annotation_payload.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/annotation_spec.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/classification.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/data_items.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/dataset.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/detection.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/geometry.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/image.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/io.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/model.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/model_evaluation.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/operations.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/prediction_service.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/service.proto (98%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/text.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/text_extraction.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/text_segment.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/text_sentiment.proto (100%) rename {proto-google-cloud-automl-v1 => owl-bot-staging/v1/proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/translation.proto (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java (98%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java (98%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java (87%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java (96%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/gapic_metadata.json (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/package-info.java (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java (98%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlCallableFactory.java (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java (99%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceCallableFactory.java (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java (99%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java (98%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMl.java (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionService.java (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java (100%) rename {google-cloud-automl => owl-bot-staging/v1beta1/google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/PredictionServiceClientTest.java (100%) create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java rename {grpc-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java (64%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java (81%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java (70%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java (66%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java (80%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java (72%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java (64%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java (60%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java (83%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java (78%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java (90%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java (65%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java (71%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java (69%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java (52%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java (70%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java (53%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java (64%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java (54%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java (75%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java (69%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java (68%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java (50%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java (71%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java (68%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java (65%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java (51%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DataType.java (77%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java (87%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java (61%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java (65%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java (57%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Document.java (76%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java (69%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java (62%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java (69%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java (66%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java (82%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java (70%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java (78%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java (55%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java (68%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java (62%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java (59%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java (60%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java (80%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java (72%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java (64%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java (71%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java (60%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java (72%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java (54%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java (65%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java (54%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Image.java (72%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java (61%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java (56%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java (56%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java (57%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java (80%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java (89%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java (66%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java (59%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java (65%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java (56%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java (57%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java (79%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java (88%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java (65%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java (63%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java (82%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java (81%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java (71%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java (69%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java (68%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java (68%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java (60%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java (75%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java (70%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java (63%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java (71%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java (69%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java (68%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Model.java (63%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java (62%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java (78%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java (89%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java (66%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java (68%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java (77%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java (75%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java (81%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java (69%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java (79%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java (75%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java (86%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RangesProto.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/RegressionProto.java (62%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Row.java (79%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java (81%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java (72%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java (65%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java (63%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java (66%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StructType.java (64%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java (66%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java (77%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java (81%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java (77%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java (87%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java (75%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java (83%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java (74%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java (74%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java (81%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java (90%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java (61%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java (56%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java (63%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java (58%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java (70%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java (60%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java (69%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java (58%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java (71%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java (63%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java (68%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java (55%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java (65%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java (64%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java (72%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java (69%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java (70%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java (73%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java (63%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java (62%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java (67%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java (61%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java (70%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java (61%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java (66%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java (72%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java (69%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java (77%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java (65%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java (58%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java (65%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java (58%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java (65%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java (58%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java (60%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java (61%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java (74%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java (81%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java (59%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java (68%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java (66%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java (61%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/annotation_spec.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/classification.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/data_items.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/data_types.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/dataset.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/detection.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/geometry.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/image.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/io.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/model.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/operations.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/ranges.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/regression.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/service.proto (98%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/tables.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/temporal.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/text.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/translation.proto (100%) rename {proto-google-cloud-automl-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/video.proto (100%) delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOuterClass.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlProto.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfigOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DataItems.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOuterClass.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOuterClass.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOuterClass.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceProto.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtraction.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetricsOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentProto.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentProto.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetricsOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RangesProto.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java delete mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java diff --git a/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java b/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java deleted file mode 100644 index 09212f64f..000000000 --- a/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java +++ /dev/null @@ -1,2438 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -package com.google.cloud.automl.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * AutoML Server API.
- * The resource names are assigned by the server.
- * The server never reuses names that it has created after the resources with
- * those names are deleted.
- * 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( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/automl/v1/service.proto") -public final class AutoMlGrpc { - - private AutoMlGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.automl.v1.AutoMl"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation> - getCreateDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDataset", - requestType = com.google.cloud.automl.v1.CreateDatasetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation> - getCreateDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation> - getCreateDatasetMethod; - if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { - AutoMlGrpc.getCreateDatasetMethod = - getCreateDatasetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.CreateDatasetRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateDataset")) - .build(); - } - } - } - return getCreateDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset> - getGetDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataset", - requestType = com.google.cloud.automl.v1.GetDatasetRequest.class, - responseType = com.google.cloud.automl.v1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset> - getGetDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset> - getGetDatasetMethod; - if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { - AutoMlGrpc.getGetDatasetMethod = - getGetDatasetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.GetDatasetRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.Dataset.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetDataset")) - .build(); - } - } - } - return getGetDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ListDatasetsRequest, - com.google.cloud.automl.v1.ListDatasetsResponse> - getListDatasetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDatasets", - requestType = com.google.cloud.automl.v1.ListDatasetsRequest.class, - responseType = com.google.cloud.automl.v1.ListDatasetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ListDatasetsRequest, - com.google.cloud.automl.v1.ListDatasetsResponse> - getListDatasetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ListDatasetsRequest, - com.google.cloud.automl.v1.ListDatasetsResponse> - getListDatasetsMethod; - if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { - AutoMlGrpc.getListDatasetsMethod = - getListDatasetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatasets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListDatasetsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListDatasetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListDatasets")) - .build(); - } - } - } - return getListDatasetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.Dataset> - getUpdateDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", - requestType = com.google.cloud.automl.v1.UpdateDatasetRequest.class, - responseType = com.google.cloud.automl.v1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.Dataset> - getUpdateDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.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(SERVICE_NAME, "UpdateDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.UpdateDatasetRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.Dataset.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateDataset")) - .build(); - } - } - } - return getUpdateDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation> - getDeleteDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", - requestType = com.google.cloud.automl.v1.DeleteDatasetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation> - getDeleteDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation> - getDeleteDatasetMethod; - if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { - AutoMlGrpc.getDeleteDatasetMethod = - getDeleteDatasetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.DeleteDatasetRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteDataset")) - .build(); - } - } - } - return getDeleteDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation> - getImportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportData", - requestType = com.google.cloud.automl.v1.ImportDataRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation> - getImportDataMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation> - getImportDataMethod; - if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { - AutoMlGrpc.getImportDataMethod = - getImportDataMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportData")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ImportDataRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ImportData")) - .build(); - } - } - } - return getImportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation> - getExportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportData", - requestType = com.google.cloud.automl.v1.ExportDataRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation> - getExportDataMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation> - getExportDataMethod; - if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { - AutoMlGrpc.getExportDataMethod = - getExportDataMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportData")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ExportDataRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportData")) - .build(); - } - } - } - return getExportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetAnnotationSpecRequest, - com.google.cloud.automl.v1.AnnotationSpec> - getGetAnnotationSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpec", - requestType = com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, - responseType = com.google.cloud.automl.v1.AnnotationSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetAnnotationSpecRequest, - com.google.cloud.automl.v1.AnnotationSpec> - getGetAnnotationSpecMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetAnnotationSpecRequest, - com.google.cloud.automl.v1.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(SERVICE_NAME, "GetAnnotationSpec")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.GetAnnotationSpecRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.AnnotationSpec.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetAnnotationSpec")) - .build(); - } - } - } - return getGetAnnotationSpecMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation> - getCreateModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateModel", - requestType = com.google.cloud.automl.v1.CreateModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation> - getCreateModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation> - getCreateModelMethod; - if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { - AutoMlGrpc.getCreateModelMethod = - getCreateModelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.CreateModelRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateModel")) - .build(); - } - } - } - return getCreateModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model> - getGetModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetModel", - requestType = com.google.cloud.automl.v1.GetModelRequest.class, - responseType = com.google.cloud.automl.v1.Model.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model> - getGetModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model> - getGetModelMethod; - if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { - AutoMlGrpc.getGetModelMethod = - getGetModelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.GetModelRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.Model.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModel")) - .build(); - } - } - } - return getGetModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ListModelsRequest, - com.google.cloud.automl.v1.ListModelsResponse> - getListModelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListModels", - requestType = com.google.cloud.automl.v1.ListModelsRequest.class, - responseType = com.google.cloud.automl.v1.ListModelsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ListModelsRequest, - com.google.cloud.automl.v1.ListModelsResponse> - getListModelsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ListModelsRequest, - com.google.cloud.automl.v1.ListModelsResponse> - getListModelsMethod; - if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { - AutoMlGrpc.getListModelsMethod = - getListModelsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListModelsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListModelsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModels")) - .build(); - } - } - } - return getListModelsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation> - getDeleteModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteModel", - requestType = com.google.cloud.automl.v1.DeleteModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation> - getDeleteModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation> - getDeleteModelMethod; - if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { - AutoMlGrpc.getDeleteModelMethod = - getDeleteModelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.DeleteModelRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteModel")) - .build(); - } - } - } - return getDeleteModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model> - getUpdateModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateModel", - requestType = com.google.cloud.automl.v1.UpdateModelRequest.class, - responseType = com.google.cloud.automl.v1.Model.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model> - getUpdateModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model> - getUpdateModelMethod; - if ((getUpdateModelMethod = AutoMlGrpc.getUpdateModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getUpdateModelMethod = AutoMlGrpc.getUpdateModelMethod) == null) { - AutoMlGrpc.getUpdateModelMethod = - getUpdateModelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.UpdateModelRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.Model.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateModel")) - .build(); - } - } - } - return getUpdateModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.DeployModelRequest, com.google.longrunning.Operation> - getDeployModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeployModel", - requestType = com.google.cloud.automl.v1.DeployModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.DeployModelRequest, com.google.longrunning.Operation> - getDeployModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.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(SERVICE_NAME, "DeployModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.DeployModelRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeployModel")) - .build(); - } - } - } - return getDeployModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.UndeployModelRequest, com.google.longrunning.Operation> - getUndeployModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeployModel", - requestType = com.google.cloud.automl.v1.UndeployModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.UndeployModelRequest, com.google.longrunning.Operation> - getUndeployModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.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(SERVICE_NAME, "UndeployModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.UndeployModelRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UndeployModel")) - .build(); - } - } - } - return getUndeployModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation> - getExportModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportModel", - requestType = com.google.cloud.automl.v1.ExportModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation> - getExportModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation> - getExportModelMethod; - if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { - AutoMlGrpc.getExportModelMethod = - getExportModelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ExportModelRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) - .build(); - } - } - } - return getExportModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetModelEvaluationRequest, - com.google.cloud.automl.v1.ModelEvaluation> - getGetModelEvaluationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", - requestType = com.google.cloud.automl.v1.GetModelEvaluationRequest.class, - responseType = com.google.cloud.automl.v1.ModelEvaluation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetModelEvaluationRequest, - com.google.cloud.automl.v1.ModelEvaluation> - getGetModelEvaluationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.GetModelEvaluationRequest, - com.google.cloud.automl.v1.ModelEvaluation> - getGetModelEvaluationMethod; - if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { - AutoMlGrpc.getGetModelEvaluationMethod = - getGetModelEvaluationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.GetModelEvaluationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModelEvaluation")) - .build(); - } - } - } - return getGetModelEvaluationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ListModelEvaluationsRequest, - com.google.cloud.automl.v1.ListModelEvaluationsResponse> - getListModelEvaluationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", - requestType = com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, - responseType = com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ListModelEvaluationsRequest, - com.google.cloud.automl.v1.ListModelEvaluationsResponse> - getListModelEvaluationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1.ListModelEvaluationsRequest, - com.google.cloud.automl.v1.ListModelEvaluationsResponse> - getListModelEvaluationsMethod; - if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { - AutoMlGrpc.getListModelEvaluationsMethod = - getListModelEvaluationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListModelEvaluationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListModelEvaluationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AutoMlMethodDescriptorSupplier("ListModelEvaluations")) - .build(); - } - } - } - return getListModelEvaluationsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AutoMlStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlStub(channel, callOptions); - } - }; - return AutoMlStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AutoMlBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlBlockingStub(channel, callOptions); - } - }; - return AutoMlBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AutoMlFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlFutureStub(channel, callOptions); - } - }; - return AutoMlFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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 { - - /** - * - * - *
-     * Creates a dataset.
-     * 
- */ - public void createDataset( - com.google.cloud.automl.v1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a dataset.
-     * 
- */ - public void getDataset( - com.google.cloud.automl.v1.GetDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists datasets in a project.
-     * 
- */ - public void listDatasets( - com.google.cloud.automl.v1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDatasetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a dataset.
-     * 
- */ - public void updateDataset( - com.google.cloud.automl.v1.UpdateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void deleteDataset( - com.google.cloud.automl.v1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.v1.InputConfig.params]
-     *     parameter must be explicitly set.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void importData( - com.google.cloud.automl.v1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); - } - - /** - * - * - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportData( - com.google.cloud.automl.v1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an annotation spec.
-     * 
- */ - public void getAnnotationSpec( - com.google.cloud.automl.v1.GetAnnotationSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAnnotationSpecMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public void createModel( - com.google.cloud.automl.v1.CreateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateModelMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a model.
-     * 
- */ - public void getModel( - com.google.cloud.automl.v1.GetModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists models.
-     * 
- */ - public void listModels( - com.google.cloud.automl.v1.ListModelsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void deleteModel( - com.google.cloud.automl.v1.DeleteModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteModelMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a model.
-     * 
- */ - public void updateModel( - com.google.cloud.automl.v1.UpdateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateModelMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
-     *  will reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void deployModel( - com.google.cloud.automl.v1.DeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeployModelMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void undeployModel( - com.google.cloud.automl.v1.UndeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeployModelMethod(), 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.v1.ModelExportOutputConfig].
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportModel( - com.google.cloud.automl.v1.ExportModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportModelMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a model evaluation.
-     * 
- */ - public void getModelEvaluation( - com.google.cloud.automl.v1.GetModelEvaluationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetModelEvaluationMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists model evaluations.
-     * 
- */ - public void listModelEvaluations( - com.google.cloud.automl.v1.ListModelEvaluationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListModelEvaluationsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.CreateDatasetRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_DATASET))) - .addMethod( - getGetDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.GetDatasetRequest, - com.google.cloud.automl.v1.Dataset>(this, METHODID_GET_DATASET))) - .addMethod( - getListDatasetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ListDatasetsRequest, - com.google.cloud.automl.v1.ListDatasetsResponse>( - this, METHODID_LIST_DATASETS))) - .addMethod( - getUpdateDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.UpdateDatasetRequest, - com.google.cloud.automl.v1.Dataset>(this, METHODID_UPDATE_DATASET))) - .addMethod( - getDeleteDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.DeleteDatasetRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_DATASET))) - .addMethod( - getImportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ImportDataRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_DATA))) - .addMethod( - getExportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ExportDataRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) - .addMethod( - getGetAnnotationSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.GetAnnotationSpecRequest, - com.google.cloud.automl.v1.AnnotationSpec>( - this, METHODID_GET_ANNOTATION_SPEC))) - .addMethod( - getCreateModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.CreateModelRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_MODEL))) - .addMethod( - getGetModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model>( - this, METHODID_GET_MODEL))) - .addMethod( - getListModelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ListModelsRequest, - com.google.cloud.automl.v1.ListModelsResponse>(this, METHODID_LIST_MODELS))) - .addMethod( - getDeleteModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.DeleteModelRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL))) - .addMethod( - getUpdateModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.UpdateModelRequest, - com.google.cloud.automl.v1.Model>(this, METHODID_UPDATE_MODEL))) - .addMethod( - getDeployModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.DeployModelRequest, - com.google.longrunning.Operation>(this, METHODID_DEPLOY_MODEL))) - .addMethod( - getUndeployModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.UndeployModelRequest, - com.google.longrunning.Operation>(this, METHODID_UNDEPLOY_MODEL))) - .addMethod( - getExportModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ExportModelRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_MODEL))) - .addMethod( - getGetModelEvaluationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.GetModelEvaluationRequest, - com.google.cloud.automl.v1.ModelEvaluation>( - this, METHODID_GET_MODEL_EVALUATION))) - .addMethod( - getListModelEvaluationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ListModelEvaluationsRequest, - com.google.cloud.automl.v1.ListModelEvaluationsResponse>( - this, METHODID_LIST_MODEL_EVALUATIONS))) - .build(); - } - } - - /** - * - * - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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.AbstractAsyncStub { - private AutoMlStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a dataset.
-     * 
- */ - public void createDataset( - com.google.cloud.automl.v1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a dataset.
-     * 
- */ - public void getDataset( - com.google.cloud.automl.v1.GetDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists datasets in a project.
-     * 
- */ - public void listDatasets( - com.google.cloud.automl.v1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a dataset.
-     * 
- */ - public void updateDataset( - com.google.cloud.automl.v1.UpdateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void deleteDataset( - com.google.cloud.automl.v1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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.v1.InputConfig.params]
-     *     parameter must be explicitly set.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void importData( - com.google.cloud.automl.v1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportData( - com.google.cloud.automl.v1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets an annotation spec.
-     * 
- */ - public void getAnnotationSpec( - com.google.cloud.automl.v1.GetAnnotationSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public void createModel( - com.google.cloud.automl.v1.CreateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateModelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a model.
-     * 
- */ - public void getModel( - com.google.cloud.automl.v1.GetModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists models.
-     * 
- */ - public void listModels( - com.google.cloud.automl.v1.ListModelsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void deleteModel( - com.google.cloud.automl.v1.DeleteModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteModelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a model.
-     * 
- */ - public void updateModel( - com.google.cloud.automl.v1.UpdateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateModelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
-     *  will reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void deployModel( - com.google.cloud.automl.v1.DeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeployModelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void undeployModel( - com.google.cloud.automl.v1.UndeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeployModelMethod(), getCallOptions()), - request, - 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.v1.ModelExportOutputConfig].
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportModel( - com.google.cloud.automl.v1.ExportModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportModelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a model evaluation.
-     * 
- */ - public void getModelEvaluation( - com.google.cloud.automl.v1.GetModelEvaluationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists model evaluations.
-     * 
- */ - public void listModelEvaluations( - com.google.cloud.automl.v1.ListModelEvaluationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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 - extends io.grpc.stub.AbstractBlockingStub { - private AutoMlBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a dataset.
-     * 
- */ - public com.google.longrunning.Operation createDataset( - com.google.cloud.automl.v1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a dataset.
-     * 
- */ - public com.google.cloud.automl.v1.Dataset getDataset( - com.google.cloud.automl.v1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists datasets in a project.
-     * 
- */ - public com.google.cloud.automl.v1.ListDatasetsResponse listDatasets( - com.google.cloud.automl.v1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDatasetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a dataset.
-     * 
- */ - public com.google.cloud.automl.v1.Dataset updateDataset( - com.google.cloud.automl.v1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation deleteDataset( - com.google.cloud.automl.v1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.v1.InputConfig.params]
-     *     parameter must be explicitly set.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.longrunning.Operation importData( - com.google.cloud.automl.v1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportDataMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.longrunning.Operation exportData( - com.google.cloud.automl.v1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportDataMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an annotation spec.
-     * 
- */ - public com.google.cloud.automl.v1.AnnotationSpec getAnnotationSpec( - com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public com.google.longrunning.Operation createModel( - com.google.cloud.automl.v1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateModelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a model.
-     * 
- */ - public com.google.cloud.automl.v1.Model getModel( - com.google.cloud.automl.v1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetModelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists models.
-     * 
- */ - public com.google.cloud.automl.v1.ListModelsResponse listModels( - com.google.cloud.automl.v1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListModelsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation deleteModel( - com.google.cloud.automl.v1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteModelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a model.
-     * 
- */ - public com.google.cloud.automl.v1.Model updateModel( - com.google.cloud.automl.v1.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateModelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
-     *  will reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.longrunning.Operation deployModel( - com.google.cloud.automl.v1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeployModelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation undeployModel( - com.google.cloud.automl.v1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeployModelMethod(), 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.v1.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.v1.ExportModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportModelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a model evaluation.
-     * 
- */ - public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation( - com.google.cloud.automl.v1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists model evaluations.
-     * 
- */ - public com.google.cloud.automl.v1.ListModelEvaluationsResponse listModelEvaluations( - com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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.AbstractFutureStub { - private AutoMlFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createDataset(com.google.cloud.automl.v1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getDataset(com.google.cloud.automl.v1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists datasets in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1.ListDatasetsResponse> - listDatasets(com.google.cloud.automl.v1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateDataset(com.google.cloud.automl.v1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDataset(com.google.cloud.automl.v1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.v1.InputConfig.params]
-     *     parameter must be explicitly set.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - importData(com.google.cloud.automl.v1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - exportData(com.google.cloud.automl.v1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an annotation spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1.AnnotationSpec> - getAnnotationSpec(com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createModel(com.google.cloud.automl.v1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a model.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getModel(com.google.cloud.automl.v1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetModelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists models.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1.ListModelsResponse> - listModels(com.google.cloud.automl.v1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListModelsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteModel(com.google.cloud.automl.v1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a model.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateModel(com.google.cloud.automl.v1.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
-     *  will reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deployModel(com.google.cloud.automl.v1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - undeployModel(com.google.cloud.automl.v1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeployModelMethod(), 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.v1.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.v1.ExportModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportModelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a model evaluation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1.ModelEvaluation> - getModelEvaluation(com.google.cloud.automl.v1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists model evaluations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1.ListModelEvaluationsResponse> - listModelEvaluations(com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); - } - } - - 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_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_CREATE_MODEL = 8; - private static final int METHODID_GET_MODEL = 9; - private static final int METHODID_LIST_MODELS = 10; - private static final int METHODID_DELETE_MODEL = 11; - private static final int METHODID_UPDATE_MODEL = 12; - private static final int METHODID_DEPLOY_MODEL = 13; - private static final int METHODID_UNDEPLOY_MODEL = 14; - private static final int METHODID_EXPORT_MODEL = 15; - private static final int METHODID_GET_MODEL_EVALUATION = 16; - private static final int METHODID_LIST_MODEL_EVALUATIONS = 17; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AutoMlImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AutoMlImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_DATASET: - serviceImpl.createDataset( - (com.google.cloud.automl.v1.CreateDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATASET: - serviceImpl.getDataset( - (com.google.cloud.automl.v1.GetDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DATASETS: - serviceImpl.listDatasets( - (com.google.cloud.automl.v1.ListDatasetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_DATASET: - serviceImpl.updateDataset( - (com.google.cloud.automl.v1.UpdateDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DATASET: - serviceImpl.deleteDataset( - (com.google.cloud.automl.v1.DeleteDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_DATA: - serviceImpl.importData( - (com.google.cloud.automl.v1.ImportDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_DATA: - serviceImpl.exportData( - (com.google.cloud.automl.v1.ExportDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ANNOTATION_SPEC: - serviceImpl.getAnnotationSpec( - (com.google.cloud.automl.v1.GetAnnotationSpecRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_MODEL: - serviceImpl.createModel( - (com.google.cloud.automl.v1.CreateModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MODEL: - serviceImpl.getModel( - (com.google.cloud.automl.v1.GetModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MODELS: - serviceImpl.listModels( - (com.google.cloud.automl.v1.ListModelsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_MODEL: - serviceImpl.deleteModel( - (com.google.cloud.automl.v1.DeleteModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MODEL: - serviceImpl.updateModel( - (com.google.cloud.automl.v1.UpdateModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEPLOY_MODEL: - serviceImpl.deployModel( - (com.google.cloud.automl.v1.DeployModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDEPLOY_MODEL: - serviceImpl.undeployModel( - (com.google.cloud.automl.v1.UndeployModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_MODEL: - serviceImpl.exportModel( - (com.google.cloud.automl.v1.ExportModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MODEL_EVALUATION: - serviceImpl.getModelEvaluation( - (com.google.cloud.automl.v1.GetModelEvaluationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_MODEL_EVALUATIONS: - serviceImpl.listModelEvaluations( - (com.google.cloud.automl.v1.ListModelEvaluationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AutoMlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AutoMlBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AutoMl"); - } - } - - private static final class AutoMlFileDescriptorSupplier extends AutoMlBaseDescriptorSupplier { - AutoMlFileDescriptorSupplier() {} - } - - private static final class AutoMlMethodDescriptorSupplier extends AutoMlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AutoMlMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AutoMlGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AutoMlFileDescriptorSupplier()) - .addMethod(getCreateDatasetMethod()) - .addMethod(getGetDatasetMethod()) - .addMethod(getListDatasetsMethod()) - .addMethod(getUpdateDatasetMethod()) - .addMethod(getDeleteDatasetMethod()) - .addMethod(getImportDataMethod()) - .addMethod(getExportDataMethod()) - .addMethod(getGetAnnotationSpecMethod()) - .addMethod(getCreateModelMethod()) - .addMethod(getGetModelMethod()) - .addMethod(getListModelsMethod()) - .addMethod(getDeleteModelMethod()) - .addMethod(getUpdateModelMethod()) - .addMethod(getDeployModelMethod()) - .addMethod(getUndeployModelMethod()) - .addMethod(getExportModelMethod()) - .addMethod(getGetModelEvaluationMethod()) - .addMethod(getListModelEvaluationsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java b/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java deleted file mode 100644 index 66a2ff964..000000000 --- a/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java +++ /dev/null @@ -1,3228 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -package com.google.cloud.automl.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * AutoML Server API.
- * The resource names are assigned by the server.
- * The server never reuses names that it has created after the resources with
- * those names are deleted.
- * 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( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/automl/v1beta1/service.proto") -public final class AutoMlGrpc { - - private AutoMlGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.automl.v1beta1.AutoMl"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.CreateDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset> - getCreateDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDataset", - requestType = com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, - responseType = com.google.cloud.automl.v1beta1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.CreateDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset> - getCreateDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.CreateDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset> - getCreateDatasetMethod; - if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { - AutoMlGrpc.getCreateDatasetMethod = - getCreateDatasetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.CreateDatasetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateDataset")) - .build(); - } - } - } - return getCreateDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset> - getGetDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataset", - requestType = com.google.cloud.automl.v1beta1.GetDatasetRequest.class, - responseType = com.google.cloud.automl.v1beta1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset> - getGetDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset> - getGetDatasetMethod; - if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { - AutoMlGrpc.getGetDatasetMethod = - getGetDatasetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.GetDatasetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetDataset")) - .build(); - } - } - } - return getGetDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListDatasetsRequest, - com.google.cloud.automl.v1beta1.ListDatasetsResponse> - getListDatasetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDatasets", - requestType = com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, - responseType = com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListDatasetsRequest, - com.google.cloud.automl.v1beta1.ListDatasetsResponse> - getListDatasetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListDatasetsRequest, - com.google.cloud.automl.v1beta1.ListDatasetsResponse> - getListDatasetsMethod; - if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { - AutoMlGrpc.getListDatasetsMethod = - getListDatasetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatasets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListDatasetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListDatasetsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListDatasets")) - .build(); - } - } - } - return getListDatasetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UpdateDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset> - getUpdateDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", - requestType = com.google.cloud.automl.v1beta1.UpdateDatasetRequest.class, - responseType = com.google.cloud.automl.v1beta1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UpdateDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset> - getUpdateDatasetMethod() { - 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation> - getDeleteDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", - requestType = com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation> - getDeleteDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation> - getDeleteDatasetMethod; - if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { - AutoMlGrpc.getDeleteDatasetMethod = - getDeleteDatasetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteDataset")) - .build(); - } - } - } - return getDeleteDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ImportDataRequest, com.google.longrunning.Operation> - getImportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportData", - requestType = com.google.cloud.automl.v1beta1.ImportDataRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ImportDataRequest, com.google.longrunning.Operation> - getImportDataMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ImportDataRequest, com.google.longrunning.Operation> - getImportDataMethod; - if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { - AutoMlGrpc.getImportDataMethod = - getImportDataMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportData")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ImportDataRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ImportData")) - .build(); - } - } - } - return getImportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation> - getExportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportData", - requestType = com.google.cloud.automl.v1beta1.ExportDataRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation> - getExportDataMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation> - getExportDataMethod; - if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { - AutoMlGrpc.getExportDataMethod = - getExportDataMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportData")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ExportDataRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportData")) - .build(); - } - } - } - return getExportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, - com.google.cloud.automl.v1beta1.AnnotationSpec> - getGetAnnotationSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpec", - requestType = com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.class, - responseType = com.google.cloud.automl.v1beta1.AnnotationSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, - com.google.cloud.automl.v1beta1.AnnotationSpec> - getGetAnnotationSpecMethod() { - 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetTableSpecRequest, - com.google.cloud.automl.v1beta1.TableSpec> - getGetTableSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTableSpec", - requestType = com.google.cloud.automl.v1beta1.GetTableSpecRequest.class, - responseType = com.google.cloud.automl.v1beta1.TableSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetTableSpecRequest, - com.google.cloud.automl.v1beta1.TableSpec> - getGetTableSpecMethod() { - 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListTableSpecsRequest, - com.google.cloud.automl.v1beta1.ListTableSpecsResponse> - getListTableSpecsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTableSpecs", - requestType = com.google.cloud.automl.v1beta1.ListTableSpecsRequest.class, - responseType = com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListTableSpecsRequest, - com.google.cloud.automl.v1beta1.ListTableSpecsResponse> - getListTableSpecsMethod() { - 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, - com.google.cloud.automl.v1beta1.TableSpec> - getUpdateTableSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTableSpec", - requestType = com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.class, - responseType = com.google.cloud.automl.v1beta1.TableSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, - com.google.cloud.automl.v1beta1.TableSpec> - getUpdateTableSpecMethod() { - 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetColumnSpecRequest, - com.google.cloud.automl.v1beta1.ColumnSpec> - getGetColumnSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetColumnSpec", - requestType = com.google.cloud.automl.v1beta1.GetColumnSpecRequest.class, - responseType = com.google.cloud.automl.v1beta1.ColumnSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetColumnSpecRequest, - com.google.cloud.automl.v1beta1.ColumnSpec> - getGetColumnSpecMethod() { - 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, - com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> - getListColumnSpecsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListColumnSpecs", - requestType = com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.class, - responseType = com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, - com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> - getListColumnSpecsMethod() { - 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, - com.google.cloud.automl.v1beta1.ColumnSpec> - getUpdateColumnSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateColumnSpec", - requestType = com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.class, - responseType = com.google.cloud.automl.v1beta1.ColumnSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, - com.google.cloud.automl.v1beta1.ColumnSpec> - getUpdateColumnSpecMethod() { - 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.CreateModelRequest, com.google.longrunning.Operation> - getCreateModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateModel", - requestType = com.google.cloud.automl.v1beta1.CreateModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.CreateModelRequest, com.google.longrunning.Operation> - getCreateModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.CreateModelRequest, com.google.longrunning.Operation> - getCreateModelMethod; - if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { - AutoMlGrpc.getCreateModelMethod = - getCreateModelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.CreateModelRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateModel")) - .build(); - } - } - } - return getCreateModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetModelRequest, com.google.cloud.automl.v1beta1.Model> - getGetModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetModel", - requestType = com.google.cloud.automl.v1beta1.GetModelRequest.class, - responseType = com.google.cloud.automl.v1beta1.Model.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetModelRequest, com.google.cloud.automl.v1beta1.Model> - getGetModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetModelRequest, com.google.cloud.automl.v1beta1.Model> - getGetModelMethod; - if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { - AutoMlGrpc.getGetModelMethod = - getGetModelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.GetModelRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.Model.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModel")) - .build(); - } - } - } - return getGetModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListModelsRequest, - com.google.cloud.automl.v1beta1.ListModelsResponse> - getListModelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListModels", - requestType = com.google.cloud.automl.v1beta1.ListModelsRequest.class, - responseType = com.google.cloud.automl.v1beta1.ListModelsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListModelsRequest, - com.google.cloud.automl.v1beta1.ListModelsResponse> - getListModelsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListModelsRequest, - com.google.cloud.automl.v1beta1.ListModelsResponse> - getListModelsMethod; - if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { - AutoMlGrpc.getListModelsMethod = - getListModelsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListModelsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListModelsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModels")) - .build(); - } - } - } - return getListModelsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeleteModelRequest, com.google.longrunning.Operation> - getDeleteModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteModel", - requestType = com.google.cloud.automl.v1beta1.DeleteModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeleteModelRequest, com.google.longrunning.Operation> - getDeleteModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeleteModelRequest, com.google.longrunning.Operation> - getDeleteModelMethod; - if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { - AutoMlGrpc.getDeleteModelMethod = - getDeleteModelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.DeleteModelRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteModel")) - .build(); - } - } - } - return getDeleteModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> - getDeployModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeployModel", - requestType = com.google.cloud.automl.v1beta1.DeployModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> - getDeployModelMethod() { - 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> - getUndeployModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeployModel", - requestType = com.google.cloud.automl.v1beta1.UndeployModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> - getUndeployModelMethod() { - 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> - getExportModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportModel", - requestType = com.google.cloud.automl.v1beta1.ExportModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> - getExportModelMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> - getExportModelMethod; - if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { - AutoMlGrpc.getExportModelMethod = - getExportModelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ExportModelRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) - .build(); - } - } - } - return getExportModelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, - com.google.longrunning.Operation> - getExportEvaluatedExamplesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportEvaluatedExamples", - requestType = com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, - com.google.longrunning.Operation> - getExportEvaluatedExamplesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, - com.google.longrunning.Operation> - getExportEvaluatedExamplesMethod; - if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) - == null) { - AutoMlGrpc.getExportEvaluatedExamplesMethod = - getExportEvaluatedExamplesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ExportEvaluatedExamples")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new AutoMlMethodDescriptorSupplier("ExportEvaluatedExamples")) - .build(); - } - } - } - return getExportEvaluatedExamplesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, - com.google.cloud.automl.v1beta1.ModelEvaluation> - getGetModelEvaluationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", - requestType = com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, - responseType = com.google.cloud.automl.v1beta1.ModelEvaluation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, - com.google.cloud.automl.v1beta1.ModelEvaluation> - getGetModelEvaluationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, - com.google.cloud.automl.v1beta1.ModelEvaluation> - getGetModelEvaluationMethod; - if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { - AutoMlGrpc.getGetModelEvaluationMethod = - getGetModelEvaluationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModelEvaluation")) - .build(); - } - } - } - return getGetModelEvaluationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> - getListModelEvaluationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", - requestType = com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, - responseType = com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> - getListModelEvaluationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> - getListModelEvaluationsMethod; - if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { - AutoMlGrpc.getListModelEvaluationsMethod = - getListModelEvaluationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AutoMlMethodDescriptorSupplier("ListModelEvaluations")) - .build(); - } - } - } - return getListModelEvaluationsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AutoMlStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlStub(channel, callOptions); - } - }; - return AutoMlStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AutoMlBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlBlockingStub(channel, callOptions); - } - }; - return AutoMlBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AutoMlFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlFutureStub(channel, callOptions); - } - }; - return AutoMlFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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 { - - /** - * - * - *
-     * Creates a dataset.
-     * 
- */ - public void createDataset( - com.google.cloud.automl.v1beta1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a dataset.
-     * 
- */ - public void getDataset( - com.google.cloud.automl.v1beta1.GetDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists datasets in a project.
-     * 
- */ - public void listDatasets( - com.google.cloud.automl.v1beta1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDatasetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a dataset.
-     * 
- */ - public void updateDataset( - com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void deleteDataset( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void importData( - com.google.cloud.automl.v1beta1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); - } - - /** - * - * - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportData( - com.google.cloud.automl.v1beta1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an annotation spec.
-     * 
- */ - public void getAnnotationSpec( - com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAnnotationSpecMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a table spec.
-     * 
- */ - public void getTableSpec( - com.google.cloud.automl.v1beta1.GetTableSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetTableSpecMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists table specs in a dataset.
-     * 
- */ - public void listTableSpecs( - com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTableSpecsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a table spec.
-     * 
- */ - public void updateTableSpec( - com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTableSpecMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a column spec.
-     * 
- */ - public void getColumnSpec( - com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetColumnSpecMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists column specs in a table spec.
-     * 
- */ - public void listColumnSpecs( - com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListColumnSpecsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a column spec.
-     * 
- */ - public void updateColumnSpec( - com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateColumnSpecMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public void createModel( - com.google.cloud.automl.v1beta1.CreateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateModelMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a model.
-     * 
- */ - public void getModel( - com.google.cloud.automl.v1beta1.GetModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists models.
-     * 
- */ - public void listModels( - com.google.cloud.automl.v1beta1.ListModelsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void deleteModel( - com.google.cloud.automl.v1beta1.DeleteModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteModelMethod(), responseObserver); - } - - /** - * - * - *
-     * 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 reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void deployModel( - com.google.cloud.automl.v1beta1.DeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeployModelMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void undeployModel( - com.google.cloud.automl.v1beta1.UndeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeployModelMethod(), 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportModelMethod(), 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportEvaluatedExamplesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a model evaluation.
-     * 
- */ - public void getModelEvaluation( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetModelEvaluationMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists model evaluations.
-     * 
- */ - public void listModelEvaluations( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListModelEvaluationsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.CreateDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset>(this, METHODID_CREATE_DATASET))) - .addMethod( - getGetDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset>(this, METHODID_GET_DATASET))) - .addMethod( - getListDatasetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ListDatasetsRequest, - com.google.cloud.automl.v1beta1.ListDatasetsResponse>( - this, METHODID_LIST_DATASETS))) - .addMethod( - getUpdateDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.UpdateDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset>(this, METHODID_UPDATE_DATASET))) - .addMethod( - getDeleteDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.DeleteDatasetRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_DATASET))) - .addMethod( - getImportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ImportDataRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_DATA))) - .addMethod( - getExportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ExportDataRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) - .addMethod( - getGetAnnotationSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, - com.google.cloud.automl.v1beta1.AnnotationSpec>( - this, METHODID_GET_ANNOTATION_SPEC))) - .addMethod( - getGetTableSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetTableSpecRequest, - com.google.cloud.automl.v1beta1.TableSpec>(this, METHODID_GET_TABLE_SPEC))) - .addMethod( - getListTableSpecsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ListTableSpecsRequest, - com.google.cloud.automl.v1beta1.ListTableSpecsResponse>( - this, METHODID_LIST_TABLE_SPECS))) - .addMethod( - getUpdateTableSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, - com.google.cloud.automl.v1beta1.TableSpec>(this, METHODID_UPDATE_TABLE_SPEC))) - .addMethod( - getGetColumnSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetColumnSpecRequest, - com.google.cloud.automl.v1beta1.ColumnSpec>(this, METHODID_GET_COLUMN_SPEC))) - .addMethod( - getListColumnSpecsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, - com.google.cloud.automl.v1beta1.ListColumnSpecsResponse>( - this, METHODID_LIST_COLUMN_SPECS))) - .addMethod( - getUpdateColumnSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, - com.google.cloud.automl.v1beta1.ColumnSpec>( - this, METHODID_UPDATE_COLUMN_SPEC))) - .addMethod( - getCreateModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.CreateModelRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_MODEL))) - .addMethod( - getGetModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetModelRequest, - com.google.cloud.automl.v1beta1.Model>(this, METHODID_GET_MODEL))) - .addMethod( - getListModelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ListModelsRequest, - com.google.cloud.automl.v1beta1.ListModelsResponse>( - this, METHODID_LIST_MODELS))) - .addMethod( - getDeleteModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.DeleteModelRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL))) - .addMethod( - getDeployModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.DeployModelRequest, - com.google.longrunning.Operation>(this, METHODID_DEPLOY_MODEL))) - .addMethod( - getUndeployModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.UndeployModelRequest, - com.google.longrunning.Operation>(this, METHODID_UNDEPLOY_MODEL))) - .addMethod( - getExportModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ExportModelRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_MODEL))) - .addMethod( - getExportEvaluatedExamplesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_EVALUATED_EXAMPLES))) - .addMethod( - getGetModelEvaluationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, - com.google.cloud.automl.v1beta1.ModelEvaluation>( - this, METHODID_GET_MODEL_EVALUATION))) - .addMethod( - getListModelEvaluationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse>( - this, METHODID_LIST_MODEL_EVALUATIONS))) - .build(); - } - } - - /** - * - * - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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.AbstractAsyncStub { - private AutoMlStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a dataset.
-     * 
- */ - public void createDataset( - com.google.cloud.automl.v1beta1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a dataset.
-     * 
- */ - public void getDataset( - com.google.cloud.automl.v1beta1.GetDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists datasets in a project.
-     * 
- */ - public void listDatasets( - com.google.cloud.automl.v1beta1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a dataset.
-     * 
- */ - public void updateDataset( - com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void deleteDataset( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void importData( - com.google.cloud.automl.v1beta1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportData( - com.google.cloud.automl.v1beta1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets an annotation spec.
-     * 
- */ - public void getAnnotationSpec( - com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a table spec.
-     * 
- */ - public void getTableSpec( - com.google.cloud.automl.v1beta1.GetTableSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTableSpecMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists table specs in a dataset.
-     * 
- */ - public void listTableSpecs( - com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTableSpecsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a table spec.
-     * 
- */ - public void updateTableSpec( - com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTableSpecMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a column spec.
-     * 
- */ - public void getColumnSpec( - com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetColumnSpecMethod(), 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListColumnSpecsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a column spec.
-     * 
- */ - public void updateColumnSpec( - com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public void createModel( - com.google.cloud.automl.v1beta1.CreateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateModelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a model.
-     * 
- */ - public void getModel( - com.google.cloud.automl.v1beta1.GetModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists models.
-     * 
- */ - public void listModels( - com.google.cloud.automl.v1beta1.ListModelsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void deleteModel( - com.google.cloud.automl.v1beta1.DeleteModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteModelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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 reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void deployModel( - com.google.cloud.automl.v1beta1.DeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeployModelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void undeployModel( - com.google.cloud.automl.v1beta1.UndeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeployModelMethod(), getCallOptions()), - request, - 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportModelMethod(), 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a model evaluation.
-     * 
- */ - public void getModelEvaluation( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists model evaluations.
-     * 
- */ - public void listModelEvaluations( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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 - extends io.grpc.stub.AbstractBlockingStub { - private AutoMlBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a dataset.
-     * 
- */ - public com.google.cloud.automl.v1beta1.Dataset createDataset( - com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a dataset.
-     * 
- */ - public com.google.cloud.automl.v1beta1.Dataset getDataset( - com.google.cloud.automl.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists datasets in a project.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ListDatasetsResponse listDatasets( - com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDatasetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a dataset.
-     * 
- */ - public com.google.cloud.automl.v1beta1.Dataset updateDataset( - com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation deleteDataset( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation importData( - com.google.cloud.automl.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportDataMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.longrunning.Operation exportData( - com.google.cloud.automl.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportDataMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an annotation spec.
-     * 
- */ - public com.google.cloud.automl.v1beta1.AnnotationSpec getAnnotationSpec( - com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a table spec.
-     * 
- */ - public com.google.cloud.automl.v1beta1.TableSpec getTableSpec( - com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTableSpecMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists table specs in a dataset.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ListTableSpecsResponse listTableSpecs( - com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTableSpecsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a table spec.
-     * 
- */ - public com.google.cloud.automl.v1beta1.TableSpec updateTableSpec( - com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTableSpecMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a column spec.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec( - com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetColumnSpecMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListColumnSpecsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a column spec.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ColumnSpec updateColumnSpec( - com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateColumnSpecMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public com.google.longrunning.Operation createModel( - com.google.cloud.automl.v1beta1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateModelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a model.
-     * 
- */ - public com.google.cloud.automl.v1beta1.Model getModel( - com.google.cloud.automl.v1beta1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetModelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists models.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ListModelsResponse listModels( - com.google.cloud.automl.v1beta1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListModelsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation deleteModel( - com.google.cloud.automl.v1beta1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteModelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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 reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.longrunning.Operation deployModel( - com.google.cloud.automl.v1beta1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeployModelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation undeployModel( - com.google.cloud.automl.v1beta1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeployModelMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportModelMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportEvaluatedExamplesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a model evaluation.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists model evaluations.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse listModelEvaluations( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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.AbstractFutureStub { - private AutoMlFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1beta1.Dataset> - createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1beta1.Dataset> - getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists datasets in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1beta1.ListDatasetsResponse> - listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDatasetsMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - importData(com.google.cloud.automl.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportDataMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAnnotationSpecMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTableSpecMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTableSpecsMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTableSpecMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetColumnSpecMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListColumnSpecsMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a model.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getModel(com.google.cloud.automl.v1beta1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetModelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists models.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1beta1.ListModelsResponse> - listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListModelsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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 reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeployModelMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportModelMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a model evaluation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1beta1.ModelEvaluation> - getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists model evaluations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> - listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); - } - } - - 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_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, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AutoMlImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AutoMlImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_DATASET: - serviceImpl.createDataset( - (com.google.cloud.automl.v1beta1.CreateDatasetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_DATASET: - serviceImpl.getDataset( - (com.google.cloud.automl.v1beta1.GetDatasetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_DATASETS: - serviceImpl.listDatasets( - (com.google.cloud.automl.v1beta1.ListDatasetsRequest) request, - (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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_DATA: - serviceImpl.importData( - (com.google.cloud.automl.v1beta1.ImportDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_DATA: - serviceImpl.exportData( - (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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MODEL: - serviceImpl.getModel( - (com.google.cloud.automl.v1beta1.GetModelRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_MODELS: - serviceImpl.listModels( - (com.google.cloud.automl.v1beta1.ListModelsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_MODEL: - serviceImpl.deleteModel( - (com.google.cloud.automl.v1beta1.DeleteModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEPLOY_MODEL: - serviceImpl.deployModel( - (com.google.cloud.automl.v1beta1.DeployModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDEPLOY_MODEL: - serviceImpl.undeployModel( - (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, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_MODEL_EVALUATIONS: - serviceImpl.listModelEvaluations( - (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AutoMlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AutoMlBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AutoMl"); - } - } - - private static final class AutoMlFileDescriptorSupplier extends AutoMlBaseDescriptorSupplier { - AutoMlFileDescriptorSupplier() {} - } - - private static final class AutoMlMethodDescriptorSupplier extends AutoMlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AutoMlMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AutoMlGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AutoMlFileDescriptorSupplier()) - .addMethod(getCreateDatasetMethod()) - .addMethod(getGetDatasetMethod()) - .addMethod(getListDatasetsMethod()) - .addMethod(getUpdateDatasetMethod()) - .addMethod(getDeleteDatasetMethod()) - .addMethod(getImportDataMethod()) - .addMethod(getExportDataMethod()) - .addMethod(getGetAnnotationSpecMethod()) - .addMethod(getGetTableSpecMethod()) - .addMethod(getListTableSpecsMethod()) - .addMethod(getUpdateTableSpecMethod()) - .addMethod(getGetColumnSpecMethod()) - .addMethod(getListColumnSpecsMethod()) - .addMethod(getUpdateColumnSpecMethod()) - .addMethod(getCreateModelMethod()) - .addMethod(getGetModelMethod()) - .addMethod(getListModelsMethod()) - .addMethod(getDeleteModelMethod()) - .addMethod(getDeployModelMethod()) - .addMethod(getUndeployModelMethod()) - .addMethod(getExportModelMethod()) - .addMethod(getExportEvaluatedExamplesMethod()) - .addMethod(getGetModelEvaluationMethod()) - .addMethod(getListModelEvaluationsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java similarity index 97% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java index 732aee39d..b558143b7 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java +++ b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java @@ -72,13 +72,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -726,8 +726,8 @@ public final UnaryCallable deleteDatasetCallabl *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be - * explicitly set. Returns an empty response in the + *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must + * be explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. *
* @@ -764,8 +764,8 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be - * explicitly set. Returns an empty response in the + *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must + * be explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. *
* @@ -799,8 +799,8 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be - * explicitly set. Returns an empty response in the + *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must + * be explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. *
* @@ -832,8 +832,8 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be - * explicitly set. Returns an empty response in the + *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must + * be explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. *
* @@ -865,8 +865,8 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be - * explicitly set. Returns an empty response in the + *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must + * be explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. *
* @@ -2428,10 +2428,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListDatasetsPagedResponse extends AbstractPagedListResponse< - ListDatasetsRequest, - ListDatasetsResponse, - Dataset, - ListDatasetsPage, + ListDatasetsRequest, ListDatasetsResponse, Dataset, ListDatasetsPage, ListDatasetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2480,10 +2477,7 @@ public ApiFuture createPageAsync( public static class ListDatasetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListDatasetsRequest, - ListDatasetsResponse, - Dataset, - ListDatasetsPage, + ListDatasetsRequest, ListDatasetsResponse, Dataset, ListDatasetsPage, ListDatasetsFixedSizeCollection> { private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { @@ -2503,10 +2497,7 @@ protected ListDatasetsFixedSizeCollection createCollection( public static class ListModelsPagedResponse extends AbstractPagedListResponse< - ListModelsRequest, - ListModelsResponse, - Model, - ListModelsPage, + ListModelsRequest, ListModelsResponse, Model, ListModelsPage, ListModelsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2553,10 +2544,7 @@ public ApiFuture createPageAsync( public static class ListModelsFixedSizeCollection extends AbstractFixedSizeCollection< - ListModelsRequest, - ListModelsResponse, - Model, - ListModelsPage, + ListModelsRequest, ListModelsResponse, Model, ListModelsPage, ListModelsFixedSizeCollection> { private ListModelsFixedSizeCollection(List pages, int collectionSize) { @@ -2576,11 +2564,8 @@ protected ListModelsFixedSizeCollection createCollection( public static class ListModelEvaluationsPagedResponse extends AbstractPagedListResponse< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, - ModelEvaluation, - ListModelEvaluationsPage, - ListModelEvaluationsFixedSizeCollection> { + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, + ListModelEvaluationsPage, ListModelEvaluationsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2601,9 +2586,7 @@ private ListModelEvaluationsPagedResponse(ListModelEvaluationsPage page) { public static class ListModelEvaluationsPage extends AbstractPage< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, - ModelEvaluation, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, ListModelEvaluationsPage> { private ListModelEvaluationsPage( @@ -2636,11 +2619,8 @@ public ApiFuture createPageAsync( public static class ListModelEvaluationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, - ModelEvaluation, - ListModelEvaluationsPage, - ListModelEvaluationsFixedSizeCollection> { + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, + ListModelEvaluationsPage, ListModelEvaluationsFixedSizeCollection> { private ListModelEvaluationsFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java similarity index 97% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java index 08f87f0b3..8f5b3b0e3 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java +++ b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java @@ -30,6 +30,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +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.v1.stub.AutoMlStubSettings; @@ -46,9 +47,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -217,8 +218,7 @@ public UnaryCallSettings exportModelSettings() { /** Returns the object with the settings used for calls to listModelEvaluations. */ public PagedCallSettings< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return ((AutoMlStubSettings) getStubSettings()).listModelEvaluationsSettings(); @@ -466,8 +466,7 @@ public UnaryCallSettings.Builder exportModelSetti /** Returns the builder for the settings used for calls to listModelEvaluations. */ public PagedCallSettings.Builder< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return getStubSettingsBuilder().listModelEvaluationsSettings(); diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java similarity index 86% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java index dfac69ce8..fe9c0d3da 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java @@ -57,13 +57,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -170,46 +170,46 @@ public final OperationsClient getOperationsClient() { *

AutoML Vision Classification * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Vision Object Detection * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Natural Language Classification * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF - * format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or + * .TIFF format with size upto 2MB. *
* *

AutoML Natural Language Entity Extraction * *

    - *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or + *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or * .TIFF format with size upto 20MB. *
* *

AutoML Natural Language Sentiment Analysis * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF - * format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or + * .TIFF format with size upto 2MB. *
* *

AutoML Translation * *

    - *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. + *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. *
* *

AutoML Tables * *

    - *
  • A row with column values matching the columns of the model, up to 5MB. Not available for + *
  • A row with column values matching the columns of the model, up to 5MB. Not available for * FORECASTING `prediction_type`. *
* @@ -265,46 +265,46 @@ public final PredictResponse predict( *

AutoML Vision Classification * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Vision Object Detection * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Natural Language Classification * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF - * format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or + * .TIFF format with size upto 2MB. *
* *

AutoML Natural Language Entity Extraction * *

    - *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or + *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or * .TIFF format with size upto 20MB. *
* *

AutoML Natural Language Sentiment Analysis * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF - * format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or + * .TIFF format with size upto 2MB. *
* *

AutoML Translation * *

    - *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. + *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. *
* *

AutoML Tables * *

    - *
  • A row with column values matching the columns of the model, up to 5MB. Not available for + *
  • A row with column values matching the columns of the model, up to 5MB. Not available for * FORECASTING `prediction_type`. *
* @@ -356,46 +356,46 @@ public final PredictResponse predict( *

AutoML Vision Classification * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Vision Object Detection * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Natural Language Classification * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF - * format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or + * .TIFF format with size upto 2MB. *
* *

AutoML Natural Language Entity Extraction * *

    - *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or + *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or * .TIFF format with size upto 20MB. *
* *

AutoML Natural Language Sentiment Analysis * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF - * format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or + * .TIFF format with size upto 2MB. *
* *

AutoML Translation * *

    - *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. + *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. *
* *

AutoML Tables * *

    - *
  • A row with column values matching the columns of the model, up to 5MB. Not available for + *
  • A row with column values matching the columns of the model, up to 5MB. Not available for * FORECASTING `prediction_type`. *
* @@ -428,46 +428,46 @@ public final PredictResponse predict(PredictRequest request) { *

AutoML Vision Classification * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Vision Object Detection * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Natural Language Classification * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF - * format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or + * .TIFF format with size upto 2MB. *
* *

AutoML Natural Language Entity Extraction * *

    - *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or + *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or * .TIFF format with size upto 20MB. *
* *

AutoML Natural Language Sentiment Analysis * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF - * format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or + * .TIFF format with size upto 2MB. *
* *

AutoML Translation * *

    - *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. + *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. *
* *

AutoML Tables * *

    - *
  • A row with column values matching the columns of the model, up to 5MB. Not available for + *
  • A row with column values matching the columns of the model, up to 5MB. Not available for * FORECASTING `prediction_type`. *
* @@ -503,13 +503,13 @@ public final UnaryCallable predictCallable() { * [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * *
    - *
  • AutoML Vision Classification - *
  • AutoML Vision Object Detection - *
  • AutoML Video Intelligence Classification - *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - *
  • AutoML Natural Language Entity Extraction - *
  • AutoML Natural Language Sentiment Analysis - *
  • AutoML Tables + *
  • AutoML Vision Classification + *
  • AutoML Vision Object Detection + *
  • AutoML Video Intelligence Classification + *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification + *
  • AutoML Natural Language Entity Extraction + *
  • AutoML Natural Language Sentiment Analysis + *
  • AutoML Tables *
* *

Sample code: @@ -604,13 +604,13 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * *

    - *
  • AutoML Vision Classification - *
  • AutoML Vision Object Detection - *
  • AutoML Video Intelligence Classification - *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - *
  • AutoML Natural Language Entity Extraction - *
  • AutoML Natural Language Sentiment Analysis - *
  • AutoML Tables + *
  • AutoML Vision Classification + *
  • AutoML Vision Object Detection + *
  • AutoML Video Intelligence Classification + *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification + *
  • AutoML Natural Language Entity Extraction + *
  • AutoML Natural Language Sentiment Analysis + *
  • AutoML Tables *
* *

Sample code: @@ -705,13 +705,13 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * *

    - *
  • AutoML Vision Classification - *
  • AutoML Vision Object Detection - *
  • AutoML Video Intelligence Classification - *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - *
  • AutoML Natural Language Entity Extraction - *
  • AutoML Natural Language Sentiment Analysis - *
  • AutoML Tables + *
  • AutoML Vision Classification + *
  • AutoML Vision Object Detection + *
  • AutoML Video Intelligence Classification + *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification + *
  • AutoML Natural Language Entity Extraction + *
  • AutoML Natural Language Sentiment Analysis + *
  • AutoML Tables *
* *

Sample code: @@ -748,13 +748,13 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * *

    - *
  • AutoML Vision Classification - *
  • AutoML Vision Object Detection - *
  • AutoML Video Intelligence Classification - *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - *
  • AutoML Natural Language Entity Extraction - *
  • AutoML Natural Language Sentiment Analysis - *
  • AutoML Tables + *
  • AutoML Vision Classification + *
  • AutoML Vision Object Detection + *
  • AutoML Video Intelligence Classification + *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification + *
  • AutoML Natural Language Entity Extraction + *
  • AutoML Natural Language Sentiment Analysis + *
  • AutoML Tables *
* *

Sample code: @@ -791,13 +791,13 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * *

    - *
  • AutoML Vision Classification - *
  • AutoML Vision Object Detection - *
  • AutoML Video Intelligence Classification - *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - *
  • AutoML Natural Language Entity Extraction - *
  • AutoML Natural Language Sentiment Analysis - *
  • AutoML Tables + *
  • AutoML Vision Classification + *
  • AutoML Vision Object Detection + *
  • AutoML Video Intelligence Classification + *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification + *
  • AutoML Natural Language Entity Extraction + *
  • AutoML Natural Language Sentiment Analysis + *
  • AutoML Tables *
* *

Sample code: diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java similarity index 96% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java index 4ccb91b1f..b747265be 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; +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.v1.stub.PredictionServiceStubSettings; @@ -40,9 +41,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/gapic_metadata.json similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/gapic_metadata.json diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/package-info.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/package-info.java similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/package-info.java diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java similarity index 98% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java index bc5cd37d6..29d8d964f 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java @@ -90,9 +90,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -161,8 +161,7 @@ public class AutoMlStubSettings extends StubSettings { private final UnaryCallSettings getModelEvaluationSettings; private final PagedCallSettings< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings; @@ -314,13 +313,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> LIST_MODEL_EVALUATIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -481,8 +478,7 @@ public UnaryCallSettings exportModelSettings() { /** Returns the object with the settings used for calls to listModelEvaluations. */ public PagedCallSettings< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return listModelEvaluationsSettings; @@ -637,8 +633,7 @@ public static class Builder extends StubSettings.Builder getModelEvaluationSettings; private final PagedCallSettings.Builder< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings; private static final ImmutableMap> @@ -1292,8 +1287,7 @@ public UnaryCallSettings.Builder exportModelSetti /** Returns the builder for the settings used for calls to listModelEvaluations. */ public PagedCallSettings.Builder< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return listModelEvaluationsSettings; diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlCallableFactory.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlCallableFactory.java similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlCallableFactory.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlCallableFactory.java diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java similarity index 99% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java index 69b213aae..369963abb 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java +++ b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java @@ -60,6 +60,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceCallableFactory.java similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceCallableFactory.java diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java similarity index 99% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java index 75bd218d7..e8278a7ed 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java @@ -34,6 +34,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java similarity index 98% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java index 987abf86d..d63d4cc4d 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java @@ -57,9 +57,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/AutoMlClientTest.java b/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/AutoMlClientTest.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1/AutoMlClientTest.java rename to owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/AutoMlClientTest.java diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMl.java b/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMl.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMl.java rename to owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMl.java diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMlImpl.java b/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMlImpl.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMlImpl.java rename to owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMlImpl.java diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionService.java b/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionService.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionService.java rename to owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionService.java diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionServiceImpl.java b/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionServiceImpl.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionServiceImpl.java rename to owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionServiceImpl.java diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/PredictionServiceClientTest.java b/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/PredictionServiceClientTest.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1/PredictionServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/PredictionServiceClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java new file mode 100644 index 000000000..3f4a6fe83 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java @@ -0,0 +1,1962 @@ +package com.google.cloud.automl.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * AutoML Server API.
+ * The resource names are assigned by the server.
+ * The server never reuses names that it has created after the resources with
+ * those names are deleted.
+ * 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( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/automl/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AutoMlGrpc { + + private AutoMlGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.automl.v1.AutoMl"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataset", + requestType = com.google.cloud.automl.v1.CreateDatasetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDatasetMethod() { + io.grpc.MethodDescriptor getCreateDatasetMethod; + if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { + AutoMlGrpc.getCreateDatasetMethod = getCreateDatasetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.CreateDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateDataset")) + .build(); + } + } + } + return getCreateDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataset", + requestType = com.google.cloud.automl.v1.GetDatasetRequest.class, + responseType = com.google.cloud.automl.v1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDatasetMethod() { + io.grpc.MethodDescriptor getGetDatasetMethod; + if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { + AutoMlGrpc.getGetDatasetMethod = getGetDatasetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.GetDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetDataset")) + .build(); + } + } + } + return getGetDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDatasetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDatasets", + requestType = com.google.cloud.automl.v1.ListDatasetsRequest.class, + responseType = com.google.cloud.automl.v1.ListDatasetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDatasetsMethod() { + io.grpc.MethodDescriptor getListDatasetsMethod; + if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { + AutoMlGrpc.getListDatasetsMethod = getListDatasetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatasets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListDatasetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListDatasetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListDatasets")) + .build(); + } + } + } + return getListDatasetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", + requestType = com.google.cloud.automl.v1.UpdateDatasetRequest.class, + responseType = com.google.cloud.automl.v1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDatasetMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "UpdateDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.UpdateDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateDataset")) + .build(); + } + } + } + return getUpdateDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", + requestType = com.google.cloud.automl.v1.DeleteDatasetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDatasetMethod() { + io.grpc.MethodDescriptor getDeleteDatasetMethod; + if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { + AutoMlGrpc.getDeleteDatasetMethod = getDeleteDatasetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.DeleteDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteDataset")) + .build(); + } + } + } + return getDeleteDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getImportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportData", + requestType = com.google.cloud.automl.v1.ImportDataRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportDataMethod() { + io.grpc.MethodDescriptor getImportDataMethod; + if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { + AutoMlGrpc.getImportDataMethod = getImportDataMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ImportDataRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ImportData")) + .build(); + } + } + } + return getImportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor getExportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportData", + requestType = com.google.cloud.automl.v1.ExportDataRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getExportDataMethod() { + io.grpc.MethodDescriptor getExportDataMethod; + if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { + AutoMlGrpc.getExportDataMethod = getExportDataMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ExportDataRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportData")) + .build(); + } + } + } + return getExportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAnnotationSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpec", + requestType = com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, + responseType = com.google.cloud.automl.v1.AnnotationSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAnnotationSpecMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "GetAnnotationSpec")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.GetAnnotationSpecRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.AnnotationSpec.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetAnnotationSpec")) + .build(); + } + } + } + return getGetAnnotationSpecMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateModel", + requestType = com.google.cloud.automl.v1.CreateModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateModelMethod() { + io.grpc.MethodDescriptor getCreateModelMethod; + if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { + AutoMlGrpc.getCreateModelMethod = getCreateModelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.CreateModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateModel")) + .build(); + } + } + } + return getCreateModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetModel", + requestType = com.google.cloud.automl.v1.GetModelRequest.class, + responseType = com.google.cloud.automl.v1.Model.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetModelMethod() { + io.grpc.MethodDescriptor getGetModelMethod; + if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { + AutoMlGrpc.getGetModelMethod = getGetModelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.GetModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.Model.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModel")) + .build(); + } + } + } + return getGetModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getListModelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModels", + requestType = com.google.cloud.automl.v1.ListModelsRequest.class, + responseType = com.google.cloud.automl.v1.ListModelsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListModelsMethod() { + io.grpc.MethodDescriptor getListModelsMethod; + if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { + AutoMlGrpc.getListModelsMethod = getListModelsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListModelsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListModelsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModels")) + .build(); + } + } + } + return getListModelsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteModel", + requestType = com.google.cloud.automl.v1.DeleteModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteModelMethod() { + io.grpc.MethodDescriptor getDeleteModelMethod; + if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { + AutoMlGrpc.getDeleteModelMethod = getDeleteModelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.DeleteModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteModel")) + .build(); + } + } + } + return getDeleteModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateModel", + requestType = com.google.cloud.automl.v1.UpdateModelRequest.class, + responseType = com.google.cloud.automl.v1.Model.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateModelMethod() { + io.grpc.MethodDescriptor getUpdateModelMethod; + if ((getUpdateModelMethod = AutoMlGrpc.getUpdateModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getUpdateModelMethod = AutoMlGrpc.getUpdateModelMethod) == null) { + AutoMlGrpc.getUpdateModelMethod = getUpdateModelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.UpdateModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.Model.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateModel")) + .build(); + } + } + } + return getUpdateModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeployModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeployModel", + requestType = com.google.cloud.automl.v1.DeployModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeployModelMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "DeployModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.DeployModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeployModel")) + .build(); + } + } + } + return getDeployModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getUndeployModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeployModel", + requestType = com.google.cloud.automl.v1.UndeployModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUndeployModelMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "UndeployModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.UndeployModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UndeployModel")) + .build(); + } + } + } + return getUndeployModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getExportModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportModel", + requestType = com.google.cloud.automl.v1.ExportModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getExportModelMethod() { + io.grpc.MethodDescriptor getExportModelMethod; + if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { + AutoMlGrpc.getExportModelMethod = getExportModelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ExportModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) + .build(); + } + } + } + return getExportModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetModelEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", + requestType = com.google.cloud.automl.v1.GetModelEvaluationRequest.class, + responseType = com.google.cloud.automl.v1.ModelEvaluation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetModelEvaluationMethod() { + io.grpc.MethodDescriptor getGetModelEvaluationMethod; + if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { + AutoMlGrpc.getGetModelEvaluationMethod = getGetModelEvaluationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.GetModelEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModelEvaluation")) + .build(); + } + } + } + return getGetModelEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListModelEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", + requestType = com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, + responseType = com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListModelEvaluationsMethod() { + io.grpc.MethodDescriptor getListModelEvaluationsMethod; + if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { + AutoMlGrpc.getListModelEvaluationsMethod = getListModelEvaluationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListModelEvaluationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListModelEvaluationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModelEvaluations")) + .build(); + } + } + } + return getListModelEvaluationsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AutoMlStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlStub(channel, callOptions); + } + }; + return AutoMlStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AutoMlBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlBlockingStub(channel, callOptions); + } + }; + return AutoMlBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AutoMlFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlFutureStub(channel, callOptions); + } + }; + return AutoMlFutureStub.newStub(factory, channel); + } + + /** + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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 abstract class AutoMlImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a dataset.
+     * 
+ */ + public void createDataset(com.google.cloud.automl.v1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDatasetMethod(), responseObserver); + } + + /** + *
+     * Gets a dataset.
+     * 
+ */ + public void getDataset(com.google.cloud.automl.v1.GetDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); + } + + /** + *
+     * Lists datasets in a project.
+     * 
+ */ + public void listDatasets(com.google.cloud.automl.v1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDatasetsMethod(), responseObserver); + } + + /** + *
+     * Updates a dataset.
+     * 
+ */ + public void updateDataset(com.google.cloud.automl.v1.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDatasetMethod(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteDataset(com.google.cloud.automl.v1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDatasetMethod(), responseObserver); + } + + /** + *
+     * 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.v1.InputConfig.params]
+     *     parameter must be explicitly set.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void importData(com.google.cloud.automl.v1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); + } + + /** + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportData(com.google.cloud.automl.v1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); + } + + /** + *
+     * Gets an annotation spec.
+     * 
+ */ + public void getAnnotationSpec(com.google.cloud.automl.v1.GetAnnotationSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAnnotationSpecMethod(), responseObserver); + } + + /** + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public void createModel(com.google.cloud.automl.v1.CreateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateModelMethod(), responseObserver); + } + + /** + *
+     * Gets a model.
+     * 
+ */ + public void getModel(com.google.cloud.automl.v1.GetModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); + } + + /** + *
+     * Lists models.
+     * 
+ */ + public void listModels(com.google.cloud.automl.v1.ListModelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteModel(com.google.cloud.automl.v1.DeleteModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteModelMethod(), responseObserver); + } + + /** + *
+     * Updates a model.
+     * 
+ */ + public void updateModel(com.google.cloud.automl.v1.UpdateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateModelMethod(), responseObserver); + } + + /** + *
+     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
+     *  will reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void deployModel(com.google.cloud.automl.v1.DeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeployModelMethod(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void undeployModel(com.google.cloud.automl.v1.UndeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeployModelMethod(), 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.v1.ModelExportOutputConfig].
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportModel(com.google.cloud.automl.v1.ExportModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportModelMethod(), responseObserver); + } + + /** + *
+     * Gets a model evaluation.
+     * 
+ */ + public void getModelEvaluation(com.google.cloud.automl.v1.GetModelEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelEvaluationMethod(), responseObserver); + } + + /** + *
+     * Lists model evaluations.
+     * 
+ */ + public void listModelEvaluations(com.google.cloud.automl.v1.ListModelEvaluationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelEvaluationsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.CreateDatasetRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_DATASET))) + .addMethod( + getGetDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.GetDatasetRequest, + com.google.cloud.automl.v1.Dataset>( + this, METHODID_GET_DATASET))) + .addMethod( + getListDatasetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ListDatasetsRequest, + com.google.cloud.automl.v1.ListDatasetsResponse>( + this, METHODID_LIST_DATASETS))) + .addMethod( + getUpdateDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.UpdateDatasetRequest, + com.google.cloud.automl.v1.Dataset>( + this, METHODID_UPDATE_DATASET))) + .addMethod( + getDeleteDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.DeleteDatasetRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_DATASET))) + .addMethod( + getImportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ImportDataRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_DATA))) + .addMethod( + getExportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ExportDataRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_DATA))) + .addMethod( + getGetAnnotationSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1.AnnotationSpec>( + this, METHODID_GET_ANNOTATION_SPEC))) + .addMethod( + getCreateModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.CreateModelRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_MODEL))) + .addMethod( + getGetModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.GetModelRequest, + com.google.cloud.automl.v1.Model>( + this, METHODID_GET_MODEL))) + .addMethod( + getListModelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ListModelsRequest, + com.google.cloud.automl.v1.ListModelsResponse>( + this, METHODID_LIST_MODELS))) + .addMethod( + getDeleteModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.DeleteModelRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_MODEL))) + .addMethod( + getUpdateModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.UpdateModelRequest, + com.google.cloud.automl.v1.Model>( + this, METHODID_UPDATE_MODEL))) + .addMethod( + getDeployModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.DeployModelRequest, + com.google.longrunning.Operation>( + this, METHODID_DEPLOY_MODEL))) + .addMethod( + getUndeployModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.UndeployModelRequest, + com.google.longrunning.Operation>( + this, METHODID_UNDEPLOY_MODEL))) + .addMethod( + getExportModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ExportModelRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_MODEL))) + .addMethod( + getGetModelEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.GetModelEvaluationRequest, + com.google.cloud.automl.v1.ModelEvaluation>( + this, METHODID_GET_MODEL_EVALUATION))) + .addMethod( + getListModelEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ListModelEvaluationsRequest, + com.google.cloud.automl.v1.ListModelEvaluationsResponse>( + this, METHODID_LIST_MODEL_EVALUATIONS))) + .build(); + } + } + + /** + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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.AbstractAsyncStub { + private AutoMlStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlStub(channel, callOptions); + } + + /** + *
+     * Creates a dataset.
+     * 
+ */ + public void createDataset(com.google.cloud.automl.v1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a dataset.
+     * 
+ */ + public void getDataset(com.google.cloud.automl.v1.GetDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists datasets in a project.
+     * 
+ */ + public void listDatasets(com.google.cloud.automl.v1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a dataset.
+     * 
+ */ + public void updateDataset(com.google.cloud.automl.v1.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteDataset(com.google.cloud.automl.v1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.v1.InputConfig.params]
+     *     parameter must be explicitly set.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void importData(com.google.cloud.automl.v1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportData(com.google.cloud.automl.v1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an annotation spec.
+     * 
+ */ + public void getAnnotationSpec(com.google.cloud.automl.v1.GetAnnotationSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public void createModel(com.google.cloud.automl.v1.CreateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a model.
+     * 
+ */ + public void getModel(com.google.cloud.automl.v1.GetModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists models.
+     * 
+ */ + public void listModels(com.google.cloud.automl.v1.ListModelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteModel(com.google.cloud.automl.v1.DeleteModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a model.
+     * 
+ */ + public void updateModel(com.google.cloud.automl.v1.UpdateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
+     *  will reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void deployModel(com.google.cloud.automl.v1.DeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeployModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void undeployModel(com.google.cloud.automl.v1.UndeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request, 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.v1.ModelExportOutputConfig].
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportModel(com.google.cloud.automl.v1.ExportModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a model evaluation.
+     * 
+ */ + public void getModelEvaluation(com.google.cloud.automl.v1.GetModelEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists model evaluations.
+     * 
+ */ + public void listModelEvaluations(com.google.cloud.automl.v1.ListModelEvaluationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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 extends io.grpc.stub.AbstractBlockingStub { + private AutoMlBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a dataset.
+     * 
+ */ + public com.google.longrunning.Operation createDataset(com.google.cloud.automl.v1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1.Dataset getDataset(com.google.cloud.automl.v1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists datasets in a project.
+     * 
+ */ + public com.google.cloud.automl.v1.ListDatasetsResponse listDatasets(com.google.cloud.automl.v1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1.Dataset updateDataset(com.google.cloud.automl.v1.UpdateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation deleteDataset(com.google.cloud.automl.v1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * 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.v1.InputConfig.params]
+     *     parameter must be explicitly set.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation importData(com.google.cloud.automl.v1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDataMethod(), getCallOptions(), request); + } + + /** + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation exportData(com.google.cloud.automl.v1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an annotation spec.
+     * 
+ */ + public com.google.cloud.automl.v1.AnnotationSpec getAnnotationSpec(com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public com.google.longrunning.Operation createModel(com.google.cloud.automl.v1.CreateModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateModelMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a model.
+     * 
+ */ + public com.google.cloud.automl.v1.Model getModel(com.google.cloud.automl.v1.GetModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists models.
+     * 
+ */ + public com.google.cloud.automl.v1.ListModelsResponse listModels(com.google.cloud.automl.v1.ListModelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelsMethod(), getCallOptions(), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation deleteModel(com.google.cloud.automl.v1.DeleteModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a model.
+     * 
+ */ + public com.google.cloud.automl.v1.Model updateModel(com.google.cloud.automl.v1.UpdateModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateModelMethod(), getCallOptions(), request); + } + + /** + *
+     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
+     *  will reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation deployModel(com.google.cloud.automl.v1.DeployModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployModelMethod(), getCallOptions(), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation undeployModel(com.google.cloud.automl.v1.UndeployModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeployModelMethod(), 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.v1.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.v1.ExportModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportModelMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a model evaluation.
+     * 
+ */ + public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation(com.google.cloud.automl.v1.GetModelEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists model evaluations.
+     * 
+ */ + public com.google.cloud.automl.v1.ListModelEvaluationsResponse listModelEvaluations(com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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.AbstractFutureStub { + private AutoMlFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDataset( + com.google.cloud.automl.v1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDataset( + com.google.cloud.automl.v1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists datasets in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDatasets( + com.google.cloud.automl.v1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDataset( + com.google.cloud.automl.v1.UpdateDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDataset( + com.google.cloud.automl.v1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.v1.InputConfig.params]
+     *     parameter must be explicitly set.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture importData( + com.google.cloud.automl.v1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request); + } + + /** + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture exportData( + com.google.cloud.automl.v1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an annotation spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAnnotationSpec( + com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createModel( + com.google.cloud.automl.v1.CreateModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a model.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getModel( + com.google.cloud.automl.v1.GetModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists models.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listModels( + com.google.cloud.automl.v1.ListModelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelsMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteModel( + com.google.cloud.automl.v1.DeleteModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a model.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateModel( + com.google.cloud.automl.v1.UpdateModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
+     *  will reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deployModel( + com.google.cloud.automl.v1.DeployModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture undeployModel( + com.google.cloud.automl.v1.UndeployModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeployModelMethod(), 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.v1.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.v1.ExportModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportModelMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a model evaluation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getModelEvaluation( + com.google.cloud.automl.v1.GetModelEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists model evaluations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listModelEvaluations( + com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); + } + } + + 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_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_CREATE_MODEL = 8; + private static final int METHODID_GET_MODEL = 9; + private static final int METHODID_LIST_MODELS = 10; + private static final int METHODID_DELETE_MODEL = 11; + private static final int METHODID_UPDATE_MODEL = 12; + private static final int METHODID_DEPLOY_MODEL = 13; + private static final int METHODID_UNDEPLOY_MODEL = 14; + private static final int METHODID_EXPORT_MODEL = 15; + private static final int METHODID_GET_MODEL_EVALUATION = 16; + private static final int METHODID_LIST_MODEL_EVALUATIONS = 17; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AutoMlImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AutoMlImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_DATASET: + serviceImpl.createDataset((com.google.cloud.automl.v1.CreateDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATASET: + serviceImpl.getDataset((com.google.cloud.automl.v1.GetDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DATASETS: + serviceImpl.listDatasets((com.google.cloud.automl.v1.ListDatasetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DATASET: + serviceImpl.updateDataset((com.google.cloud.automl.v1.UpdateDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DATASET: + serviceImpl.deleteDataset((com.google.cloud.automl.v1.DeleteDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_DATA: + serviceImpl.importData((com.google.cloud.automl.v1.ImportDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_DATA: + serviceImpl.exportData((com.google.cloud.automl.v1.ExportDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ANNOTATION_SPEC: + serviceImpl.getAnnotationSpec((com.google.cloud.automl.v1.GetAnnotationSpecRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MODEL: + serviceImpl.createModel((com.google.cloud.automl.v1.CreateModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MODEL: + serviceImpl.getModel((com.google.cloud.automl.v1.GetModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MODELS: + serviceImpl.listModels((com.google.cloud.automl.v1.ListModelsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MODEL: + serviceImpl.deleteModel((com.google.cloud.automl.v1.DeleteModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MODEL: + serviceImpl.updateModel((com.google.cloud.automl.v1.UpdateModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DEPLOY_MODEL: + serviceImpl.deployModel((com.google.cloud.automl.v1.DeployModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDEPLOY_MODEL: + serviceImpl.undeployModel((com.google.cloud.automl.v1.UndeployModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_MODEL: + serviceImpl.exportModel((com.google.cloud.automl.v1.ExportModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MODEL_EVALUATION: + serviceImpl.getModelEvaluation((com.google.cloud.automl.v1.GetModelEvaluationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MODEL_EVALUATIONS: + serviceImpl.listModelEvaluations((com.google.cloud.automl.v1.ListModelEvaluationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AutoMlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AutoMlBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AutoMl"); + } + } + + private static final class AutoMlFileDescriptorSupplier + extends AutoMlBaseDescriptorSupplier { + AutoMlFileDescriptorSupplier() {} + } + + private static final class AutoMlMethodDescriptorSupplier + extends AutoMlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AutoMlMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AutoMlGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AutoMlFileDescriptorSupplier()) + .addMethod(getCreateDatasetMethod()) + .addMethod(getGetDatasetMethod()) + .addMethod(getListDatasetsMethod()) + .addMethod(getUpdateDatasetMethod()) + .addMethod(getDeleteDatasetMethod()) + .addMethod(getImportDataMethod()) + .addMethod(getExportDataMethod()) + .addMethod(getGetAnnotationSpecMethod()) + .addMethod(getCreateModelMethod()) + .addMethod(getGetModelMethod()) + .addMethod(getListModelsMethod()) + .addMethod(getDeleteModelMethod()) + .addMethod(getUpdateModelMethod()) + .addMethod(getDeployModelMethod()) + .addMethod(getUndeployModelMethod()) + .addMethod(getExportModelMethod()) + .addMethod(getGetModelEvaluationMethod()) + .addMethod(getListModelEvaluationsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java similarity index 67% rename from grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java index fd968b9f5..328cdeeaf 100644 --- a/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ package com.google.cloud.automl.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * AutoML Prediction API.
  * On any input that is documented to expect a string parameter in
@@ -29,6 +12,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/cloud/automl/v1/prediction_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class PredictionServiceGrpc {
 
   private PredictionServiceGrpc() {}
@@ -36,144 +20,122 @@ private PredictionServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.automl.v1.PredictionService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.automl.v1.PredictRequest, com.google.cloud.automl.v1.PredictResponse>
-      getPredictMethod;
+  private static volatile io.grpc.MethodDescriptor getPredictMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Predict",
       requestType = com.google.cloud.automl.v1.PredictRequest.class,
       responseType = com.google.cloud.automl.v1.PredictResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.automl.v1.PredictRequest, com.google.cloud.automl.v1.PredictResponse>
-      getPredictMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.automl.v1.PredictRequest, com.google.cloud.automl.v1.PredictResponse>
-        getPredictMethod;
+  public static io.grpc.MethodDescriptor getPredictMethod() {
+    io.grpc.MethodDescriptor getPredictMethod;
     if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) {
       synchronized (PredictionServiceGrpc.class) {
         if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) {
-          PredictionServiceGrpc.getPredictMethod =
-              getPredictMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.automl.v1.PredictRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.automl.v1.PredictResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict"))
-                      .build();
+          PredictionServiceGrpc.getPredictMethod = getPredictMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.automl.v1.PredictRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.automl.v1.PredictResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict"))
+              .build();
         }
       }
     }
     return getPredictMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.automl.v1.BatchPredictRequest, com.google.longrunning.Operation>
-      getBatchPredictMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchPredictMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchPredict",
       requestType = com.google.cloud.automl.v1.BatchPredictRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.automl.v1.BatchPredictRequest, com.google.longrunning.Operation>
-      getBatchPredictMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.automl.v1.BatchPredictRequest, com.google.longrunning.Operation>
-        getBatchPredictMethod;
+  public static io.grpc.MethodDescriptor getBatchPredictMethod() {
+    io.grpc.MethodDescriptor 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(SERVICE_NAME, "BatchPredict"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.automl.v1.BatchPredictRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new PredictionServiceMethodDescriptorSupplier("BatchPredict"))
-                      .build();
+          PredictionServiceGrpc.getBatchPredictMethod = getBatchPredictMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchPredict"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.automl.v1.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 */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static PredictionServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PredictionServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PredictionServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PredictionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PredictionServiceStub(channel, callOptions);
+        }
+      };
     return PredictionServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PredictionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static PredictionServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PredictionServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PredictionServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PredictionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PredictionServiceBlockingStub(channel, callOptions);
+        }
+      };
     return PredictionServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static PredictionServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static PredictionServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PredictionServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PredictionServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PredictionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PredictionServiceFutureStub(channel, callOptions);
+        }
+      };
     return PredictionServiceFutureStub.newStub(factory, 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 { + public static abstract class PredictionServiceImplBase implements io.grpc.BindableService { /** - * - * *
      * Perform an online prediction. The prediction result is directly
      * returned in the response.
@@ -199,15 +161,12 @@ public abstract static class PredictionServiceImplBase implements io.grpc.Bindab
      *   `prediction_type`.
      * 
*/ - public void predict( - com.google.cloud.automl.v1.PredictRequest request, + public void predict(com.google.cloud.automl.v1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); } /** - * - * *
      * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
      * prediction result won't be immediately available in the response. Instead,
@@ -225,44 +184,41 @@ public void predict(
      * * AutoML Tables
      * 
*/ - public void batchPredict( - com.google.cloud.automl.v1.BatchPredictRequest request, + public void batchPredict(com.google.cloud.automl.v1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchPredictMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchPredictMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.PredictRequest, - com.google.cloud.automl.v1.PredictResponse>(this, METHODID_PREDICT))) + getPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.PredictRequest, + com.google.cloud.automl.v1.PredictResponse>( + this, METHODID_PREDICT))) .addMethod( - getBatchPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.BatchPredictRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_PREDICT))) + getBatchPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.BatchPredictRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_PREDICT))) .build(); } } /** - * - * *
    * 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 - extends io.grpc.stub.AbstractAsyncStub { - private PredictionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceStub extends io.grpc.stub.AbstractAsyncStub { + private PredictionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -273,8 +229,6 @@ protected PredictionServiceStub build( } /** - * - * *
      * Perform an online prediction. The prediction result is directly
      * returned in the response.
@@ -300,16 +254,13 @@ protected PredictionServiceStub build(
      *   `prediction_type`.
      * 
*/ - public void predict( - com.google.cloud.automl.v1.PredictRequest request, + public void predict(com.google.cloud.automl.v1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
      * prediction result won't be immediately available in the response. Instead,
@@ -327,27 +278,21 @@ public void predict(
      * * AutoML Tables
      * 
*/ - public void batchPredict( - com.google.cloud.automl.v1.BatchPredictRequest request, + public void batchPredict(com.google.cloud.automl.v1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchPredictMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * 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 - extends io.grpc.stub.AbstractBlockingStub { + public static final class PredictionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PredictionServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -360,8 +305,6 @@ protected PredictionServiceBlockingStub build( } /** - * - * *
      * Perform an online prediction. The prediction result is directly
      * returned in the response.
@@ -387,15 +330,12 @@ protected PredictionServiceBlockingStub build(
      *   `prediction_type`.
      * 
*/ - public com.google.cloud.automl.v1.PredictResponse predict( - com.google.cloud.automl.v1.PredictRequest request) { + public com.google.cloud.automl.v1.PredictResponse predict(com.google.cloud.automl.v1.PredictRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } /** - * - * *
      * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
      * prediction result won't be immediately available in the response. Instead,
@@ -413,25 +353,22 @@ public com.google.cloud.automl.v1.PredictResponse predict(
      * * AutoML Tables
      * 
*/ - public com.google.longrunning.Operation batchPredict( - com.google.cloud.automl.v1.BatchPredictRequest request) { + public com.google.longrunning.Operation batchPredict(com.google.cloud.automl.v1.BatchPredictRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchPredictMethod(), getCallOptions(), request); } } /** - * - * *
    * 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 - extends io.grpc.stub.AbstractFutureStub { - private PredictionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private PredictionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -442,8 +379,6 @@ protected PredictionServiceFutureStub build( } /** - * - * *
      * Perform an online prediction. The prediction result is directly
      * returned in the response.
@@ -469,16 +404,13 @@ protected PredictionServiceFutureStub build(
      *   `prediction_type`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1.PredictResponse> - predict(com.google.cloud.automl.v1.PredictRequest request) { + public com.google.common.util.concurrent.ListenableFuture predict( + com.google.cloud.automl.v1.PredictRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request); } /** - * - * *
      * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
      * prediction result won't be immediately available in the response. Instead,
@@ -496,8 +428,8 @@ protected PredictionServiceFutureStub build(
      * * AutoML Tables
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchPredict(com.google.cloud.automl.v1.BatchPredictRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchPredict( + com.google.cloud.automl.v1.BatchPredictRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request); } @@ -506,11 +438,11 @@ protected PredictionServiceFutureStub build( 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, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final PredictionServiceImplBase serviceImpl; private final int methodId; @@ -524,14 +456,11 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PREDICT: - serviceImpl.predict( - (com.google.cloud.automl.v1.PredictRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.predict((com.google.cloud.automl.v1.PredictRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_PREDICT: - serviceImpl.batchPredict( - (com.google.cloud.automl.v1.BatchPredictRequest) request, + serviceImpl.batchPredict((com.google.cloud.automl.v1.BatchPredictRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -550,9 +479,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class PredictionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class PredictionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PredictionServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -594,13 +522,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PredictionServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier()) - .addMethod(getPredictMethod()) - .addMethod(getBatchPredictMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier()) + .addMethod(getPredictMethod()) + .addMethod(getBatchPredictMethod()) + .build(); } } } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java similarity index 73% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java index 06dec9a5e..ae1735b54 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/annotation_payload.proto package com.google.cloud.automl.v1; /** - * - * *
  * Contains annotation information that is relevant to AutoML.
  * 
* * Protobuf type {@code google.cloud.automl.v1.AnnotationPayload} */ -public final class AnnotationPayload extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotationPayload extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.AnnotationPayload) AnnotationPayloadOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotationPayload.newBuilder() to construct. private AnnotationPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotationPayload() { annotationSpecId_ = ""; displayName_ = ""; @@ -44,15 +26,16 @@ private AnnotationPayload() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotationPayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotationPayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,151 +54,124 @@ private AnnotationPayload( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecId_ = s; - break; + annotationSpecId_ = s; + break; + } + case 18: { + com.google.cloud.automl.v1.TranslationAnnotation.Builder subBuilder = null; + if (detailCase_ == 2) { + subBuilder = ((com.google.cloud.automl.v1.TranslationAnnotation) detail_).toBuilder(); } - case 18: - { - com.google.cloud.automl.v1.TranslationAnnotation.Builder subBuilder = null; - if (detailCase_ == 2) { - subBuilder = - ((com.google.cloud.automl.v1.TranslationAnnotation) detail_).toBuilder(); - } - detail_ = - input.readMessage( - com.google.cloud.automl.v1.TranslationAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TranslationAnnotation) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 2; - break; + detail_ = + input.readMessage(com.google.cloud.automl.v1.TranslationAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TranslationAnnotation) detail_); + detail_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.automl.v1.ClassificationAnnotation.Builder subBuilder = null; - if (detailCase_ == 3) { - subBuilder = - ((com.google.cloud.automl.v1.ClassificationAnnotation) detail_).toBuilder(); - } - detail_ = - input.readMessage( - com.google.cloud.automl.v1.ClassificationAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ClassificationAnnotation) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 3; - break; + detailCase_ = 2; + break; + } + case 26: { + com.google.cloud.automl.v1.ClassificationAnnotation.Builder subBuilder = null; + if (detailCase_ == 3) { + subBuilder = ((com.google.cloud.automl.v1.ClassificationAnnotation) detail_).toBuilder(); + } + detail_ = + input.readMessage(com.google.cloud.automl.v1.ClassificationAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ClassificationAnnotation) detail_); + detail_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder subBuilder = null; - if (detailCase_ == 4) { - subBuilder = - ((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_) - .toBuilder(); - } - detail_ = - input.readMessage( - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 4; - break; + detailCase_ = 3; + break; + } + case 34: { + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder subBuilder = null; + if (detailCase_ == 4) { + subBuilder = ((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_).toBuilder(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + detail_ = + input.readMessage(com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 4; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + displayName_ = s; + break; + } + case 50: { + com.google.cloud.automl.v1.TextExtractionAnnotation.Builder subBuilder = null; + if (detailCase_ == 6) { + subBuilder = ((com.google.cloud.automl.v1.TextExtractionAnnotation) detail_).toBuilder(); } - case 50: - { - com.google.cloud.automl.v1.TextExtractionAnnotation.Builder subBuilder = null; - if (detailCase_ == 6) { - subBuilder = - ((com.google.cloud.automl.v1.TextExtractionAnnotation) detail_).toBuilder(); - } - detail_ = - input.readMessage( - com.google.cloud.automl.v1.TextExtractionAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextExtractionAnnotation) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 6; - break; + detail_ = + input.readMessage(com.google.cloud.automl.v1.TextExtractionAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextExtractionAnnotation) detail_); + detail_ = subBuilder.buildPartial(); } - case 58: - { - com.google.cloud.automl.v1.TextSentimentAnnotation.Builder subBuilder = null; - if (detailCase_ == 7) { - subBuilder = - ((com.google.cloud.automl.v1.TextSentimentAnnotation) detail_).toBuilder(); - } - detail_ = - input.readMessage( - com.google.cloud.automl.v1.TextSentimentAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSentimentAnnotation) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 7; - break; + detailCase_ = 6; + break; + } + case 58: { + com.google.cloud.automl.v1.TextSentimentAnnotation.Builder subBuilder = null; + if (detailCase_ == 7) { + subBuilder = ((com.google.cloud.automl.v1.TextSentimentAnnotation) detail_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + detail_ = + input.readMessage(com.google.cloud.automl.v1.TextSentimentAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSentimentAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 7; + 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); + 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.v1.AnnotationPayloadOuterClass - .internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AnnotationPayloadOuterClass - .internal_static_google_cloud_automl_v1_AnnotationPayload_fieldAccessorTable + return com.google.cloud.automl.v1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1_AnnotationPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.AnnotationPayload.class, - com.google.cloud.automl.v1.AnnotationPayload.Builder.class); + com.google.cloud.automl.v1.AnnotationPayload.class, com.google.cloud.automl.v1.AnnotationPayload.Builder.class); } private int detailCase_ = 0; private java.lang.Object detail_; - public enum DetailCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION(2), CLASSIFICATION(3), @@ -224,7 +180,6 @@ public enum DetailCase TEXT_SENTIMENT(7), DETAIL_NOT_SET(0); private final int value; - private DetailCase(int value) { this.value = value; } @@ -240,42 +195,33 @@ public static DetailCase valueOf(int value) { public static DetailCase forNumber(int value) { switch (value) { - case 2: - return TRANSLATION; - case 3: - return CLASSIFICATION; - case 4: - return IMAGE_OBJECT_DETECTION; - case 6: - return TEXT_EXTRACTION; - case 7: - return TEXT_SENTIMENT; - case 0: - return DETAIL_NOT_SET; - default: - return null; + case 2: return TRANSLATION; + case 3: return CLASSIFICATION; + case 4: return IMAGE_OBJECT_DETECTION; + case 6: return TEXT_EXTRACTION; + case 7: return TEXT_SENTIMENT; + case 0: return DETAIL_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DetailCase getDetailCase() { - return DetailCase.forNumber(detailCase_); + public DetailCase + getDetailCase() { + return DetailCase.forNumber( + detailCase_); } public static final int TRANSLATION_FIELD_NUMBER = 2; /** - * - * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; - * * @return Whether the translation field is set. */ @java.lang.Override @@ -283,26 +229,21 @@ public boolean hasTranslation() { return detailCase_ == 2; } /** - * - * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; - * * @return The translation. */ @java.lang.Override public com.google.cloud.automl.v1.TranslationAnnotation getTranslation() { if (detailCase_ == 2) { - return (com.google.cloud.automl.v1.TranslationAnnotation) detail_; + return (com.google.cloud.automl.v1.TranslationAnnotation) detail_; } return com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for translation.
    * 
@@ -312,21 +253,18 @@ public com.google.cloud.automl.v1.TranslationAnnotation getTranslation() { @java.lang.Override public com.google.cloud.automl.v1.TranslationAnnotationOrBuilder getTranslationOrBuilder() { if (detailCase_ == 2) { - return (com.google.cloud.automl.v1.TranslationAnnotation) detail_; + return (com.google.cloud.automl.v1.TranslationAnnotation) detail_; } return com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance(); } public static final int CLASSIFICATION_FIELD_NUMBER = 3; /** - * - * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; - * * @return Whether the classification field is set. */ @java.lang.Override @@ -334,26 +272,21 @@ public boolean hasClassification() { return detailCase_ == 3; } /** - * - * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; - * * @return The classification. */ @java.lang.Override public com.google.cloud.automl.v1.ClassificationAnnotation getClassification() { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1.ClassificationAnnotation) detail_; + return (com.google.cloud.automl.v1.ClassificationAnnotation) detail_; } return com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for content or image classification.
    * 
@@ -363,21 +296,18 @@ public com.google.cloud.automl.v1.ClassificationAnnotation getClassification() { @java.lang.Override public com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder getClassificationOrBuilder() { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1.ClassificationAnnotation) detail_; + return (com.google.cloud.automl.v1.ClassificationAnnotation) detail_; } return com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance(); } public static final int IMAGE_OBJECT_DETECTION_FIELD_NUMBER = 4; /** - * - * *
    * Annotation details for image object detection.
    * 
* * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * * @return Whether the imageObjectDetection field is set. */ @java.lang.Override @@ -385,26 +315,21 @@ public boolean hasImageObjectDetection() { return detailCase_ == 4; } /** - * - * *
    * Annotation details for image object detection.
    * 
* * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * * @return The imageObjectDetection. */ @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectDetection() { if (detailCase_ == 4) { - return (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_; + return (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_; } return com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for image object detection.
    * 
@@ -412,24 +337,20 @@ public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectD * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder - getImageObjectDetectionOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder() { if (detailCase_ == 4) { - return (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_; + return (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_; } return com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance(); } public static final int TEXT_EXTRACTION_FIELD_NUMBER = 6; /** - * - * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; - * * @return Whether the textExtraction field is set. */ @java.lang.Override @@ -437,26 +358,21 @@ public boolean hasTextExtraction() { return detailCase_ == 6; } /** - * - * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; - * * @return The textExtraction. */ @java.lang.Override public com.google.cloud.automl.v1.TextExtractionAnnotation getTextExtraction() { if (detailCase_ == 6) { - return (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_; + return (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_; } return com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for text extraction.
    * 
@@ -466,21 +382,18 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation getTextExtraction() { @java.lang.Override public com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder() { if (detailCase_ == 6) { - return (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_; + return (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_; } return com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance(); } public static final int TEXT_SENTIMENT_FIELD_NUMBER = 7; /** - * - * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; - * * @return Whether the textSentiment field is set. */ @java.lang.Override @@ -488,26 +401,21 @@ public boolean hasTextSentiment() { return detailCase_ == 7; } /** - * - * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; - * * @return The textSentiment. */ @java.lang.Override public com.google.cloud.automl.v1.TextSentimentAnnotation getTextSentiment() { if (detailCase_ == 7) { - return (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_; + return (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_; } return com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for text sentiment.
    * 
@@ -517,7 +425,7 @@ public com.google.cloud.automl.v1.TextSentimentAnnotation getTextSentiment() { @java.lang.Override public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder() { if (detailCase_ == 7) { - return (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_; + return (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_; } return com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance(); } @@ -525,8 +433,6 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecId_; /** - * - * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -534,7 +440,6 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim
    * 
* * string annotation_spec_id = 1; - * * @return The annotationSpecId. */ @java.lang.Override @@ -543,15 +448,14 @@ public java.lang.String getAnnotationSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; } } /** - * - * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -559,15 +463,16 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string annotation_spec_id = 1; - * * @return The bytes for annotationSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -578,8 +483,6 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** - * - * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -590,7 +493,6 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
    * 
* * string display_name = 5; - * * @return The displayName. */ @java.lang.Override @@ -599,15 +501,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -618,15 +519,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -635,7 +537,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -647,7 +548,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecId_); } @@ -682,32 +584,27 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, annotationSpecId_); } if (detailCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.automl.v1.TranslationAnnotation) detail_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.automl.v1.TranslationAnnotation) detail_); } if (detailCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.automl.v1.ClassificationAnnotation) detail_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.automl.v1.ClassificationAnnotation) detail_); } if (detailCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (detailCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_); } if (detailCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -717,32 +614,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.AnnotationPayload)) { return super.equals(obj); } - com.google.cloud.automl.v1.AnnotationPayload other = - (com.google.cloud.automl.v1.AnnotationPayload) obj; + com.google.cloud.automl.v1.AnnotationPayload other = (com.google.cloud.automl.v1.AnnotationPayload) obj; - if (!getAnnotationSpecId().equals(other.getAnnotationSpecId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getAnnotationSpecId() + .equals(other.getAnnotationSpecId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getDetailCase().equals(other.getDetailCase())) return false; switch (detailCase_) { case 2: - if (!getTranslation().equals(other.getTranslation())) return false; + if (!getTranslation() + .equals(other.getTranslation())) return false; break; case 3: - if (!getClassification().equals(other.getClassification())) return false; + if (!getClassification() + .equals(other.getClassification())) return false; break; case 4: - if (!getImageObjectDetection().equals(other.getImageObjectDetection())) return false; + if (!getImageObjectDetection() + .equals(other.getImageObjectDetection())) return false; break; case 6: - if (!getTextExtraction().equals(other.getTextExtraction())) return false; + if (!getTextExtraction() + .equals(other.getTextExtraction())) return false; break; case 7: - if (!getTextSentiment().equals(other.getTextSentiment())) return false; + if (!getTextSentiment() + .equals(other.getTextSentiment())) return false; break; case 0: default: @@ -791,127 +694,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.AnnotationPayload parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.AnnotationPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.AnnotationPayload 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.v1.AnnotationPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.AnnotationPayload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.AnnotationPayload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.AnnotationPayload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.AnnotationPayload parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.AnnotationPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains annotation information that is relevant to AutoML.
    * 
* * Protobuf type {@code google.cloud.automl.v1.AnnotationPayload} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.AnnotationPayload) com.google.cloud.automl.v1.AnnotationPayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AnnotationPayloadOuterClass - .internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AnnotationPayloadOuterClass - .internal_static_google_cloud_automl_v1_AnnotationPayload_fieldAccessorTable + return com.google.cloud.automl.v1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1_AnnotationPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.AnnotationPayload.class, - com.google.cloud.automl.v1.AnnotationPayload.Builder.class); + com.google.cloud.automl.v1.AnnotationPayload.class, com.google.cloud.automl.v1.AnnotationPayload.Builder.class); } // Construct using com.google.cloud.automl.v1.AnnotationPayload.newBuilder() @@ -919,15 +813,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -941,9 +836,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AnnotationPayloadOuterClass - .internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; } @java.lang.Override @@ -962,8 +857,7 @@ public com.google.cloud.automl.v1.AnnotationPayload build() { @java.lang.Override public com.google.cloud.automl.v1.AnnotationPayload buildPartial() { - com.google.cloud.automl.v1.AnnotationPayload result = - new com.google.cloud.automl.v1.AnnotationPayload(this); + com.google.cloud.automl.v1.AnnotationPayload result = new com.google.cloud.automl.v1.AnnotationPayload(this); if (detailCase_ == 2) { if (translationBuilder_ == null) { result.detail_ = detail_; @@ -1010,39 +904,38 @@ public com.google.cloud.automl.v1.AnnotationPayload buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.AnnotationPayload) { - return mergeFrom((com.google.cloud.automl.v1.AnnotationPayload) other); + return mergeFrom((com.google.cloud.automl.v1.AnnotationPayload)other); } else { super.mergeFrom(other); return this; @@ -1060,35 +953,29 @@ public Builder mergeFrom(com.google.cloud.automl.v1.AnnotationPayload other) { onChanged(); } switch (other.getDetailCase()) { - case TRANSLATION: - { - mergeTranslation(other.getTranslation()); - break; - } - case CLASSIFICATION: - { - mergeClassification(other.getClassification()); - break; - } - case IMAGE_OBJECT_DETECTION: - { - mergeImageObjectDetection(other.getImageObjectDetection()); - break; - } - case TEXT_EXTRACTION: - { - mergeTextExtraction(other.getTextExtraction()); - break; - } - case TEXT_SENTIMENT: - { - mergeTextSentiment(other.getTextSentiment()); - break; - } - case DETAIL_NOT_SET: - { - break; - } + case TRANSLATION: { + mergeTranslation(other.getTranslation()); + break; + } + case CLASSIFICATION: { + mergeClassification(other.getClassification()); + break; + } + case IMAGE_OBJECT_DETECTION: { + mergeImageObjectDetection(other.getImageObjectDetection()); + break; + } + case TEXT_EXTRACTION: { + mergeTextExtraction(other.getTextExtraction()); + break; + } + case TEXT_SENTIMENT: { + mergeTextSentiment(other.getTextSentiment()); + break; + } + case DETAIL_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1118,12 +1005,12 @@ public Builder mergeFrom( } return this; } - private int detailCase_ = 0; private java.lang.Object detail_; - - public DetailCase getDetailCase() { - return DetailCase.forNumber(detailCase_); + public DetailCase + getDetailCase() { + return DetailCase.forNumber( + detailCase_); } public Builder clearDetail() { @@ -1133,20 +1020,15 @@ public Builder clearDetail() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationAnnotation, - com.google.cloud.automl.v1.TranslationAnnotation.Builder, - com.google.cloud.automl.v1.TranslationAnnotationOrBuilder> - translationBuilder_; + com.google.cloud.automl.v1.TranslationAnnotation, com.google.cloud.automl.v1.TranslationAnnotation.Builder, com.google.cloud.automl.v1.TranslationAnnotationOrBuilder> translationBuilder_; /** - * - * *
      * Annotation details for translation.
      * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; - * * @return Whether the translation field is set. */ @java.lang.Override @@ -1154,14 +1036,11 @@ public boolean hasTranslation() { return detailCase_ == 2; } /** - * - * *
      * Annotation details for translation.
      * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; - * * @return The translation. */ @java.lang.Override @@ -1179,8 +1058,6 @@ public com.google.cloud.automl.v1.TranslationAnnotation getTranslation() { } } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1201,8 +1078,6 @@ public Builder setTranslation(com.google.cloud.automl.v1.TranslationAnnotation v return this; } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1221,8 +1096,6 @@ public Builder setTranslation( return this; } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1231,13 +1104,10 @@ public Builder setTranslation( */ public Builder mergeTranslation(com.google.cloud.automl.v1.TranslationAnnotation value) { if (translationBuilder_ == null) { - if (detailCase_ == 2 - && detail_ != com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance()) { - detail_ = - com.google.cloud.automl.v1.TranslationAnnotation.newBuilder( - (com.google.cloud.automl.v1.TranslationAnnotation) detail_) - .mergeFrom(value) - .buildPartial(); + if (detailCase_ == 2 && + detail_ != com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance()) { + detail_ = com.google.cloud.automl.v1.TranslationAnnotation.newBuilder((com.google.cloud.automl.v1.TranslationAnnotation) detail_) + .mergeFrom(value).buildPartial(); } else { detail_ = value; } @@ -1252,8 +1122,6 @@ public Builder mergeTranslation(com.google.cloud.automl.v1.TranslationAnnotation return this; } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1277,8 +1145,6 @@ public Builder clearTranslation() { return this; } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1289,8 +1155,6 @@ public com.google.cloud.automl.v1.TranslationAnnotation.Builder getTranslationBu return getTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1309,8 +1173,6 @@ public com.google.cloud.automl.v1.TranslationAnnotationOrBuilder getTranslationO } } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1318,44 +1180,32 @@ public com.google.cloud.automl.v1.TranslationAnnotationOrBuilder getTranslationO * .google.cloud.automl.v1.TranslationAnnotation translation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationAnnotation, - com.google.cloud.automl.v1.TranslationAnnotation.Builder, - com.google.cloud.automl.v1.TranslationAnnotationOrBuilder> + com.google.cloud.automl.v1.TranslationAnnotation, com.google.cloud.automl.v1.TranslationAnnotation.Builder, com.google.cloud.automl.v1.TranslationAnnotationOrBuilder> getTranslationFieldBuilder() { if (translationBuilder_ == null) { if (!(detailCase_ == 2)) { detail_ = com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance(); } - translationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationAnnotation, - com.google.cloud.automl.v1.TranslationAnnotation.Builder, - com.google.cloud.automl.v1.TranslationAnnotationOrBuilder>( + translationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TranslationAnnotation, com.google.cloud.automl.v1.TranslationAnnotation.Builder, com.google.cloud.automl.v1.TranslationAnnotationOrBuilder>( (com.google.cloud.automl.v1.TranslationAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 2; - onChanged(); - ; + onChanged();; return translationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationAnnotation, - com.google.cloud.automl.v1.ClassificationAnnotation.Builder, - com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder> - classificationBuilder_; + com.google.cloud.automl.v1.ClassificationAnnotation, com.google.cloud.automl.v1.ClassificationAnnotation.Builder, com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder> classificationBuilder_; /** - * - * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; - * * @return Whether the classification field is set. */ @java.lang.Override @@ -1363,14 +1213,11 @@ public boolean hasClassification() { return detailCase_ == 3; } /** - * - * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; - * * @return The classification. */ @java.lang.Override @@ -1388,8 +1235,6 @@ public com.google.cloud.automl.v1.ClassificationAnnotation getClassification() { } } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1410,8 +1255,6 @@ public Builder setClassification(com.google.cloud.automl.v1.ClassificationAnnota return this; } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1430,8 +1273,6 @@ public Builder setClassification( return this; } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1440,14 +1281,10 @@ public Builder setClassification( */ public Builder mergeClassification(com.google.cloud.automl.v1.ClassificationAnnotation value) { if (classificationBuilder_ == null) { - if (detailCase_ == 3 - && detail_ - != com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance()) { - detail_ = - com.google.cloud.automl.v1.ClassificationAnnotation.newBuilder( - (com.google.cloud.automl.v1.ClassificationAnnotation) detail_) - .mergeFrom(value) - .buildPartial(); + if (detailCase_ == 3 && + detail_ != com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance()) { + detail_ = com.google.cloud.automl.v1.ClassificationAnnotation.newBuilder((com.google.cloud.automl.v1.ClassificationAnnotation) detail_) + .mergeFrom(value).buildPartial(); } else { detail_ = value; } @@ -1462,8 +1299,6 @@ public Builder mergeClassification(com.google.cloud.automl.v1.ClassificationAnno return this; } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1487,8 +1322,6 @@ public Builder clearClassification() { return this; } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1499,8 +1332,6 @@ public com.google.cloud.automl.v1.ClassificationAnnotation.Builder getClassifica return getClassificationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1508,8 +1339,7 @@ public com.google.cloud.automl.v1.ClassificationAnnotation.Builder getClassifica * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder - getClassificationOrBuilder() { + public com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder getClassificationOrBuilder() { if ((detailCase_ == 3) && (classificationBuilder_ != null)) { return classificationBuilder_.getMessageOrBuilder(); } else { @@ -1520,8 +1350,6 @@ public com.google.cloud.automl.v1.ClassificationAnnotation.Builder getClassifica } } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1529,45 +1357,32 @@ public com.google.cloud.automl.v1.ClassificationAnnotation.Builder getClassifica * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationAnnotation, - com.google.cloud.automl.v1.ClassificationAnnotation.Builder, - com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder> + com.google.cloud.automl.v1.ClassificationAnnotation, com.google.cloud.automl.v1.ClassificationAnnotation.Builder, com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder> getClassificationFieldBuilder() { if (classificationBuilder_ == null) { if (!(detailCase_ == 3)) { detail_ = com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance(); } - classificationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationAnnotation, - com.google.cloud.automl.v1.ClassificationAnnotation.Builder, - com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder>( + classificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationAnnotation, com.google.cloud.automl.v1.ClassificationAnnotation.Builder, com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder>( (com.google.cloud.automl.v1.ClassificationAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 3; - onChanged(); - ; + onChanged();; return classificationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder> - imageObjectDetectionBuilder_; + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder> imageObjectDetectionBuilder_; /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; * @return Whether the imageObjectDetection field is set. */ @java.lang.Override @@ -1575,15 +1390,11 @@ public boolean hasImageObjectDetection() { return detailCase_ == 4; } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; * @return The imageObjectDetection. */ @java.lang.Override @@ -1601,17 +1412,13 @@ public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectD } } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ - public Builder setImageObjectDetection( - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation value) { + public Builder setImageObjectDetection(com.google.cloud.automl.v1.ImageObjectDetectionAnnotation value) { if (imageObjectDetectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1625,14 +1432,11 @@ public Builder setImageObjectDetection( return this; } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ public Builder setImageObjectDetection( com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder builderForValue) { @@ -1646,26 +1450,18 @@ public Builder setImageObjectDetection( return this; } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ - public Builder mergeImageObjectDetection( - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation value) { + public Builder mergeImageObjectDetection(com.google.cloud.automl.v1.ImageObjectDetectionAnnotation value) { if (imageObjectDetectionBuilder_ == null) { - if (detailCase_ == 4 - && detail_ - != com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance()) { - detail_ = - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.newBuilder( - (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_) - .mergeFrom(value) - .buildPartial(); + if (detailCase_ == 4 && + detail_ != com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance()) { + detail_ = com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.newBuilder((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_) + .mergeFrom(value).buildPartial(); } else { detail_ = value; } @@ -1680,14 +1476,11 @@ public Builder mergeImageObjectDetection( return this; } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ public Builder clearImageObjectDetection() { if (imageObjectDetectionBuilder_ == null) { @@ -1706,32 +1499,24 @@ public Builder clearImageObjectDetection() { return this; } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ - public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder - getImageObjectDetectionBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder getImageObjectDetectionBuilder() { return getImageObjectDetectionFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder - getImageObjectDetectionOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder() { if ((detailCase_ == 4) && (imageObjectDetectionBuilder_ != null)) { return imageObjectDetectionBuilder_.getMessageOrBuilder(); } else { @@ -1742,54 +1527,39 @@ public Builder clearImageObjectDetection() { } } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder> + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder> getImageObjectDetectionFieldBuilder() { if (imageObjectDetectionBuilder_ == null) { if (!(detailCase_ == 4)) { detail_ = com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance(); } - imageObjectDetectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder>( + imageObjectDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder>( (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 4; - onChanged(); - ; + onChanged();; return imageObjectDetectionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionAnnotation, - com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, - com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder> - textExtractionBuilder_; + com.google.cloud.automl.v1.TextExtractionAnnotation, com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder> textExtractionBuilder_; /** - * - * *
      * Annotation details for text extraction.
      * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; - * * @return Whether the textExtraction field is set. */ @java.lang.Override @@ -1797,14 +1567,11 @@ public boolean hasTextExtraction() { return detailCase_ == 6; } /** - * - * *
      * Annotation details for text extraction.
      * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; - * * @return The textExtraction. */ @java.lang.Override @@ -1822,8 +1589,6 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation getTextExtraction() { } } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -1844,8 +1609,6 @@ public Builder setTextExtraction(com.google.cloud.automl.v1.TextExtractionAnnota return this; } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -1864,8 +1627,6 @@ public Builder setTextExtraction( return this; } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -1874,14 +1635,10 @@ public Builder setTextExtraction( */ public Builder mergeTextExtraction(com.google.cloud.automl.v1.TextExtractionAnnotation value) { if (textExtractionBuilder_ == null) { - if (detailCase_ == 6 - && detail_ - != com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance()) { - detail_ = - com.google.cloud.automl.v1.TextExtractionAnnotation.newBuilder( - (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_) - .mergeFrom(value) - .buildPartial(); + if (detailCase_ == 6 && + detail_ != com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance()) { + detail_ = com.google.cloud.automl.v1.TextExtractionAnnotation.newBuilder((com.google.cloud.automl.v1.TextExtractionAnnotation) detail_) + .mergeFrom(value).buildPartial(); } else { detail_ = value; } @@ -1896,8 +1653,6 @@ public Builder mergeTextExtraction(com.google.cloud.automl.v1.TextExtractionAnno return this; } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -1921,8 +1676,6 @@ public Builder clearTextExtraction() { return this; } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -1933,8 +1686,6 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation.Builder getTextExtrac return getTextExtractionFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -1942,8 +1693,7 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation.Builder getTextExtrac * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder - getTextExtractionOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder() { if ((detailCase_ == 6) && (textExtractionBuilder_ != null)) { return textExtractionBuilder_.getMessageOrBuilder(); } else { @@ -1954,8 +1704,6 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation.Builder getTextExtrac } } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -1963,44 +1711,32 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation.Builder getTextExtrac * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionAnnotation, - com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, - com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder> + com.google.cloud.automl.v1.TextExtractionAnnotation, com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder> getTextExtractionFieldBuilder() { if (textExtractionBuilder_ == null) { if (!(detailCase_ == 6)) { detail_ = com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance(); } - textExtractionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionAnnotation, - com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, - com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder>( + textExtractionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextExtractionAnnotation, com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder>( (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 6; - onChanged(); - ; + onChanged();; return textExtractionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentAnnotation, - com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, - com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder> - textSentimentBuilder_; + com.google.cloud.automl.v1.TextSentimentAnnotation, com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder> textSentimentBuilder_; /** - * - * *
      * Annotation details for text sentiment.
      * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; - * * @return Whether the textSentiment field is set. */ @java.lang.Override @@ -2008,14 +1744,11 @@ public boolean hasTextSentiment() { return detailCase_ == 7; } /** - * - * *
      * Annotation details for text sentiment.
      * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; - * * @return The textSentiment. */ @java.lang.Override @@ -2033,8 +1766,6 @@ public com.google.cloud.automl.v1.TextSentimentAnnotation getTextSentiment() { } } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -2055,8 +1786,6 @@ public Builder setTextSentiment(com.google.cloud.automl.v1.TextSentimentAnnotati return this; } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -2075,8 +1804,6 @@ public Builder setTextSentiment( return this; } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -2085,13 +1812,10 @@ public Builder setTextSentiment( */ public Builder mergeTextSentiment(com.google.cloud.automl.v1.TextSentimentAnnotation value) { if (textSentimentBuilder_ == null) { - if (detailCase_ == 7 - && detail_ != com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance()) { - detail_ = - com.google.cloud.automl.v1.TextSentimentAnnotation.newBuilder( - (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_) - .mergeFrom(value) - .buildPartial(); + if (detailCase_ == 7 && + detail_ != com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance()) { + detail_ = com.google.cloud.automl.v1.TextSentimentAnnotation.newBuilder((com.google.cloud.automl.v1.TextSentimentAnnotation) detail_) + .mergeFrom(value).buildPartial(); } else { detail_ = value; } @@ -2106,8 +1830,6 @@ public Builder mergeTextSentiment(com.google.cloud.automl.v1.TextSentimentAnnota return this; } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -2131,8 +1853,6 @@ public Builder clearTextSentiment() { return this; } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -2143,8 +1863,6 @@ public com.google.cloud.automl.v1.TextSentimentAnnotation.Builder getTextSentime return getTextSentimentFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -2163,8 +1881,6 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim } } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -2172,34 +1888,26 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentAnnotation, - com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, - com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder> + com.google.cloud.automl.v1.TextSentimentAnnotation, com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder> getTextSentimentFieldBuilder() { if (textSentimentBuilder_ == null) { if (!(detailCase_ == 7)) { detail_ = com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance(); } - textSentimentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentAnnotation, - com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, - com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder>( + textSentimentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSentimentAnnotation, com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder>( (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 7; - onChanged(); - ; + onChanged();; return textSentimentBuilder_; } private java.lang.Object annotationSpecId_ = ""; /** - * - * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -2207,13 +1915,13 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim
      * 
* * string annotation_spec_id = 1; - * * @return The annotationSpecId. */ public java.lang.String getAnnotationSpecId() { java.lang.Object ref = annotationSpecId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; @@ -2222,8 +1930,6 @@ public java.lang.String getAnnotationSpecId() { } } /** - * - * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -2231,14 +1937,15 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 1; - * * @return The bytes for annotationSpecId. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -2246,8 +1953,6 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { } } /** - * - * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -2255,22 +1960,20 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
      * 
* * string annotation_spec_id = 1; - * * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId(java.lang.String value) { + public Builder setAnnotationSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecId_ = value; onChanged(); return this; } /** - * - * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -2278,18 +1981,15 @@ public Builder setAnnotationSpecId(java.lang.String value) {
      * 
* * string annotation_spec_id = 1; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { - + annotationSpecId_ = getDefaultInstance().getAnnotationSpecId(); onChanged(); return this; } /** - * - * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -2297,16 +1997,16 @@ public Builder clearAnnotationSpecId() {
      * 
* * string annotation_spec_id = 1; - * * @param value The bytes for annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecId_ = value; onChanged(); return this; @@ -2314,8 +2014,6 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2326,13 +2024,13 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 5; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2341,8 +2039,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2353,14 +2049,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2368,8 +2065,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2380,22 +2075,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 5; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2406,18 +2099,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 5; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2428,23 +2118,23 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 5; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2454,12 +2144,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.AnnotationPayload) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.AnnotationPayload) private static final com.google.cloud.automl.v1.AnnotationPayload DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.AnnotationPayload(); } @@ -2468,16 +2158,16 @@ public static com.google.cloud.automl.v1.AnnotationPayload getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationPayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationPayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationPayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2492,4 +2182,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.AnnotationPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java similarity index 85% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java index aef287dcd..c5d384498 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/annotation_payload.proto package com.google.cloud.automl.v1; -public interface AnnotationPayloadOrBuilder - extends +public interface AnnotationPayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.AnnotationPayload) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; - * * @return Whether the translation field is set. */ boolean hasTranslation(); /** - * - * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; - * * @return The translation. */ com.google.cloud.automl.v1.TranslationAnnotation getTranslation(); /** - * - * *
    * Annotation details for translation.
    * 
@@ -59,32 +35,24 @@ public interface AnnotationPayloadOrBuilder com.google.cloud.automl.v1.TranslationAnnotationOrBuilder getTranslationOrBuilder(); /** - * - * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; - * * @return Whether the classification field is set. */ boolean hasClassification(); /** - * - * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; - * * @return The classification. */ com.google.cloud.automl.v1.ClassificationAnnotation getClassification(); /** - * - * *
    * Annotation details for content or image classification.
    * 
@@ -94,68 +62,51 @@ public interface AnnotationPayloadOrBuilder com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder getClassificationOrBuilder(); /** - * - * *
    * Annotation details for image object detection.
    * 
* * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * * @return Whether the imageObjectDetection field is set. */ boolean hasImageObjectDetection(); /** - * - * *
    * Annotation details for image object detection.
    * 
* * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * * @return The imageObjectDetection. */ com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectDetection(); /** - * - * *
    * Annotation details for image object detection.
    * 
* * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ - com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder - getImageObjectDetectionOrBuilder(); + com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder(); /** - * - * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; - * * @return Whether the textExtraction field is set. */ boolean hasTextExtraction(); /** - * - * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; - * * @return The textExtraction. */ com.google.cloud.automl.v1.TextExtractionAnnotation getTextExtraction(); /** - * - * *
    * Annotation details for text extraction.
    * 
@@ -165,32 +116,24 @@ public interface AnnotationPayloadOrBuilder com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder(); /** - * - * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; - * * @return Whether the textSentiment field is set. */ boolean hasTextSentiment(); /** - * - * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; - * * @return The textSentiment. */ com.google.cloud.automl.v1.TextSentimentAnnotation getTextSentiment(); /** - * - * *
    * Annotation details for text sentiment.
    * 
@@ -200,8 +143,6 @@ public interface AnnotationPayloadOrBuilder com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder(); /** - * - * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -209,13 +150,10 @@ public interface AnnotationPayloadOrBuilder
    * 
* * string annotation_spec_id = 1; - * * @return The annotationSpecId. */ java.lang.String getAnnotationSpecId(); /** - * - * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -223,14 +161,12 @@ public interface AnnotationPayloadOrBuilder
    * 
* * string annotation_spec_id = 1; - * * @return The bytes for annotationSpecId. */ - com.google.protobuf.ByteString getAnnotationSpecIdBytes(); + com.google.protobuf.ByteString + getAnnotationSpecIdBytes(); /** - * - * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -241,13 +177,10 @@ public interface AnnotationPayloadOrBuilder
    * 
* * string display_name = 5; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -258,10 +191,10 @@ public interface AnnotationPayloadOrBuilder
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); public com.google.cloud.automl.v1.AnnotationPayload.DetailCase getDetailCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java new file mode 100644 index 000000000..031f7fcec --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/annotation_payload.proto + +package com.google.cloud.automl.v1; + +public final class AnnotationPayloadOuterClass { + private AnnotationPayloadOuterClass() {} + 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_v1_AnnotationPayload_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_AnnotationPayload_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/v1/annotation_payl" + + "oad.proto\022\026google.cloud.automl.v1\032+googl" + + "e/cloud/automl/v1/classification.proto\032&" + + "google/cloud/automl/v1/detection.proto\032," + + "google/cloud/automl/v1/text_extraction.p" + + "roto\032+google/cloud/automl/v1/text_sentim" + + "ent.proto\032(google/cloud/automl/v1/transl" + + "ation.proto\032\031google/protobuf/any.proto\032\034" + + "google/api/annotations.proto\"\323\003\n\021Annotat" + + "ionPayload\022D\n\013translation\030\002 \001(\0132-.google" + + ".cloud.automl.v1.TranslationAnnotationH\000" + + "\022J\n\016classification\030\003 \001(\01320.google.cloud." + + "automl.v1.ClassificationAnnotationH\000\022X\n\026" + + "image_object_detection\030\004 \001(\01326.google.cl" + + "oud.automl.v1.ImageObjectDetectionAnnota" + + "tionH\000\022K\n\017text_extraction\030\006 \001(\01320.google" + + ".cloud.automl.v1.TextExtractionAnnotatio" + + "nH\000\022I\n\016text_sentiment\030\007 \001(\0132/.google.clo" + + "ud.automl.v1.TextSentimentAnnotationH\000\022\032" + + "\n\022annotation_spec_id\030\001 \001(\t\022\024\n\014display_na" + + "me\030\005 \001(\tB\010\n\006detailB\252\001\n\032com.google.cloud." + + "automl.v1P\001Z * A definition of an annotation spec. *
* * Protobuf type {@code google.cloud.automl.v1.AnnotationSpec} */ -public final class AnnotationSpec extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotationSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.AnnotationSpec) AnnotationSpecOrBuilder { - private static final long serialVersionUID = 0L; +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_ = ""; @@ -44,15 +26,16 @@ private AnnotationSpec() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotationSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotationSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,64 +54,58 @@ private AnnotationSpec( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - 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; + 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); + 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.v1.AnnotationSpecOuterClass - .internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AnnotationSpecOuterClass - .internal_static_google_cloud_automl_v1_AnnotationSpec_fieldAccessorTable + return com.google.cloud.automl.v1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1_AnnotationSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.AnnotationSpec.class, - com.google.cloud.automl.v1.AnnotationSpec.Builder.class); + com.google.cloud.automl.v1.AnnotationSpec.class, com.google.cloud.automl.v1.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:
@@ -136,7 +113,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -145,15 +121,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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:
@@ -161,15 +136,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -180,15 +156,12 @@ public com.google.protobuf.ByteString getNameBytes() { 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -197,30 +170,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -231,15 +204,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { 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; - * * @return The exampleCount. */ @java.lang.Override @@ -248,7 +218,6 @@ public int getExampleCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -286,7 +256,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (exampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, exampleCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, exampleCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -296,17 +267,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.AnnotationSpec)) { return super.equals(obj); } - com.google.cloud.automl.v1.AnnotationSpec other = - (com.google.cloud.automl.v1.AnnotationSpec) obj; + com.google.cloud.automl.v1.AnnotationSpec other = (com.google.cloud.automl.v1.AnnotationSpec) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getExampleCount() != other.getExampleCount()) return false; + 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; } @@ -329,127 +302,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.AnnotationSpec parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.AnnotationSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.AnnotationSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.AnnotationSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.AnnotationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.AnnotationSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.AnnotationSpec parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.AnnotationSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.AnnotationSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.AnnotationSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.AnnotationSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.AnnotationSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.AnnotationSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A definition of an annotation spec.
    * 
* * Protobuf type {@code google.cloud.automl.v1.AnnotationSpec} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.AnnotationSpec) com.google.cloud.automl.v1.AnnotationSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AnnotationSpecOuterClass - .internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AnnotationSpecOuterClass - .internal_static_google_cloud_automl_v1_AnnotationSpec_fieldAccessorTable + return com.google.cloud.automl.v1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1_AnnotationSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.AnnotationSpec.class, - com.google.cloud.automl.v1.AnnotationSpec.Builder.class); + com.google.cloud.automl.v1.AnnotationSpec.class, com.google.cloud.automl.v1.AnnotationSpec.Builder.class); } // Construct using com.google.cloud.automl.v1.AnnotationSpec.newBuilder() @@ -457,15 +421,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AnnotationSpecOuterClass - .internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; } @java.lang.Override @@ -500,8 +465,7 @@ public com.google.cloud.automl.v1.AnnotationSpec build() { @java.lang.Override public com.google.cloud.automl.v1.AnnotationSpec buildPartial() { - com.google.cloud.automl.v1.AnnotationSpec result = - new com.google.cloud.automl.v1.AnnotationSpec(this); + com.google.cloud.automl.v1.AnnotationSpec result = new com.google.cloud.automl.v1.AnnotationSpec(this); result.name_ = name_; result.displayName_ = displayName_; result.exampleCount_ = exampleCount_; @@ -513,39 +477,38 @@ public com.google.cloud.automl.v1.AnnotationSpec buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.AnnotationSpec) { - return mergeFrom((com.google.cloud.automl.v1.AnnotationSpec) other); + return mergeFrom((com.google.cloud.automl.v1.AnnotationSpec)other); } else { super.mergeFrom(other); return this; @@ -596,8 +559,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -605,13 +566,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -620,8 +581,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -629,14 +588,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -644,8 +604,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -653,22 +611,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -676,18 +632,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -695,16 +648,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -712,21 +665,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -735,22 +686,21 @@ public 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -758,80 +708,70 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The name of the annotation spec to show in the interface. The name can be
      * up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int exampleCount_; + private int exampleCount_ ; /** - * - * *
      * Output only. The number of examples in the parent dataset
      * labeled by the annotation spec.
      * 
* * int32 example_count = 9; - * * @return The exampleCount. */ @java.lang.Override @@ -839,45 +779,39 @@ public int getExampleCount() { return exampleCount_; } /** - * - * *
      * Output only. The number of examples in the parent dataset
      * labeled by the annotation spec.
      * 
* * int32 example_count = 9; - * * @param value The exampleCount to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +821,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.AnnotationSpec) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.AnnotationSpec) private static final com.google.cloud.automl.v1.AnnotationSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.AnnotationSpec(); } @@ -901,16 +835,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -925,4 +859,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.AnnotationSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java similarity index 100% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java similarity index 67% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java index c22128d6a..26380334f 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/annotation_spec.proto package com.google.cloud.automl.v1; -public interface AnnotationSpecOrBuilder - extends +public interface AnnotationSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.AnnotationSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Resource name of the annotation spec.
    * Form:
@@ -33,13 +15,10 @@ public interface AnnotationSpecOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the annotation spec.
    * Form:
@@ -47,48 +26,40 @@ public interface AnnotationSpecOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; - * * @return The displayName. */ 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The number of examples in the parent dataset
    * labeled by the annotation spec.
    * 
* * int32 example_count = 9; - * * @return The exampleCount. */ int getExampleCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOuterClass.java new file mode 100644 index 000000000..9734a8a4c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOuterClass.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/annotation_spec.proto + +package com.google.cloud.automl.v1; + +public final class AnnotationSpecOuterClass { + private AnnotationSpecOuterClass() {} + 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_v1_AnnotationSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_AnnotationSpec_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/v1/annotation_spec" + + ".proto\022\026google.cloud.automl.v1\032\031google/a" + + "pi/resource.proto\032\034google/api/annotation" + + "s.proto\"\326\001\n\016AnnotationSpec\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(\005:\210\001\352A\204\001\n$automl.googleapis.com/Anno" + + "tationSpec\022\\projects/{project}/locations" + + "/{location}/datasets/{dataset}/annotatio" + + "nSpecs/{annotation_spec}B\252\001\n\032com.google." + + "cloud.automl.v1P\001Z\n\014input" + + "_config\030\003 \001(\0132#.google.cloud.automl.v1.I" + + "nputConfigB\003\340A\002\"\212\001\n\021ExportDataRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleapis.c" + + "om/Dataset\022@\n\routput_config\030\003 \001(\0132$.goog" + + "le.cloud.automl.v1.OutputConfigB\003\340A\002\"V\n\030" + + "GetAnnotationSpecRequest\022:\n\004name\030\001 \001(\tB," + + "\340A\002\372A&\n$automl.googleapis.com/Annotation" + + "Spec\"\202\001\n\022CreateModelRequest\0229\n\006parent\030\001 " + + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" + + "cation\0221\n\005model\030\004 \001(\0132\035.google.cloud.aut" + + "oml.v1.ModelB\003\340A\002\"D\n\017GetModelRequest\0221\n\004" + + "name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis.co" + + "m/Model\"\205\001\n\021ListModelsRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\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\"[\n\022ListModelsRes" + + "ponse\022,\n\005model\030\001 \003(\0132\035.google.cloud.auto" + + "ml.v1.Model\022\027\n\017next_page_token\030\002 \001(\t\"G\n\022" + + "DeleteModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035" + + "\n\033automl.googleapis.com/Model\"}\n\022UpdateM" + + "odelRequest\0221\n\005model\030\001 \001(\0132\035.google.clou" + + "d.automl.v1.ModelB\003\340A\002\0224\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\343\002\n" + + "\022DeployModelRequest\022\177\n0image_object_dete" + + "ction_model_deployment_metadata\030\002 \001(\0132C." + + "google.cloud.automl.v1.ImageObjectDetect" + + "ionModelDeploymentMetadataH\000\022|\n.image_cl" + + "assification_model_deployment_metadata\030\004" + + " \001(\0132B.google.cloud.automl.v1.ImageClass" + + "ificationModelDeploymentMetadataH\000\0221\n\004na" + + "me\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis.com/" + + "ModelB\033\n\031model_deployment_metadata\"I\n\024Un" + + "deployModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035" + + "\n\033automl.googleapis.com/Model\"\224\001\n\022Export" + + "ModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033auto" + + "ml.googleapis.com/Model\022K\n\routput_config" + + "\030\003 \001(\0132/.google.cloud.automl.v1.ModelExp" + + "ortOutputConfigB\003\340A\002\"X\n\031GetModelEvaluati" + + "onRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%automl." + + "googleapis.com/ModelEvaluation\"\216\001\n\033ListM" + + "odelEvaluationsRequest\0223\n\006parent\030\001 \001(\tB#" + + "\340A\002\372A\035\n\033automl.googleapis.com/Model\022\023\n\006f" + + "ilter\030\003 \001(\tB\003\340A\002\022\021\n\tpage_size\030\004 \001(\005\022\022\n\np" + + "age_token\030\006 \001(\t\"z\n\034ListModelEvaluationsR" + + "esponse\022A\n\020model_evaluation\030\001 \003(\0132\'.goog" + + "le.cloud.automl.v1.ModelEvaluation\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t2\350\033\n\006AutoMl\022\313\001\n\rCreat" + + "eDataset\022,.google.cloud.automl.v1.Create" + + "DatasetRequest\032\035.google.longrunning.Oper" + + "ation\"m\202\323\344\223\0027\",/v1/{parent=projects/*/lo" + + "cations/*}/datasets:\007dataset\332A\016parent,da" + + "taset\312A\034\n\007Dataset\022\021OperationMetadata\022\225\001\n" + + "\nGetDataset\022).google.cloud.automl.v1.Get" + + "DatasetRequest\032\037.google.cloud.automl.v1." + + "Dataset\";\202\323\344\223\002.\022,/v1/{name=projects/*/lo" + + "cations/*/datasets/*}\332A\004name\022\250\001\n\014ListDat" + + "asets\022+.google.cloud.automl.v1.ListDatas" + + "etsRequest\032,.google.cloud.automl.v1.List" + + "DatasetsResponse\"=\202\323\344\223\002.\022,/v1/{parent=pr" + + "ojects/*/locations/*}/datasets\332A\006parent\022" + + "\273\001\n\rUpdateDataset\022,.google.cloud.automl." + + "v1.UpdateDatasetRequest\032\037.google.cloud.a" + + "utoml.v1.Dataset\"[\202\323\344\223\002?24/v1/{dataset.n" + + "ame=projects/*/locations/*/datasets/*}:\007" + + "dataset\332A\023dataset,update_mask\022\306\001\n\rDelete" + + "Dataset\022,.google.cloud.automl.v1.DeleteD" + + "atasetRequest\032\035.google.longrunning.Opera" + + "tion\"h\202\323\344\223\002.*,/v1/{name=projects/*/locat" + + "ions/*/datasets/*}\332A\004name\312A*\n\025google.pro" + + "tobuf.Empty\022\021OperationMetadata\022\334\001\n\nImpor" + + "tData\022).google.cloud.automl.v1.ImportDat" + + "aRequest\032\035.google.longrunning.Operation\"" + + "\203\001\202\323\344\223\002<\"7/v1/{name=projects/*/locations" + + "/*/datasets/*}:importData:\001*\332A\021name,inpu" + + "t_config\312A*\n\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\022\335\001\n\nExportData\022).google.cl" + + "oud.automl.v1.ExportDataRequest\032\035.google" + + ".longrunning.Operation\"\204\001\202\323\344\223\002<\"7/v1/{na" + + "me=projects/*/locations/*/datasets/*}:ex" + + "portData:\001*\332A\022name,output_config\312A*\n\025goo" + + "gle.protobuf.Empty\022\021OperationMetadata\022\274\001" + + "\n\021GetAnnotationSpec\0220.google.cloud.autom" + + "l.v1.GetAnnotationSpecRequest\032&.google.c" + + "loud.automl.v1.AnnotationSpec\"M\202\323\344\223\002@\022>/" + + "v1/{name=projects/*/locations/*/datasets" + + "/*/annotationSpecs/*}\332A\004name\022\277\001\n\013CreateM" + + "odel\022*.google.cloud.automl.v1.CreateMode" + + "lRequest\032\035.google.longrunning.Operation\"" + + "e\202\323\344\223\0023\"*/v1/{parent=projects/*/location" + + "s/*}/models:\005model\332A\014parent,model\312A\032\n\005Mo" + + "del\022\021OperationMetadata\022\215\001\n\010GetModel\022\'.go" + + "ogle.cloud.automl.v1.GetModelRequest\032\035.g" + + "oogle.cloud.automl.v1.Model\"9\202\323\344\223\002,\022*/v1" + + "/{name=projects/*/locations/*/models/*}\332" + + "A\004name\022\240\001\n\nListModels\022).google.cloud.aut" + + "oml.v1.ListModelsRequest\032*.google.cloud." + + "automl.v1.ListModelsResponse\";\202\323\344\223\002,\022*/v" + + "1/{parent=projects/*/locations/*}/models" + + "\332A\006parent\022\300\001\n\013DeleteModel\022*.google.cloud" + + ".automl.v1.DeleteModelRequest\032\035.google.l" + + "ongrunning.Operation\"f\202\323\344\223\002,**/v1/{name=" + + "projects/*/locations/*/models/*}\332A\004name\312" + + "A*\n\025google.protobuf.Empty\022\021OperationMeta" + + "data\022\255\001\n\013UpdateModel\022*.google.cloud.auto" + + "ml.v1.UpdateModelRequest\032\035.google.cloud." + + "automl.v1.Model\"S\202\323\344\223\002920/v1/{model.name" + + "=projects/*/locations/*/models/*}:\005model" + + "\332A\021model,update_mask\022\312\001\n\013DeployModel\022*.g" + + "oogle.cloud.automl.v1.DeployModelRequest" + + "\032\035.google.longrunning.Operation\"p\202\323\344\223\0026\"" + + "1/v1/{name=projects/*/locations/*/models" + + "/*}:deploy:\001*\332A\004name\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\022\320\001\n\rUndeployMo" + + "del\022,.google.cloud.automl.v1.UndeployMod" + + "elRequest\032\035.google.longrunning.Operation" + + "\"r\202\323\344\223\0028\"3/v1/{name=projects/*/locations" + + "/*/models/*}:undeploy:\001*\332A\004name\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\022\330\001\n" + + "\013ExportModel\022*.google.cloud.automl.v1.Ex" + + "portModelRequest\032\035.google.longrunning.Op" + + "eration\"~\202\323\344\223\0026\"1/v1/{name=projects/*/lo" + + "cations/*/models/*}:export:\001*\332A\022name,out" + + "put_config\312A*\n\025google.protobuf.Empty\022\021Op" + + "erationMetadata\022\276\001\n\022GetModelEvaluation\0221" + + ".google.cloud.automl.v1.GetModelEvaluati" + + "onRequest\032\'.google.cloud.automl.v1.Model" + + "Evaluation\"L\202\323\344\223\002?\022=/v1/{name=projects/*" + + "/locations/*/models/*/modelEvaluations/*" + + "}\332A\004name\022\330\001\n\024ListModelEvaluations\0223.goog" + + "le.cloud.automl.v1.ListModelEvaluationsR" + + "equest\0324.google.cloud.automl.v1.ListMode" + + "lEvaluationsResponse\"U\202\323\344\223\002?\022=/v1/{paren" + + "t=projects/*/locations/*/models/*}/model" + + "Evaluations\332A\rparent,filter\032I\312A\025automl.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\267\001\n\032com.google.cl" + + "oud.automl.v1B\013AutoMlProtoP\001Z * Input configuration for BatchPredict Action. * The format of input depends on the ML problem of the model used for @@ -232,29 +215,30 @@ * * Protobuf type {@code google.cloud.automl.v1.BatchPredictInputConfig} */ -public final class BatchPredictInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchPredictInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictInputConfig) BatchPredictInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchPredictInputConfig.newBuilder() to construct. private BatchPredictInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchPredictInputConfig() {} + private BatchPredictInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchPredictInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchPredictInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -273,67 +257,60 @@ private BatchPredictInputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.automl.v1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1.GcsSource) source_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + source_ = + input.readMessage(com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 1; + 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); + 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.v1.Io - .internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictInputConfig.class, - com.google.cloud.automl.v1.BatchPredictInputConfig.Builder.class); + com.google.cloud.automl.v1.BatchPredictInputConfig.class, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -349,36 +326,29 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Required. The Google Cloud Storage location for the input content.
    * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -386,46 +356,36 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Required. The Google Cloud Storage location for the input content.
    * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsSource. */ @java.lang.Override public com.google.cloud.automl.v1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.automl.v1.GcsSource) source_; + return (com.google.cloud.automl.v1.GcsSource) source_; } return com.google.cloud.automl.v1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. The Google Cloud Storage location for the input content.
    * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.automl.v1.GcsSource) source_; + return (com.google.cloud.automl.v1.GcsSource) source_; } return com.google.cloud.automl.v1.GcsSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -437,7 +397,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sourceCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1.GcsSource) source_); } @@ -451,9 +412,8 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.automl.v1.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.automl.v1.GcsSource) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -463,18 +423,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictInputConfig)) { return super.equals(obj); } - com.google.cloud.automl.v1.BatchPredictInputConfig other = - (com.google.cloud.automl.v1.BatchPredictInputConfig) obj; + com.google.cloud.automl.v1.BatchPredictInputConfig other = (com.google.cloud.automl.v1.BatchPredictInputConfig) obj; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 0: default: @@ -504,103 +464,96 @@ public int hashCode() { } public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.BatchPredictInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.BatchPredictInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.BatchPredictInputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.BatchPredictInputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.BatchPredictInputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -812,23 +765,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.BatchPredictInputConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictInputConfig)
       com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.BatchPredictInputConfig.class,
-              com.google.cloud.automl.v1.BatchPredictInputConfig.Builder.class);
+              com.google.cloud.automl.v1.BatchPredictInputConfig.class, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.BatchPredictInputConfig.newBuilder()
@@ -836,15 +787,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -854,9 +806,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -875,8 +827,7 @@ public com.google.cloud.automl.v1.BatchPredictInputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.BatchPredictInputConfig buildPartial() {
-      com.google.cloud.automl.v1.BatchPredictInputConfig result =
-          new com.google.cloud.automl.v1.BatchPredictInputConfig(this);
+      com.google.cloud.automl.v1.BatchPredictInputConfig result = new com.google.cloud.automl.v1.BatchPredictInputConfig(this);
       if (sourceCase_ == 1) {
         if (gcsSourceBuilder_ == null) {
           result.source_ = source_;
@@ -893,39 +844,38 @@ public com.google.cloud.automl.v1.BatchPredictInputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.BatchPredictInputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1.BatchPredictInputConfig) other);
+        return mergeFrom((com.google.cloud.automl.v1.BatchPredictInputConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -933,18 +883,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictInputConfig other) {
-      if (other == com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance()) return this;
       switch (other.getSourceCase()) {
-        case GCS_SOURCE:
-          {
-            mergeGcsSource(other.getGcsSource());
-            break;
-          }
-        case SOURCE_NOT_SET:
-          {
-            break;
-          }
+        case GCS_SOURCE: {
+          mergeGcsSource(other.getGcsSource());
+          break;
+        }
+        case SOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -965,8 +912,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1.BatchPredictInputConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1.BatchPredictInputConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -975,12 +921,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-
-    public SourceCase getSourceCase() {
-      return SourceCase.forNumber(sourceCase_);
+    public SourceCase
+        getSourceCase() {
+      return SourceCase.forNumber(
+          sourceCase_);
     }
 
     public Builder clearSource() {
@@ -990,22 +936,15 @@ public Builder clearSource() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.GcsSource,
-            com.google.cloud.automl.v1.GcsSource.Builder,
-            com.google.cloud.automl.v1.GcsSourceOrBuilder>
-        gcsSourceBuilder_;
+        com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> gcsSourceBuilder_;
     /**
-     *
-     *
      * 
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1013,16 +952,11 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsSource. */ @java.lang.Override @@ -1040,15 +974,11 @@ public com.google.cloud.automl.v1.GcsSource getGcsSource() { } } /** - * - * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { @@ -1064,17 +994,14 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) { return this; } /** - * - * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builderForValue) { + public Builder setGcsSource( + com.google.cloud.automl.v1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1085,25 +1012,18 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builder return this; } /** - * - * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 1 - && source_ != com.google.cloud.automl.v1.GcsSource.getDefaultInstance()) { - source_ = - com.google.cloud.automl.v1.GcsSource.newBuilder( - (com.google.cloud.automl.v1.GcsSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 1 && + source_ != com.google.cloud.automl.v1.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.automl.v1.GcsSource.newBuilder((com.google.cloud.automl.v1.GcsSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -1118,15 +1038,11 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) { return this; } /** - * - * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGcsSource() { if (gcsSourceBuilder_ == null) { @@ -1145,29 +1061,21 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.GcsSource.Builder getGcsSourceBuilder() { return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { @@ -1181,41 +1089,33 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { } } /** - * - * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsSource, - com.google.cloud.automl.v1.GcsSource.Builder, - com.google.cloud.automl.v1.GcsSourceOrBuilder> + com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.automl.v1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsSource, - com.google.cloud.automl.v1.GcsSource.Builder, - com.google.cloud.automl.v1.GcsSourceOrBuilder>( - (com.google.cloud.automl.v1.GcsSource) source_, getParentForChildren(), isClean()); + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder>( + (com.google.cloud.automl.v1.GcsSource) source_, + getParentForChildren(), + isClean()); source_ = null; } sourceCase_ = 1; - onChanged(); - ; + onChanged();; return gcsSourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1225,12 +1125,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictInputConfig) private static final com.google.cloud.automl.v1.BatchPredictInputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictInputConfig(); } @@ -1239,16 +1139,16 @@ public static com.google.cloud.automl.v1.BatchPredictInputConfig getDefaultInsta 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); - } - }; + 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; @@ -1263,4 +1163,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.BatchPredictInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfigOrBuilder.java new file mode 100644 index 000000000..3e71d6051 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfigOrBuilder.java @@ -0,0 +1,38 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/io.proto + +package com.google.cloud.automl.v1; + +public interface BatchPredictInputConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BatchPredictInputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Google Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + *
+   * Required. The Google Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The gcsSource. + */ + com.google.cloud.automl.v1.GcsSource getGcsSource(); + /** + *
+   * Required. The Google Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + public com.google.cloud.automl.v1.BatchPredictInputConfig.SourceCase getSourceCase(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java similarity index 63% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java index ea634e5c6..52cf0629f 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** - * - * *
  * Details of BatchPredict operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.BatchPredictOperationMetadata} */ -public final class BatchPredictOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchPredictOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictOperationMetadata) BatchPredictOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchPredictOperationMetadata.newBuilder() to construct. private BatchPredictOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchPredictOperationMetadata() {} + private BatchPredictOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchPredictOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchPredictOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,161 +52,135 @@ private BatchPredictOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.BatchPredictInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.automl.v1.BatchPredictInputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.automl.v1.BatchPredictInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = input.readMessage(com.google.cloud.automl.v1.BatchPredictInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .Builder - subBuilder = null; - if (outputInfo_ != null) { - subBuilder = outputInfo_.toBuilder(); - } - outputInfo_ = - input.readMessage( - com.google.cloud.automl.v1.BatchPredictOperationMetadata - .BatchPredictOutputInfo.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputInfo_); - outputInfo_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputInfo_ = input.readMessage(com.google.cloud.automl.v1.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); + 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.v1.Operations - .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.class, - com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder.class); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.class, com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder.class); } - public interface BatchPredictOutputInfoOrBuilder - extends + public interface BatchPredictOutputInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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; - * * @return Whether the gcsOutputDirectory field is set. */ boolean hasGcsOutputDirectory(); /** - * - * *
      * The full path of the Google Cloud Storage directory created, into which
      * the prediction output is written.
      * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ 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; - * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + com.google.protobuf.ByteString + getGcsOutputDirectoryBytes(); - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .OutputLocationCase - getOutputLocationCase(); + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.OutputLocationCase getOutputLocationCase(); } /** - * - * *
    * Further describes this batch predict's output.
    * Supplements
    * [BatchPredictOutputConfig][google.cloud.automl.v1.BatchPredictOutputConfig].
    * 
* - * Protobuf type {@code - * google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo} + * Protobuf type {@code google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo} */ - public static final class BatchPredictOutputInfo extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BatchPredictOutputInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) BatchPredictOutputInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchPredictOutputInfo.newBuilder() to construct. private BatchPredictOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchPredictOutputInfo() {} + private BatchPredictOutputInfo() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchPredictOutputInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchPredictOutputInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -241,59 +199,52 @@ private BatchPredictOutputInfo( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - outputLocationCase_ = 1; - outputLocation_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputLocationCase_ = 1; + 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); + 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.v1.Operations - .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.class, - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .Builder.class); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.class, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder.class); } private int outputLocationCase_ = 0; private java.lang.Object outputLocation_; - public enum OutputLocationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_OUTPUT_DIRECTORY(1), OUTPUTLOCATION_NOT_SET(0); private final int value; - private OutputLocationCase(int value) { this.value = value; } @@ -309,50 +260,42 @@ public static OutputLocationCase valueOf(int value) { public static OutputLocationCase forNumber(int value) { switch (value) { - case 1: - return GCS_OUTPUT_DIRECTORY; - case 0: - return OUTPUTLOCATION_NOT_SET; - default: - return null; + case 1: return GCS_OUTPUT_DIRECTORY; + case 0: return OUTPUTLOCATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public OutputLocationCase getOutputLocationCase() { - return OutputLocationCase.forNumber(outputLocationCase_); + 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; - * * @return Whether the gcsOutputDirectory field is set. */ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** - * - * *
      * The full path of the Google Cloud Storage directory created, into which
      * the prediction output is written.
      * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ public java.lang.String getGcsOutputDirectory() { @@ -363,7 +306,8 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -372,25 +316,24 @@ public 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; - * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -401,7 +344,6 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -413,7 +355,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputLocationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocation_); } @@ -437,20 +380,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo)) { + if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo)) { return super.equals(obj); } - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo other = - (com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) obj; + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo other = (com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) obj; if (!getOutputLocationCase().equals(other.getOutputLocationCase())) return false; switch (outputLocationCase_) { case 1: - if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; + if (!getGcsOutputDirectory() + .equals(other.getGcsOutputDirectory())) return false; break; case 0: default: @@ -479,101 +420,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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); + public static com.google.cloud.automl.v1.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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -583,54 +511,46 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Further describes this batch predict's output.
      * Supplements
      * [BatchPredictOutputConfig][google.cloud.automl.v1.BatchPredictOutputConfig].
      * 
* - * Protobuf type {@code - * google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo} + * Protobuf type {@code google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .class, - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .Builder.class); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.class, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder.class); } - // Construct using - // com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.newBuilder() + // Construct using com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -640,23 +560,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - getDefaultInstanceForType() { - return com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .getDefaultInstance(); + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getDefaultInstanceForType() { + return com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - build() { - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo result = - buildPartial(); + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo build() { + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -664,11 +580,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - buildPartial() { - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo result = - new com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo( - this); + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo buildPartial() { + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo result = new com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo(this); if (outputLocationCase_ == 1) { result.outputLocation_ = outputLocation_; } @@ -681,68 +594,56 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) { - return mergeFrom( - (com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) - other); + if (other instanceof com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) { + return mergeFrom((com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo other) { - if (other - == com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo other) { + if (other == com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance()) return this; switch (other.getOutputLocationCase()) { - case GCS_OUTPUT_DIRECTORY: - { - outputLocationCase_ = 1; - outputLocation_ = other.outputLocation_; - onChanged(); - break; - } - case OUTPUTLOCATION_NOT_SET: - { - break; - } + case GCS_OUTPUT_DIRECTORY: { + outputLocationCase_ = 1; + outputLocation_ = other.outputLocation_; + onChanged(); + break; + } + case OUTPUTLOCATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -759,14 +660,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - parsedMessage = null; + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -775,12 +673,12 @@ public Builder mergeFrom( } return this; } - private int outputLocationCase_ = 0; private java.lang.Object outputLocation_; - - public OutputLocationCase getOutputLocationCase() { - return OutputLocationCase.forNumber(outputLocationCase_); + public OutputLocationCase + getOutputLocationCase() { + return OutputLocationCase.forNumber( + outputLocationCase_); } public Builder clearOutputLocation() { @@ -790,16 +688,14 @@ public Builder clearOutputLocation() { return this; } + /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; - * * @return Whether the gcsOutputDirectory field is set. */ @java.lang.Override @@ -807,15 +703,12 @@ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -825,7 +718,8 @@ public java.lang.String getGcsOutputDirectory() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -836,26 +730,25 @@ public 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; - * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -865,37 +758,32 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; - * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory(java.lang.String value) { + public Builder setGcsOutputDirectory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 1; + 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; - * * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { @@ -907,29 +795,26 @@ public Builder clearGcsOutputDirectory() { return this; } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; - * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputLocationCase_ = 1; outputLocation_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -942,34 +827,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) - private static final com.google.cloud.automl.v1.BatchPredictOperationMetadata - .BatchPredictOutputInfo - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo(); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -981,24 +862,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.BatchPredictInputConfig inputConfig_; /** - * - * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1006,26 +884,19 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
@@ -1039,19 +910,13 @@ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfi
   }
 
   public static final int OUTPUT_INFO_FIELD_NUMBER = 2;
-  private com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo
-      outputInfo_;
+  private com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo outputInfo_;
   /**
-   *
-   *
    * 
    * Output only. Information further describing this batch predict's output.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -1059,45 +924,30 @@ public boolean hasOutputInfo() { return outputInfo_ != null; } /** - * - * *
    * Output only. Information further describing this batch predict's output.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - getOutputInfo() { - return outputInfo_ == null - ? com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .getDefaultInstance() - : outputInfo_; + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getOutputInfo() { + return outputInfo_ == null ? com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance() : outputInfo_; } /** - * - * *
    * Output only. Information further describing this batch predict's output.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder - getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder getOutputInfoOrBuilder() { return getOutputInfo(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1109,7 +959,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -1126,10 +977,12 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1139,21 +992,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.BatchPredictOperationMetadata other = - (com.google.cloud.automl.v1.BatchPredictOperationMetadata) obj; + com.google.cloud.automl.v1.BatchPredictOperationMetadata other = (com.google.cloud.automl.v1.BatchPredictOperationMetadata) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (hasOutputInfo() != other.hasOutputInfo()) return false; if (hasOutputInfo()) { - if (!getOutputInfo().equals(other.getOutputInfo())) return false; + if (!getOutputInfo() + .equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1180,127 +1034,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.BatchPredictOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.BatchPredictOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.BatchPredictOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.BatchPredictOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictOperationMetadata) com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.class, - com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder.class); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.class, com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.BatchPredictOperationMetadata.newBuilder() @@ -1308,15 +1152,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1336,9 +1181,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; } @java.lang.Override @@ -1357,8 +1202,7 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.BatchPredictOperationMetadata buildPartial() { - com.google.cloud.automl.v1.BatchPredictOperationMetadata result = - new com.google.cloud.automl.v1.BatchPredictOperationMetadata(this); + com.google.cloud.automl.v1.BatchPredictOperationMetadata result = new com.google.cloud.automl.v1.BatchPredictOperationMetadata(this); if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; } else { @@ -1377,39 +1221,38 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.BatchPredictOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.BatchPredictOperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.BatchPredictOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1417,8 +1260,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictOperationMetadata other) { - if (other == com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance()) return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -1444,8 +1286,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.BatchPredictOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.BatchPredictOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1457,49 +1298,36 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.BatchPredictInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictInputConfig, - com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, - com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Output only. The input config that was given upon starting this
      * batch predict operation.
      * 
* * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ 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.v1.BatchPredictInputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1521,8 +1349,6 @@ public Builder setInputConfig(com.google.cloud.automl.v1.BatchPredictInputConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1542,8 +1368,6 @@ public Builder setInputConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1555,9 +1379,7 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.BatchPredictInputConf
       if (inputConfigBuilder_ == null) {
         if (inputConfig_ != null) {
           inputConfig_ =
-              com.google.cloud.automl.v1.BatchPredictInputConfig.newBuilder(inputConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.automl.v1.BatchPredictInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial();
         } else {
           inputConfig_ = value;
         }
@@ -1569,8 +1391,6 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.BatchPredictInputConf
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1590,8 +1410,6 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1600,13 +1418,11 @@ public Builder clearInputConfig() {
      * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1;
      */
     public com.google.cloud.automl.v1.BatchPredictInputConfig.Builder getInputConfigBuilder() {
-
+      
       onChanged();
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1618,14 +1434,11 @@ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfi
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null
-            ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance()
-            : inputConfig_;
+        return inputConfig_ == null ?
+            com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1634,83 +1447,56 @@ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfi
      * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.BatchPredictInputConfig,
-            com.google.cloud.automl.v1.BatchPredictInputConfig.Builder,
-            com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder>
+        com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> 
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.automl.v1.BatchPredictInputConfig,
-                com.google.cloud.automl.v1.BatchPredictInputConfig.Builder,
-                com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder>(
-                getInputConfig(), getParentForChildren(), isClean());
+        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder>(
+                getInputConfig(),
+                getParentForChildren(),
+                isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo
-        outputInfo_;
+    private com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo outputInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo,
-            com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder,
-            com.google.cloud.automl.v1.BatchPredictOperationMetadata
-                .BatchPredictOutputInfoOrBuilder>
-        outputInfoBuilder_;
+        com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder> outputInfoBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { return outputInfoBuilder_ != null || outputInfo_ != null; } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return The outputInfo. */ - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - getOutputInfo() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null - ? com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .getDefaultInstance() - : outputInfo_; + return outputInfo_ == null ? com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance() : outputInfo_; } else { return outputInfoBuilder_.getMessage(); } } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ - public Builder setOutputInfo( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { + public Builder setOutputInfo(com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1724,19 +1510,14 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ public Builder setOutputInfo( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder - builderForValue) { + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1747,25 +1528,17 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ - public Builder mergeOutputInfo( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { + public Builder mergeOutputInfo(com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { if (outputInfoBuilder_ == null) { if (outputInfo_ != null) { outputInfo_ = - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .newBuilder(outputInfo_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); } else { outputInfo_ = value; } @@ -1777,15 +1550,11 @@ public Builder mergeOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1799,77 +1568,55 @@ public Builder clearOutputInfo() { return this; } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder - getOutputInfoBuilder() { - + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder getOutputInfoBuilder() { + onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder - getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder getOutputInfoOrBuilder() { if (outputInfoBuilder_ != null) { return outputInfoBuilder_.getMessageOrBuilder(); } else { - return outputInfo_ == null - ? com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .getDefaultInstance() - : outputInfo_; + return outputInfo_ == null ? + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance() : outputInfo_; } } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder, - com.google.cloud.automl.v1.BatchPredictOperationMetadata - .BatchPredictOutputInfoOrBuilder> + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder> getOutputInfoFieldBuilder() { if (outputInfoBuilder_ == null) { - outputInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .Builder, - com.google.cloud.automl.v1.BatchPredictOperationMetadata - .BatchPredictOutputInfoOrBuilder>( - getOutputInfo(), getParentForChildren(), isClean()); + outputInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder>( + getOutputInfo(), + getParentForChildren(), + isClean()); outputInfo_ = null; } return outputInfoBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1879,12 +1626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictOperationMetadata) private static final com.google.cloud.automl.v1.BatchPredictOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictOperationMetadata(); } @@ -1893,16 +1640,16 @@ public static com.google.cloud.automl.v1.BatchPredictOperationMetadata getDefaul 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); - } - }; + 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; @@ -1917,4 +1664,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.automl.v1.BatchPredictOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java similarity index 61% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java index f3f8822f1..2732f4722 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; -public interface BatchPredictOperationMetadataOrBuilder - extends +public interface BatchPredictOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BatchPredictOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig(); /** - * - * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
@@ -62,44 +38,29 @@ public interface BatchPredictOperationMetadataOrBuilder
   com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. Information further describing this batch predict's output.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ boolean hasOutputInfo(); /** - * - * *
    * Output only. Information further describing this batch predict's output.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return The outputInfo. */ com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getOutputInfo(); /** - * - * *
    * Output only. Information further describing this batch predict's output.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder - getOutputInfoOrBuilder(); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder getOutputInfoOrBuilder(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java similarity index 83% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java index 2dedd3620..c36ed7e35 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; /** - * - * *
  * Output configuration for BatchPredict Action.
  * As destination the
@@ -267,29 +250,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.BatchPredictOutputConfig}
  */
-public final class BatchPredictOutputConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchPredictOutputConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictOutputConfig)
     BatchPredictOutputConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchPredictOutputConfig.newBuilder() to construct.
   private BatchPredictOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchPredictOutputConfig() {}
+  private BatchPredictOutputConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchPredictOutputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchPredictOutputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -308,67 +292,60 @@ private BatchPredictOutputConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null;
-              if (destinationCase_ == 1) {
-                subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder();
-              }
-              destination_ =
-                  input.readMessage(
-                      com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_);
-                destination_ = subBuilder.buildPartial();
-              }
-              destinationCase_ = 1;
-              break;
+          case 10: {
+            com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null;
+            if (destinationCase_ == 1) {
+              subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            destination_ =
+                input.readMessage(com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_);
+              destination_ = subBuilder.buildPartial();
             }
+            destinationCase_ = 1;
+            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);
+      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.v1.Io
-        .internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Io
-        .internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable
+    return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.BatchPredictOutputConfig.class,
-            com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder.class);
+            com.google.cloud.automl.v1.BatchPredictOutputConfig.class, com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder.class);
   }
 
   private int destinationCase_ = 0;
   private java.lang.Object destination_;
-
   public enum DestinationCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_DESTINATION(1),
     DESTINATION_NOT_SET(0);
     private final int value;
-
     private DestinationCase(int value) {
       this.value = value;
     }
@@ -384,37 +361,30 @@ public static DestinationCase valueOf(int value) {
 
     public static DestinationCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return GCS_DESTINATION;
-        case 0:
-          return DESTINATION_NOT_SET;
-        default:
-          return null;
+        case 1: return GCS_DESTINATION;
+        case 0: return DESTINATION_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DestinationCase getDestinationCase() {
-    return DestinationCase.forNumber(destinationCase_);
+  public DestinationCase
+  getDestinationCase() {
+    return DestinationCase.forNumber(
+        destinationCase_);
   }
 
   public static final int GCS_DESTINATION_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -422,48 +392,38 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -475,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1.GcsDestination) destination_); } @@ -489,9 +450,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.automl.v1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.automl.v1.GcsDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -501,18 +461,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictOutputConfig)) { return super.equals(obj); } - com.google.cloud.automl.v1.BatchPredictOutputConfig other = - (com.google.cloud.automl.v1.BatchPredictOutputConfig) obj; + com.google.cloud.automl.v1.BatchPredictOutputConfig other = (com.google.cloud.automl.v1.BatchPredictOutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -542,103 +502,96 @@ public int hashCode() { } public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.BatchPredictOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.BatchPredictOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output configuration for BatchPredict Action.
    * As destination the
@@ -885,23 +838,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.BatchPredictOutputConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictOutputConfig)
       com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.BatchPredictOutputConfig.class,
-              com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder.class);
+              com.google.cloud.automl.v1.BatchPredictOutputConfig.class, com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.BatchPredictOutputConfig.newBuilder()
@@ -909,15 +860,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -927,9 +879,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -948,8 +900,7 @@ public com.google.cloud.automl.v1.BatchPredictOutputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.BatchPredictOutputConfig buildPartial() {
-      com.google.cloud.automl.v1.BatchPredictOutputConfig result =
-          new com.google.cloud.automl.v1.BatchPredictOutputConfig(this);
+      com.google.cloud.automl.v1.BatchPredictOutputConfig result = new com.google.cloud.automl.v1.BatchPredictOutputConfig(this);
       if (destinationCase_ == 1) {
         if (gcsDestinationBuilder_ == null) {
           result.destination_ = destination_;
@@ -966,39 +917,38 @@ public com.google.cloud.automl.v1.BatchPredictOutputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.BatchPredictOutputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1.BatchPredictOutputConfig) other);
+        return mergeFrom((com.google.cloud.automl.v1.BatchPredictOutputConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1006,18 +956,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictOutputConfig other) {
-      if (other == com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance()) return this;
       switch (other.getDestinationCase()) {
-        case GCS_DESTINATION:
-          {
-            mergeGcsDestination(other.getGcsDestination());
-            break;
-          }
-        case DESTINATION_NOT_SET:
-          {
-            break;
-          }
+        case GCS_DESTINATION: {
+          mergeGcsDestination(other.getGcsDestination());
+          break;
+        }
+        case DESTINATION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1038,8 +985,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1.BatchPredictOutputConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1.BatchPredictOutputConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1048,12 +994,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-
-    public DestinationCase getDestinationCase() {
-      return DestinationCase.forNumber(destinationCase_);
+    public DestinationCase
+        getDestinationCase() {
+      return DestinationCase.forNumber(
+          destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -1063,23 +1009,16 @@ public Builder clearDestination() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.GcsDestination,
-            com.google.cloud.automl.v1.GcsDestination.Builder,
-            com.google.cloud.automl.v1.GcsDestinationOrBuilder>
-        gcsDestinationBuilder_;
+        com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_;
     /**
-     *
-     *
      * 
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -1087,17 +1026,12 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsDestination. */ @java.lang.Override @@ -1115,16 +1049,12 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -1140,16 +1070,12 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value return this; } /** - * - * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGcsDestination( com.google.cloud.automl.v1.GcsDestination.Builder builderForValue) { @@ -1163,26 +1089,19 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.automl.v1.GcsDestination.newBuilder( - (com.google.cloud.automl.v1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.automl.v1.GcsDestination.newBuilder((com.google.cloud.automl.v1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1197,16 +1116,12 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val return this; } /** - * - * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1225,31 +1140,23 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1263,44 +1170,34 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui } } /** - * - * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, - com.google.cloud.automl.v1.GcsDestination.Builder, - com.google.cloud.automl.v1.GcsDestinationOrBuilder> + com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, - com.google.cloud.automl.v1.GcsDestination.Builder, - com.google.cloud.automl.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder>( (com.google.cloud.automl.v1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1310,12 +1207,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictOutputConfig) private static final com.google.cloud.automl.v1.BatchPredictOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictOutputConfig(); } @@ -1324,16 +1221,16 @@ public static com.google.cloud.automl.v1.BatchPredictOutputConfig getDefaultInst 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); - } - }; + 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; @@ -1348,4 +1245,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.BatchPredictOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java similarity index 50% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java index f93c0054b..b429849fa 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java @@ -1,69 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; -public interface BatchPredictOutputConfigOrBuilder - extends +public interface BatchPredictOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BatchPredictOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsDestination. */ com.google.cloud.automl.v1.GcsDestination getGcsDestination(); /** - * - * *
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java similarity index 77% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java index 8b373be87..f8a769aa8 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/prediction_service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [PredictionService.BatchPredict][google.cloud.automl.v1.PredictionService.BatchPredict].
  * 
* * Protobuf type {@code google.cloud.automl.v1.BatchPredictRequest} */ -public final class BatchPredictRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchPredictRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictRequest) BatchPredictRequestOrBuilder { - private static final long serialVersionUID = 0L; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchPredictRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchPredictRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,118 +54,103 @@ private BatchPredictRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 26: { + com.google.cloud.automl.v1.BatchPredictInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.automl.v1.BatchPredictInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.automl.v1.BatchPredictInputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.automl.v1.BatchPredictInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.automl.v1.BatchPredictOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 34: { + com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = - com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put(params__.getKey(), params__.getValue()); - break; + outputConfig_ = input.readMessage(com.google.cloud.automl.v1.BatchPredictOutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } + 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); + 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.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_BatchPredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictRequest.class, - com.google.cloud.automl.v1.BatchPredictRequest.Builder.class); + com.google.cloud.automl.v1.BatchPredictRequest.class, com.google.cloud.automl.v1.BatchPredictRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -191,31 +159,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -226,16 +192,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1.BatchPredictInputConfig inputConfig_; /** - * - * *
    * Required. The input configuration for batch prediction.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -243,34 +204,23 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. The input configuration for batch prediction.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. The input configuration for batch prediction.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder() { @@ -280,17 +230,12 @@ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfi public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.automl.v1.BatchPredictOutputConfig outputConfig_; /** - * - * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -298,36 +243,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -335,23 +269,24 @@ public com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder getOutputCon } 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.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_BatchPredictRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_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() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -360,8 +295,6 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -432,22 +365,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 5;
    */
+
   @java.lang.Override
-  public boolean containsParams(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsParams(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetParams().getMap().containsKey(key);
   }
-  /** Use {@link #getParamsMap()} instead. */
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Override
   @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.
@@ -519,12 +452,11 @@ public java.util.Map getParams() {
    * map<string, string> params = 5;
    */
   @java.lang.Override
+
   public java.util.Map getParamsMap() {
     return internalGetParams().getMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -596,16 +528,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 5;
    */
   @java.lang.Override
-  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();
+
+  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.
@@ -677,11 +609,12 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> params = 5;
    */
   @java.lang.Override
-  public java.lang.String getParamsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetParams().getMap();
+
+  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();
     }
@@ -689,7 +622,6 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -701,7 +633,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -711,8 +644,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (outputConfig_ != null) {
       output.writeMessage(4, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 5);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        5);
     unknownFields.writeTo(output);
   }
 
@@ -726,20 +663,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (inputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig());
+      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 += 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;
@@ -749,24 +688,27 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.BatchPredictRequest other =
-        (com.google.cloud.automl.v1.BatchPredictRequest) obj;
+    com.google.cloud.automl.v1.BatchPredictRequest other = (com.google.cloud.automl.v1.BatchPredictRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasInputConfig() != other.hasInputConfig()) return false;
     if (hasInputConfig()) {
-      if (!getInputConfig().equals(other.getInputConfig())) return false;
+      if (!getInputConfig()
+          .equals(other.getInputConfig())) return false;
     }
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig()
+          .equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetParams().equals(other.internalGetParams())) return false;
+    if (!internalGetParams().equals(
+        other.internalGetParams())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -797,147 +739,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.BatchPredictRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.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.v1.BatchPredictRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.automl.v1.BatchPredictRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.automl.v1.BatchPredictRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for [PredictionService.BatchPredict][google.cloud.automl.v1.PredictionService.BatchPredict].
    * 
* * Protobuf type {@code google.cloud.automl.v1.BatchPredictRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictRequest) com.google.cloud.automl.v1.BatchPredictRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_BatchPredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictRequest.class, - com.google.cloud.automl.v1.BatchPredictRequest.Builder.class); + com.google.cloud.automl.v1.BatchPredictRequest.class, com.google.cloud.automl.v1.BatchPredictRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.BatchPredictRequest.newBuilder() @@ -945,15 +880,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -976,9 +912,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; } @java.lang.Override @@ -997,8 +933,7 @@ public com.google.cloud.automl.v1.BatchPredictRequest build() { @java.lang.Override public com.google.cloud.automl.v1.BatchPredictRequest buildPartial() { - com.google.cloud.automl.v1.BatchPredictRequest result = - new com.google.cloud.automl.v1.BatchPredictRequest(this); + com.google.cloud.automl.v1.BatchPredictRequest result = new com.google.cloud.automl.v1.BatchPredictRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (inputConfigBuilder_ == null) { @@ -1021,39 +956,38 @@ public com.google.cloud.automl.v1.BatchPredictRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.BatchPredictRequest) { - return mergeFrom((com.google.cloud.automl.v1.BatchPredictRequest) other); + return mergeFrom((com.google.cloud.automl.v1.BatchPredictRequest)other); } else { super.mergeFrom(other); return this; @@ -1072,7 +1006,8 @@ public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictRequest other) { if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableParams().mergeFrom(other.internalGetParams()); + internalGetMutableParams().mergeFrom( + other.internalGetParams()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1101,27 +1036,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1130,23 +1060,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1154,67 +1081,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1222,58 +1136,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1.BatchPredictInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictInputConfig, - com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, - com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.automl.v1.BatchPredictInputConfig value) { if (inputConfigBuilder_ == null) { @@ -1289,15 +1184,11 @@ public Builder setInputConfig(com.google.cloud.automl.v1.BatchPredictInputConfig return this; } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.automl.v1.BatchPredictInputConfig.Builder builderForValue) { @@ -1311,23 +1202,17 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInputConfig(com.google.cloud.automl.v1.BatchPredictInputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.automl.v1.BatchPredictInputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.BatchPredictInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -1339,15 +1224,11 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.BatchPredictInputConf return this; } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -1361,64 +1242,48 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.BatchPredictInputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictInputConfig, - com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, - com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> + com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictInputConfig, - com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, - com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -1426,61 +1291,42 @@ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfi private com.google.cloud.automl.v1.BatchPredictOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOutputConfig, - com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, - com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.automl.v1.BatchPredictOutputConfig, com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.automl.v1.BatchPredictOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.automl.v1.BatchPredictOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1496,16 +1342,12 @@ public Builder setOutputConfig(com.google.cloud.automl.v1.BatchPredictOutputConf return this; } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder builderForValue) { @@ -1519,24 +1361,18 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.automl.v1.BatchPredictOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.automl.v1.BatchPredictOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.BatchPredictOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1548,16 +1384,12 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1.BatchPredictOutputCo return this; } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1571,87 +1403,72 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOutputConfig, - com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, - com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder> + com.google.cloud.automl.v1.BatchPredictOutputConfig, com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOutputConfig, - com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, - com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.BatchPredictOutputConfig, com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField params_; - - private com.google.protobuf.MapField internalGetParams() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } - private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged(); - ; + internalGetMutableParams() { + onChanged();; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1663,8 +1480,6 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
      * Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1735,22 +1550,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 5;
      */
+
     @java.lang.Override
-    public boolean containsParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsParams(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetParams().getMap().containsKey(key);
     }
-    /** Use {@link #getParamsMap()} instead. */
+    /**
+     * Use {@link #getParamsMap()} instead.
+     */
     @java.lang.Override
     @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.
@@ -1822,12 +1637,11 @@ public java.util.Map getParams() {
      * map<string, string> params = 5;
      */
     @java.lang.Override
+
     public java.util.Map getParamsMap() {
       return internalGetParams().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1899,17 +1713,16 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 5;
      */
     @java.lang.Override
+
     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();
+        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.
@@ -1981,11 +1794,12 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 5;
      */
     @java.lang.Override
-    public java.lang.String getParamsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetParams().getMap();
+
+    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();
       }
@@ -1993,12 +1807,11 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap().clear();
+      internalGetMutableParams().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -2069,21 +1882,23 @@ public Builder clearParams() {
      *
      * map<string, string> params = 5;
      */
-    public Builder removeParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableParams().getMutableMap().remove(key);
+
+    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. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableParams() {
+    public java.util.Map
+    getMutableParams() {
       return internalGetMutableParams().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -2154,19 +1969,16 @@ public java.util.Map getMutableParams() {
      *
      * 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);
+    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.
@@ -2237,13 +2049,16 @@ public Builder putParams(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> params = 5;
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+
+    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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2253,12 +2068,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictRequest)
   private static final com.google.cloud.automl.v1.BatchPredictRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictRequest();
   }
@@ -2267,16 +2082,16 @@ public static com.google.cloud.automl.v1.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);
-        }
-      };
+  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;
@@ -2291,4 +2106,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.BatchPredictRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java
similarity index 89%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java
index 41e20d029..d0485b710 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java
@@ -1,145 +1,90 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
-public interface BatchPredictRequestOrBuilder
-    extends
+public interface BatchPredictRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BatchPredictRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The input configuration for batch prediction.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. The input configuration for batch prediction.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig(); /** - * - * *
    * Required. The input configuration for batch prediction.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.automl.v1.BatchPredictOutputConfig getOutputConfig(); /** - * - * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -212,8 +157,6 @@ public interface BatchPredictRequestOrBuilder
    */
   int getParamsCount();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -284,13 +227,15 @@ public interface BatchPredictRequestOrBuilder
    *
    * map<string, string> params = 5;
    */
-  boolean containsParams(java.lang.String key);
-  /** Use {@link #getParamsMap()} instead. */
+  boolean containsParams(
+      java.lang.String key);
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getParams();
+  java.util.Map
+  getParams();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -361,10 +306,9 @@ public interface BatchPredictRequestOrBuilder
    *
    * map<string, string> params = 5;
    */
-  java.util.Map getParamsMap();
+  java.util.Map
+  getParamsMap();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -435,10 +379,11 @@ public interface BatchPredictRequestOrBuilder
    *
    * map<string, string> params = 5;
    */
-  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  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.
@@ -509,5 +454,7 @@ public interface BatchPredictRequestOrBuilder
    *
    * map<string, string> params = 5;
    */
-  java.lang.String getParamsOrThrow(java.lang.String key);
+
+  java.lang.String getParamsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java
similarity index 65%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java
index dbb32814d..1d3bdb266 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
 /**
- *
- *
  * 
  * Result of the Batch Predict. This message is returned in
  * [response][google.longrunning.Operation.response] of the operation returned
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.BatchPredictResult}
  */
-public final class BatchPredictResult extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchPredictResult extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictResult)
     BatchPredictResultOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchPredictResult.newBuilder() to construct.
   private BatchPredictResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchPredictResult() {}
+  private BatchPredictResult() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchPredictResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchPredictResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,84 +55,82 @@ private BatchPredictResult(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                metadata_ =
-                    com.google.protobuf.MapField.newMapField(
-                        MetadataDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry metadata__ =
-                  input.readMessage(
-                      MetadataDefaultEntryHolder.defaultEntry.getParserForType(),
-                      extensionRegistry);
-              metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue());
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              metadata_ = com.google.protobuf.MapField.newMapField(
+                  MetadataDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            metadata__ = input.readMessage(
+                MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            metadata_.getMutableMap().put(
+                metadata__.getKey(), metadata__.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);
+      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.v1.PredictionServiceProto
-        .internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 1:
         return internalGetMetadata();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.PredictionServiceProto
-        .internal_static_google_cloud_automl_v1_BatchPredictResult_fieldAccessorTable
+    return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.BatchPredictResult.class,
-            com.google.cloud.automl.v1.BatchPredictResult.Builder.class);
+            com.google.cloud.automl.v1.BatchPredictResult.class, com.google.cloud.automl.v1.BatchPredictResult.Builder.class);
   }
 
   public static final int METADATA_FIELD_NUMBER = 1;
-
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.automl.v1.PredictionServiceProto
-                .internal_static_google_cloud_automl_v1_BatchPredictResult_MetadataEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
-  }
-
-  private com.google.protobuf.MapField metadata_;
-
-  private com.google.protobuf.MapField internalGetMetadata() {
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_MetadataEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
+  }
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> metadata_;
+  private com.google.protobuf.MapField
+  internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
@@ -157,8 +139,6 @@ public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -171,22 +151,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 1;
    */
+
   @java.lang.Override
-  public boolean containsMetadata(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsMetadata(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /** Use {@link #getMetadataMap()} instead. */
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -200,12 +180,11 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
+
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -219,17 +198,16 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
+
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -243,11 +221,12 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
-  public java.lang.String getMetadataOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+
+  public java.lang.String getMetadataOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -255,7 +234,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -267,9 +245,14 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetMetadata(),
+        MetadataDefaultEntryHolder.defaultEntry,
+        1);
     unknownFields.writeTo(output);
   }
 
@@ -279,15 +262,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry metadata__ =
-          MetadataDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metadata__);
+    for (java.util.Map.Entry entry
+         : internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, metadata__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -297,15 +280,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictResult)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.BatchPredictResult other =
-        (com.google.cloud.automl.v1.BatchPredictResult) obj;
+    com.google.cloud.automl.v1.BatchPredictResult other = (com.google.cloud.automl.v1.BatchPredictResult) obj;
 
-    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
+    if (!internalGetMetadata().equals(
+        other.internalGetMetadata())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -326,104 +309,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.BatchPredictResult parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.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.v1.BatchPredictResult parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.automl.v1.BatchPredictResult parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.automl.v1.BatchPredictResult parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictResult parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictResult prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Result of the Batch Predict. This message is returned in
    * [response][google.longrunning.Operation.response] of the operation returned
@@ -432,43 +408,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.BatchPredictResult}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictResult)
       com.google.cloud.automl.v1.BatchPredictResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.PredictionServiceProto
-          .internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMutableMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.PredictionServiceProto
-          .internal_static_google_cloud_automl_v1_BatchPredictResult_fieldAccessorTable
+      return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.BatchPredictResult.class,
-              com.google.cloud.automl.v1.BatchPredictResult.Builder.class);
+              com.google.cloud.automl.v1.BatchPredictResult.class, com.google.cloud.automl.v1.BatchPredictResult.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.BatchPredictResult.newBuilder()
@@ -476,15 +452,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -493,9 +470,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.PredictionServiceProto
-          .internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
     }
 
     @java.lang.Override
@@ -514,8 +491,7 @@ public com.google.cloud.automl.v1.BatchPredictResult build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.BatchPredictResult buildPartial() {
-      com.google.cloud.automl.v1.BatchPredictResult result =
-          new com.google.cloud.automl.v1.BatchPredictResult(this);
+      com.google.cloud.automl.v1.BatchPredictResult result = new com.google.cloud.automl.v1.BatchPredictResult(this);
       int from_bitField0_ = bitField0_;
       result.metadata_ = internalGetMetadata();
       result.metadata_.makeImmutable();
@@ -527,39 +503,38 @@ public com.google.cloud.automl.v1.BatchPredictResult buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.BatchPredictResult) {
-        return mergeFrom((com.google.cloud.automl.v1.BatchPredictResult) other);
+        return mergeFrom((com.google.cloud.automl.v1.BatchPredictResult)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -568,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictResult other) {
       if (other == com.google.cloud.automl.v1.BatchPredictResult.getDefaultInstance()) return this;
-      internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
+      internalGetMutableMetadata().mergeFrom(
+          other.internalGetMetadata());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -597,25 +573,24 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.MapField metadata_;
-
-    private com.google.protobuf.MapField internalGetMetadata() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> metadata_;
+    private com.google.protobuf.MapField
+    internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableMetadata() {
-      onChanged();
-      ;
+    internalGetMutableMetadata() {
+      onChanged();;
       if (metadata_ == null) {
-        metadata_ =
-            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ = com.google.protobuf.MapField.newMapField(
+            MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -627,8 +602,6 @@ public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -641,22 +614,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 1;
      */
+
     @java.lang.Override
-    public boolean containsMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /** Use {@link #getMetadataMap()} instead. */
+    /**
+     * Use {@link #getMetadataMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -670,12 +643,11 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
+
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -689,17 +661,16 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
+
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -713,11 +684,12 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
-    public java.lang.String getMetadataOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+
+    public java.lang.String getMetadataOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -725,12 +697,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap().clear();
+      internalGetMutableMetadata().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -743,21 +714,23 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 1;
      */
-    public Builder removeMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().remove(key);
+
+    public Builder removeMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMetadata() {
+    public java.util.Map
+    getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -770,19 +743,16 @@ public java.util.Map getMutableMetadata() {
      *
      * map<string, string> metadata = 1;
      */
-    public Builder putMetadata(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().put(key, value);
+    public Builder putMetadata(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -795,13 +765,16 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> metadata = 1;
      */
-    public Builder putAllMetadata(java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap().putAll(values);
+
+    public Builder putAllMetadata(
+        java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -811,12 +784,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictResult)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictResult)
   private static final com.google.cloud.automl.v1.BatchPredictResult DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictResult();
   }
@@ -825,16 +798,16 @@ public static com.google.cloud.automl.v1.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);
-        }
-      };
+  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;
@@ -849,4 +822,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.BatchPredictResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java
similarity index 70%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java
index fe4dcb37e..0d829ea0b 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
-public interface BatchPredictResultOrBuilder
-    extends
+public interface BatchPredictResultOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BatchPredictResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -40,8 +22,6 @@ public interface BatchPredictResultOrBuilder
    */
   int getMetadataCount();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -54,13 +34,15 @@ public interface BatchPredictResultOrBuilder
    *
    * map<string, string> metadata = 1;
    */
-  boolean containsMetadata(java.lang.String key);
-  /** Use {@link #getMetadataMap()} instead. */
+  boolean containsMetadata(
+      java.lang.String key);
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMetadata();
+  java.util.Map
+  getMetadata();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -73,10 +55,9 @@ public interface BatchPredictResultOrBuilder
    *
    * map<string, string> metadata = 1;
    */
-  java.util.Map getMetadataMap();
+  java.util.Map
+  getMetadataMap();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -89,10 +70,11 @@ public interface BatchPredictResultOrBuilder
    *
    * map<string, string> metadata = 1;
    */
-  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getMetadataOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -105,5 +87,7 @@ public interface BatchPredictResultOrBuilder
    *
    * map<string, string> metadata = 1;
    */
-  java.lang.String getMetadataOrThrow(java.lang.String key);
+
+  java.lang.String getMetadataOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java
similarity index 65%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java
index 91d10f159..d3be91aef 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/detection.proto
 
 package com.google.cloud.automl.v1;
 
 /**
- *
- *
  * 
  * Bounding box matching model metrics for a single intersection-over-union
  * threshold and multiple label match confidence thresholds.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry}
  */
-public final class BoundingBoxMetricsEntry extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BoundingBoxMetricsEntry extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry)
     BoundingBoxMetricsEntryOrBuilder {
-  private static final long serialVersionUID = 0L;
+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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BoundingBoxMetricsEntry();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BoundingBoxMetricsEntry(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,159 +55,135 @@ private BoundingBoxMetricsEntry(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              iouThreshold_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              meanAveragePrecision_ = input.readFloat();
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                confidenceMetricsEntries_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.automl.v1.BoundingBoxMetricsEntry
-                            .ConfidenceMetricsEntry>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              confidenceMetricsEntries_.add(
-                  input.readMessage(
-                      com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
-                          .parser(),
-                      extensionRegistry));
-              break;
+          case 13: {
+
+            iouThreshold_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            meanAveragePrecision_ = input.readFloat();
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              confidenceMetricsEntries_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            confidenceMetricsEntries_.add(
+                input.readMessage(com.google.cloud.automl.v1.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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        confidenceMetricsEntries_ =
-            java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
+        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.v1.Detection
-        .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Detection
-        .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable
+    return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.class,
-            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder.class);
+            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder.class);
   }
 
-  public interface ConfidenceMetricsEntryOrBuilder
-      extends
+  public interface ConfidenceMetricsEntryOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Output only. The confidence threshold value used to compute the metrics.
      * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** - * - * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 2; - * * @return The recall. */ float getRecall(); /** - * - * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 3; - * * @return The precision. */ float getPrecision(); /** - * - * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 4; - * * @return The f1Score. */ float getF1Score(); } /** - * - * *
    * Metrics for a single confidence threshold.
    * 
* * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConfidenceMetricsEntry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) ConfidenceMetricsEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConfidenceMetricsEntry() {} + private ConfidenceMetricsEntry() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -243,72 +202,66 @@ private ConfidenceMetricsEntry( 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; + 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); + 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.v1.Detection - .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Detection - .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder - .class); + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.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; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -319,14 +272,11 @@ public float getConfidenceThreshold() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** - * - * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -337,14 +287,11 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** - * - * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 3; - * * @return The precision. */ @java.lang.Override @@ -355,14 +302,11 @@ public float getPrecision() { 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; - * * @return The f1Score. */ @java.lang.Override @@ -371,7 +315,6 @@ public float getF1Score() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,7 +326,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -406,16 +350,20 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, f1Score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -425,23 +373,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)) { + if (!(obj instanceof com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)) { return super.equals(obj); } - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other = - (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) obj; + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) - != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidenceThreshold())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits(other.getRecall())) return false; + != java.lang.Float.floatToIntBits( + other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + != java.lang.Float.floatToIntBits( + other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + != java.lang.Float.floatToIntBits( + other.getF1Score())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -454,113 +404,104 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidenceThreshold()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPrecision()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getF1Score()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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); + public static com.google.cloud.automl.v1.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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -570,50 +511,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metrics for a single confidence threshold.
      * 
* * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Detection - .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Detection - .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder - .class); + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder.class); } - // Construct using - // com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.newBuilder() + // Construct using com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -629,22 +564,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Detection - .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getDefaultInstanceForType() { - return com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - .getDefaultInstance(); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstanceForType() { + return com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry build() { - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = - buildPartial(); + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -652,10 +584,8 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry } @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - buildPartial() { - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = - new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(this); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry buildPartial() { + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(this); result.confidenceThreshold_ = confidenceThreshold_; result.recall_ = recall_; result.precision_ = precision_; @@ -668,54 +598,46 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) { - return mergeFrom( - (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) other); + if (other instanceof com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) { + return mergeFrom((com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other) { - if (other - == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other) { + if (other == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.getDefaultInstance()) return this; if (other.getConfidenceThreshold() != 0F) { setConfidenceThreshold(other.getConfidenceThreshold()); } @@ -743,14 +665,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parsedMessage = - null; + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -760,16 +679,13 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_; + private float confidenceThreshold_ ; /** - * - * *
        * Output only. The confidence threshold value used to compute the metrics.
        * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -777,51 +693,42 @@ public float getConfidenceThreshold() { return confidenceThreshold_; } /** - * - * *
        * Output only. The confidence threshold value used to compute the metrics.
        * 
* * float confidence_threshold = 1; - * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private float recall_; + private float recall_ ; /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -829,51 +736,42 @@ public float getRecall() { return recall_; } /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; - * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; - * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_; + private float precision_ ; /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; - * * @return The precision. */ @java.lang.Override @@ -881,51 +779,42 @@ public float getPrecision() { return precision_; } /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; - * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float f1Score_; + private float f1Score_ ; /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @return The f1Score. */ @java.lang.Override @@ -933,41 +822,34 @@ public float getF1Score() { return f1Score_; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -980,33 +862,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) - private static final com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -1018,24 +897,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } 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; - * * @return The iouThreshold. */ @java.lang.Override @@ -1046,14 +922,11 @@ public float getIouThreshold() { 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; - * * @return The meanAveragePrecision. */ @java.lang.Override @@ -1062,102 +935,76 @@ public float getMeanAveragePrecision() { } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 3; - private java.util.List - confidenceMetricsEntries_; + private java.util.List 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public java.util.List - getConfidenceMetricsEntriesList() { + public java.util.List 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> + public java.util.List 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index) { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index) { return confidenceMetricsEntries_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1169,7 +1016,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (iouThreshold_ != 0F) { output.writeFloat(1, iouThreshold_); } @@ -1189,15 +1037,16 @@ public int getSerializedSize() { size = 0; if (iouThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, iouThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, iouThreshold_); } if (meanAveragePrecision_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, meanAveragePrecision_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, confidenceMetricsEntries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1207,20 +1056,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.BoundingBoxMetricsEntry)) { return super.equals(obj); } - com.google.cloud.automl.v1.BoundingBoxMetricsEntry other = - (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) obj; + com.google.cloud.automl.v1.BoundingBoxMetricsEntry other = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getIouThreshold()) - != java.lang.Float.floatToIntBits(other.getIouThreshold())) return false; + != 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; + != java.lang.Float.floatToIntBits( + other.getMeanAveragePrecision())) return false; + if (!getConfidenceMetricsEntriesList() + .equals(other.getConfidenceMetricsEntriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1233,9 +1083,11 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IOU_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getIouThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getIouThreshold()); hash = (37 * hash) + MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAveragePrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMeanAveragePrecision()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); @@ -1246,103 +1098,96 @@ public int hashCode() { } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.BoundingBoxMetricsEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.BoundingBoxMetricsEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -1350,23 +1195,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry)
       com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.Detection
-          .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Detection
-          .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable
+      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.class,
-              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder.class);
+              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.BoundingBoxMetricsEntry.newBuilder()
@@ -1374,17 +1217,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getConfidenceMetricsEntriesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1402,9 +1245,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.Detection
-          .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
     }
 
     @java.lang.Override
@@ -1423,15 +1266,13 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.BoundingBoxMetricsEntry buildPartial() {
-      com.google.cloud.automl.v1.BoundingBoxMetricsEntry result =
-          new com.google.cloud.automl.v1.BoundingBoxMetricsEntry(this);
+      com.google.cloud.automl.v1.BoundingBoxMetricsEntry result = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry(this);
       int from_bitField0_ = bitField0_;
       result.iouThreshold_ = iouThreshold_;
       result.meanAveragePrecision_ = meanAveragePrecision_;
       if (confidenceMetricsEntriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          confidenceMetricsEntries_ =
-              java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
+          confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.confidenceMetricsEntries_ = confidenceMetricsEntries_;
@@ -1446,39 +1287,38 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.BoundingBoxMetricsEntry) {
-        return mergeFrom((com.google.cloud.automl.v1.BoundingBoxMetricsEntry) other);
+        return mergeFrom((com.google.cloud.automl.v1.BoundingBoxMetricsEntry)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1486,8 +1326,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1.BoundingBoxMetricsEntry other) {
-      if (other == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance()) return this;
       if (other.getIouThreshold() != 0F) {
         setIouThreshold(other.getIouThreshold());
       }
@@ -1512,10 +1351,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1.BoundingBoxMetricsEntry othe
             confidenceMetricsEntriesBuilder_ = null;
             confidenceMetricsEntries_ = other.confidenceMetricsEntries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            confidenceMetricsEntriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConfidenceMetricsEntriesFieldBuilder()
-                    : null;
+            confidenceMetricsEntriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConfidenceMetricsEntriesFieldBuilder() : null;
           } else {
             confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_);
           }
@@ -1540,8 +1378,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1550,20 +1387,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private float iouThreshold_;
+    private float iouThreshold_ ;
     /**
-     *
-     *
      * 
      * Output only. The intersection-over-union threshold value used to compute
      * this metrics entry.
      * 
* * float iou_threshold = 1; - * * @return The iouThreshold. */ @java.lang.Override @@ -1571,53 +1404,44 @@ public float getIouThreshold() { return iouThreshold_; } /** - * - * *
      * Output only. The intersection-over-union threshold value used to compute
      * this metrics entry.
      * 
* * float iou_threshold = 1; - * * @param value The iouThreshold to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearIouThreshold() { - + iouThreshold_ = 0F; onChanged(); return this; } - private float meanAveragePrecision_; + private float meanAveragePrecision_ ; /** - * - * *
      * Output only. The mean average precision, most often close to au_prc.
      * 
* * float mean_average_precision = 2; - * * @return The meanAveragePrecision. */ @java.lang.Override @@ -1625,76 +1449,57 @@ public float getMeanAveragePrecision() { return meanAveragePrecision_; } /** - * - * *
      * Output only. The mean average precision, most often close to au_prc.
      * 
* * float mean_average_precision = 2; - * * @param value The meanAveragePrecision to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearMeanAveragePrecision() { - + meanAveragePrecision_ = 0F; onChanged(); return this; } - private java.util.List< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> - confidenceMetricsEntries_ = java.util.Collections.emptyList(); - + private java.util.List confidenceMetricsEntries_ = + java.util.Collections.emptyList(); private void ensureConfidenceMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - new java.util.ArrayList< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>( - confidenceMetricsEntries_); + confidenceMetricsEntries_ = new java.util.ArrayList(confidenceMetricsEntries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> - confidenceMetricsEntriesBuilder_; + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public java.util.List - getConfidenceMetricsEntriesList() { + public java.util.List getConfidenceMetricsEntriesList() { if (confidenceMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } else { @@ -1702,17 +1507,13 @@ private void ensureConfidenceMetricsEntriesIsMutable() { } } /** - * - * *
      * 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1722,20 +1523,15 @@ public 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { @@ -1743,21 +1539,16 @@ public 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder setConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1771,22 +1562,16 @@ public Builder setConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder setConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder - builderForValue) { + int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); @@ -1797,20 +1582,15 @@ public Builder setConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1824,21 +1604,16 @@ public Builder addConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder addConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1852,21 +1627,16 @@ public Builder addConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder - builderForValue) { + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); @@ -1877,22 +1647,16 @@ public Builder addConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder addConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder - builderForValue) { + int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); @@ -1903,25 +1667,20 @@ public Builder addConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder addAllConfidenceMetricsEntries( - java.lang.Iterable< - ? extends com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> - values) { + java.lang.Iterable values) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, confidenceMetricsEntries_); onChanged(); } else { confidenceMetricsEntriesBuilder_.addAllMessages(values); @@ -1929,17 +1688,13 @@ public Builder addAllConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1952,17 +1707,13 @@ public Builder clearConfidenceMetricsEntries() { 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1975,60 +1726,45 @@ public Builder removeConfidenceMetricsEntries(int 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder - getConfidenceMetricsEntriesBuilder(int index) { + public com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index) { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index) { if (confidenceMetricsEntriesBuilder_ == null) { - return confidenceMetricsEntries_.get(index); - } else { + 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public java.util.List< - ? extends - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> - getConfidenceMetricsEntriesOrBuilderList() { + public java.util.List + getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -2036,76 +1772,51 @@ public Builder removeConfidenceMetricsEntries(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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder - addConfidenceMetricsEntriesBuilder() { - return getConfidenceMetricsEntriesFieldBuilder() - .addBuilder( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - .getDefaultInstance()); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder() { + return getConfidenceMetricsEntriesFieldBuilder().addBuilder( + com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder - addConfidenceMetricsEntriesBuilder(int index) { - return getConfidenceMetricsEntriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - .getDefaultInstance()); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder( + int index) { + return getConfidenceMetricsEntriesFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public java.util.List< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder> - getConfidenceMetricsEntriesBuilderList() { + public java.util.List + getConfidenceMetricsEntriesBuilderList() { return getConfidenceMetricsEntriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesFieldBuilder() { if (confidenceMetricsEntriesBuilder_ == null) { - confidenceMetricsEntriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2114,9 +1825,9 @@ public Builder removeConfidenceMetricsEntries(int index) { } return confidenceMetricsEntriesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2126,12 +1837,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry) private static final com.google.cloud.automl.v1.BoundingBoxMetricsEntry DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry(); } @@ -2140,16 +1851,16 @@ public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry getDefaultInsta 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); - } - }; + 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; @@ -2164,4 +1875,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java similarity index 55% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java index c5a0cd54c..0205df724 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java @@ -1,129 +1,84 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/detection.proto package com.google.cloud.automl.v1; -public interface BoundingBoxMetricsEntryOrBuilder - extends +public interface BoundingBoxMetricsEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BoundingBoxMetricsEntry) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The intersection-over-union threshold value used to compute
    * this metrics entry.
    * 
* * float iou_threshold = 1; - * * @return The iouThreshold. */ float getIouThreshold(); /** - * - * *
    * Output only. The mean average precision, most often close to au_prc.
    * 
* * float mean_average_precision = 2; - * * @return The meanAveragePrecision. */ 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - java.util.List + 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index); + com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - java.util.List< - ? extends - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> + java.util.List 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index); + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java similarity index 76% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java index cac83c27e..b4d535d73 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/geometry.proto package com.google.cloud.automl.v1; /** - * - * *
  * A bounding polygon of a detected object on a plane.
  * On output both vertices and normalized_vertices are provided.
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.BoundingPoly}
  */
-public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BoundingPoly extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BoundingPoly)
     BoundingPolyOrBuilder {
-  private static final long serialVersionUID = 0L;
+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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BoundingPoly();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BoundingPoly(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,31 +56,29 @@ private BoundingPoly(
           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.v1.NormalizedVertex.parser(), extensionRegistry));
-              break;
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              normalizedVertices_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            normalizedVertices_.add(
+                input.readMessage(com.google.cloud.automl.v1.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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         normalizedVertices_ = java.util.Collections.unmodifiableList(normalizedVertices_);
@@ -106,27 +87,22 @@ private BoundingPoly(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.automl.v1.Geometry
-        .internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Geometry
-        .internal_static_google_cloud_automl_v1_BoundingPoly_fieldAccessorTable
+    return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_BoundingPoly_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.BoundingPoly.class,
-            com.google.cloud.automl.v1.BoundingPoly.Builder.class);
+            com.google.cloud.automl.v1.BoundingPoly.class, com.google.cloud.automl.v1.BoundingPoly.Builder.class);
   }
 
   public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2;
   private java.util.List normalizedVertices_;
   /**
-   *
-   *
    * 
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -138,8 +114,6 @@ public java.util.List getNormalized return normalizedVertices_; } /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -147,13 +121,11 @@ public java.util.List getNormalized * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -165,8 +137,6 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -178,8 +148,6 @@ public com.google.cloud.automl.v1.NormalizedVertex getNormalizedVertices(int ind return normalizedVertices_.get(index); } /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -193,7 +161,6 @@ public com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVertice } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -219,8 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < normalizedVertices_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,14 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.BoundingPoly)) { return super.equals(obj); } com.google.cloud.automl.v1.BoundingPoly other = (com.google.cloud.automl.v1.BoundingPoly) obj; - if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; + if (!getNormalizedVerticesList() + .equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -258,104 +227,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.BoundingPoly parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.BoundingPoly parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BoundingPoly parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.BoundingPoly parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -364,23 +326,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.BoundingPoly}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BoundingPoly)
       com.google.cloud.automl.v1.BoundingPolyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.Geometry
-          .internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Geometry
-          .internal_static_google_cloud_automl_v1_BoundingPoly_fieldAccessorTable
+      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_BoundingPoly_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.BoundingPoly.class,
-              com.google.cloud.automl.v1.BoundingPoly.Builder.class);
+              com.google.cloud.automl.v1.BoundingPoly.class, com.google.cloud.automl.v1.BoundingPoly.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.BoundingPoly.newBuilder()
@@ -388,17 +348,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getNormalizedVerticesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,9 +372,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.Geometry
-          .internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
     }
 
     @java.lang.Override
@@ -433,8 +393,7 @@ public com.google.cloud.automl.v1.BoundingPoly build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.BoundingPoly buildPartial() {
-      com.google.cloud.automl.v1.BoundingPoly result =
-          new com.google.cloud.automl.v1.BoundingPoly(this);
+      com.google.cloud.automl.v1.BoundingPoly result = new com.google.cloud.automl.v1.BoundingPoly(this);
       int from_bitField0_ = bitField0_;
       if (normalizedVerticesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -453,39 +412,38 @@ public com.google.cloud.automl.v1.BoundingPoly buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.BoundingPoly) {
-        return mergeFrom((com.google.cloud.automl.v1.BoundingPoly) other);
+        return mergeFrom((com.google.cloud.automl.v1.BoundingPoly)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,10 +470,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1.BoundingPoly other) {
             normalizedVerticesBuilder_ = null;
             normalizedVertices_ = other.normalizedVertices_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            normalizedVerticesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getNormalizedVerticesFieldBuilder()
-                    : null;
+            normalizedVerticesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getNormalizedVerticesFieldBuilder() : null;
           } else {
             normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_);
           }
@@ -549,30 +506,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List normalizedVertices_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureNormalizedVerticesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        normalizedVertices_ =
-            new java.util.ArrayList(
-                normalizedVertices_);
+        normalizedVertices_ = new java.util.ArrayList(normalizedVertices_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.automl.v1.NormalizedVertex,
-            com.google.cloud.automl.v1.NormalizedVertex.Builder,
-            com.google.cloud.automl.v1.NormalizedVertexOrBuilder>
-        normalizedVerticesBuilder_;
+        com.google.cloud.automl.v1.NormalizedVertex, com.google.cloud.automl.v1.NormalizedVertex.Builder, com.google.cloud.automl.v1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_;
 
     /**
-     *
-     *
      * 
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -587,8 +535,6 @@ public java.util.List getNormalized } } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -603,8 +549,6 @@ public int getNormalizedVerticesCount() { } } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -619,8 +563,6 @@ public com.google.cloud.automl.v1.NormalizedVertex getNormalizedVertices(int ind } } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -642,8 +584,6 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -662,8 +602,6 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -684,8 +622,6 @@ public Builder addNormalizedVertices(com.google.cloud.automl.v1.NormalizedVertex return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -707,8 +643,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -727,8 +661,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -747,8 +679,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -759,7 +689,8 @@ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -767,8 +698,6 @@ public Builder addAllNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -786,8 +715,6 @@ public Builder clearNormalizedVertices() { return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -805,8 +732,6 @@ public Builder removeNormalizedVertices(int index) { return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -818,8 +743,6 @@ public com.google.cloud.automl.v1.NormalizedVertex.Builder getNormalizedVertices return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -829,22 +752,19 @@ public com.google.cloud.automl.v1.NormalizedVertex.Builder getNormalizedVertices public com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); - } else { + return normalizedVertices_.get(index); } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
* * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -852,8 +772,6 @@ public com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVertice } } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -861,12 +779,10 @@ public com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVertice * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.automl.v1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder() - .addBuilder(com.google.cloud.automl.v1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder().addBuilder( + com.google.cloud.automl.v1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -875,34 +791,26 @@ public com.google.cloud.automl.v1.NormalizedVertex.Builder addNormalizedVertices */ public com.google.cloud.automl.v1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.automl.v1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
* * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.NormalizedVertex, - com.google.cloud.automl.v1.NormalizedVertex.Builder, - com.google.cloud.automl.v1.NormalizedVertexOrBuilder> + com.google.cloud.automl.v1.NormalizedVertex, com.google.cloud.automl.v1.NormalizedVertex.Builder, com.google.cloud.automl.v1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.NormalizedVertex, - com.google.cloud.automl.v1.NormalizedVertex.Builder, - com.google.cloud.automl.v1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.NormalizedVertex, com.google.cloud.automl.v1.NormalizedVertex.Builder, com.google.cloud.automl.v1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -911,9 +819,9 @@ public com.google.cloud.automl.v1.NormalizedVertex.Builder addNormalizedVertices } return normalizedVerticesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -923,12 +831,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BoundingPoly) private static final com.google.cloud.automl.v1.BoundingPoly DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BoundingPoly(); } @@ -937,16 +845,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -961,4 +869,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java similarity index 64% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java index f05c8f55d..7c7af0a67 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/geometry.proto package com.google.cloud.automl.v1; -public interface BoundingPolyOrBuilder - extends +public interface BoundingPolyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ - java.util.List getNormalizedVerticesList(); + java.util.List + getNormalizedVerticesList(); /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -44,8 +25,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.automl.v1.NormalizedVertex getNormalizedVertices(int index); /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -54,24 +33,21 @@ public interface BoundingPolyOrBuilder */ int getNormalizedVerticesCount(); /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ - com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder(int index); + com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java similarity index 68% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java index 7a0b4ed82..1bfea6061 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/classification.proto package com.google.cloud.automl.v1; /** - * - * *
  * Contains annotation details specific to classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ClassificationAnnotation} */ -public final class ClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ClassificationAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ClassificationAnnotation) ClassificationAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ClassificationAnnotation.newBuilder() to construct. private ClassificationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ClassificationAnnotation() {} + private ClassificationAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClassificationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,50 +52,46 @@ private ClassificationAnnotation( case 0: done = true; break; - case 13: - { - score_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 13: { + + 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); + 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.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationAnnotation.class, - com.google.cloud.automl.v1.ClassificationAnnotation.Builder.class); + com.google.cloud.automl.v1.ClassificationAnnotation.class, com.google.cloud.automl.v1.ClassificationAnnotation.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 that the annotation is positive. If a user
@@ -121,7 +101,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * float score = 1; - * * @return The score. */ @java.lang.Override @@ -130,7 +109,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (score_ != 0F) { output.writeFloat(1, score_); } @@ -156,7 +135,8 @@ public int getSerializedSize() { size = 0; if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -166,16 +146,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ClassificationAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1.ClassificationAnnotation other = - (com.google.cloud.automl.v1.ClassificationAnnotation) obj; + com.google.cloud.automl.v1.ClassificationAnnotation other = (com.google.cloud.automl.v1.ClassificationAnnotation) obj; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -188,133 +168,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ClassificationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationAnnotation 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.v1.ClassificationAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ClassificationAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ClassificationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains annotation details specific to classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ClassificationAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ClassificationAnnotation) com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationAnnotation.class, - com.google.cloud.automl.v1.ClassificationAnnotation.Builder.class); + com.google.cloud.automl.v1.ClassificationAnnotation.class, com.google.cloud.automl.v1.ClassificationAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1.ClassificationAnnotation.newBuilder() @@ -322,15 +294,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -340,9 +313,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; } @java.lang.Override @@ -361,8 +334,7 @@ public com.google.cloud.automl.v1.ClassificationAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1.ClassificationAnnotation buildPartial() { - com.google.cloud.automl.v1.ClassificationAnnotation result = - new com.google.cloud.automl.v1.ClassificationAnnotation(this); + com.google.cloud.automl.v1.ClassificationAnnotation result = new com.google.cloud.automl.v1.ClassificationAnnotation(this); result.score_ = score_; onBuilt(); return result; @@ -372,39 +344,38 @@ public com.google.cloud.automl.v1.ClassificationAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ClassificationAnnotation) { - return mergeFrom((com.google.cloud.automl.v1.ClassificationAnnotation) other); + return mergeFrom((com.google.cloud.automl.v1.ClassificationAnnotation)other); } else { super.mergeFrom(other); return this; @@ -412,8 +383,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationAnnotation other) { - if (other == com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance()) return this; if (other.getScore() != 0F) { setScore(other.getScore()); } @@ -436,8 +406,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ClassificationAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ClassificationAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,10 +416,8 @@ public Builder mergeFrom( return this; } - private float score_; + private float score_ ; /** - * - * *
      * Output only. A confidence estimate between 0.0 and 1.0. A higher value
      * means greater confidence that the annotation is positive. If a user
@@ -460,7 +427,6 @@ public Builder mergeFrom(
      * 
* * float score = 1; - * * @return The score. */ @java.lang.Override @@ -468,8 +434,6 @@ public float getScore() { return score_; } /** - * - * *
      * Output only. A confidence estimate between 0.0 and 1.0. A higher value
      * means greater confidence that the annotation is positive. If a user
@@ -479,19 +443,16 @@ public float getScore() {
      * 
* * float score = 1; - * * @param value The score to set. * @return This builder for chaining. */ 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 that the annotation is positive. If a user
@@ -501,18 +462,17 @@ public Builder setScore(float value) {
      * 
* * float score = 1; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -522,12 +482,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ClassificationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ClassificationAnnotation) private static final com.google.cloud.automl.v1.ClassificationAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ClassificationAnnotation(); } @@ -536,16 +496,16 @@ public static com.google.cloud.automl.v1.ClassificationAnnotation getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -560,4 +520,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ClassificationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java similarity index 52% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java index 5ccb0a082..9899f91fd 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/classification.proto package com.google.cloud.automl.v1; -public interface ClassificationAnnotationOrBuilder - extends +public interface ClassificationAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. A confidence estimate between 0.0 and 1.0. A higher value
    * means greater confidence that the annotation is positive. If a user
@@ -35,7 +17,6 @@ public interface ClassificationAnnotationOrBuilder
    * 
* * float score = 1; - * * @return The score. */ float getScore(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java similarity index 70% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java index ac1d4d9b8..f7fc7657c 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/classification.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model evaluation metrics for classification problems.
  * Note: For Video Classification this metrics only describe quality of the
@@ -29,17 +12,15 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics}
  */
-public final class ClassificationEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ClassificationEvaluationMetrics extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics)
     ClassificationEvaluationMetricsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ClassificationEvaluationMetrics.newBuilder() to construct.
-  private ClassificationEvaluationMetrics(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ClassificationEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ClassificationEvaluationMetrics() {
     confidenceMetricsEntry_ = java.util.Collections.emptyList();
     annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -47,15 +28,16 @@ private ClassificationEvaluationMetrics() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ClassificationEvaluationMetrics();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ClassificationEvaluationMetrics(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,79 +57,66 @@ private ClassificationEvaluationMetrics(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              auPrc_ = input.readFloat();
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                confidenceMetricsEntry_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.automl.v1.ClassificationEvaluationMetrics
-                            .ConfidenceMetricsEntry>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              confidenceMetricsEntry_.add(
-                  input.readMessage(
-                      com.google.cloud.automl.v1.ClassificationEvaluationMetrics
-                          .ConfidenceMetricsEntry.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 34:
-            {
-              com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder
-                  subBuilder = null;
-              if (confusionMatrix_ != null) {
-                subBuilder = confusionMatrix_.toBuilder();
-              }
-              confusionMatrix_ =
-                  input.readMessage(
-                      com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(confusionMatrix_);
-                confusionMatrix_ = subBuilder.buildPartial();
-              }
+          case 13: {
 
-              break;
+            auPrc_ = input.readFloat();
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              confidenceMetricsEntry_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                annotationSpecId_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              annotationSpecId_.add(s);
-              break;
+            confidenceMetricsEntry_.add(
+                input.readMessage(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.parser(), extensionRegistry));
+            break;
+          }
+          case 34: {
+            com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder subBuilder = null;
+            if (confusionMatrix_ != null) {
+              subBuilder = confusionMatrix_.toBuilder();
             }
-          case 53:
-            {
-              auRoc_ = input.readFloat();
-              break;
+            confusionMatrix_ = input.readMessage(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(confusionMatrix_);
+              confusionMatrix_ = subBuilder.buildPartial();
             }
-          case 61:
-            {
-              logLoss_ = input.readFloat();
-              break;
+
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              annotationSpecId_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         confidenceMetricsEntry_ = java.util.Collections.unmodifiableList(confidenceMetricsEntry_);
@@ -159,44 +128,35 @@ private ClassificationEvaluationMetrics(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.automl.v1.ClassificationProto
-        .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.ClassificationProto
-        .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable
+    return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.ClassificationEvaluationMetrics.class,
-            com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder.class);
+            com.google.cloud.automl.v1.ClassificationEvaluationMetrics.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder.class);
   }
 
-  public interface ConfidenceMetricsEntryOrBuilder
-      extends
+  public interface ConfidenceMetricsEntryOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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; - * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** - * - * *
      * Output only. Metrics are computed with an assumption that the model
      * always returns at most this many predictions (ordered by their score,
@@ -204,67 +164,52 @@ public interface ConfidenceMetricsEntryOrBuilder
      * 
* * int32 position_threshold = 14; - * * @return The positionThreshold. */ int getPositionThreshold(); /** - * - * *
      * Output only. Recall (True Positive Rate) for the given confidence
      * threshold.
      * 
* * float recall = 2; - * * @return The recall. */ float getRecall(); /** - * - * *
      * Output only. Precision for the given confidence threshold.
      * 
* * float precision = 3; - * * @return The precision. */ float getPrecision(); /** - * - * *
      * Output only. False Positive Rate for the given confidence threshold.
      * 
* * float false_positive_rate = 8; - * * @return The falsePositiveRate. */ float getFalsePositiveRate(); /** - * - * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 4; - * * @return The f1Score. */ float getF1Score(); /** - * - * *
      * Output only. The Recall (True Positive Rate) when only considering the
      * label that has the highest prediction score and not below the confidence
@@ -272,14 +217,11 @@ public interface ConfidenceMetricsEntryOrBuilder
      * 
* * float recall_at1 = 5; - * * @return The recallAt1. */ float getRecallAt1(); /** - * - * *
      * Output only. The precision when only considering the label that has the
      * highest prediction score and not below the confidence threshold for each
@@ -287,14 +229,11 @@ public interface ConfidenceMetricsEntryOrBuilder
      * 
* * float precision_at1 = 6; - * * @return The precisionAt1. */ float getPrecisionAt1(); /** - * - * *
      * Output only. The False Positive Rate when only considering the label that
      * has the highest prediction score and not below the confidence threshold
@@ -302,113 +241,95 @@ public interface ConfidenceMetricsEntryOrBuilder
      * 
* * float false_positive_rate_at1 = 9; - * * @return The falsePositiveRateAt1. */ float getFalsePositiveRateAt1(); /** - * - * *
      * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
      * 
* * float f1_score_at1 = 7; - * * @return The f1ScoreAt1. */ float getF1ScoreAt1(); /** - * - * *
      * Output only. The number of model created labels that match a ground truth
      * label.
      * 
* * int64 true_positive_count = 10; - * * @return The truePositiveCount. */ long getTruePositiveCount(); /** - * - * *
      * Output only. The number of model created labels that do not match a
      * ground truth label.
      * 
* * int64 false_positive_count = 11; - * * @return The falsePositiveCount. */ long getFalsePositiveCount(); /** - * - * *
      * Output only. The number of ground truth labels that are not matched
      * by a model created label.
      * 
* * int64 false_negative_count = 12; - * * @return The falseNegativeCount. */ 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; - * * @return The trueNegativeCount. */ long getTrueNegativeCount(); } /** - * - * *
    * Metrics for a single confidence threshold.
    * 
* - * Protobuf type {@code - * google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConfidenceMetricsEntry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) ConfidenceMetricsEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConfidenceMetricsEntry() {} + private ConfidenceMetricsEntry() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -427,124 +348,117 @@ private ConfidenceMetricsEntry( 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; - } - case 45: - { - recallAt1_ = input.readFloat(); - break; - } - case 53: - { - precisionAt1_ = input.readFloat(); - break; - } - case 61: - { - 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)) { - 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; + } + case 45: { + + recallAt1_ = input.readFloat(); + break; + } + case 53: { + + precisionAt1_ = input.readFloat(); + break; + } + case 61: { + + 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)) { + 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); + 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.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .class, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .Builder.class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; 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; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -555,8 +469,6 @@ public float getConfidenceThreshold() { 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,
@@ -564,7 +476,6 @@ public float getConfidenceThreshold() {
      * 
* * int32 position_threshold = 14; - * * @return The positionThreshold. */ @java.lang.Override @@ -575,15 +486,12 @@ public int getPositionThreshold() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** - * - * *
      * Output only. Recall (True Positive Rate) for the given confidence
      * threshold.
      * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -594,14 +502,11 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** - * - * *
      * Output only. Precision for the given confidence threshold.
      * 
* * float precision = 3; - * * @return The precision. */ @java.lang.Override @@ -612,14 +517,11 @@ public float getPrecision() { 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; - * * @return The falsePositiveRate. */ @java.lang.Override @@ -630,14 +532,11 @@ public float getFalsePositiveRate() { 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; - * * @return The f1Score. */ @java.lang.Override @@ -648,8 +547,6 @@ public float getF1Score() { public static final int RECALL_AT1_FIELD_NUMBER = 5; 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
@@ -657,7 +554,6 @@ public float getF1Score() {
      * 
* * float recall_at1 = 5; - * * @return The recallAt1. */ @java.lang.Override @@ -668,8 +564,6 @@ public float getRecallAt1() { public static final int PRECISION_AT1_FIELD_NUMBER = 6; private float precisionAt1_; /** - * - * *
      * Output only. The precision when only considering the label that has the
      * highest prediction score and not below the confidence threshold for each
@@ -677,7 +571,6 @@ public float getRecallAt1() {
      * 
* * float precision_at1 = 6; - * * @return The precisionAt1. */ @java.lang.Override @@ -688,8 +581,6 @@ public float getPrecisionAt1() { 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
@@ -697,7 +588,6 @@ public float getPrecisionAt1() {
      * 
* * float false_positive_rate_at1 = 9; - * * @return The falsePositiveRateAt1. */ @java.lang.Override @@ -708,14 +598,11 @@ public float getFalsePositiveRateAt1() { public static final int F1_SCORE_AT1_FIELD_NUMBER = 7; private float f1ScoreAt1_; /** - * - * *
      * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
      * 
* * float f1_score_at1 = 7; - * * @return The f1ScoreAt1. */ @java.lang.Override @@ -726,15 +613,12 @@ public float getF1ScoreAt1() { 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; - * * @return The truePositiveCount. */ @java.lang.Override @@ -745,15 +629,12 @@ public long getTruePositiveCount() { 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; - * * @return The falsePositiveCount. */ @java.lang.Override @@ -764,15 +645,12 @@ public long getFalsePositiveCount() { 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; - * * @return The falseNegativeCount. */ @java.lang.Override @@ -783,15 +661,12 @@ public long getFalseNegativeCount() { 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; - * * @return The trueNegativeCount. */ @java.lang.Override @@ -800,7 +675,6 @@ public long getTrueNegativeCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -812,7 +686,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -865,46 +740,60 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, f1Score_); } if (recallAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, recallAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, recallAt1_); } if (precisionAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, precisionAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, precisionAt1_); } if (f1ScoreAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, f1ScoreAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, f1ScoreAt1_); } if (falsePositiveRate_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, falsePositiveRate_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(8, falsePositiveRate_); } if (falsePositiveRateAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, falsePositiveRateAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(9, falsePositiveRateAt1_); } if (truePositiveCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, truePositiveCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, truePositiveCount_); } if (falsePositiveCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, falsePositiveCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, falsePositiveCount_); } if (falseNegativeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, falseNegativeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, falseNegativeCount_); } if (trueNegativeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, trueNegativeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(13, trueNegativeCount_); } if (positionThreshold_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, positionThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(14, positionThreshold_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -914,39 +803,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry)) { + if (!(obj instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry)) { return super.equals(obj); } - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry other = - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) obj; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry other = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) - != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; - if (getPositionThreshold() != other.getPositionThreshold()) return false; + != 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; + != java.lang.Float.floatToIntBits( + other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + != java.lang.Float.floatToIntBits( + other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getFalsePositiveRate()) - != java.lang.Float.floatToIntBits(other.getFalsePositiveRate())) return false; + != java.lang.Float.floatToIntBits( + other.getFalsePositiveRate())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + != java.lang.Float.floatToIntBits( + other.getF1Score())) return false; if (java.lang.Float.floatToIntBits(getRecallAt1()) - != java.lang.Float.floatToIntBits(other.getRecallAt1())) return false; + != java.lang.Float.floatToIntBits( + other.getRecallAt1())) return false; if (java.lang.Float.floatToIntBits(getPrecisionAt1()) - != java.lang.Float.floatToIntBits(other.getPrecisionAt1())) return false; + != java.lang.Float.floatToIntBits( + other.getPrecisionAt1())) return false; if (java.lang.Float.floatToIntBits(getFalsePositiveRateAt1()) - != java.lang.Float.floatToIntBits(other.getFalsePositiveRateAt1())) return false; + != 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; + != 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; } @@ -959,134 +859,133 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getFalsePositiveRate()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getF1Score()); hash = (37 * hash) + RECALL_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecallAt1()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRecallAt1()); hash = (37 * hash) + PRECISION_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecisionAt1()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getFalsePositiveRateAt1()); hash = (37 * hash) + F1_SCORE_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1ScoreAt1()); + 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 = (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 = (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 = (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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTrueNegativeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.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); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1096,52 +995,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metrics for a single confidence threshold.
      * 
* - * Protobuf type {@code - * google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .class, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .Builder.class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); } - // Construct using - // com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() + // Construct using com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1177,23 +1068,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .getDefaultInstance(); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - build() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry result = - buildPartial(); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry build() { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1201,11 +1088,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - buildPartial() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry result = - new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry( - this); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry buildPartial() { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry result = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry(this); result.confidenceThreshold_ = confidenceThreshold_; result.positionThreshold_ = positionThreshold_; result.recall_ = recall_; @@ -1228,56 +1112,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) { - return mergeFrom( - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) - other); + if (other instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) { + return mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry other) { - if (other - == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry other) { + if (other == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()) return this; if (other.getConfidenceThreshold() != 0F) { setConfidenceThreshold(other.getConfidenceThreshold()); } @@ -1335,14 +1209,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parsedMessage = null; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1352,17 +1223,14 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_; + 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; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -1370,47 +1238,39 @@ 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; - * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private int positionThreshold_; + 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,
@@ -1418,7 +1278,6 @@ public Builder clearConfidenceThreshold() {
        * 
* * int32 position_threshold = 14; - * * @return The positionThreshold. */ @java.lang.Override @@ -1426,8 +1285,6 @@ 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,
@@ -1435,19 +1292,16 @@ public int getPositionThreshold() {
        * 
* * int32 position_threshold = 14; - * * @param value The positionThreshold to set. * @return This builder for chaining. */ 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,
@@ -1455,27 +1309,23 @@ public Builder setPositionThreshold(int value) {
        * 
* * int32 position_threshold = 14; - * * @return This builder for chaining. */ public Builder clearPositionThreshold() { - + positionThreshold_ = 0; onChanged(); return this; } - private float recall_; + private float recall_ ; /** - * - * *
        * Output only. Recall (True Positive Rate) for the given confidence
        * threshold.
        * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -1483,53 +1333,44 @@ public float getRecall() { return recall_; } /** - * - * *
        * Output only. Recall (True Positive Rate) for the given confidence
        * threshold.
        * 
* * float recall = 2; - * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Recall (True Positive Rate) for the given confidence
        * threshold.
        * 
* * float recall = 2; - * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_; + private float precision_ ; /** - * - * *
        * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; - * * @return The precision. */ @java.lang.Override @@ -1537,51 +1378,42 @@ public float getPrecision() { return precision_; } /** - * - * *
        * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; - * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float falsePositiveRate_; + private float falsePositiveRate_ ; /** - * - * *
        * Output only. False Positive Rate for the given confidence threshold.
        * 
* * float false_positive_rate = 8; - * * @return The falsePositiveRate. */ @java.lang.Override @@ -1589,51 +1421,42 @@ public float getFalsePositiveRate() { return falsePositiveRate_; } /** - * - * *
        * Output only. False Positive Rate for the given confidence threshold.
        * 
* * float false_positive_rate = 8; - * * @param value The falsePositiveRate to set. * @return This builder for chaining. */ public Builder setFalsePositiveRate(float value) { - + falsePositiveRate_ = value; onChanged(); return this; } /** - * - * *
        * Output only. False Positive Rate for the given confidence threshold.
        * 
* * float false_positive_rate = 8; - * * @return This builder for chaining. */ public Builder clearFalsePositiveRate() { - + falsePositiveRate_ = 0F; onChanged(); return this; } - private float f1Score_; + private float f1Score_ ; /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @return The f1Score. */ @java.lang.Override @@ -1641,45 +1464,37 @@ public float getF1Score() { return f1Score_; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - private float recallAt1_; - /** - * - * + 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
@@ -1687,7 +1502,6 @@ public Builder clearF1Score() {
        * 
* * float recall_at1 = 5; - * * @return The recallAt1. */ @java.lang.Override @@ -1695,8 +1509,6 @@ 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
@@ -1704,19 +1516,16 @@ public float getRecallAt1() {
        * 
* * float recall_at1 = 5; - * * @param value The recallAt1 to set. * @return This builder for chaining. */ public Builder setRecallAt1(float value) { - + 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
@@ -1724,20 +1533,17 @@ public Builder setRecallAt1(float value) {
        * 
* * float recall_at1 = 5; - * * @return This builder for chaining. */ public Builder clearRecallAt1() { - + recallAt1_ = 0F; onChanged(); return this; } - private float precisionAt1_; + private float precisionAt1_ ; /** - * - * *
        * Output only. The precision when only considering the label that has the
        * highest prediction score and not below the confidence threshold for each
@@ -1745,7 +1551,6 @@ public Builder clearRecallAt1() {
        * 
* * float precision_at1 = 6; - * * @return The precisionAt1. */ @java.lang.Override @@ -1753,8 +1558,6 @@ public float getPrecisionAt1() { return precisionAt1_; } /** - * - * *
        * Output only. The precision when only considering the label that has the
        * highest prediction score and not below the confidence threshold for each
@@ -1762,19 +1565,16 @@ public float getPrecisionAt1() {
        * 
* * float precision_at1 = 6; - * * @param value The precisionAt1 to set. * @return This builder for chaining. */ public Builder setPrecisionAt1(float value) { - + precisionAt1_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The precision when only considering the label that has the
        * highest prediction score and not below the confidence threshold for each
@@ -1782,20 +1582,17 @@ public Builder setPrecisionAt1(float value) {
        * 
* * float precision_at1 = 6; - * * @return This builder for chaining. */ public Builder clearPrecisionAt1() { - + precisionAt1_ = 0F; onChanged(); return this; } - private float falsePositiveRateAt1_; + 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
@@ -1803,7 +1600,6 @@ public Builder clearPrecisionAt1() {
        * 
* * float false_positive_rate_at1 = 9; - * * @return The falsePositiveRateAt1. */ @java.lang.Override @@ -1811,8 +1607,6 @@ public float getFalsePositiveRateAt1() { return falsePositiveRateAt1_; } /** - * - * *
        * Output only. The False Positive Rate when only considering the label that
        * has the highest prediction score and not below the confidence threshold
@@ -1820,19 +1614,16 @@ public float getFalsePositiveRateAt1() {
        * 
* * float false_positive_rate_at1 = 9; - * * @param value The falsePositiveRateAt1 to set. * @return This builder for chaining. */ public Builder setFalsePositiveRateAt1(float value) { - + falsePositiveRateAt1_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The False Positive Rate when only considering the label that
        * has the highest prediction score and not below the confidence threshold
@@ -1840,26 +1631,22 @@ public Builder setFalsePositiveRateAt1(float value) {
        * 
* * float false_positive_rate_at1 = 9; - * * @return This builder for chaining. */ public Builder clearFalsePositiveRateAt1() { - + falsePositiveRateAt1_ = 0F; onChanged(); return this; } - private float f1ScoreAt1_; + private float f1ScoreAt1_ ; /** - * - * *
        * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; - * * @return The f1ScoreAt1. */ @java.lang.Override @@ -1867,52 +1654,43 @@ public float getF1ScoreAt1() { return f1ScoreAt1_; } /** - * - * *
        * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; - * * @param value The f1ScoreAt1 to set. * @return This builder for chaining. */ public Builder setF1ScoreAt1(float value) { - + f1ScoreAt1_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; - * * @return This builder for chaining. */ public Builder clearF1ScoreAt1() { - + f1ScoreAt1_ = 0F; onChanged(); return this; } - private long truePositiveCount_; + private long truePositiveCount_ ; /** - * - * *
        * Output only. The number of model created labels that match a ground truth
        * label.
        * 
* * int64 true_positive_count = 10; - * * @return The truePositiveCount. */ @java.lang.Override @@ -1920,54 +1698,45 @@ public long getTruePositiveCount() { return truePositiveCount_; } /** - * - * *
        * Output only. The number of model created labels that match a ground truth
        * label.
        * 
* * int64 true_positive_count = 10; - * * @param value The truePositiveCount to set. * @return This builder for chaining. */ public Builder setTruePositiveCount(long value) { - + truePositiveCount_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The number of model created labels that match a ground truth
        * label.
        * 
* * int64 true_positive_count = 10; - * * @return This builder for chaining. */ public Builder clearTruePositiveCount() { - + truePositiveCount_ = 0L; onChanged(); return this; } - private long falsePositiveCount_; + private long falsePositiveCount_ ; /** - * - * *
        * Output only. The number of model created labels that do not match a
        * ground truth label.
        * 
* * int64 false_positive_count = 11; - * * @return The falsePositiveCount. */ @java.lang.Override @@ -1975,54 +1744,45 @@ public long getFalsePositiveCount() { return falsePositiveCount_; } /** - * - * *
        * Output only. The number of model created labels that do not match a
        * ground truth label.
        * 
* * int64 false_positive_count = 11; - * * @param value The falsePositiveCount to set. * @return This builder for chaining. */ public Builder setFalsePositiveCount(long value) { - + falsePositiveCount_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The number of model created labels that do not match a
        * ground truth label.
        * 
* * int64 false_positive_count = 11; - * * @return This builder for chaining. */ public Builder clearFalsePositiveCount() { - + falsePositiveCount_ = 0L; onChanged(); return this; } - private long falseNegativeCount_; + 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; - * * @return The falseNegativeCount. */ @java.lang.Override @@ -2030,54 +1790,45 @@ public long getFalseNegativeCount() { return falseNegativeCount_; } /** - * - * *
        * Output only. The number of ground truth labels that are not matched
        * by a model created label.
        * 
* * int64 false_negative_count = 12; - * * @param value The falseNegativeCount to set. * @return This builder for chaining. */ public Builder setFalseNegativeCount(long value) { - + falseNegativeCount_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The number of ground truth labels that are not matched
        * by a model created label.
        * 
* * int64 false_negative_count = 12; - * * @return This builder for chaining. */ public Builder clearFalseNegativeCount() { - + falseNegativeCount_ = 0L; onChanged(); return this; } - private long trueNegativeCount_; + 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; - * * @return The trueNegativeCount. */ @java.lang.Override @@ -2085,43 +1836,36 @@ public long getTrueNegativeCount() { return 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; - * * @param value The trueNegativeCount to set. * @return This builder for chaining. */ public Builder setTrueNegativeCount(long value) { - + trueNegativeCount_ = value; onChanged(); return this; } /** - * - * *
        * 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; - * * @return This builder for chaining. */ public Builder clearTrueNegativeCount() { - + trueNegativeCount_ = 0L; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2134,34 +1878,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) - private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - getDefaultInstance() { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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); - } - }; + 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; @@ -2173,20 +1913,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ConfusionMatrixOrBuilder - extends + public interface ConfusionMatrixOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -2195,13 +1932,11 @@ public interface ConfusionMatrixOrBuilder
      * 
* * repeated string annotation_spec_id = 1; - * * @return A list containing the annotationSpecId. */ - java.util.List getAnnotationSpecIdList(); + java.util.List + getAnnotationSpecIdList(); /** - * - * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -2210,13 +1945,10 @@ public interface ConfusionMatrixOrBuilder
      * 
* * repeated string annotation_spec_id = 1; - * * @return The count of annotationSpecId. */ int getAnnotationSpecIdCount(); /** - * - * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -2225,14 +1957,11 @@ public interface ConfusionMatrixOrBuilder
      * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ java.lang.String getAnnotationSpecId(int index); /** - * - * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -2241,15 +1970,13 @@ public interface ConfusionMatrixOrBuilder
      * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); + com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index); /** - * - * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -2260,13 +1987,11 @@ public interface ConfusionMatrixOrBuilder
      * 
* * repeated string display_name = 3; - * * @return A list containing the displayName. */ - java.util.List getDisplayNameList(); + java.util.List + getDisplayNameList(); /** - * - * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -2277,13 +2002,10 @@ public interface ConfusionMatrixOrBuilder
      * 
* * repeated string display_name = 3; - * * @return The count of displayName. */ int getDisplayNameCount(); /** - * - * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -2294,14 +2016,11 @@ public interface ConfusionMatrixOrBuilder
      * 
* * repeated string display_name = 3; - * * @param index The index of the element to return. * @return The displayName at the given index. */ java.lang.String getDisplayName(int index); /** - * - * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -2312,15 +2031,13 @@ public interface ConfusionMatrixOrBuilder
      * 
* * repeated string display_name = 3; - * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - com.google.protobuf.ByteString getDisplayNameBytes(int index); + com.google.protobuf.ByteString + getDisplayNameBytes(int index); /** - * - * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -2329,15 +2046,11 @@ public interface ConfusionMatrixOrBuilder
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - java.util.List + java.util.List getRowList(); /** - * - * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -2346,15 +2059,10 @@ public interface ConfusionMatrixOrBuilder
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow( - int index); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index); /** - * - * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -2363,14 +2071,10 @@ com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row g
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ int getRowCount(); /** - * - * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -2379,18 +2083,11 @@ com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row g
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - java.util.List< - ? extends - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .RowOrBuilder> + java.util.List getRowOrBuilderList(); /** - * - * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -2399,32 +2096,27 @@ com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row g
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder - getRowOrBuilder(int index); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( + int index); } /** - * - * *
    * Confusion matrix of the model running the classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix} */ - public static final class ConfusionMatrix extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConfusionMatrix extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) ConfusionMatrixOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfusionMatrix.newBuilder() to construct. private ConfusionMatrix(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfusionMatrix() { annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; displayName_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -2433,15 +2125,16 @@ private ConfusionMatrix() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfusionMatrix(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfusionMatrix( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2461,55 +2154,47 @@ private ConfusionMatrix( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - annotationSpecId_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - row_ = - new java.util.ArrayList< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .Row>(); - mutable_bitField0_ |= 0x00000004; - } - row_.add( - input.readMessage( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .Row.parser(), - extensionRegistry)); - break; + annotationSpecId_.add(s); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + row_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - displayName_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - displayName_.add(s); - break; + row_.add( + input.readMessage(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.parser(), extensionRegistry)); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + displayName_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + displayName_.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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); @@ -2524,31 +2209,24 @@ private ConfusionMatrix( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.class, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder - .class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder.class); } - public interface RowOrBuilder - extends + public interface RowOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2557,13 +2235,10 @@ public interface RowOrBuilder
        * 
* * repeated int32 example_count = 1; - * * @return A list containing the exampleCount. */ java.util.List getExampleCountList(); /** - * - * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2572,13 +2247,10 @@ public interface RowOrBuilder
        * 
* * repeated int32 example_count = 1; - * * @return The count of exampleCount. */ int getExampleCountCount(); /** - * - * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2587,47 +2259,43 @@ public interface RowOrBuilder
        * 
* * repeated int32 example_count = 1; - * * @param index The index of the element to return. * @return The exampleCount at the given index. */ int getExampleCount(int index); } /** - * - * *
      * Output only. A row in the confusion matrix.
      * 
* - * Protobuf type {@code - * google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} + * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} */ - public static final class Row extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Row extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) RowOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Row() { exampleCount_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Row(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Row( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2647,43 +2315,41 @@ private Row( case 0: done = true; break; - case 8: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exampleCount_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - exampleCount_.addInt(input.readInt32()); - break; + case 8: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exampleCount_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + exampleCount_.addInt(input.readInt32()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + exampleCount_ = newIntList(); + mutable_bitField0_ |= 0x00000001; } - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - exampleCount_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - exampleCount_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; + while (input.getBytesUntilLimit() > 0) { + exampleCount_.addInt(input.readInt32()); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(limit); + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { exampleCount_.makeImmutable(); // C @@ -2692,29 +2358,22 @@ private Row( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .class, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .Builder.class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); } public static final int EXAMPLE_COUNT_FIELD_NUMBER = 1; private com.google.protobuf.Internal.IntList exampleCount_; /** - * - * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2723,16 +2382,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * repeated int32 example_count = 1; - * * @return A list containing the exampleCount. */ @java.lang.Override - public java.util.List getExampleCountList() { + public java.util.List + getExampleCountList() { return exampleCount_; } /** - * - * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2741,15 +2398,12 @@ public java.util.List getExampleCountList() {
        * 
* * repeated int32 example_count = 1; - * * @return The count of exampleCount. */ public int getExampleCountCount() { return exampleCount_.size(); } /** - * - * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2758,18 +2412,15 @@ public int getExampleCountCount() {
        * 
* * repeated int32 example_count = 1; - * * @param index The index of the element to return. * @return The exampleCount at the given index. */ public int getExampleCount(int index) { return exampleCount_.getInt(index); } - private int exampleCountMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2781,7 +2432,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getExampleCountList().size() > 0) { output.writeUInt32NoTag(10); @@ -2802,14 +2454,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < exampleCount_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( - exampleCount_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(exampleCount_.getInt(i)); } size += dataSize; if (!getExampleCountList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } exampleCountMemoizedSerializedSize = dataSize; } @@ -2821,17 +2473,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row)) { + if (!(obj instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row)) { return super.equals(obj); } - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row other = - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) obj; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row other = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) obj; - if (!getExampleCountList().equals(other.getExampleCountList())) return false; + if (!getExampleCountList() + .equals(other.getExampleCountList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2852,104 +2502,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2959,52 +2593,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Output only. A row in the confusion matrix.
        * 
* - * Protobuf type {@code - * google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} + * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .class, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .Builder.class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); } - // Construct using - // com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.newBuilder() + // Construct using com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3014,23 +2640,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .getDefaultInstance(); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - build() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = - buildPartial(); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row build() { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3038,11 +2660,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - buildPartial() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = - new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row( - this); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row buildPartial() { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { exampleCount_.makeImmutable(); @@ -3057,56 +2676,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) { - return mergeFrom( - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) - other); + if (other instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) { + return mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row other) { - if (other - == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row other) { + if (other == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()) return this; if (!other.exampleCount_.isEmpty()) { if (exampleCount_.isEmpty()) { exampleCount_ = other.exampleCount_; @@ -3132,14 +2741,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - parsedMessage = null; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3148,20 +2754,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Internal.IntList exampleCount_ = emptyIntList(); - private void ensureExampleCountIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { exampleCount_ = mutableCopy(exampleCount_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -3170,17 +2772,14 @@ private void ensureExampleCountIsMutable() {
          * 
* * repeated int32 example_count = 1; - * * @return A list containing the exampleCount. */ - public java.util.List getExampleCountList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(exampleCount_) - : exampleCount_; + public java.util.List + getExampleCountList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(exampleCount_) : exampleCount_; } /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -3189,15 +2788,12 @@ public java.util.List getExampleCountList() {
          * 
* * repeated int32 example_count = 1; - * * @return The count of exampleCount. */ public int getExampleCountCount() { return exampleCount_.size(); } /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -3206,7 +2802,6 @@ public int getExampleCountCount() {
          * 
* * repeated int32 example_count = 1; - * * @param index The index of the element to return. * @return The exampleCount at the given index. */ @@ -3214,8 +2809,6 @@ public int getExampleCount(int index) { return exampleCount_.getInt(index); } /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -3224,20 +2817,18 @@ public int getExampleCount(int index) {
          * 
* * repeated int32 example_count = 1; - * * @param index The index to set the value at. * @param value The exampleCount to set. * @return This builder for chaining. */ - public Builder setExampleCount(int index, int value) { + public Builder setExampleCount( + int index, int value) { ensureExampleCountIsMutable(); exampleCount_.setInt(index, value); onChanged(); return this; } /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -3246,7 +2837,6 @@ public Builder setExampleCount(int index, int value) {
          * 
* * repeated int32 example_count = 1; - * * @param value The exampleCount to add. * @return This builder for chaining. */ @@ -3257,8 +2847,6 @@ public Builder addExampleCount(int value) { return this; } /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -3267,19 +2855,18 @@ public Builder addExampleCount(int value) {
          * 
* * repeated int32 example_count = 1; - * * @param values The exampleCount to add. * @return This builder for chaining. */ - public Builder addAllExampleCount(java.lang.Iterable values) { + public Builder addAllExampleCount( + java.lang.Iterable values) { ensureExampleCountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exampleCount_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exampleCount_); onChanged(); return this; } /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -3288,7 +2875,6 @@ public Builder addAllExampleCount(java.lang.Iterable
          *
          * repeated int32 example_count = 1;
-         *
          * @return This builder for chaining.
          */
         public Builder clearExampleCount() {
@@ -3297,7 +2883,6 @@ public Builder clearExampleCount() {
           onChanged();
           return this;
         }
-
         @java.lang.Override
         public final Builder setUnknownFields(
             final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -3310,34 +2895,30 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
 
+
         // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row)
       }
 
       // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row)
-      private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics
-              .ConfusionMatrix.Row
-          DEFAULT_INSTANCE;
-
+      private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row DEFAULT_INSTANCE;
       static {
-        DEFAULT_INSTANCE =
-            new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row();
+        DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row();
       }
 
-      public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
-          getDefaultInstance() {
+      public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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);
-            }
-          };
+      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;
@@ -3349,17 +2930,15 @@ public com.google.protobuf.Parser getParserForType() {
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
-          getDefaultInstanceForType() {
+      public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
+
     }
 
     public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 1;
     private com.google.protobuf.LazyStringList annotationSpecId_;
     /**
-     *
-     *
      * 
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -3368,15 +2947,13 @@ public com.google.protobuf.Parser getParserForType() {
      * 
* * repeated string annotation_spec_id = 1; - * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList + getAnnotationSpecIdList() { return annotationSpecId_; } /** - * - * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -3385,15 +2962,12 @@ public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() {
      * 
* * repeated string annotation_spec_id = 1; - * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** - * - * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -3402,7 +2976,6 @@ public int getAnnotationSpecIdCount() {
      * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -3410,8 +2983,6 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** - * - * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -3420,19 +2991,17 @@ public java.lang.String getAnnotationSpecId(int index) {
      * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList displayName_; /** - * - * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -3443,15 +3012,13 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) {
      * 
* * repeated string display_name = 3; - * * @return A list containing the displayName. */ - public com.google.protobuf.ProtocolStringList getDisplayNameList() { + public com.google.protobuf.ProtocolStringList + getDisplayNameList() { return displayName_; } /** - * - * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -3462,15 +3029,12 @@ public com.google.protobuf.ProtocolStringList getDisplayNameList() {
      * 
* * repeated string display_name = 3; - * * @return The count of displayName. */ public int getDisplayNameCount() { return displayName_.size(); } /** - * - * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -3481,7 +3045,6 @@ public int getDisplayNameCount() {
      * 
* * repeated string display_name = 3; - * * @param index The index of the element to return. * @return The displayName at the given index. */ @@ -3489,8 +3052,6 @@ public java.lang.String getDisplayName(int index) { return displayName_.get(index); } /** - * - * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -3501,21 +3062,17 @@ public java.lang.String getDisplayName(int index) {
      * 
* * repeated string display_name = 3; - * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - public com.google.protobuf.ByteString getDisplayNameBytes(int index) { + public com.google.protobuf.ByteString + getDisplayNameBytes(int index) { return displayName_.getByteString(index); } public static final int ROW_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row> - row_; + private java.util.List row_; /** - * - * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -3524,19 +3081,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes(int index) {
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ @java.lang.Override - public java.util.List< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row> - getRowList() { + public java.util.List getRowList() { return row_; } /** - * - * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -3545,21 +3096,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes(int index) {
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .RowOrBuilder> + public java.util.List getRowOrBuilderList() { return row_; } /** - * - * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -3568,17 +3112,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes(int index) {
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ @java.lang.Override public int getRowCount() { return row_.size(); } /** - * - * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -3587,18 +3127,13 @@ public int getRowCount() {
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow( - int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index) { return row_.get(index); } /** - * - * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -3607,18 +3142,15 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder - getRowOrBuilder(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( + int index) { return row_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3630,7 +3162,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < annotationSpecId_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecId_.getRaw(i)); } @@ -3658,7 +3191,8 @@ public int getSerializedSize() { size += 1 * getAnnotationSpecIdList().size(); } for (int i = 0; i < row_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, row_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, row_.get(i)); } { int dataSize = 0; @@ -3676,18 +3210,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix)) { + if (!(obj instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix)) { return super.equals(obj); } - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix other = - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) obj; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix other = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) obj; - if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; - if (!getDisplayNameList().equals(other.getDisplayNameList())) return false; - if (!getRowList().equals(other.getRowList())) return false; + if (!getAnnotationSpecIdList() + .equals(other.getAnnotationSpecIdList())) return false; + if (!getDisplayNameList() + .equals(other.getDisplayNameList())) return false; + if (!getRowList() + .equals(other.getRowList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3716,101 +3251,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom( - com.google.protobuf.CodedInputStream 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3820,52 +3342,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Confusion matrix of the model running the classification.
      * 
* * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.class, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder - .class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder.class); } - // Construct using - // com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder() + // Construct using com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRowFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3883,22 +3398,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ClassificationProto - .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .getDefaultInstance(); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix build() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix result = - buildPartial(); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3906,10 +3418,8 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - buildPartial() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix result = - new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix(this); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix buildPartial() { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix result = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); @@ -3938,54 +3448,46 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix) { - return mergeFrom( - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) other); + if (other instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) { + return mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix other) { - if (other - == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix other) { + if (other == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance()) return this; if (!other.annotationSpecId_.isEmpty()) { if (annotationSpecId_.isEmpty()) { annotationSpecId_ = other.annotationSpecId_; @@ -4024,10 +3526,9 @@ public Builder mergeFrom( rowBuilder_ = null; row_ = other.row_; bitField0_ = (bitField0_ & ~0x00000004); - rowBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRowFieldBuilder() - : null; + rowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRowFieldBuilder() : null; } else { rowBuilder_.addAllMessages(other.row_); } @@ -4048,14 +3549,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parsedMessage = - null; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4064,21 +3562,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList annotationSpecId_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAnnotationSpecIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4087,15 +3580,13 @@ private void ensureAnnotationSpecIdIsMutable() {
        * 
* * repeated string annotation_spec_id = 1; - * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList + getAnnotationSpecIdList() { return annotationSpecId_.getUnmodifiableView(); } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4104,15 +3595,12 @@ public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() {
        * 
* * repeated string annotation_spec_id = 1; - * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4121,7 +3609,6 @@ public int getAnnotationSpecIdCount() {
        * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -4129,8 +3616,6 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4139,16 +3624,14 @@ public java.lang.String getAnnotationSpecId(int index) {
        * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4157,23 +3640,21 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) {
        * 
* * repeated string annotation_spec_id = 1; - * * @param index The index to set the value at. * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId(int index, java.lang.String value) { + public Builder setAnnotationSpecId( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.set(index, value); onChanged(); return this; } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4182,22 +3663,20 @@ public Builder setAnnotationSpecId(int index, java.lang.String value) {
        * 
* * repeated string annotation_spec_id = 1; - * * @param value The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecId(java.lang.String value) { + public Builder addAnnotationSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4206,19 +3685,18 @@ public Builder addAnnotationSpecId(java.lang.String value) {
        * 
* * repeated string annotation_spec_id = 1; - * * @param values The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAllAnnotationSpecId(java.lang.Iterable values) { + public Builder addAllAnnotationSpecId( + java.lang.Iterable values) { ensureAnnotationSpecIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotationSpecId_); onChanged(); return this; } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4227,7 +3705,6 @@ public Builder addAllAnnotationSpecId(java.lang.Iterable value
        * 
* * repeated string annotation_spec_id = 1; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { @@ -4237,8 +3714,6 @@ public Builder clearAnnotationSpecId() { return this; } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4247,33 +3722,29 @@ public Builder clearAnnotationSpecId() {
        * 
* * repeated string annotation_spec_id = 1; - * * @param value The bytes of the annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder addAnnotationSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList displayName_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList displayName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDisplayNameIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { displayName_ = new com.google.protobuf.LazyStringArrayList(displayName_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4284,15 +3755,13 @@ private void ensureDisplayNameIsMutable() {
        * 
* * repeated string display_name = 3; - * * @return A list containing the displayName. */ - public com.google.protobuf.ProtocolStringList getDisplayNameList() { + public com.google.protobuf.ProtocolStringList + getDisplayNameList() { return displayName_.getUnmodifiableView(); } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4303,15 +3772,12 @@ public com.google.protobuf.ProtocolStringList getDisplayNameList() {
        * 
* * repeated string display_name = 3; - * * @return The count of displayName. */ public int getDisplayNameCount() { return displayName_.size(); } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4322,7 +3788,6 @@ public int getDisplayNameCount() {
        * 
* * repeated string display_name = 3; - * * @param index The index of the element to return. * @return The displayName at the given index. */ @@ -4330,8 +3795,6 @@ public java.lang.String getDisplayName(int index) { return displayName_.get(index); } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4342,16 +3805,14 @@ public java.lang.String getDisplayName(int index) {
        * 
* * repeated string display_name = 3; - * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - public com.google.protobuf.ByteString getDisplayNameBytes(int index) { + public com.google.protobuf.ByteString + getDisplayNameBytes(int index) { return displayName_.getByteString(index); } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4362,23 +3823,21 @@ public com.google.protobuf.ByteString getDisplayNameBytes(int index) {
        * 
* * repeated string display_name = 3; - * * @param index The index to set the value at. * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(int index, java.lang.String value) { + public Builder setDisplayName( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDisplayNameIsMutable(); + throw new NullPointerException(); + } + ensureDisplayNameIsMutable(); displayName_.set(index, value); onChanged(); return this; } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4389,22 +3848,20 @@ public Builder setDisplayName(int index, java.lang.String value) {
        * 
* * repeated string display_name = 3; - * * @param value The displayName to add. * @return This builder for chaining. */ - public Builder addDisplayName(java.lang.String value) { + public Builder addDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDisplayNameIsMutable(); + throw new NullPointerException(); + } + ensureDisplayNameIsMutable(); displayName_.add(value); onChanged(); return this; } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4415,19 +3872,18 @@ public Builder addDisplayName(java.lang.String value) {
        * 
* * repeated string display_name = 3; - * * @param values The displayName to add. * @return This builder for chaining. */ - public Builder addAllDisplayName(java.lang.Iterable values) { + public Builder addAllDisplayName( + java.lang.Iterable values) { ensureDisplayNameIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, displayName_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, displayName_); onChanged(); return this; } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4438,7 +3894,6 @@ public Builder addAllDisplayName(java.lang.Iterable values) {
        * 
* * repeated string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -4448,8 +3903,6 @@ public Builder clearDisplayName() { return this; } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4460,46 +3913,34 @@ public Builder clearDisplayName() {
        * 
* * repeated string display_name = 3; - * * @param value The bytes of the displayName to add. * @return This builder for chaining. */ - public Builder addDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder addDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDisplayNameIsMutable(); displayName_.add(value); onChanged(); return this; } - private java.util.List< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row> - row_ = java.util.Collections.emptyList(); - + private java.util.List row_ = + java.util.Collections.emptyList(); private void ensureRowIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - row_ = - new java.util.ArrayList< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row>( - row_); + row_ = new java.util.ArrayList(row_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .RowOrBuilder> - rowBuilder_; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> rowBuilder_; /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4508,13 +3949,9 @@ private void ensureRowIsMutable() {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public java.util.List< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row> - getRowList() { + public java.util.List getRowList() { if (rowBuilder_ == null) { return java.util.Collections.unmodifiableList(row_); } else { @@ -4522,8 +3959,6 @@ private void ensureRowIsMutable() { } } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4532,9 +3967,7 @@ private void ensureRowIsMutable() {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public int getRowCount() { if (rowBuilder_ == null) { @@ -4544,8 +3977,6 @@ public int getRowCount() { } } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4554,12 +3985,9 @@ public int getRowCount() {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow( - int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index) { if (rowBuilder_ == null) { return row_.get(index); } else { @@ -4567,8 +3995,6 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri } } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4577,13 +4003,10 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder setRow( - int index, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { + int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4597,8 +4020,6 @@ public Builder setRow( return this; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4607,14 +4028,10 @@ public Builder setRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder setRow( - int index, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder - builderForValue) { + int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.set(index, builderForValue.build()); @@ -4625,8 +4042,6 @@ public Builder setRow( return this; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4635,12 +4050,9 @@ public Builder setRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public Builder addRow( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { + public Builder addRow(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4654,8 +4066,6 @@ public Builder addRow( return this; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4664,13 +4074,10 @@ public Builder addRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder addRow( - int index, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { + int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4684,8 +4091,6 @@ public Builder addRow( return this; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4694,13 +4099,10 @@ public Builder addRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder addRow( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder - builderForValue) { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.add(builderForValue.build()); @@ -4711,8 +4113,6 @@ public Builder addRow( return this; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4721,14 +4121,10 @@ public Builder addRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder addRow( - int index, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder - builderForValue) { + int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.add(index, builderForValue.build()); @@ -4739,8 +4135,6 @@ public Builder addRow( return this; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4749,19 +4143,14 @@ public Builder addRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder addAllRow( - java.lang.Iterable< - ? extends - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .Row> - values) { + java.lang.Iterable values) { if (rowBuilder_ == null) { ensureRowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, row_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, row_); onChanged(); } else { rowBuilder_.addAllMessages(values); @@ -4769,8 +4158,6 @@ public Builder addAllRow( return this; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4779,9 +4166,7 @@ public Builder addAllRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder clearRow() { if (rowBuilder_ == null) { @@ -4794,8 +4179,6 @@ public Builder clearRow() { return this; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4804,9 +4187,7 @@ public Builder clearRow() {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder removeRow(int index) { if (rowBuilder_ == null) { @@ -4819,8 +4200,6 @@ public Builder removeRow(int index) { return this; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4829,17 +4208,13 @@ public Builder removeRow(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder - getRowBuilder(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder getRowBuilder( + int index) { return getRowFieldBuilder().getBuilder(index); } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4848,21 +4223,16 @@ public Builder removeRow(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder - getRowOrBuilder(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( + int index) { if (rowBuilder_ == null) { - return row_.get(index); - } else { + return row_.get(index); } else { return rowBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4871,15 +4241,10 @@ public Builder removeRow(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public java.util.List< - ? extends - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .RowOrBuilder> - getRowOrBuilderList() { + public java.util.List + getRowOrBuilderList() { if (rowBuilder_ != null) { return rowBuilder_.getMessageOrBuilderList(); } else { @@ -4887,8 +4252,6 @@ public Builder removeRow(int index) { } } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4897,20 +4260,13 @@ public Builder removeRow(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder - addRowBuilder() { - return getRowFieldBuilder() - .addBuilder( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .getDefaultInstance()); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addRowBuilder() { + return getRowFieldBuilder().addBuilder( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4919,21 +4275,14 @@ public Builder removeRow(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder - addRowBuilder(int index) { - return getRowFieldBuilder() - .addBuilder( - index, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .getDefaultInstance()); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addRowBuilder( + int index) { + return getRowFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4942,38 +4291,26 @@ public Builder removeRow(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public java.util.List< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .Builder> - getRowBuilderList() { + public java.util.List + getRowBuilderList() { return getRowFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .RowOrBuilder> + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> getRowFieldBuilder() { if (rowBuilder_ == null) { - rowBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - .Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .RowOrBuilder>( - row_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder>( + row_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); row_ = null; } return rowBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4986,33 +4323,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) - private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix(); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - getDefaultInstance() { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfusionMatrix parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfusionMatrix(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfusionMatrix parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfusionMatrix(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5024,24 +4358,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int AU_PRC_FIELD_NUMBER = 1; private float auPrc_; /** - * - * *
    * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
    * for the overall evaluation.
    * 
* * float au_prc = 1; - * * @return The auPrc. */ @java.lang.Override @@ -5052,15 +4383,12 @@ public float getAuPrc() { 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; - * * @return The auRoc. */ @java.lang.Override @@ -5071,14 +4399,11 @@ public float getAuRoc() { public static final int LOG_LOSS_FIELD_NUMBER = 7; private float logLoss_; /** - * - * *
    * Output only. The Log Loss metric.
    * 
* * float log_loss = 7; - * * @return The logLoss. */ @java.lang.Override @@ -5087,12 +4412,8 @@ public float getLogLoss() { } public static final int CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER = 3; - private java.util.List< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry> - confidenceMetricsEntry_; + private java.util.List confidenceMetricsEntry_; /** - * - * *
    * 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
@@ -5103,19 +4424,13 @@ public float getLogLoss() {
    * metrics are computed.
    * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ @java.lang.Override - public java.util.List< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry> - getConfidenceMetricsEntryList() { + public java.util.List getConfidenceMetricsEntryList() { return confidenceMetricsEntry_; } /** - * - * *
    * 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
@@ -5126,21 +4441,14 @@ public float getLogLoss() {
    * metrics are computed.
    * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> + public java.util.List getConfidenceMetricsEntryOrBuilderList() { return confidenceMetricsEntry_; } /** - * - * *
    * 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
@@ -5151,17 +4459,13 @@ public float getLogLoss() {
    * metrics are computed.
    * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ @java.lang.Override public int getConfidenceMetricsEntryCount() { return confidenceMetricsEntry_.size(); } /** - * - * *
    * 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
@@ -5172,18 +4476,13 @@ public int getConfidenceMetricsEntryCount() {
    * metrics are computed.
    * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - getConfidenceMetricsEntry(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index) { return confidenceMetricsEntry_.get(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
@@ -5194,22 +4493,17 @@ public int getConfidenceMetricsEntryCount() {
    * metrics are computed.
    * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntryOrBuilder(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( + int index) { return confidenceMetricsEntry_.get(index); } public static final int CONFUSION_MATRIX_FIELD_NUMBER = 4; - private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - confusionMatrix_; + private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; /** - * - * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -5217,10 +4511,7 @@ public int getConfidenceMetricsEntryCount() {
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return Whether the confusionMatrix field is set. */ @java.lang.Override @@ -5228,8 +4519,6 @@ public boolean hasConfusionMatrix() { return confusionMatrix_ != null; } /** - * - * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -5237,23 +4526,14 @@ public boolean hasConfusionMatrix() {
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return The confusionMatrix. */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - getConfusionMatrix() { - return confusionMatrix_ == null - ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .getDefaultInstance() - : confusionMatrix_; + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { + return confusionMatrix_ == null ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } /** - * - * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -5261,55 +4541,44 @@ public boolean hasConfusionMatrix() {
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { return getConfusionMatrix(); } public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList annotationSpecId_; /** - * - * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; - * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList + getAnnotationSpecIdList() { return annotationSpecId_; } /** - * - * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; - * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** - * - * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -5317,23 +4586,20 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** - * - * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + 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; @@ -5345,7 +4611,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (auPrc_ != 0F) { output.writeFloat(1, auPrc_); } @@ -5374,15 +4641,16 @@ public int getSerializedSize() { size = 0; if (auPrc_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, auPrc_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, auPrc_); } for (int i = 0; i < confidenceMetricsEntry_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, confidenceMetricsEntry_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, confidenceMetricsEntry_.get(i)); } if (confusionMatrix_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfusionMatrix()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getConfusionMatrix()); } { int dataSize = 0; @@ -5393,10 +4661,12 @@ public int getSerializedSize() { size += 1 * getAnnotationSpecIdList().size(); } if (auRoc_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, auRoc_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, auRoc_); } if (logLoss_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, logLoss_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, logLoss_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5406,27 +4676,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1.ClassificationEvaluationMetrics other = - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) obj; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics other = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) obj; if (java.lang.Float.floatToIntBits(getAuPrc()) - != java.lang.Float.floatToIntBits(other.getAuPrc())) return false; + != java.lang.Float.floatToIntBits( + other.getAuPrc())) return false; if (java.lang.Float.floatToIntBits(getAuRoc()) - != java.lang.Float.floatToIntBits(other.getAuRoc())) return false; + != 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; + != java.lang.Float.floatToIntBits( + other.getLogLoss())) return false; + if (!getConfidenceMetricsEntryList() + .equals(other.getConfidenceMetricsEntryList())) return false; if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; if (hasConfusionMatrix()) { - if (!getConfusionMatrix().equals(other.getConfusionMatrix())) return false; + if (!getConfusionMatrix() + .equals(other.getConfusionMatrix())) return false; } - if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; + if (!getAnnotationSpecIdList() + .equals(other.getAnnotationSpecIdList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5439,11 +4713,14 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AU_PRC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuPrc()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getAuPrc()); hash = (37 * hash) + AU_ROC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuRoc()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getAuRoc()); hash = (37 * hash) + LOG_LOSS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLogLoss()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getLogLoss()); if (getConfidenceMetricsEntryCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntryList().hashCode(); @@ -5462,104 +4739,96 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ClassificationEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics 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.v1.ClassificationEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ClassificationEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model evaluation metrics for classification problems.
    * Note: For Video Classification this metrics only describe quality of the
@@ -5568,23 +4837,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics)
       com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.ClassificationProto
-          .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.ClassificationProto
-          .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable
+      return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.ClassificationEvaluationMetrics.class,
-              com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder.class);
+              com.google.cloud.automl.v1.ClassificationEvaluationMetrics.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.ClassificationEvaluationMetrics.newBuilder()
@@ -5592,17 +4859,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getConfidenceMetricsEntryFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -5630,9 +4897,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.ClassificationProto
-          .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
@@ -5651,8 +4918,7 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.ClassificationEvaluationMetrics buildPartial() {
-      com.google.cloud.automl.v1.ClassificationEvaluationMetrics result =
-          new com.google.cloud.automl.v1.ClassificationEvaluationMetrics(this);
+      com.google.cloud.automl.v1.ClassificationEvaluationMetrics result = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics(this);
       int from_bitField0_ = bitField0_;
       result.auPrc_ = auPrc_;
       result.auRoc_ = auRoc_;
@@ -5684,39 +4950,38 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.ClassificationEvaluationMetrics) {
-        return mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics) other);
+        return mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -5724,8 +4989,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetrics other) {
-      if (other == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance()) return this;
       if (other.getAuPrc() != 0F) {
         setAuPrc(other.getAuPrc());
       }
@@ -5753,10 +5017,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetr
             confidenceMetricsEntryBuilder_ = null;
             confidenceMetricsEntry_ = other.confidenceMetricsEntry_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            confidenceMetricsEntryBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConfidenceMetricsEntryFieldBuilder()
-                    : null;
+            confidenceMetricsEntryBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConfidenceMetricsEntryFieldBuilder() : null;
           } else {
             confidenceMetricsEntryBuilder_.addAllMessages(other.confidenceMetricsEntry_);
           }
@@ -5794,8 +5057,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -5804,20 +5066,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private float auPrc_;
+    private float auPrc_ ;
     /**
-     *
-     *
      * 
      * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
      * for the overall evaluation.
      * 
* * float au_prc = 1; - * * @return The auPrc. */ @java.lang.Override @@ -5825,54 +5083,45 @@ public float getAuPrc() { return auPrc_; } /** - * - * *
      * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
      * for the overall evaluation.
      * 
* * float au_prc = 1; - * * @param value The auPrc to set. * @return This builder for chaining. */ public Builder setAuPrc(float value) { - + auPrc_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
      * for the overall evaluation.
      * 
* * float au_prc = 1; - * * @return This builder for chaining. */ public Builder clearAuPrc() { - + auPrc_ = 0F; onChanged(); return this; } - private float auRoc_; + private float auRoc_ ; /** - * - * *
      * Output only. The Area Under Receiver Operating Characteristic curve metric.
      * Micro-averaged for the overall evaluation.
      * 
* * float au_roc = 6; - * * @return The auRoc. */ @java.lang.Override @@ -5880,53 +5129,44 @@ 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; - * * @param value The auRoc to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearAuRoc() { - + auRoc_ = 0F; onChanged(); return this; } - private float logLoss_; + private float logLoss_ ; /** - * - * *
      * Output only. The Log Loss metric.
      * 
* * float log_loss = 7; - * * @return The logLoss. */ @java.lang.Override @@ -5934,66 +5174,48 @@ public float getLogLoss() { return logLoss_; } /** - * - * *
      * Output only. The Log Loss metric.
      * 
* * float log_loss = 7; - * * @param value The logLoss to set. * @return This builder for chaining. */ public Builder setLogLoss(float value) { - + logLoss_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The Log Loss metric.
      * 
* * float log_loss = 7; - * * @return This builder for chaining. */ public Builder clearLogLoss() { - + logLoss_ = 0F; onChanged(); return this; } - private java.util.List< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry> - confidenceMetricsEntry_ = java.util.Collections.emptyList(); - + private java.util.List confidenceMetricsEntry_ = + java.util.Collections.emptyList(); private void ensureConfidenceMetricsEntryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntry_ = - new java.util.ArrayList< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry>( - confidenceMetricsEntry_); + confidenceMetricsEntry_ = new java.util.ArrayList(confidenceMetricsEntry_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> - confidenceMetricsEntryBuilder_; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> confidenceMetricsEntryBuilder_; /** - * - * *
      * 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
@@ -6004,13 +5226,9 @@ private void ensureConfidenceMetricsEntryIsMutable() {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public java.util.List< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry> - getConfidenceMetricsEntryList() { + public java.util.List getConfidenceMetricsEntryList() { if (confidenceMetricsEntryBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntry_); } else { @@ -6018,8 +5236,6 @@ private void ensureConfidenceMetricsEntryIsMutable() { } } /** - * - * *
      * 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
@@ -6030,9 +5246,7 @@ private void ensureConfidenceMetricsEntryIsMutable() {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public int getConfidenceMetricsEntryCount() { if (confidenceMetricsEntryBuilder_ == null) { @@ -6042,8 +5256,6 @@ public 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
@@ -6054,12 +5266,9 @@ public int getConfidenceMetricsEntryCount() {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - getConfidenceMetricsEntry(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index) { if (confidenceMetricsEntryBuilder_ == null) { return confidenceMetricsEntry_.get(index); } else { @@ -6067,8 +5276,6 @@ public 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
@@ -6079,13 +5286,10 @@ public int getConfidenceMetricsEntryCount() {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder setConfidenceMetricsEntry( - int index, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6099,8 +5303,6 @@ public Builder setConfidenceMetricsEntry( return this; } /** - * - * *
      * 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
@@ -6111,14 +5313,10 @@ public Builder setConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder setConfidenceMetricsEntry( - int index, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder - builderForValue) { + int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.set(index, builderForValue.build()); @@ -6129,8 +5327,6 @@ public Builder setConfidenceMetricsEntry( return this; } /** - * - * *
      * 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
@@ -6141,12 +5337,9 @@ public Builder setConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public Builder addConfidenceMetricsEntry( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntry(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6160,8 +5353,6 @@ public Builder addConfidenceMetricsEntry( return this; } /** - * - * *
      * 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
@@ -6172,13 +5363,10 @@ public Builder addConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder addConfidenceMetricsEntry( - int index, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6192,8 +5380,6 @@ public Builder addConfidenceMetricsEntry( return this; } /** - * - * *
      * 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
@@ -6204,13 +5390,10 @@ public Builder addConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder addConfidenceMetricsEntry( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder - builderForValue) { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.add(builderForValue.build()); @@ -6221,8 +5404,6 @@ public Builder addConfidenceMetricsEntry( return this; } /** - * - * *
      * 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
@@ -6233,14 +5414,10 @@ public Builder addConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder addConfidenceMetricsEntry( - int index, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder - builderForValue) { + int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.add(index, builderForValue.build()); @@ -6251,8 +5428,6 @@ public Builder addConfidenceMetricsEntry( return this; } /** - * - * *
      * 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
@@ -6263,19 +5438,14 @@ public Builder addConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder addAllConfidenceMetricsEntry( - java.lang.Iterable< - ? extends - com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry> - values) { + java.lang.Iterable values) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntry_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, confidenceMetricsEntry_); onChanged(); } else { confidenceMetricsEntryBuilder_.addAllMessages(values); @@ -6283,8 +5453,6 @@ public Builder addAllConfidenceMetricsEntry( return this; } /** - * - * *
      * 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
@@ -6295,9 +5463,7 @@ public Builder addAllConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder clearConfidenceMetricsEntry() { if (confidenceMetricsEntryBuilder_ == null) { @@ -6310,8 +5476,6 @@ public Builder clearConfidenceMetricsEntry() { return this; } /** - * - * *
      * 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
@@ -6322,9 +5486,7 @@ public Builder clearConfidenceMetricsEntry() {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder removeConfidenceMetricsEntry(int index) { if (confidenceMetricsEntryBuilder_ == null) { @@ -6337,8 +5499,6 @@ public Builder removeConfidenceMetricsEntry(int index) { return this; } /** - * - * *
      * 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
@@ -6349,17 +5509,13 @@ public Builder removeConfidenceMetricsEntry(int index) {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder - getConfidenceMetricsEntryBuilder(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntryBuilder( + int index) { return getConfidenceMetricsEntryFieldBuilder().getBuilder(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
@@ -6370,22 +5526,16 @@ public Builder removeConfidenceMetricsEntry(int index) {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntryOrBuilder(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( + int index) { if (confidenceMetricsEntryBuilder_ == null) { - return confidenceMetricsEntry_.get(index); - } else { + return confidenceMetricsEntry_.get(index); } else { return confidenceMetricsEntryBuilder_.getMessageOrBuilder(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
@@ -6396,15 +5546,10 @@ public Builder removeConfidenceMetricsEntry(int index) {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public java.util.List< - ? extends - com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> - getConfidenceMetricsEntryOrBuilderList() { + public java.util.List + getConfidenceMetricsEntryOrBuilderList() { if (confidenceMetricsEntryBuilder_ != null) { return confidenceMetricsEntryBuilder_.getMessageOrBuilderList(); } else { @@ -6412,8 +5557,6 @@ public Builder removeConfidenceMetricsEntry(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
@@ -6424,20 +5567,13 @@ public Builder removeConfidenceMetricsEntry(int index) {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder - addConfidenceMetricsEntryBuilder() { - return getConfidenceMetricsEntryFieldBuilder() - .addBuilder( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .getDefaultInstance()); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntryBuilder() { + return getConfidenceMetricsEntryFieldBuilder().addBuilder( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); } /** - * - * *
      * 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
@@ -6448,21 +5584,14 @@ public Builder removeConfidenceMetricsEntry(int index) {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder - addConfidenceMetricsEntryBuilder(int index) { - return getConfidenceMetricsEntryFieldBuilder() - .addBuilder( - index, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .getDefaultInstance()); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntryBuilder( + int index) { + return getConfidenceMetricsEntryFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); } /** - * - * *
      * 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
@@ -6473,32 +5602,18 @@ public Builder removeConfidenceMetricsEntry(int index) {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public java.util.List< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .Builder> - getConfidenceMetricsEntryBuilderList() { + public java.util.List + getConfidenceMetricsEntryBuilderList() { return getConfidenceMetricsEntryFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntryFieldBuilder() { if (confidenceMetricsEntryBuilder_ == null) { - confidenceMetricsEntryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - .Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntry_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -6508,16 +5623,10 @@ public Builder removeConfidenceMetricsEntry(int index) { return confidenceMetricsEntryBuilder_; } - private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - confusionMatrix_; + private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> - confusionMatrixBuilder_; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> confusionMatrixBuilder_; /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6525,18 +5634,13 @@ public Builder removeConfidenceMetricsEntry(int index) {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return Whether the confusionMatrix field is set. */ public boolean hasConfusionMatrix() { return confusionMatrixBuilder_ != null || confusionMatrix_ != null; } /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6544,26 +5648,17 @@ public boolean hasConfusionMatrix() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return The confusionMatrix. */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - getConfusionMatrix() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { if (confusionMatrixBuilder_ == null) { - return confusionMatrix_ == null - ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .getDefaultInstance() - : confusionMatrix_; + return confusionMatrix_ == null ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } else { return confusionMatrixBuilder_.getMessage(); } } /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6571,12 +5666,9 @@ public boolean hasConfusionMatrix() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ - public Builder setConfusionMatrix( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { + public Builder setConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6590,8 +5682,6 @@ public Builder setConfusionMatrix( return this; } /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6599,13 +5689,10 @@ public Builder setConfusionMatrix(
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ public Builder setConfusionMatrix( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder - builderForValue) { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue) { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = builderForValue.build(); onChanged(); @@ -6616,8 +5703,6 @@ public Builder setConfusionMatrix( return this; } /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6625,19 +5710,13 @@ public Builder setConfusionMatrix(
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ - public Builder mergeConfusionMatrix( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { + public Builder mergeConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (confusionMatrix_ != null) { confusionMatrix_ = - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder( - confusionMatrix_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder(confusionMatrix_).mergeFrom(value).buildPartial(); } else { confusionMatrix_ = value; } @@ -6649,8 +5728,6 @@ public Builder mergeConfusionMatrix( return this; } /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6658,9 +5735,7 @@ public Builder mergeConfusionMatrix(
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ public Builder clearConfusionMatrix() { if (confusionMatrixBuilder_ == null) { @@ -6674,8 +5749,6 @@ public Builder clearConfusionMatrix() { return this; } /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6683,19 +5756,14 @@ public Builder clearConfusionMatrix() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder - getConfusionMatrixBuilder() { - + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder getConfusionMatrixBuilder() { + onChanged(); return getConfusionMatrixFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6703,24 +5771,17 @@ public Builder clearConfusionMatrix() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { if (confusionMatrixBuilder_ != null) { return confusionMatrixBuilder_.getMessageOrBuilder(); } else { - return confusionMatrix_ == null - ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .getDefaultInstance() - : confusionMatrix_; + return confusionMatrix_ == null ? + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } } /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6728,74 +5789,58 @@ public Builder clearConfusionMatrix() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> getConfusionMatrixFieldBuilder() { if (confusionMatrixBuilder_ == null) { - confusionMatrixBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfusionMatrixOrBuilder>( - getConfusionMatrix(), getParentForChildren(), isClean()); + confusionMatrixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder>( + getConfusionMatrix(), + getParentForChildren(), + isClean()); confusionMatrix_ = null; } return confusionMatrixBuilder_; } - private com.google.protobuf.LazyStringList annotationSpecId_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAnnotationSpecIdIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList + getAnnotationSpecIdList() { return annotationSpecId_.getUnmodifiableView(); } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -6803,90 +5848,80 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @param index The index to set the value at. * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId(int index, java.lang.String value) { + public Builder setAnnotationSpecId( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @param value The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecId(java.lang.String value) { + public Builder addAnnotationSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @param values The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAllAnnotationSpecId(java.lang.Iterable values) { + public Builder addAllAnnotationSpecId( + java.lang.Iterable values) { ensureAnnotationSpecIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotationSpecId_); onChanged(); return this; } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { @@ -6896,30 +5931,28 @@ public Builder clearAnnotationSpecId() { return this; } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @param value The bytes of the annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder addAnnotationSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6929,12 +5962,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics) private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics(); } @@ -6943,16 +5976,16 @@ public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationEvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationEvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationEvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6967,4 +6000,6 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.automl.v1.ClassificationEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java similarity index 69% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java index ec77cd9c9..ec2127145 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java @@ -1,72 +1,45 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/classification.proto package com.google.cloud.automl.v1; -public interface ClassificationEvaluationMetricsOrBuilder - extends +public interface ClassificationEvaluationMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ClassificationEvaluationMetrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
    * for the overall evaluation.
    * 
* * float au_prc = 1; - * * @return The auPrc. */ float getAuPrc(); /** - * - * *
    * Output only. The Area Under Receiver Operating Characteristic curve metric.
    * Micro-averaged for the overall evaluation.
    * 
* * float au_roc = 6; - * * @return The auRoc. */ float getAuRoc(); /** - * - * *
    * Output only. The Log Loss metric.
    * 
* * float log_loss = 7; - * * @return The logLoss. */ 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
@@ -77,15 +50,11 @@ public interface ClassificationEvaluationMetricsOrBuilder
    * metrics are computed.
    * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - java.util.List + java.util.List 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
@@ -96,15 +65,10 @@ public interface ClassificationEvaluationMetricsOrBuilder
    * metrics are computed.
    * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - getConfidenceMetricsEntry(int index); + com.google.cloud.automl.v1.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
@@ -115,14 +79,10 @@ public interface ClassificationEvaluationMetricsOrBuilder
    * metrics are computed.
    * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.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
@@ -133,18 +93,11 @@ public interface ClassificationEvaluationMetricsOrBuilder
    * metrics are computed.
    * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - java.util.List< - ? extends - com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> + java.util.List 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
@@ -155,16 +108,12 @@ public interface ClassificationEvaluationMetricsOrBuilder
    * metrics are computed.
    * 
* - * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntryOrBuilder(int index); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( + int index); /** - * - * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -172,16 +121,11 @@ public interface ClassificationEvaluationMetricsOrBuilder
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return Whether the confusionMatrix field is set. */ boolean hasConfusionMatrix(); /** - * - * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -189,16 +133,11 @@ public interface ClassificationEvaluationMetricsOrBuilder
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return The confusionMatrix. */ com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix(); /** - * - * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -206,61 +145,48 @@ public interface ClassificationEvaluationMetricsOrBuilder
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder(); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder(); /** - * - * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; - * * @return A list containing the annotationSpecId. */ - java.util.List getAnnotationSpecIdList(); + java.util.List + getAnnotationSpecIdList(); /** - * - * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; - * * @return The count of annotationSpecId. */ int getAnnotationSpecIdCount(); /** - * - * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ java.lang.String getAnnotationSpecId(int index); /** - * - * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); + com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java new file mode 100644 index 000000000..21ce57339 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java @@ -0,0 +1,125 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/classification.proto + +package com.google.cloud.automl.v1; + +public final class ClassificationProto { + private ClassificationProto() {} + 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_v1_ClassificationAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_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/v1/classification." + + "proto\022\026google.cloud.automl.v1\032\034google/ap" + + "i/annotations.proto\")\n\030ClassificationAnn" + + "otation\022\r\n\005score\030\001 \001(\002\"\201\007\n\037Classificatio" + + "nEvaluationMetrics\022\016\n\006au_prc\030\001 \001(\002\022\016\n\006au" + + "_roc\030\006 \001(\002\022\020\n\010log_loss\030\007 \001(\002\022p\n\030confiden" + + "ce_metrics_entry\030\003 \003(\0132N.google.cloud.au" + + "toml.v1.ClassificationEvaluationMetrics." + + "ConfidenceMetricsEntry\022a\n\020confusion_matr" + + "ix\030\004 \001(\0132G.google.cloud.automl.v1.Classi" + + "ficationEvaluationMetrics.ConfusionMatri" + + "x\022\032\n\022annotation_spec_id\030\005 \003(\t\032\374\002\n\026Confid" + + "enceMetricsEntry\022\034\n\024confidence_threshold" + + "\030\001 \001(\002\022\032\n\022position_threshold\030\016 \001(\005\022\016\n\006re" + + "call\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\002\022\033\n\023false_p" + + "ositive_rate\030\010 \001(\002\022\020\n\010f1_score\030\004 \001(\002\022\022\n\n" + + "recall_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_s" + + "core_at1\030\007 \001(\002\022\033\n\023true_positive_count\030\n " + + "\001(\003\022\034\n\024false_positive_count\030\013 \001(\003\022\034\n\024fal" + + "se_negative_count\030\014 \001(\003\022\033\n\023true_negative" + + "_count\030\r \001(\003\032\273\001\n\017ConfusionMatrix\022\032\n\022anno" + + "tation_spec_id\030\001 \003(\t\022\024\n\014display_name\030\003 \003" + + "(\t\022X\n\003row\030\002 \003(\0132K.google.cloud.automl.v1" + + ".ClassificationEvaluationMetrics.Confusi" + + "onMatrix.Row\032\034\n\003Row\022\025\n\rexample_count\030\001 \003" + + "(\005*Y\n\022ClassificationType\022#\n\037CLASSIFICATI" + + "ON_TYPE_UNSPECIFIED\020\000\022\016\n\nMULTICLASS\020\001\022\016\n" + + "\nMULTILABEL\020\002B\277\001\n\032com.google.cloud.autom" + + "l.v1B\023ClassificationProtoP\001Z * Type of the classification problem. *
* * Protobuf enum {@code google.cloud.automl.v1.ClassificationType} */ -public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnum { +public enum ClassificationType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * An un-set value of this enum.
    * 
@@ -39,8 +21,6 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu */ CLASSIFICATION_TYPE_UNSPECIFIED(0), /** - * - * *
    * At most one label is allowed per example.
    * 
@@ -49,8 +29,6 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu */ MULTICLASS(1), /** - * - * *
    * Multiple labels are allowed for one example.
    * 
@@ -62,8 +40,6 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
    * An un-set value of this enum.
    * 
@@ -72,8 +48,6 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu */ public static final int CLASSIFICATION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * At most one label is allowed per example.
    * 
@@ -82,8 +56,6 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu */ public static final int MULTICLASS_VALUE = 1; /** - * - * *
    * Multiple labels are allowed for one example.
    * 
@@ -92,6 +64,7 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu */ public static final int MULTILABEL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,42 +89,39 @@ public static ClassificationType valueOf(int value) { */ public static ClassificationType forNumber(int value) { switch (value) { - case 0: - return CLASSIFICATION_TYPE_UNSPECIFIED; - case 1: - return MULTICLASS; - case 2: - return MULTILABEL; - default: - return null; + case 0: return CLASSIFICATION_TYPE_UNSPECIFIED; + case 1: return MULTICLASS; + case 2: return MULTILABEL; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 ClassificationType findValueByNumber(int number) { - return ClassificationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ClassificationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClassificationType findValueByNumber(int number) { + return ClassificationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.automl.v1.ClassificationProto.getDescriptor().getEnumTypes().get(0); } @@ -160,7 +130,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ClassificationType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -176,3 +147,4 @@ private ClassificationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.automl.v1.ClassificationType) } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java similarity index 64% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java index 82f43ebcb..467649f3b 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java @@ -1,56 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** - * - * *
  * Details of CreateDataset operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.CreateDatasetOperationMetadata} */ -public final class CreateDatasetOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDatasetOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.CreateDatasetOperationMetadata) CreateDatasetOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDatasetOperationMetadata.newBuilder() to construct. - private CreateDatasetOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateDatasetOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CreateDatasetOperationMetadata() {} + private CreateDatasetOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDatasetOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateDatasetOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,42 +52,39 @@ private CreateDatasetOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.Operations - .internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.class, - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder.class); + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.class, com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -134,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.CreateDatasetOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.CreateDatasetOperationMetadata other = - (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) obj; + com.google.cloud.automl.v1.CreateDatasetOperationMetadata other = (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -159,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CreateDatasetOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata 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.v1.CreateDatasetOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.CreateDatasetOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.CreateDatasetOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Details of CreateDataset operation.
    * 
* * Protobuf type {@code google.cloud.automl.v1.CreateDatasetOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.CreateDatasetOperationMetadata) com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.class, - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder.class); + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.class, com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.CreateDatasetOperationMetadata.newBuilder() @@ -287,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -303,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; } @java.lang.Override @@ -324,8 +295,7 @@ public com.google.cloud.automl.v1.CreateDatasetOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.CreateDatasetOperationMetadata buildPartial() { - com.google.cloud.automl.v1.CreateDatasetOperationMetadata result = - new com.google.cloud.automl.v1.CreateDatasetOperationMetadata(this); + com.google.cloud.automl.v1.CreateDatasetOperationMetadata result = new com.google.cloud.automl.v1.CreateDatasetOperationMetadata(this); onBuilt(); return result; } @@ -334,39 +304,38 @@ public com.google.cloud.automl.v1.CreateDatasetOperationMetadata buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.CreateDatasetOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.CreateDatasetOperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.CreateDatasetOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -374,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.CreateDatasetOperationMetadata other) { - if (other == com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -395,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -405,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -417,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.CreateDatasetOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.CreateDatasetOperationMetadata) private static final com.google.cloud.automl.v1.CreateDatasetOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.CreateDatasetOperationMetadata(); } @@ -431,16 +398,16 @@ public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDatasetOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDatasetOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDatasetOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -455,4 +422,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.automl.v1.CreateDatasetOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadataOrBuilder.java new file mode 100644 index 000000000..5327938f3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface CreateDatasetOperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.CreateDatasetOperationMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java index 673d80eff..211b35583 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.CreateDataset][google.cloud.automl.v1.AutoMl.CreateDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1.CreateDatasetRequest} */ -public final class CreateDatasetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.CreateDatasetRequest) CreateDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDatasetRequest.newBuilder() to construct. private CreateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDatasetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,65 @@ private CreateDatasetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.automl.v1.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); } - case 18: - { - com.google.cloud.automl.v1.Dataset.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = - input.readMessage(com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); - } - - break; + dataset_ = input.readMessage(com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateDatasetRequest.class, - com.google.cloud.automl.v1.CreateDatasetRequest.Builder.class); + com.google.cloud.automl.v1.CreateDatasetRequest.class, com.google.cloud.automl.v1.CreateDatasetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -147,31 +120,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -182,15 +153,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DATASET_FIELD_NUMBER = 2; private com.google.cloud.automl.v1.Dataset dataset_; /** - * - * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ @java.lang.Override @@ -198,15 +165,11 @@ public boolean hasDataset() { return dataset_ != null; } /** - * - * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ @java.lang.Override @@ -214,14 +177,11 @@ public com.google.cloud.automl.v1.Dataset getDataset() { return dataset_ == null ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; } /** - * - * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { @@ -229,7 +189,6 @@ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -261,7 +221,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDataset()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -271,18 +232,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.CreateDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.CreateDatasetRequest other = - (com.google.cloud.automl.v1.CreateDatasetRequest) obj; + com.google.cloud.automl.v1.CreateDatasetRequest other = (com.google.cloud.automl.v1.CreateDatasetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasDataset() != other.hasDataset()) return false; if (hasDataset()) { - if (!getDataset().equals(other.getDataset())) return false; + if (!getDataset() + .equals(other.getDataset())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -306,127 +268,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CreateDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateDatasetRequest 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.v1.CreateDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.CreateDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.CreateDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateDatasetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.CreateDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.CreateDataset][google.cloud.automl.v1.AutoMl.CreateDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1.CreateDatasetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.CreateDatasetRequest) com.google.cloud.automl.v1.CreateDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateDatasetRequest.class, - com.google.cloud.automl.v1.CreateDatasetRequest.Builder.class); + com.google.cloud.automl.v1.CreateDatasetRequest.class, com.google.cloud.automl.v1.CreateDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.CreateDatasetRequest.newBuilder() @@ -434,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; } @java.lang.Override @@ -479,8 +433,7 @@ public com.google.cloud.automl.v1.CreateDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1.CreateDatasetRequest buildPartial() { - com.google.cloud.automl.v1.CreateDatasetRequest result = - new com.google.cloud.automl.v1.CreateDatasetRequest(this); + com.google.cloud.automl.v1.CreateDatasetRequest result = new com.google.cloud.automl.v1.CreateDatasetRequest(this); result.parent_ = parent_; if (datasetBuilder_ == null) { result.dataset_ = dataset_; @@ -495,39 +448,38 @@ public com.google.cloud.automl.v1.CreateDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.CreateDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1.CreateDatasetRequest) other); + return mergeFrom((com.google.cloud.automl.v1.CreateDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -535,8 +487,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.CreateDatasetRequest other) { - if (other == com.google.cloud.automl.v1.CreateDatasetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.CreateDatasetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -575,22 +526,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -599,23 +546,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -623,67 +567,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -691,55 +622,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1.Dataset dataset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, - com.google.cloud.automl.v1.Dataset.Builder, - com.google.cloud.automl.v1.DatasetOrBuilder> - datasetBuilder_; + com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> datasetBuilder_; /** - * - * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ public boolean hasDataset() { return datasetBuilder_ != null || dataset_ != null; } /** - * - * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ public com.google.cloud.automl.v1.Dataset getDataset() { if (datasetBuilder_ == null) { - return dataset_ == null - ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; } else { return datasetBuilder_.getMessage(); } } /** - * - * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDataset(com.google.cloud.automl.v1.Dataset value) { if (datasetBuilder_ == null) { @@ -755,16 +670,14 @@ public Builder setDataset(com.google.cloud.automl.v1.Dataset value) { return this; } /** - * - * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDataset(com.google.cloud.automl.v1.Dataset.Builder builderForValue) { + public Builder setDataset( + com.google.cloud.automl.v1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); onChanged(); @@ -775,22 +688,17 @@ public Builder setDataset(com.google.cloud.automl.v1.Dataset.Builder builderForV return this; } /** - * - * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDataset(com.google.cloud.automl.v1.Dataset value) { if (datasetBuilder_ == null) { if (dataset_ != null) { dataset_ = - com.google.cloud.automl.v1.Dataset.newBuilder(dataset_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); } else { dataset_ = value; } @@ -802,14 +710,11 @@ public Builder mergeDataset(com.google.cloud.automl.v1.Dataset value) { return this; } /** - * - * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -823,68 +728,55 @@ public Builder clearDataset() { return this; } /** - * - * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.Dataset.Builder getDatasetBuilder() { - + onChanged(); return getDatasetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { if (datasetBuilder_ != null) { return datasetBuilder_.getMessageOrBuilder(); } else { - return dataset_ == null - ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? + com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; } } /** - * - * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, - com.google.cloud.automl.v1.Dataset.Builder, - com.google.cloud.automl.v1.DatasetOrBuilder> + com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> getDatasetFieldBuilder() { if (datasetBuilder_ == null) { - datasetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, - com.google.cloud.automl.v1.Dataset.Builder, - com.google.cloud.automl.v1.DatasetOrBuilder>( - getDataset(), getParentForChildren(), isClean()); + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); dataset_ = null; } return datasetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -894,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.CreateDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.CreateDatasetRequest) private static final com.google.cloud.automl.v1.CreateDatasetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.CreateDatasetRequest(); } @@ -908,16 +800,16 @@ public static com.google.cloud.automl.v1.CreateDatasetRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.CreateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java index 848a48922..8d4bf52ca 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java @@ -1,92 +1,56 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface CreateDatasetRequestOrBuilder - extends +public interface CreateDatasetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.CreateDatasetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ boolean hasDataset(); /** - * - * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ com.google.cloud.automl.v1.Dataset getDataset(); /** - * - * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java index 7e2db6ce0..52934f43d 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** - * - * *
  * Details of CreateModel operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.CreateModelOperationMetadata} */ -public final class CreateModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateModelOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.CreateModelOperationMetadata) CreateModelOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateModelOperationMetadata.newBuilder() to construct. private CreateModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CreateModelOperationMetadata() {} + private CreateModelOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private CreateModelOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.Operations - .internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateModelOperationMetadata.class, - com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.CreateModelOperationMetadata.class, com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.CreateModelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.CreateModelOperationMetadata other = - (com.google.cloud.automl.v1.CreateModelOperationMetadata) obj; + com.google.cloud.automl.v1.CreateModelOperationMetadata other = (com.google.cloud.automl.v1.CreateModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CreateModelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateModelOperationMetadata 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.v1.CreateModelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.CreateModelOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.CreateModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Details of CreateModel operation.
    * 
* * Protobuf type {@code google.cloud.automl.v1.CreateModelOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.CreateModelOperationMetadata) com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateModelOperationMetadata.class, - com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.CreateModelOperationMetadata.class, com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.CreateModelOperationMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; } @java.lang.Override @@ -323,8 +295,7 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.CreateModelOperationMetadata buildPartial() { - com.google.cloud.automl.v1.CreateModelOperationMetadata result = - new com.google.cloud.automl.v1.CreateModelOperationMetadata(this); + com.google.cloud.automl.v1.CreateModelOperationMetadata result = new com.google.cloud.automl.v1.CreateModelOperationMetadata(this); onBuilt(); return result; } @@ -333,39 +304,38 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.CreateModelOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.CreateModelOperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.CreateModelOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -373,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.CreateModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -394,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.CreateModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.CreateModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -404,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -416,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.CreateModelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.CreateModelOperationMetadata) private static final com.google.cloud.automl.v1.CreateModelOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.CreateModelOperationMetadata(); } @@ -430,16 +398,16 @@ public static com.google.cloud.automl.v1.CreateModelOperationMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateModelOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateModelOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateModelOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateModelOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -454,4 +422,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.CreateModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..ef099b663 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface CreateModelOperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.CreateModelOperationMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java similarity index 67% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java index 58bd26551..1968f9c6f 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.CreateModel][google.cloud.automl.v1.AutoMl.CreateModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1.CreateModelRequest} */ -public final class CreateModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.CreateModelRequest) CreateModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateModelRequest.newBuilder() to construct. private CreateModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateModelRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,65 @@ private CreateModelRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 34: { + com.google.cloud.automl.v1.Model.Builder subBuilder = null; + if (model_ != null) { + subBuilder = model_.toBuilder(); } - case 34: - { - com.google.cloud.automl.v1.Model.Builder subBuilder = null; - if (model_ != null) { - subBuilder = model_.toBuilder(); - } - model_ = - input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(model_); - model_ = subBuilder.buildPartial(); - } - - break; + model_ = input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(model_); + model_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_CreateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateModelRequest.class, - com.google.cloud.automl.v1.CreateModelRequest.Builder.class); + com.google.cloud.automl.v1.CreateModelRequest.class, com.google.cloud.automl.v1.CreateModelRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -147,31 +120,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -182,14 +153,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MODEL_FIELD_NUMBER = 4; private com.google.cloud.automl.v1.Model model_; /** - * - * *
    * Required. The model to create.
    * 
* * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the model field is set. */ @java.lang.Override @@ -197,14 +165,11 @@ public boolean hasModel() { return model_ != null; } /** - * - * *
    * Required. The model to create.
    * 
* * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The model. */ @java.lang.Override @@ -212,8 +177,6 @@ public com.google.cloud.automl.v1.Model getModel() { return model_ == null ? com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; } /** - * - * *
    * Required. The model to create.
    * 
@@ -226,7 +189,6 @@ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -258,7 +221,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (model_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getModel()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getModel()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -268,18 +232,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.CreateModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.CreateModelRequest other = - (com.google.cloud.automl.v1.CreateModelRequest) obj; + com.google.cloud.automl.v1.CreateModelRequest other = (com.google.cloud.automl.v1.CreateModelRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasModel() != other.hasModel()) return false; if (hasModel()) { - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -303,127 +268,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.CreateModelRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CreateModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateModelRequest 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.v1.CreateModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.CreateModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.CreateModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.CreateModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.CreateModel][google.cloud.automl.v1.AutoMl.CreateModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1.CreateModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.CreateModelRequest) com.google.cloud.automl.v1.CreateModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_CreateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateModelRequest.class, - com.google.cloud.automl.v1.CreateModelRequest.Builder.class); + com.google.cloud.automl.v1.CreateModelRequest.class, com.google.cloud.automl.v1.CreateModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.CreateModelRequest.newBuilder() @@ -431,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -455,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; } @java.lang.Override @@ -476,8 +433,7 @@ public com.google.cloud.automl.v1.CreateModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.CreateModelRequest buildPartial() { - com.google.cloud.automl.v1.CreateModelRequest result = - new com.google.cloud.automl.v1.CreateModelRequest(this); + com.google.cloud.automl.v1.CreateModelRequest result = new com.google.cloud.automl.v1.CreateModelRequest(this); result.parent_ = parent_; if (modelBuilder_ == null) { result.model_ = model_; @@ -492,39 +448,38 @@ public com.google.cloud.automl.v1.CreateModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.CreateModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.CreateModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1.CreateModelRequest)other); } else { super.mergeFrom(other); return this; @@ -571,22 +526,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -595,23 +546,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -619,67 +567,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -687,35 +622,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1.Model model_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, - com.google.cloud.automl.v1.Model.Builder, - com.google.cloud.automl.v1.ModelOrBuilder> - modelBuilder_; + com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> modelBuilder_; /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The model. */ public com.google.cloud.automl.v1.Model getModel() { @@ -726,14 +650,11 @@ public com.google.cloud.automl.v1.Model getModel() { } } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setModel(com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { @@ -749,16 +670,14 @@ public Builder setModel(com.google.cloud.automl.v1.Model value) { return this; } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setModel(com.google.cloud.automl.v1.Model.Builder builderForValue) { + public Builder setModel( + com.google.cloud.automl.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); @@ -769,20 +688,17 @@ public Builder setModel(com.google.cloud.automl.v1.Model.Builder builderForValue return this; } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeModel(com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = - com.google.cloud.automl.v1.Model.newBuilder(model_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } @@ -794,14 +710,11 @@ public Builder mergeModel(com.google.cloud.automl.v1.Model value) { return this; } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearModel() { if (modelBuilder_ == null) { @@ -815,66 +728,55 @@ public Builder clearModel() { return this; } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.Model.Builder getModelBuilder() { - + onChanged(); return getModelFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { - return model_ == null ? com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; + return model_ == null ? + com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; } } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, - com.google.cloud.automl.v1.Model.Builder, - com.google.cloud.automl.v1.ModelOrBuilder> + com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, - com.google.cloud.automl.v1.Model.Builder, - com.google.cloud.automl.v1.ModelOrBuilder>( - getModel(), getParentForChildren(), isClean()); + modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder>( + getModel(), + getParentForChildren(), + isClean()); model_ = null; } return modelBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -884,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.CreateModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.CreateModelRequest) private static final com.google.cloud.automl.v1.CreateModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.CreateModelRequest(); } @@ -898,16 +800,16 @@ public static com.google.cloud.automl.v1.CreateModelRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -922,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.CreateModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java index 686452a64..0b1561871 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java @@ -1,84 +1,51 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface CreateModelRequestOrBuilder - extends +public interface CreateModelRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.CreateModelRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The model to create.
    * 
* * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the model field is set. */ boolean hasModel(); /** - * - * *
    * Required. The model to create.
    * 
* * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The model. */ com.google.cloud.automl.v1.Model getModel(); /** - * - * *
    * Required. The model to create.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DataItems.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DataItems.java new file mode 100644 index 000000000..007d0ec8a --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DataItems.java @@ -0,0 +1,159 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/data_items.proto + +package com.google.cloud.automl.v1; + +public final class DataItems { + private DataItems() {} + 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_v1_Image_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextSnippet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextSnippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_DocumentDimensions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_Document_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_Document_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_Document_Layout_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_Document_Layout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ExamplePayload_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/v1/data_items.prot" + + "o\022\026google.cloud.automl.v1\032%google/cloud/" + + "automl/v1/geometry.proto\032\037google/cloud/a" + + "utoml/v1/io.proto\032)google/cloud/automl/v" + + "1/text_segment.proto\032\031google/protobuf/an" + + "y.proto\032\036google/protobuf/duration.proto\032" + + "\034google/protobuf/struct.proto\032\034google/ap" + + "i/annotations.proto\"=\n\005Image\022\025\n\013image_by" + + "tes\030\001 \001(\014H\000\022\025\n\rthumbnail_uri\030\004 \001(\tB\006\n\004da" + + "ta\"F\n\013TextSnippet\022\017\n\007content\030\001 \001(\t\022\021\n\tmi" + + "me_type\030\002 \001(\t\022\023\n\013content_uri\030\004 \001(\t\"\352\001\n\022D" + + "ocumentDimensions\022N\n\004unit\030\001 \001(\0162@.google" + + ".cloud.automl.v1.DocumentDimensions.Docu" + + "mentDimensionUnit\022\r\n\005width\030\002 \001(\002\022\016\n\006heig" + + "ht\030\003 \001(\002\"e\n\025DocumentDimensionUnit\022\'\n#DOC" + + "UMENT_DIMENSION_UNIT_UNSPECIFIED\020\000\022\010\n\004IN" + + "CH\020\001\022\016\n\nCENTIMETER\020\002\022\t\n\005POINT\020\003\"\326\005\n\010Docu" + + "ment\022A\n\014input_config\030\001 \001(\0132+.google.clou" + + "d.automl.v1.DocumentInputConfig\022:\n\rdocum" + + "ent_text\030\002 \001(\0132#.google.cloud.automl.v1." + + "TextSnippet\0227\n\006layout\030\003 \003(\0132\'.google.clo" + + "ud.automl.v1.Document.Layout\022G\n\023document" + + "_dimensions\030\004 \001(\0132*.google.cloud.automl." + + "v1.DocumentDimensions\022\022\n\npage_count\030\005 \001(" + + "\005\032\264\003\n\006Layout\0229\n\014text_segment\030\001 \001(\0132#.goo" + + "gle.cloud.automl.v1.TextSegment\022\023\n\013page_" + + "number\030\002 \001(\005\022;\n\rbounding_poly\030\003 \001(\0132$.go" + + "ogle.cloud.automl.v1.BoundingPoly\022R\n\021tex" + + "t_segment_type\030\004 \001(\01627.google.cloud.auto" + + "ml.v1.Document.Layout.TextSegmentType\"\310\001" + + "\n\017TextSegmentType\022!\n\035TEXT_SEGMENT_TYPE_U" + + "NSPECIFIED\020\000\022\t\n\005TOKEN\020\001\022\r\n\tPARAGRAPH\020\002\022\016" + + "\n\nFORM_FIELD\020\003\022\023\n\017FORM_FIELD_NAME\020\004\022\027\n\023F" + + "ORM_FIELD_CONTENTS\020\005\022\t\n\005TABLE\020\006\022\020\n\014TABLE" + + "_HEADER\020\007\022\r\n\tTABLE_ROW\020\010\022\016\n\nTABLE_CELL\020\t" + + "\"\276\001\n\016ExamplePayload\022.\n\005image\030\001 \001(\0132\035.goo" + + "gle.cloud.automl.v1.ImageH\000\022;\n\014text_snip" + + "pet\030\002 \001(\0132#.google.cloud.automl.v1.TextS" + + "nippetH\000\0224\n\010document\030\004 \001(\0132 .google.clou" + + "d.automl.v1.DocumentH\000B\t\n\007payloadB\252\001\n\032co" + + "m.google.cloud.automl.v1P\001Z * A workspace for solving a single, particular machine learning (ML) problem. * A workspace contains examples that may be annotated. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.cloud.automl.v1.Dataset} */ -public final class Dataset extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Dataset extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.Dataset) DatasetOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Dataset.newBuilder() to construct. private Dataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Dataset() { name_ = ""; displayName_ = ""; @@ -47,15 +29,16 @@ private Dataset() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Dataset(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Dataset( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,247 +58,193 @@ private Dataset( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; + description_ = s; + break; + } + case 114: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 114: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 138: - { - java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; + break; + } + case 138: { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 168: { + + exampleCount_ = input.readInt32(); + break; + } + case 186: { + com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder subBuilder = null; + if (datasetMetadataCase_ == 23) { + subBuilder = ((com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_).toBuilder(); + } + datasetMetadata_ = + input.readMessage(com.google.cloud.automl.v1.TranslationDatasetMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 23; + break; + } + case 194: { + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder subBuilder = null; + if (datasetMetadataCase_ == 24) { + subBuilder = ((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_).toBuilder(); + } + datasetMetadata_ = + input.readMessage(com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 24; + break; + } + case 202: { + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder subBuilder = null; + if (datasetMetadataCase_ == 25) { + subBuilder = ((com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_).toBuilder(); } - case 168: - { - exampleCount_ = input.readInt32(); - break; + datasetMetadata_ = + input.readMessage(com.google.cloud.automl.v1.TextClassificationDatasetMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); } - case 186: - { - com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder subBuilder = null; - if (datasetMetadataCase_ == 23) { - subBuilder = - ((com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_) - .toBuilder(); - } - datasetMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.TranslationDatasetMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); - } - datasetMetadataCase_ = 23; - break; + datasetMetadataCase_ = 25; + break; + } + case 210: { + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder subBuilder = null; + if (datasetMetadataCase_ == 26) { + subBuilder = ((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_).toBuilder(); } - case 194: - { - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder subBuilder = - null; - if (datasetMetadataCase_ == 24) { - subBuilder = - ((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) - datasetMetadata_) - .toBuilder(); - } - datasetMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) - datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); - } - datasetMetadataCase_ = 24; - break; + datasetMetadata_ = + input.readMessage(com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); } - case 202: - { - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder subBuilder = - null; - if (datasetMetadataCase_ == 25) { - subBuilder = - ((com.google.cloud.automl.v1.TextClassificationDatasetMetadata) - datasetMetadata_) - .toBuilder(); - } - datasetMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) - datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); - } - datasetMetadataCase_ = 25; - break; + datasetMetadataCase_ = 26; + break; + } + case 226: { + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder subBuilder = null; + if (datasetMetadataCase_ == 28) { + subBuilder = ((com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_).toBuilder(); } - case 210: - { - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder subBuilder = - null; - if (datasetMetadataCase_ == 26) { - subBuilder = - ((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) - datasetMetadata_) - .toBuilder(); - } - datasetMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) - datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); - } - datasetMetadataCase_ = 26; - break; + datasetMetadata_ = + input.readMessage(com.google.cloud.automl.v1.TextExtractionDatasetMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); } - case 226: - { - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder subBuilder = null; - if (datasetMetadataCase_ == 28) { - subBuilder = - ((com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_) - .toBuilder(); - } - datasetMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); - } - datasetMetadataCase_ = 28; - break; + datasetMetadataCase_ = 28; + break; + } + case 242: { + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder subBuilder = null; + if (datasetMetadataCase_ == 30) { + subBuilder = ((com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_).toBuilder(); } - case 242: - { - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder subBuilder = null; - if (datasetMetadataCase_ == 30) { - subBuilder = - ((com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_) - .toBuilder(); - } - datasetMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); - } - datasetMetadataCase_ = 30; - break; + datasetMetadata_ = + input.readMessage(com.google.cloud.automl.v1.TextSentimentDatasetMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); } - case 314: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + datasetMetadataCase_ = 30; + break; + } + case 314: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.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); + 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.v1.DatasetOuterClass - .internal_static_google_cloud_automl_v1_Dataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 39: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DatasetOuterClass - .internal_static_google_cloud_automl_v1_Dataset_fieldAccessorTable + return com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Dataset.class, - com.google.cloud.automl.v1.Dataset.Builder.class); + com.google.cloud.automl.v1.Dataset.class, com.google.cloud.automl.v1.Dataset.Builder.class); } private int datasetMetadataCase_ = 0; private java.lang.Object datasetMetadata_; - public enum DatasetMetadataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION_DATASET_METADATA(23), IMAGE_CLASSIFICATION_DATASET_METADATA(24), @@ -325,7 +254,6 @@ public enum DatasetMetadataCase TEXT_SENTIMENT_DATASET_METADATA(30), DATASETMETADATA_NOT_SET(0); private final int value; - private DatasetMetadataCase(int value) { this.value = value; } @@ -341,45 +269,34 @@ public static DatasetMetadataCase valueOf(int value) { public static DatasetMetadataCase forNumber(int value) { switch (value) { - case 23: - return TRANSLATION_DATASET_METADATA; - case 24: - return IMAGE_CLASSIFICATION_DATASET_METADATA; - case 25: - return TEXT_CLASSIFICATION_DATASET_METADATA; - case 26: - return IMAGE_OBJECT_DETECTION_DATASET_METADATA; - case 28: - return TEXT_EXTRACTION_DATASET_METADATA; - case 30: - return TEXT_SENTIMENT_DATASET_METADATA; - case 0: - return DATASETMETADATA_NOT_SET; - default: - return null; + case 23: return TRANSLATION_DATASET_METADATA; + case 24: return IMAGE_CLASSIFICATION_DATASET_METADATA; + case 25: return TEXT_CLASSIFICATION_DATASET_METADATA; + case 26: return IMAGE_OBJECT_DETECTION_DATASET_METADATA; + case 28: return TEXT_EXTRACTION_DATASET_METADATA; + case 30: return TEXT_SENTIMENT_DATASET_METADATA; + case 0: return DATASETMETADATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DatasetMetadataCase getDatasetMetadataCase() { - return DatasetMetadataCase.forNumber(datasetMetadataCase_); + public DatasetMetadataCase + getDatasetMetadataCase() { + return DatasetMetadataCase.forNumber( + datasetMetadataCase_); } public static final int TRANSLATION_DATASET_METADATA_FIELD_NUMBER = 23; /** - * - * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return Whether the translationDatasetMetadata field is set. */ @java.lang.Override @@ -387,55 +304,42 @@ public boolean hasTranslationDatasetMetadata() { return datasetMetadataCase_ == 23; } /** - * - * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return The translationDatasetMetadata. */ @java.lang.Override public com.google.cloud.automl.v1.TranslationDatasetMetadata getTranslationDatasetMetadata() { if (datasetMetadataCase_ == 23) { - return (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder - getTranslationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 23) { - return (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER = 24; /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return Whether the imageClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -443,58 +347,42 @@ public boolean hasImageClassificationDatasetMetadata() { return datasetMetadataCase_ == 24; } /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return The imageClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata - getImageClassificationDatasetMetadata() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata() { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder - getImageClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER = 25; /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return Whether the textClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -502,58 +390,42 @@ public boolean hasTextClassificationDatasetMetadata() { return datasetMetadataCase_ == 25; } /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return The textClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationDatasetMetadata - getTextClassificationDatasetMetadata() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata() { if (datasetMetadataCase_ == 25) { - return (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder - getTextClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 25) { - return (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.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.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ @java.lang.Override @@ -561,58 +433,42 @@ public boolean hasImageObjectDetectionDatasetMetadata() { return datasetMetadataCase_ == 26; } /** - * - * *
    * Metadata for a dataset used for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return The imageObjectDetectionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata - getImageObjectDetectionDatasetMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata() { if (datasetMetadataCase_ == 26) { - return (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for a dataset used for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder - getImageObjectDetectionDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 26) { - return (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); } public static final int TEXT_EXTRACTION_DATASET_METADATA_FIELD_NUMBER = 28; /** - * - * *
    * Metadata for a dataset used for text extraction.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return Whether the textExtractionDatasetMetadata field is set. */ @java.lang.Override @@ -620,58 +476,42 @@ public boolean hasTextExtractionDatasetMetadata() { return datasetMetadataCase_ == 28; } /** - * - * *
    * Metadata for a dataset used for text extraction.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return The textExtractionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionDatasetMetadata - getTextExtractionDatasetMetadata() { + public com.google.cloud.automl.v1.TextExtractionDatasetMetadata getTextExtractionDatasetMetadata() { if (datasetMetadataCase_ == 28) { - return (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for a dataset used for text extraction.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder - getTextExtractionDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 28) { - return (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance(); } public static final int TEXT_SENTIMENT_DATASET_METADATA_FIELD_NUMBER = 30; /** - * - * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return Whether the textSentimentDatasetMetadata field is set. */ @java.lang.Override @@ -679,41 +519,31 @@ public boolean hasTextSentimentDatasetMetadata() { return datasetMetadataCase_ == 30; } /** - * - * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return The textSentimentDatasetMetadata. */ @java.lang.Override public com.google.cloud.automl.v1.TextSentimentDatasetMetadata getTextSentimentDatasetMetadata() { if (datasetMetadataCase_ == 30) { - return (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder - getTextSentimentDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 30) { - return (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance(); } @@ -721,15 +551,12 @@ public com.google.cloud.automl.v1.TextSentimentDatasetMetadata getTextSentimentD public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -738,30 +565,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -772,8 +599,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * 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
@@ -782,7 +607,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -791,15 +615,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 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
@@ -808,15 +631,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -827,15 +651,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -844,30 +665,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -878,14 +699,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { 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; - * * @return The exampleCount. */ @java.lang.Override @@ -896,14 +714,11 @@ public int getExampleCount() { public static final int CREATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -911,14 +726,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return The createTime. */ @java.lang.Override @@ -926,8 +738,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
@@ -942,15 +752,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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; - * * @return The etag. */ @java.lang.Override @@ -959,30 +766,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -991,23 +798,24 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int LABELS_FIELD_NUMBER = 39; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.automl.v1.DatasetOuterClass - .internal_static_google_cloud_automl_v1_Dataset_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1016,8 +824,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -1029,22 +835,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 39;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -1057,12 +863,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 39;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -1075,16 +880,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 39;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -1097,11 +902,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 39;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1109,7 +915,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1121,7 +926,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1141,31 +947,29 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
       output.writeInt32(21, exampleCount_);
     }
     if (datasetMetadataCase_ == 23) {
-      output.writeMessage(
-          23, (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_);
+      output.writeMessage(23, (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 24) {
-      output.writeMessage(
-          24, (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_);
+      output.writeMessage(24, (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 25) {
-      output.writeMessage(
-          25, (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_);
+      output.writeMessage(25, (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 26) {
-      output.writeMessage(
-          26, (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_);
+      output.writeMessage(26, (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 28) {
-      output.writeMessage(
-          28, (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_);
+      output.writeMessage(28, (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 30) {
-      output.writeMessage(
-          30, (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_);
-    }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 39);
+      output.writeMessage(30, (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_);
+    }
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        39);
     unknownFields.writeTo(output);
   }
 
@@ -1185,54 +989,49 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(14, getCreateTime());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_);
     }
     if (exampleCount_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, exampleCount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(21, exampleCount_);
     }
     if (datasetMetadataCase_ == 23) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              23, (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(23, (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 24) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              24, (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(24, (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 25) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              25, (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(25, (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 26) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              26,
-              (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(26, (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 28) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              28, (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(28, (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 30) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              30, (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(30, (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(39, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1242,28 +1041,35 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.Dataset)) {
       return super.equals(obj);
     }
     com.google.cloud.automl.v1.Dataset other = (com.google.cloud.automl.v1.Dataset) 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 (!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 (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
-    if (!getEtag().equals(other.getEtag())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getEtag()
+        .equals(other.getEtag())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getDatasetMetadataCase().equals(other.getDatasetMetadataCase())) return false;
     switch (datasetMetadataCase_) {
       case 23:
-        if (!getTranslationDatasetMetadata().equals(other.getTranslationDatasetMetadata()))
-          return false;
+        if (!getTranslationDatasetMetadata()
+            .equals(other.getTranslationDatasetMetadata())) return false;
         break;
       case 24:
         if (!getImageClassificationDatasetMetadata()
@@ -1278,12 +1084,12 @@ public boolean equals(final java.lang.Object obj) {
             .equals(other.getImageObjectDetectionDatasetMetadata())) return false;
         break;
       case 28:
-        if (!getTextExtractionDatasetMetadata().equals(other.getTextExtractionDatasetMetadata()))
-          return false;
+        if (!getTextExtractionDatasetMetadata()
+            .equals(other.getTextExtractionDatasetMetadata())) return false;
         break;
       case 30:
-        if (!getTextSentimentDatasetMetadata().equals(other.getTextSentimentDatasetMetadata()))
-          return false;
+        if (!getTextSentimentDatasetMetadata()
+            .equals(other.getTextSentimentDatasetMetadata())) return false;
         break;
       case 0:
       default:
@@ -1350,103 +1156,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.Dataset parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.Dataset parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.Dataset parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.Dataset parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.automl.v1.Dataset parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.Dataset 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.v1.Dataset parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.Dataset parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.Dataset parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.Dataset parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.Dataset parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.Dataset parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.Dataset parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.Dataset parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1.Dataset prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A workspace for solving a single, particular machine learning (ML) problem.
    * A workspace contains examples that may be annotated.
@@ -1454,43 +1254,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.Dataset}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.Dataset)
       com.google.cloud.automl.v1.DatasetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.DatasetOuterClass
-          .internal_static_google_cloud_automl_v1_Dataset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 39:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 39:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.DatasetOuterClass
-          .internal_static_google_cloud_automl_v1_Dataset_fieldAccessorTable
+      return com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.Dataset.class,
-              com.google.cloud.automl.v1.Dataset.Builder.class);
+              com.google.cloud.automl.v1.Dataset.class, com.google.cloud.automl.v1.Dataset.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.Dataset.newBuilder()
@@ -1498,15 +1298,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1533,9 +1334,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.DatasetOuterClass
-          .internal_static_google_cloud_automl_v1_Dataset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_descriptor;
     }
 
     @java.lang.Override
@@ -1619,39 +1420,38 @@ public com.google.cloud.automl.v1.Dataset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.Dataset) {
-        return mergeFrom((com.google.cloud.automl.v1.Dataset) other);
+        return mergeFrom((com.google.cloud.automl.v1.Dataset)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1682,43 +1482,36 @@ public Builder mergeFrom(com.google.cloud.automl.v1.Dataset other) {
         etag_ = other.etag_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       switch (other.getDatasetMetadataCase()) {
-        case TRANSLATION_DATASET_METADATA:
-          {
-            mergeTranslationDatasetMetadata(other.getTranslationDatasetMetadata());
-            break;
-          }
-        case IMAGE_CLASSIFICATION_DATASET_METADATA:
-          {
-            mergeImageClassificationDatasetMetadata(other.getImageClassificationDatasetMetadata());
-            break;
-          }
-        case TEXT_CLASSIFICATION_DATASET_METADATA:
-          {
-            mergeTextClassificationDatasetMetadata(other.getTextClassificationDatasetMetadata());
-            break;
-          }
-        case IMAGE_OBJECT_DETECTION_DATASET_METADATA:
-          {
-            mergeImageObjectDetectionDatasetMetadata(
-                other.getImageObjectDetectionDatasetMetadata());
-            break;
-          }
-        case TEXT_EXTRACTION_DATASET_METADATA:
-          {
-            mergeTextExtractionDatasetMetadata(other.getTextExtractionDatasetMetadata());
-            break;
-          }
-        case TEXT_SENTIMENT_DATASET_METADATA:
-          {
-            mergeTextSentimentDatasetMetadata(other.getTextSentimentDatasetMetadata());
-            break;
-          }
-        case DATASETMETADATA_NOT_SET:
-          {
-            break;
-          }
+        case TRANSLATION_DATASET_METADATA: {
+          mergeTranslationDatasetMetadata(other.getTranslationDatasetMetadata());
+          break;
+        }
+        case IMAGE_CLASSIFICATION_DATASET_METADATA: {
+          mergeImageClassificationDatasetMetadata(other.getImageClassificationDatasetMetadata());
+          break;
+        }
+        case TEXT_CLASSIFICATION_DATASET_METADATA: {
+          mergeTextClassificationDatasetMetadata(other.getTextClassificationDatasetMetadata());
+          break;
+        }
+        case IMAGE_OBJECT_DETECTION_DATASET_METADATA: {
+          mergeImageObjectDetectionDatasetMetadata(other.getImageObjectDetectionDatasetMetadata());
+          break;
+        }
+        case TEXT_EXTRACTION_DATASET_METADATA: {
+          mergeTextExtractionDatasetMetadata(other.getTextExtractionDatasetMetadata());
+          break;
+        }
+        case TEXT_SENTIMENT_DATASET_METADATA: {
+          mergeTextSentimentDatasetMetadata(other.getTextSentimentDatasetMetadata());
+          break;
+        }
+        case DATASETMETADATA_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1748,12 +1541,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int datasetMetadataCase_ = 0;
     private java.lang.Object datasetMetadata_;
-
-    public DatasetMetadataCase getDatasetMetadataCase() {
-      return DatasetMetadataCase.forNumber(datasetMetadataCase_);
+    public DatasetMetadataCase
+        getDatasetMetadataCase() {
+      return DatasetMetadataCase.forNumber(
+          datasetMetadataCase_);
     }
 
     public Builder clearDatasetMetadata() {
@@ -1766,20 +1559,13 @@ public Builder clearDatasetMetadata() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.TranslationDatasetMetadata,
-            com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder,
-            com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder>
-        translationDatasetMetadataBuilder_;
+        com.google.cloud.automl.v1.TranslationDatasetMetadata, com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder> translationDatasetMetadataBuilder_;
     /**
-     *
-     *
      * 
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return Whether the translationDatasetMetadata field is set. */ @java.lang.Override @@ -1787,15 +1573,11 @@ public boolean hasTranslationDatasetMetadata() { return datasetMetadataCase_ == 23; } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return The translationDatasetMetadata. */ @java.lang.Override @@ -1813,17 +1595,13 @@ public com.google.cloud.automl.v1.TranslationDatasetMetadata getTranslationDatas } } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ - public Builder setTranslationDatasetMetadata( - com.google.cloud.automl.v1.TranslationDatasetMetadata value) { + public Builder setTranslationDatasetMetadata(com.google.cloud.automl.v1.TranslationDatasetMetadata value) { if (translationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1837,14 +1615,11 @@ public Builder setTranslationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ public Builder setTranslationDatasetMetadata( com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder builderForValue) { @@ -1858,26 +1633,18 @@ public Builder setTranslationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ - public Builder mergeTranslationDatasetMetadata( - com.google.cloud.automl.v1.TranslationDatasetMetadata value) { + public Builder mergeTranslationDatasetMetadata(com.google.cloud.automl.v1.TranslationDatasetMetadata value) { if (translationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 23 - && datasetMetadata_ - != com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = - com.google.cloud.automl.v1.TranslationDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_) - .mergeFrom(value) - .buildPartial(); + if (datasetMetadataCase_ == 23 && + datasetMetadata_ != com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = com.google.cloud.automl.v1.TranslationDatasetMetadata.newBuilder((com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_) + .mergeFrom(value).buildPartial(); } else { datasetMetadata_ = value; } @@ -1892,14 +1659,11 @@ public Builder mergeTranslationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ public Builder clearTranslationDatasetMetadata() { if (translationDatasetMetadataBuilder_ == null) { @@ -1918,32 +1682,24 @@ public Builder clearTranslationDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ - public com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder - getTranslationDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder getTranslationDatasetMetadataBuilder() { return getTranslationDatasetMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder - getTranslationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 23) && (translationDatasetMetadataBuilder_ != null)) { return translationDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -1954,57 +1710,39 @@ public Builder clearTranslationDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationDatasetMetadata, - com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder, - com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.TranslationDatasetMetadata, com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder> getTranslationDatasetMetadataFieldBuilder() { if (translationDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 23)) { - datasetMetadata_ = - com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance(); } - translationDatasetMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationDatasetMetadata, - com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder, - com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder>( + translationDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TranslationDatasetMetadata, com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 23; - onChanged(); - ; + onChanged();; return translationDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder> - imageClassificationDatasetMetadataBuilder_; + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder> imageClassificationDatasetMetadataBuilder_; /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return Whether the imageClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -2012,21 +1750,15 @@ public boolean hasImageClassificationDatasetMetadata() { return datasetMetadataCase_ == 24; } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return The imageClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata - getImageClassificationDatasetMetadata() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata() { if (imageClassificationDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 24) { return (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_; @@ -2040,18 +1772,13 @@ public boolean hasImageClassificationDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ - public Builder setImageClassificationDatasetMetadata( - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata value) { + public Builder setImageClassificationDatasetMetadata(com.google.cloud.automl.v1.ImageClassificationDatasetMetadata value) { if (imageClassificationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2065,15 +1792,11 @@ public Builder setImageClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ public Builder setImageClassificationDatasetMetadata( com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder builderForValue) { @@ -2087,29 +1810,18 @@ public Builder setImageClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ - public Builder mergeImageClassificationDatasetMetadata( - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata value) { + public Builder mergeImageClassificationDatasetMetadata(com.google.cloud.automl.v1.ImageClassificationDatasetMetadata value) { if (imageClassificationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 24 - && datasetMetadata_ - != com.google.cloud.automl.v1.ImageClassificationDatasetMetadata - .getDefaultInstance()) { - datasetMetadata_ = - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) - datasetMetadata_) - .mergeFrom(value) - .buildPartial(); + if (datasetMetadataCase_ == 24 && + datasetMetadata_ != com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.newBuilder((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_) + .mergeFrom(value).buildPartial(); } else { datasetMetadata_ = value; } @@ -2124,15 +1836,11 @@ public Builder mergeImageClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ public Builder clearImageClassificationDatasetMetadata() { if (imageClassificationDatasetMetadataBuilder_ == null) { @@ -2151,34 +1859,24 @@ public Builder clearImageClassificationDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder - getImageClassificationDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder getImageClassificationDatasetMetadataBuilder() { return getImageClassificationDatasetMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder - getImageClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 24) && (imageClassificationDatasetMetadataBuilder_ != null)) { return imageClassificationDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2189,58 +1887,39 @@ public Builder clearImageClassificationDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder> getImageClassificationDatasetMetadataFieldBuilder() { if (imageClassificationDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 24)) { - datasetMetadata_ = - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance(); } - imageClassificationDatasetMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder>( + imageClassificationDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 24; - onChanged(); - ; + onChanged();; return imageClassificationDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationDatasetMetadata, - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder> - textClassificationDatasetMetadataBuilder_; + com.google.cloud.automl.v1.TextClassificationDatasetMetadata, com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder> textClassificationDatasetMetadataBuilder_; /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return Whether the textClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -2248,21 +1927,15 @@ public boolean hasTextClassificationDatasetMetadata() { return datasetMetadataCase_ == 25; } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return The textClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationDatasetMetadata - getTextClassificationDatasetMetadata() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata() { if (textClassificationDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 25) { return (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_; @@ -2276,18 +1949,13 @@ public boolean hasTextClassificationDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ - public Builder setTextClassificationDatasetMetadata( - com.google.cloud.automl.v1.TextClassificationDatasetMetadata value) { + public Builder setTextClassificationDatasetMetadata(com.google.cloud.automl.v1.TextClassificationDatasetMetadata value) { if (textClassificationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2301,15 +1969,11 @@ public Builder setTextClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ public Builder setTextClassificationDatasetMetadata( com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder builderForValue) { @@ -2323,29 +1987,18 @@ public Builder setTextClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ - public Builder mergeTextClassificationDatasetMetadata( - com.google.cloud.automl.v1.TextClassificationDatasetMetadata value) { + public Builder mergeTextClassificationDatasetMetadata(com.google.cloud.automl.v1.TextClassificationDatasetMetadata value) { if (textClassificationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 25 - && datasetMetadata_ - != com.google.cloud.automl.v1.TextClassificationDatasetMetadata - .getDefaultInstance()) { - datasetMetadata_ = - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) - datasetMetadata_) - .mergeFrom(value) - .buildPartial(); + if (datasetMetadataCase_ == 25 && + datasetMetadata_ != com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = com.google.cloud.automl.v1.TextClassificationDatasetMetadata.newBuilder((com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_) + .mergeFrom(value).buildPartial(); } else { datasetMetadata_ = value; } @@ -2360,15 +2013,11 @@ public Builder mergeTextClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ public Builder clearTextClassificationDatasetMetadata() { if (textClassificationDatasetMetadataBuilder_ == null) { @@ -2387,34 +2036,24 @@ public Builder clearTextClassificationDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ - public com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder - getTextClassificationDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder getTextClassificationDatasetMetadataBuilder() { return getTextClassificationDatasetMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder - getTextClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 25) && (textClassificationDatasetMetadataBuilder_ != null)) { return textClassificationDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2425,58 +2064,39 @@ public Builder clearTextClassificationDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationDatasetMetadata, - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.TextClassificationDatasetMetadata, com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder> getTextClassificationDatasetMetadataFieldBuilder() { if (textClassificationDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 25)) { - datasetMetadata_ = - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance(); } - textClassificationDatasetMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationDatasetMetadata, - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder>( + textClassificationDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextClassificationDatasetMetadata, com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 25; - onChanged(); - ; + onChanged();; return textClassificationDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder> - imageObjectDetectionDatasetMetadataBuilder_; + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder> imageObjectDetectionDatasetMetadataBuilder_; /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ @java.lang.Override @@ -2484,21 +2104,15 @@ public boolean hasImageObjectDetectionDatasetMetadata() { return datasetMetadataCase_ == 26; } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return The imageObjectDetectionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata - getImageObjectDetectionDatasetMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata() { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 26) { return (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; @@ -2512,18 +2126,13 @@ public boolean hasImageObjectDetectionDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ - public Builder setImageObjectDetectionDatasetMetadata( - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata value) { + public Builder setImageObjectDetectionDatasetMetadata(com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata value) { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2537,15 +2146,11 @@ public Builder setImageObjectDetectionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ public Builder setImageObjectDetectionDatasetMetadata( com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder builderForValue) { @@ -2559,29 +2164,18 @@ public Builder setImageObjectDetectionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ - public Builder mergeImageObjectDetectionDatasetMetadata( - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata value) { + public Builder mergeImageObjectDetectionDatasetMetadata(com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata value) { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 26 - && datasetMetadata_ - != com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata - .getDefaultInstance()) { - datasetMetadata_ = - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) - datasetMetadata_) - .mergeFrom(value) - .buildPartial(); + if (datasetMetadataCase_ == 26 && + datasetMetadata_ != com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.newBuilder((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_) + .mergeFrom(value).buildPartial(); } else { datasetMetadata_ = value; } @@ -2596,15 +2190,11 @@ public Builder mergeImageObjectDetectionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ public Builder clearImageObjectDetectionDatasetMetadata() { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { @@ -2623,34 +2213,24 @@ public Builder clearImageObjectDetectionDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder - getImageObjectDetectionDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder getImageObjectDetectionDatasetMetadataBuilder() { return getImageObjectDetectionDatasetMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder - getImageObjectDetectionDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 26) && (imageObjectDetectionDatasetMetadataBuilder_ != null)) { return imageObjectDetectionDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2661,58 +2241,39 @@ public Builder clearImageObjectDetectionDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder> getImageObjectDetectionDatasetMetadataFieldBuilder() { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 26)) { - datasetMetadata_ = - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); } - imageObjectDetectionDatasetMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder>( + imageObjectDetectionDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 26; - onChanged(); - ; + onChanged();; return imageObjectDetectionDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionDatasetMetadata, - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, - com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder> - textExtractionDatasetMetadataBuilder_; + com.google.cloud.automl.v1.TextExtractionDatasetMetadata, com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder> textExtractionDatasetMetadataBuilder_; /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return Whether the textExtractionDatasetMetadata field is set. */ @java.lang.Override @@ -2720,21 +2281,15 @@ public boolean hasTextExtractionDatasetMetadata() { return datasetMetadataCase_ == 28; } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return The textExtractionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionDatasetMetadata - getTextExtractionDatasetMetadata() { + public com.google.cloud.automl.v1.TextExtractionDatasetMetadata getTextExtractionDatasetMetadata() { if (textExtractionDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 28) { return (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_; @@ -2748,18 +2303,13 @@ public boolean hasTextExtractionDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ - public Builder setTextExtractionDatasetMetadata( - com.google.cloud.automl.v1.TextExtractionDatasetMetadata value) { + public Builder setTextExtractionDatasetMetadata(com.google.cloud.automl.v1.TextExtractionDatasetMetadata value) { if (textExtractionDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2773,15 +2323,11 @@ public Builder setTextExtractionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ public Builder setTextExtractionDatasetMetadata( com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder builderForValue) { @@ -2795,27 +2341,18 @@ public Builder setTextExtractionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ - public Builder mergeTextExtractionDatasetMetadata( - com.google.cloud.automl.v1.TextExtractionDatasetMetadata value) { + public Builder mergeTextExtractionDatasetMetadata(com.google.cloud.automl.v1.TextExtractionDatasetMetadata value) { if (textExtractionDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 28 - && datasetMetadata_ - != com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_) - .mergeFrom(value) - .buildPartial(); + if (datasetMetadataCase_ == 28 && + datasetMetadata_ != com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = com.google.cloud.automl.v1.TextExtractionDatasetMetadata.newBuilder((com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_) + .mergeFrom(value).buildPartial(); } else { datasetMetadata_ = value; } @@ -2830,15 +2367,11 @@ public Builder mergeTextExtractionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ public Builder clearTextExtractionDatasetMetadata() { if (textExtractionDatasetMetadataBuilder_ == null) { @@ -2857,34 +2390,24 @@ public Builder clearTextExtractionDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ - public com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder - getTextExtractionDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder getTextExtractionDatasetMetadataBuilder() { return getTextExtractionDatasetMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder - getTextExtractionDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 28) && (textExtractionDatasetMetadataBuilder_ != null)) { return textExtractionDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2895,58 +2418,39 @@ public Builder clearTextExtractionDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionDatasetMetadata, - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, - com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.TextExtractionDatasetMetadata, com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder> getTextExtractionDatasetMetadataFieldBuilder() { if (textExtractionDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 28)) { - datasetMetadata_ = - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance(); } - textExtractionDatasetMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionDatasetMetadata, - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, - com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder>( + textExtractionDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextExtractionDatasetMetadata, com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 28; - onChanged(); - ; + onChanged();; return textExtractionDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentDatasetMetadata, - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, - com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder> - textSentimentDatasetMetadataBuilder_; + com.google.cloud.automl.v1.TextSentimentDatasetMetadata, com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder> textSentimentDatasetMetadataBuilder_; /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return Whether the textSentimentDatasetMetadata field is set. */ @java.lang.Override @@ -2954,21 +2458,15 @@ public boolean hasTextSentimentDatasetMetadata() { return datasetMetadataCase_ == 30; } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return The textSentimentDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentDatasetMetadata - getTextSentimentDatasetMetadata() { + public com.google.cloud.automl.v1.TextSentimentDatasetMetadata getTextSentimentDatasetMetadata() { if (textSentimentDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 30) { return (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_; @@ -2982,18 +2480,13 @@ public boolean hasTextSentimentDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ - public Builder setTextSentimentDatasetMetadata( - com.google.cloud.automl.v1.TextSentimentDatasetMetadata value) { + public Builder setTextSentimentDatasetMetadata(com.google.cloud.automl.v1.TextSentimentDatasetMetadata value) { if (textSentimentDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3007,15 +2500,11 @@ public Builder setTextSentimentDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ public Builder setTextSentimentDatasetMetadata( com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder builderForValue) { @@ -3029,27 +2518,18 @@ public Builder setTextSentimentDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ - public Builder mergeTextSentimentDatasetMetadata( - com.google.cloud.automl.v1.TextSentimentDatasetMetadata value) { + public Builder mergeTextSentimentDatasetMetadata(com.google.cloud.automl.v1.TextSentimentDatasetMetadata value) { if (textSentimentDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 30 - && datasetMetadata_ - != com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_) - .mergeFrom(value) - .buildPartial(); + if (datasetMetadataCase_ == 30 && + datasetMetadata_ != com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = com.google.cloud.automl.v1.TextSentimentDatasetMetadata.newBuilder((com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_) + .mergeFrom(value).buildPartial(); } else { datasetMetadata_ = value; } @@ -3064,15 +2544,11 @@ public Builder mergeTextSentimentDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ public Builder clearTextSentimentDatasetMetadata() { if (textSentimentDatasetMetadataBuilder_ == null) { @@ -3091,34 +2567,24 @@ public Builder clearTextSentimentDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ - public com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder - getTextSentimentDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder getTextSentimentDatasetMetadataBuilder() { return getTextSentimentDatasetMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder - getTextSentimentDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 30) && (textSentimentDatasetMetadataBuilder_ != null)) { return textSentimentDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3129,59 +2595,46 @@ public Builder clearTextSentimentDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentDatasetMetadata, - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, - com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.TextSentimentDatasetMetadata, com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder> getTextSentimentDatasetMetadataFieldBuilder() { if (textSentimentDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 30)) { - datasetMetadata_ = - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance(); } - textSentimentDatasetMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentDatasetMetadata, - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, - com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder>( + textSentimentDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSentimentDatasetMetadata, com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 30; - onChanged(); - ; + onChanged();; return textSentimentDatasetMetadataBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3190,22 +2643,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3213,64 +2665,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3278,8 +2723,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * 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
@@ -3288,13 +2731,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3303,8 +2746,6 @@ 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
@@ -3313,14 +2754,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -3328,8 +2770,6 @@ 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
@@ -3338,22 +2778,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -3362,18 +2800,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * 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
@@ -3382,16 +2817,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3399,21 +2834,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; - * * @return The description. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -3422,22 +2855,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -3445,79 +2877,69 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private int exampleCount_; + private int exampleCount_ ; /** - * - * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; - * * @return The exampleCount. */ @java.lang.Override @@ -3525,36 +2947,30 @@ public int getExampleCount() { return exampleCount_; } /** - * - * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; - * * @param value The exampleCount to set. * @return This builder for chaining. */ public Builder setExampleCount(int value) { - + exampleCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; - * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0; onChanged(); return this; @@ -3562,47 +2978,34 @@ public Builder clearExampleCount() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3623,15 +3026,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3642,8 +3044,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3654,7 +3054,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3666,8 +3066,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3686,8 +3084,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3695,13 +3091,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 14; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3712,14 +3106,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3727,17 +3118,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3745,21 +3133,19 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; - * * @return The etag. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3768,22 +3154,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -3791,84 +3176,78 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3880,8 +3259,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3893,22 +3270,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 39;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3921,12 +3298,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 39;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3939,17 +3315,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 39;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3962,11 +3337,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 39;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3974,12 +3350,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3991,21 +3366,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 39;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -4017,19 +3394,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 39;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -4041,13 +3415,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 39;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -4057,12 +3434,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.Dataset)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.Dataset)
   private static final com.google.cloud.automl.v1.Dataset DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.Dataset();
   }
@@ -4071,16 +3448,16 @@ public static com.google.cloud.automl.v1.Dataset getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Dataset parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Dataset(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Dataset parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Dataset(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -4095,4 +3472,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.Dataset getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java
similarity index 100%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java
similarity index 69%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java
index a2ad21458..ccd15f8ea 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java
@@ -1,310 +1,197 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/dataset.proto
 
 package com.google.cloud.automl.v1;
 
-public interface DatasetOrBuilder
-    extends
+public interface DatasetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Dataset)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return Whether the translationDatasetMetadata field is set. */ boolean hasTranslationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return The translationDatasetMetadata. */ com.google.cloud.automl.v1.TranslationDatasetMetadata getTranslationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ - com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder - getTranslationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder(); /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return Whether the imageClassificationDatasetMetadata field is set. */ boolean hasImageClassificationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return The imageClassificationDatasetMetadata. */ - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata - getImageClassificationDatasetMetadata(); + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ - com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder - getImageClassificationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder(); /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return Whether the textClassificationDatasetMetadata field is set. */ boolean hasTextClassificationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return The textClassificationDatasetMetadata. */ - com.google.cloud.automl.v1.TextClassificationDatasetMetadata - getTextClassificationDatasetMetadata(); + com.google.cloud.automl.v1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ - com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder - getTextClassificationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder(); /** - * - * *
    * Metadata for a dataset used for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ boolean hasImageObjectDetectionDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return The imageObjectDetectionDatasetMetadata. */ - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata - getImageObjectDetectionDatasetMetadata(); + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder - getImageObjectDetectionDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder(); /** - * - * *
    * Metadata for a dataset used for text extraction.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return Whether the textExtractionDatasetMetadata field is set. */ boolean hasTextExtractionDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for text extraction.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return The textExtractionDatasetMetadata. */ com.google.cloud.automl.v1.TextExtractionDatasetMetadata getTextExtractionDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for text extraction.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ - com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder - getTextExtractionDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder(); /** - * - * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return Whether the textSentimentDatasetMetadata field is set. */ boolean hasTextSentimentDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return The textSentimentDatasetMetadata. */ com.google.cloud.automl.v1.TextSentimentDatasetMetadata getTextSentimentDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ - com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder - getTextSentimentDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder(); /** - * - * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + 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
@@ -313,13 +200,10 @@ public interface DatasetOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ 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
@@ -328,78 +212,62 @@ public interface DatasetOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The number of examples in the dataset.
    * 
* * int32 example_count = 21; - * * @return The exampleCount. */ int getExampleCount(); /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
@@ -409,35 +277,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; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 17; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -451,8 +312,6 @@ public interface DatasetOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -464,13 +323,15 @@ public interface DatasetOrBuilder
    *
    * map<string, string> labels = 39;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -482,10 +343,9 @@ public interface DatasetOrBuilder
    *
    * map<string, string> labels = 39;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -497,10 +357,11 @@ public interface DatasetOrBuilder
    *
    * map<string, string> labels = 39;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -512,7 +373,9 @@ public interface DatasetOrBuilder
    *
    * map<string, string> labels = 39;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   public com.google.cloud.automl.v1.Dataset.DatasetMetadataCase getDatasetMetadataCase();
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOuterClass.java
new file mode 100644
index 000000000..9eb6b3eaf
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOuterClass.java
@@ -0,0 +1,110 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1/dataset.proto
+
+package com.google.cloud.automl.v1;
+
+public final class DatasetOuterClass {
+  private DatasetOuterClass() {}
+  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_v1_Dataset_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_Dataset_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_Dataset_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_Dataset_LabelsEntry_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/v1/dataset.proto\022\026" +
+      "google.cloud.automl.v1\032\031google/api/resou" +
+      "rce.proto\032\"google/cloud/automl/v1/image." +
+      "proto\032!google/cloud/automl/v1/text.proto" +
+      "\032(google/cloud/automl/v1/translation.pro" +
+      "to\032\037google/protobuf/timestamp.proto\032\034goo" +
+      "gle/api/annotations.proto\"\340\007\n\007Dataset\022Z\n" +
+      "\034translation_dataset_metadata\030\027 \001(\01322.go" +
+      "ogle.cloud.automl.v1.TranslationDatasetM" +
+      "etadataH\000\022k\n%image_classification_datase" +
+      "t_metadata\030\030 \001(\0132:.google.cloud.automl.v" +
+      "1.ImageClassificationDatasetMetadataH\000\022i" +
+      "\n$text_classification_dataset_metadata\030\031" +
+      " \001(\01329.google.cloud.automl.v1.TextClassi" +
+      "ficationDatasetMetadataH\000\022n\n\'image_objec" +
+      "t_detection_dataset_metadata\030\032 \001(\0132;.goo" +
+      "gle.cloud.automl.v1.ImageObjectDetection" +
+      "DatasetMetadataH\000\022a\n text_extraction_dat" +
+      "aset_metadata\030\034 \001(\01325.google.cloud.autom" +
+      "l.v1.TextExtractionDatasetMetadataH\000\022_\n\037" +
+      "text_sentiment_dataset_metadata\030\036 \001(\01324." +
+      "google.cloud.automl.v1.TextSentimentData" +
+      "setMetadataH\000\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n" +
+      "ame\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\025\n\rexampl" +
+      "e_count\030\025 \001(\005\022/\n\013create_time\030\016 \001(\0132\032.goo" +
+      "gle.protobuf.Timestamp\022\014\n\004etag\030\021 \001(\t\022;\n\006" +
+      "labels\030\' \003(\0132+.google.cloud.automl.v1.Da" +
+      "taset.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030" +
+      "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\035automl.go" +
+      "ogleapis.com/Dataset\022:projects/{project}" +
+      "/locations/{location}/datasets/{dataset}" +
+      "B\022\n\020dataset_metadataB\252\001\n\032com.google.clou" +
+      "d.automl.v1P\001Z
  * Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1.AutoMl.DeleteDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1.DeleteDatasetRequest} */ -public final class DeleteDatasetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DeleteDatasetRequest) DeleteDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDatasetRequest.newBuilder() to construct. private DeleteDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private DeleteDatasetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteDatasetRequest.class, - com.google.cloud.automl.v1.DeleteDatasetRequest.Builder.class); + com.google.cloud.automl.v1.DeleteDatasetRequest.class, com.google.cloud.automl.v1.DeleteDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the dataset to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 dataset to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DeleteDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.DeleteDatasetRequest other = - (com.google.cloud.automl.v1.DeleteDatasetRequest) obj; + com.google.cloud.automl.v1.DeleteDatasetRequest other = (com.google.cloud.automl.v1.DeleteDatasetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeleteDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeleteDatasetRequest 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.v1.DeleteDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.DeleteDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1.AutoMl.DeleteDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1.DeleteDatasetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DeleteDatasetRequest) com.google.cloud.automl.v1.DeleteDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteDatasetRequest.class, - com.google.cloud.automl.v1.DeleteDatasetRequest.Builder.class); + com.google.cloud.automl.v1.DeleteDatasetRequest.class, com.google.cloud.automl.v1.DeleteDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.DeleteDatasetRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1.DeleteDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1.DeleteDatasetRequest buildPartial() { - com.google.cloud.automl.v1.DeleteDatasetRequest result = - new com.google.cloud.automl.v1.DeleteDatasetRequest(this); + com.google.cloud.automl.v1.DeleteDatasetRequest result = new com.google.cloud.automl.v1.DeleteDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1.DeleteDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DeleteDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1.DeleteDatasetRequest) other); + return mergeFrom((com.google.cloud.automl.v1.DeleteDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.DeleteDatasetRequest other) { - if (other == com.google.cloud.automl.v1.DeleteDatasetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.DeleteDatasetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the dataset to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -507,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the dataset to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -531,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the dataset to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DeleteDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DeleteDatasetRequest) private static final com.google.cloud.automl.v1.DeleteDatasetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DeleteDatasetRequest(); } @@ -622,16 +564,16 @@ public static com.google.cloud.automl.v1.DeleteDatasetRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.DeleteDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequestOrBuilder.java new file mode 100644 index 000000000..091bc7ccf --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface DeleteDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeleteDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the dataset to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the dataset to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java index 604ce4e29..0b370beff 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.DeleteModel][google.cloud.automl.v1.AutoMl.DeleteModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1.DeleteModelRequest} */ -public final class DeleteModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DeleteModelRequest) DeleteModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteModelRequest.newBuilder() to construct. private DeleteModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private DeleteModelRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeleteModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteModelRequest.class, - com.google.cloud.automl.v1.DeleteModelRequest.Builder.class); + com.google.cloud.automl.v1.DeleteModelRequest.class, com.google.cloud.automl.v1.DeleteModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the model being deleted.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the model being deleted.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DeleteModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.DeleteModelRequest other = - (com.google.cloud.automl.v1.DeleteModelRequest) obj; + com.google.cloud.automl.v1.DeleteModelRequest other = (com.google.cloud.automl.v1.DeleteModelRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeleteModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeleteModelRequest 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.v1.DeleteModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.DeleteModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.DeleteModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeleteModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.DeleteModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.DeleteModel][google.cloud.automl.v1.AutoMl.DeleteModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1.DeleteModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DeleteModelRequest) com.google.cloud.automl.v1.DeleteModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeleteModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteModelRequest.class, - com.google.cloud.automl.v1.DeleteModelRequest.Builder.class); + com.google.cloud.automl.v1.DeleteModelRequest.class, com.google.cloud.automl.v1.DeleteModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.DeleteModelRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1.DeleteModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.DeleteModelRequest buildPartial() { - com.google.cloud.automl.v1.DeleteModelRequest result = - new com.google.cloud.automl.v1.DeleteModelRequest(this); + com.google.cloud.automl.v1.DeleteModelRequest result = new com.google.cloud.automl.v1.DeleteModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1.DeleteModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DeleteModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.DeleteModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1.DeleteModelRequest)other); } else { super.mergeFrom(other); return this; @@ -482,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the model being deleted.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -506,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the model being deleted.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -530,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the model being deleted.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model being deleted.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model being deleted.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -607,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DeleteModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DeleteModelRequest) private static final com.google.cloud.automl.v1.DeleteModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DeleteModelRequest(); } @@ -621,16 +564,16 @@ public static com.google.cloud.automl.v1.DeleteModelRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.DeleteModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java new file mode 100644 index 000000000..81ff32d75 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface DeleteModelRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeleteModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the model being deleted.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the model being deleted.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java index 94340c019..154a6d4fc 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** - * - * *
  * Details of operations that perform deletes of any entities.
  * 
* * Protobuf type {@code google.cloud.automl.v1.DeleteOperationMetadata} */ -public final class DeleteOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DeleteOperationMetadata) DeleteOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteOperationMetadata.newBuilder() to construct. private DeleteOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DeleteOperationMetadata() {} + private DeleteOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private DeleteOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.Operations - .internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteOperationMetadata.class, - com.google.cloud.automl.v1.DeleteOperationMetadata.Builder.class); + com.google.cloud.automl.v1.DeleteOperationMetadata.class, com.google.cloud.automl.v1.DeleteOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DeleteOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.DeleteOperationMetadata other = - (com.google.cloud.automl.v1.DeleteOperationMetadata) obj; + com.google.cloud.automl.v1.DeleteOperationMetadata other = (com.google.cloud.automl.v1.DeleteOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,126 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeleteOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.DeleteOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.DeleteOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.DeleteOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeleteOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.DeleteOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.DeleteOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DeleteOperationMetadata) com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteOperationMetadata.class, - com.google.cloud.automl.v1.DeleteOperationMetadata.Builder.class); + com.google.cloud.automl.v1.DeleteOperationMetadata.class, com.google.cloud.automl.v1.DeleteOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.DeleteOperationMetadata.newBuilder() @@ -285,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -301,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override @@ -322,8 +295,7 @@ public com.google.cloud.automl.v1.DeleteOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.DeleteOperationMetadata buildPartial() { - com.google.cloud.automl.v1.DeleteOperationMetadata result = - new com.google.cloud.automl.v1.DeleteOperationMetadata(this); + com.google.cloud.automl.v1.DeleteOperationMetadata result = new com.google.cloud.automl.v1.DeleteOperationMetadata(this); onBuilt(); return result; } @@ -332,39 +304,38 @@ public com.google.cloud.automl.v1.DeleteOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DeleteOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.DeleteOperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.DeleteOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -372,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.DeleteOperationMetadata other) { - if (other == com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -393,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.DeleteOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.DeleteOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -403,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -415,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DeleteOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DeleteOperationMetadata) private static final com.google.cloud.automl.v1.DeleteOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DeleteOperationMetadata(); } @@ -429,16 +398,16 @@ public static com.google.cloud.automl.v1.DeleteOperationMetadata getDefaultInsta 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); - } - }; + 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; @@ -453,4 +422,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.DeleteOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java new file mode 100644 index 000000000..a6c5bd1c5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface DeleteOperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeleteOperationMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java index 4eadfff2c..0f83bfe5b 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** - * - * *
  * Details of DeployModel operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.DeployModelOperationMetadata} */ -public final class DeployModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeployModelOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DeployModelOperationMetadata) DeployModelOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeployModelOperationMetadata.newBuilder() to construct. private DeployModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DeployModelOperationMetadata() {} + private DeployModelOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeployModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeployModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private DeployModelOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.Operations - .internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeployModelOperationMetadata.class, - com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.DeployModelOperationMetadata.class, com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DeployModelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.DeployModelOperationMetadata other = - (com.google.cloud.automl.v1.DeployModelOperationMetadata) obj; + com.google.cloud.automl.v1.DeployModelOperationMetadata other = (com.google.cloud.automl.v1.DeployModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeployModelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.DeployModelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.DeployModelOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.DeployModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.DeployModelOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DeployModelOperationMetadata) com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeployModelOperationMetadata.class, - com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.DeployModelOperationMetadata.class, com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.DeployModelOperationMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; } @java.lang.Override @@ -323,8 +295,7 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.DeployModelOperationMetadata buildPartial() { - com.google.cloud.automl.v1.DeployModelOperationMetadata result = - new com.google.cloud.automl.v1.DeployModelOperationMetadata(this); + com.google.cloud.automl.v1.DeployModelOperationMetadata result = new com.google.cloud.automl.v1.DeployModelOperationMetadata(this); onBuilt(); return result; } @@ -333,39 +304,38 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DeployModelOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.DeployModelOperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.DeployModelOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -373,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.DeployModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -394,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.DeployModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.DeployModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -404,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -416,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DeployModelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DeployModelOperationMetadata) private static final com.google.cloud.automl.v1.DeployModelOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DeployModelOperationMetadata(); } @@ -430,16 +398,16 @@ public static com.google.cloud.automl.v1.DeployModelOperationMetadata getDefault 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); - } - }; + 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; @@ -454,4 +422,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.DeployModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..ee1ecf2fb --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface DeployModelOperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeployModelOperationMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java similarity index 58% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java index 40484882c..86fb4f999 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.DeployModel][google.cloud.automl.v1.AutoMl.DeployModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1.DeployModelRequest} */ -public final class DeployModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeployModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DeployModelRequest) DeployModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeployModelRequest.newBuilder() to construct. private DeployModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeployModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeployModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeployModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,107 +53,81 @@ private DeployModelRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder subBuilder = null; + if (modelDeploymentMetadataCase_ == 2) { + subBuilder = ((com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_).toBuilder(); + } + modelDeploymentMetadata_ = + input.readMessage(com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_); + modelDeploymentMetadata_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder - subBuilder = null; - if (modelDeploymentMetadataCase_ == 2) { - subBuilder = - ((com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_) - .toBuilder(); - } - modelDeploymentMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_); - modelDeploymentMetadata_ = subBuilder.buildPartial(); - } - modelDeploymentMetadataCase_ = 2; - break; + modelDeploymentMetadataCase_ = 2; + break; + } + case 34: { + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder subBuilder = null; + if (modelDeploymentMetadataCase_ == 4) { + subBuilder = ((com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_).toBuilder(); } - case 34: - { - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder - subBuilder = null; - if (modelDeploymentMetadataCase_ == 4) { - subBuilder = - ((com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_) - .toBuilder(); - } - modelDeploymentMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_); - modelDeploymentMetadata_ = subBuilder.buildPartial(); - } - modelDeploymentMetadataCase_ = 4; - break; + modelDeploymentMetadata_ = + input.readMessage(com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); + modelDeploymentMetadata_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + modelDeploymentMetadataCase_ = 4; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeployModelRequest.class, - com.google.cloud.automl.v1.DeployModelRequest.Builder.class); + com.google.cloud.automl.v1.DeployModelRequest.class, com.google.cloud.automl.v1.DeployModelRequest.Builder.class); } private int modelDeploymentMetadataCase_ = 0; private java.lang.Object modelDeploymentMetadata_; - public enum ModelDeploymentMetadataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA(2), IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA(4), MODELDEPLOYMENTMETADATA_NOT_SET(0); private final int value; - private ModelDeploymentMetadataCase(int value) { this.value = value; } @@ -186,38 +143,30 @@ public static ModelDeploymentMetadataCase valueOf(int value) { public static ModelDeploymentMetadataCase forNumber(int value) { switch (value) { - case 2: - return IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA; - case 4: - return IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA; - case 0: - return MODELDEPLOYMENTMETADATA_NOT_SET; - default: - return null; + case 2: return IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA; + case 4: return IMAGE_CLASSIFICATION_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 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.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. */ @java.lang.Override @@ -225,62 +174,42 @@ public boolean hasImageObjectDetectionModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 2; } /** - * - * *
    * Model deployment metadata specific to Image Object Detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; * @return The imageObjectDetectionModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - getImageObjectDetectionModelDeploymentMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getImageObjectDetectionModelDeploymentMetadata() { if (modelDeploymentMetadataCase_ == 2) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); } /** - * - * *
    * Model deployment metadata specific to Image Object Detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder - getImageObjectDetectionModelDeploymentMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder getImageObjectDetectionModelDeploymentMetadataOrBuilder() { if (modelDeploymentMetadataCase_ == 2) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA_FIELD_NUMBER = 4; /** - * - * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; * @return Whether the imageClassificationModelDeploymentMetadata field is set. */ @java.lang.Override @@ -288,63 +217,43 @@ public boolean hasImageClassificationModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 4; } /** - * - * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; * @return The imageClassificationModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - getImageClassificationModelDeploymentMetadata() { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata() { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } /** - * - * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder - getImageClassificationModelDeploymentMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder() { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the model to deploy.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -353,31 +262,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the model to deploy.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -386,7 +293,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,21 +304,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (modelDeploymentMetadataCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_); + output.writeMessage(2, (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_); } if (modelDeploymentMetadataCase_ == 4) { - output.writeMessage( - 4, - (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_); + output.writeMessage(4, (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); } unknownFields.writeTo(output); } @@ -427,18 +328,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (modelDeploymentMetadataCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_); } if (modelDeploymentMetadataCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -448,17 +343,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DeployModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.DeployModelRequest other = - (com.google.cloud.automl.v1.DeployModelRequest) obj; + com.google.cloud.automl.v1.DeployModelRequest other = (com.google.cloud.automl.v1.DeployModelRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getModelDeploymentMetadataCase().equals(other.getModelDeploymentMetadataCase())) - return false; + if (!getName() + .equals(other.getName())) return false; + if (!getModelDeploymentMetadataCase().equals(other.getModelDeploymentMetadataCase())) return false; switch (modelDeploymentMetadataCase_) { case 2: if (!getImageObjectDetectionModelDeploymentMetadata() @@ -501,127 +395,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.DeployModelRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeployModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeployModelRequest 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.v1.DeployModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.DeployModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.DeployModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.DeployModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeployModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.DeployModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.DeployModel][google.cloud.automl.v1.AutoMl.DeployModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1.DeployModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DeployModelRequest) com.google.cloud.automl.v1.DeployModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeployModelRequest.class, - com.google.cloud.automl.v1.DeployModelRequest.Builder.class); + com.google.cloud.automl.v1.DeployModelRequest.class, com.google.cloud.automl.v1.DeployModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.DeployModelRequest.newBuilder() @@ -629,15 +514,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -649,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; } @java.lang.Override @@ -670,22 +556,19 @@ public com.google.cloud.automl.v1.DeployModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.DeployModelRequest buildPartial() { - com.google.cloud.automl.v1.DeployModelRequest result = - new com.google.cloud.automl.v1.DeployModelRequest(this); + com.google.cloud.automl.v1.DeployModelRequest result = new com.google.cloud.automl.v1.DeployModelRequest(this); if (modelDeploymentMetadataCase_ == 2) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { result.modelDeploymentMetadata_ = modelDeploymentMetadata_; } else { - result.modelDeploymentMetadata_ = - imageObjectDetectionModelDeploymentMetadataBuilder_.build(); + result.modelDeploymentMetadata_ = imageObjectDetectionModelDeploymentMetadataBuilder_.build(); } } if (modelDeploymentMetadataCase_ == 4) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { result.modelDeploymentMetadata_ = modelDeploymentMetadata_; } else { - result.modelDeploymentMetadata_ = - imageClassificationModelDeploymentMetadataBuilder_.build(); + result.modelDeploymentMetadata_ = imageClassificationModelDeploymentMetadataBuilder_.build(); } } result.name_ = name_; @@ -698,39 +581,38 @@ public com.google.cloud.automl.v1.DeployModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DeployModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.DeployModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1.DeployModelRequest)other); } else { super.mergeFrom(other); return this; @@ -744,22 +626,17 @@ public Builder mergeFrom(com.google.cloud.automl.v1.DeployModelRequest other) { onChanged(); } switch (other.getModelDeploymentMetadataCase()) { - case IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA: - { - mergeImageObjectDetectionModelDeploymentMetadata( - other.getImageObjectDetectionModelDeploymentMetadata()); - break; - } - case IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA: - { - mergeImageClassificationModelDeploymentMetadata( - other.getImageClassificationModelDeploymentMetadata()); - break; - } - case MODELDEPLOYMENTMETADATA_NOT_SET: - { - break; - } + case IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA: { + mergeImageObjectDetectionModelDeploymentMetadata(other.getImageObjectDetectionModelDeploymentMetadata()); + break; + } + case IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA: { + mergeImageClassificationModelDeploymentMetadata(other.getImageClassificationModelDeploymentMetadata()); + break; + } + case MODELDEPLOYMENTMETADATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -789,12 +666,12 @@ public Builder mergeFrom( } return this; } - private int modelDeploymentMetadataCase_ = 0; private java.lang.Object modelDeploymentMetadata_; - - public ModelDeploymentMetadataCase getModelDeploymentMetadataCase() { - return ModelDeploymentMetadataCase.forNumber(modelDeploymentMetadataCase_); + public ModelDeploymentMetadataCase + getModelDeploymentMetadataCase() { + return ModelDeploymentMetadataCase.forNumber( + modelDeploymentMetadataCase_); } public Builder clearModelDeploymentMetadata() { @@ -804,22 +681,15 @@ public Builder clearModelDeploymentMetadata() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder> - imageObjectDetectionModelDeploymentMetadataBuilder_; + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder> imageObjectDetectionModelDeploymentMetadataBuilder_; /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. */ @java.lang.Override @@ -827,49 +697,35 @@ public boolean hasImageObjectDetectionModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 2; } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; * @return The imageObjectDetectionModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - getImageObjectDetectionModelDeploymentMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getImageObjectDetectionModelDeploymentMetadata() { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { if (modelDeploymentMetadataCase_ == 2) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); } else { if (modelDeploymentMetadataCase_ == 2) { return imageObjectDetectionModelDeploymentMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); } } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ - public Builder setImageObjectDetectionModelDeploymentMetadata( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata value) { + public Builder setImageObjectDetectionModelDeploymentMetadata(com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata value) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -883,19 +739,14 @@ public Builder setImageObjectDetectionModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ public Builder setImageObjectDetectionModelDeploymentMetadata( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder - builderForValue) { + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder builderForValue) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { modelDeploymentMetadata_ = builderForValue.build(); onChanged(); @@ -906,29 +757,18 @@ public Builder setImageObjectDetectionModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ - public Builder mergeImageObjectDetectionModelDeploymentMetadata( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata value) { + public Builder mergeImageObjectDetectionModelDeploymentMetadata(com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata value) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { - if (modelDeploymentMetadataCase_ == 2 - && modelDeploymentMetadata_ - != com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance()) { - modelDeploymentMetadata_ = - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.newBuilder( - (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelDeploymentMetadataCase_ == 2 && + modelDeploymentMetadata_ != com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance()) { + modelDeploymentMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.newBuilder((com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_) + .mergeFrom(value).buildPartial(); } else { modelDeploymentMetadata_ = value; } @@ -943,15 +783,11 @@ public Builder mergeImageObjectDetectionModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ public Builder clearImageObjectDetectionModelDeploymentMetadata() { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { @@ -970,101 +806,67 @@ public Builder clearImageObjectDetectionModelDeploymentMetadata() { return this; } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder - getImageObjectDetectionModelDeploymentMetadataBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder getImageObjectDetectionModelDeploymentMetadataBuilder() { return getImageObjectDetectionModelDeploymentMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder - getImageObjectDetectionModelDeploymentMetadataOrBuilder() { - if ((modelDeploymentMetadataCase_ == 2) - && (imageObjectDetectionModelDeploymentMetadataBuilder_ != null)) { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder getImageObjectDetectionModelDeploymentMetadataOrBuilder() { + if ((modelDeploymentMetadataCase_ == 2) && (imageObjectDetectionModelDeploymentMetadataBuilder_ != null)) { return imageObjectDetectionModelDeploymentMetadataBuilder_.getMessageOrBuilder(); } else { if (modelDeploymentMetadataCase_ == 2) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); } } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder> + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder> getImageObjectDetectionModelDeploymentMetadataFieldBuilder() { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { if (!(modelDeploymentMetadataCase_ == 2)) { - modelDeploymentMetadata_ = - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + modelDeploymentMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); } - imageObjectDetectionModelDeploymentMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder>( - (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_, + imageObjectDetectionModelDeploymentMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder>( + (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_, getParentForChildren(), isClean()); modelDeploymentMetadata_ = null; } modelDeploymentMetadataCase_ = 2; - onChanged(); - ; + onChanged();; return imageObjectDetectionModelDeploymentMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder> - imageClassificationModelDeploymentMetadataBuilder_; + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder> imageClassificationModelDeploymentMetadataBuilder_; /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; * @return Whether the imageClassificationModelDeploymentMetadata field is set. */ @java.lang.Override @@ -1072,49 +874,35 @@ public boolean hasImageClassificationModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 4; } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; * @return The imageClassificationModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - getImageClassificationModelDeploymentMetadata() { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } else { if (modelDeploymentMetadataCase_ == 4) { return imageClassificationModelDeploymentMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ - public Builder setImageClassificationModelDeploymentMetadata( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata value) { + public Builder setImageClassificationModelDeploymentMetadata(com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata value) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1128,19 +916,14 @@ public Builder setImageClassificationModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ public Builder setImageClassificationModelDeploymentMetadata( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder - builderForValue) { + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder builderForValue) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { modelDeploymentMetadata_ = builderForValue.build(); onChanged(); @@ -1151,29 +934,18 @@ public Builder setImageClassificationModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ - public Builder mergeImageClassificationModelDeploymentMetadata( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata value) { + public Builder mergeImageClassificationModelDeploymentMetadata(com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata value) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { - if (modelDeploymentMetadataCase_ == 4 - && modelDeploymentMetadata_ - != com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance()) { - modelDeploymentMetadata_ = - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.newBuilder( - (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelDeploymentMetadataCase_ == 4 && + modelDeploymentMetadata_ != com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance()) { + modelDeploymentMetadata_ = com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.newBuilder((com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_) + .mergeFrom(value).buildPartial(); } else { modelDeploymentMetadata_ = value; } @@ -1188,15 +960,11 @@ public Builder mergeImageClassificationModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ public Builder clearImageClassificationModelDeploymentMetadata() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { @@ -1215,103 +983,73 @@ public Builder clearImageClassificationModelDeploymentMetadata() { return this; } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder - getImageClassificationModelDeploymentMetadataBuilder() { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder getImageClassificationModelDeploymentMetadataBuilder() { return getImageClassificationModelDeploymentMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder - getImageClassificationModelDeploymentMetadataOrBuilder() { - if ((modelDeploymentMetadataCase_ == 4) - && (imageClassificationModelDeploymentMetadataBuilder_ != null)) { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder() { + if ((modelDeploymentMetadataCase_ == 4) && (imageClassificationModelDeploymentMetadataBuilder_ != null)) { return imageClassificationModelDeploymentMetadataBuilder_.getMessageOrBuilder(); } else { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder> + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder> getImageClassificationModelDeploymentMetadataFieldBuilder() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (!(modelDeploymentMetadataCase_ == 4)) { - modelDeploymentMetadata_ = - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + modelDeploymentMetadata_ = com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } - imageClassificationModelDeploymentMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder>( - (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_, + imageClassificationModelDeploymentMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder>( + (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_, getParentForChildren(), isClean()); modelDeploymentMetadata_ = null; } modelDeploymentMetadataCase_ = 4; - onChanged(); - ; + onChanged();; return imageClassificationModelDeploymentMetadataBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the model to deploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1320,23 +1058,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the model to deploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1344,74 +1079,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the model to deploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to deploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to deploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1421,12 +1143,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DeployModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DeployModelRequest) private static final com.google.cloud.automl.v1.DeployModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DeployModelRequest(); } @@ -1435,16 +1157,16 @@ public static com.google.cloud.automl.v1.DeployModelRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeployModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeployModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1459,4 +1181,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.DeployModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java new file mode 100644 index 000000000..e0c83dbd5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface DeployModelRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeployModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. + */ + boolean hasImageObjectDetectionModelDeploymentMetadata(); + /** + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * @return The imageObjectDetectionModelDeploymentMetadata. + */ + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getImageObjectDetectionModelDeploymentMetadata(); + /** + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + */ + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder getImageObjectDetectionModelDeploymentMetadataOrBuilder(); + + /** + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * @return Whether the imageClassificationModelDeploymentMetadata field is set. + */ + boolean hasImageClassificationModelDeploymentMetadata(); + /** + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * @return The imageClassificationModelDeploymentMetadata. + */ + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata(); + /** + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + */ + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder(); + + /** + *
+   * Required. Resource name of the model to deploy.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the model to deploy.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + public com.google.cloud.automl.v1.DeployModelRequest.ModelDeploymentMetadataCase getModelDeploymentMetadataCase(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java new file mode 100644 index 000000000..c88ae83e8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java @@ -0,0 +1,109 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/detection.proto + +package com.google.cloud.automl.v1; + +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_v1_ImageObjectDetectionAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_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/v1/detection.proto" + + "\022\026google.cloud.automl.v1\032%google/cloud/a" + + "utoml/v1/geometry.proto\032\036google/protobuf" + + "/duration.proto\032\034google/api/annotations." + + "proto\"k\n\036ImageObjectDetectionAnnotation\022" + + ":\n\014bounding_box\030\001 \001(\0132$.google.cloud.aut" + + "oml.v1.BoundingPoly\022\r\n\005score\030\002 \001(\002\"\251\002\n\027B" + + "oundingBoxMetricsEntry\022\025\n\riou_threshold\030" + + "\001 \001(\002\022\036\n\026mean_average_precision\030\002 \001(\002\022j\n" + + "\032confidence_metrics_entries\030\003 \003(\0132F.goog" + + "le.cloud.automl.v1.BoundingBoxMetricsEnt" + + "ry.ConfidenceMetricsEntry\032k\n\026ConfidenceM" + + "etricsEntry\022\034\n\024confidence_threshold\030\001 \001(" + + "\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\002\022\020\n\010" + + "f1_score\030\004 \001(\002\"\321\001\n%ImageObjectDetectionE" + + "valuationMetrics\022$\n\034evaluated_bounding_b" + + "ox_count\030\001 \001(\005\022U\n\034bounding_box_metrics_e" + + "ntries\030\002 \003(\0132/.google.cloud.automl.v1.Bo" + + "undingBoxMetricsEntry\022+\n#bounding_box_me" + + "an_average_precision\030\003 \001(\002B\252\001\n\032com.googl" + + "e.cloud.automl.v1P\001Z * A structured text document e.g. a PDF. *
* * Protobuf type {@code google.cloud.automl.v1.Document} */ -public final class Document extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Document extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.Document) DocumentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Document.newBuilder() to construct. private Document(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Document() { layout_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Document(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Document( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,83 +54,73 @@ private Document( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.DocumentInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.automl.v1.DocumentInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.automl.v1.DocumentInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = input.readMessage(com.google.cloud.automl.v1.DocumentInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; - if (documentText_ != null) { - subBuilder = documentText_.toBuilder(); - } - documentText_ = - input.readMessage( - com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentText_); - documentText_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; + if (documentText_ != null) { + subBuilder = documentText_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - layout_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - layout_.add( - input.readMessage( - com.google.cloud.automl.v1.Document.Layout.parser(), extensionRegistry)); - break; + documentText_ = input.readMessage(com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentText_); + documentText_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.automl.v1.DocumentDimensions.Builder subBuilder = null; - if (documentDimensions_ != null) { - subBuilder = documentDimensions_.toBuilder(); - } - documentDimensions_ = - input.readMessage( - com.google.cloud.automl.v1.DocumentDimensions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentDimensions_); - documentDimensions_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + layout_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 40: - { - pageCount_ = input.readInt32(); - break; + layout_.add( + input.readMessage(com.google.cloud.automl.v1.Document.Layout.parser(), extensionRegistry)); + break; + } + case 34: { + com.google.cloud.automl.v1.DocumentDimensions.Builder subBuilder = null; + if (documentDimensions_ != null) { + subBuilder = documentDimensions_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + documentDimensions_ = input.readMessage(com.google.cloud.automl.v1.DocumentDimensions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentDimensions_); + documentDimensions_ = subBuilder.buildPartial(); + } + + break; + } + case 40: { + + pageCount_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { layout_ = java.util.Collections.unmodifiableList(layout_); @@ -156,56 +129,44 @@ private Document( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_Document_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_Document_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Document.class, - com.google.cloud.automl.v1.Document.Builder.class); + com.google.cloud.automl.v1.Document.class, com.google.cloud.automl.v1.Document.Builder.class); } - public interface LayoutOrBuilder - extends + public interface LayoutOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Document.Layout) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; - * * @return Whether the textSegment field is set. */ boolean hasTextSegment(); /** - * - * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; - * * @return The textSegment. */ com.google.cloud.automl.v1.TextSegment getTextSegment(); /** - * - * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -216,22 +177,17 @@ public interface LayoutOrBuilder
     com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder();
 
     /**
-     *
-     *
      * 
      * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
      * from 1.
      * 
* * int32 page_number = 2; - * * @return The pageNumber. */ int getPageNumber(); /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -244,13 +200,10 @@ public interface LayoutOrBuilder
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -263,13 +216,10 @@ public interface LayoutOrBuilder
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; - * * @return The boundingPoly. */ com.google.cloud.automl.v1.BoundingPoly getBoundingPoly(); /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -286,64 +236,56 @@ public interface LayoutOrBuilder
     com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
     /**
-     *
-     *
      * 
      * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
      * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * * @return The enum numeric value on the wire for textSegmentType. */ int getTextSegmentTypeValue(); /** - * - * *
      * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
      * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * * @return The textSegmentType. */ com.google.cloud.automl.v1.Document.Layout.TextSegmentType getTextSegmentType(); } /** - * - * *
    * Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.
    * 
* * Protobuf type {@code google.cloud.automl.v1.Document.Layout} */ - public static final class Layout extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Layout extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.Document.Layout) LayoutOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Layout.newBuilder() to construct. private Layout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Layout() { textSegmentType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Layout(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Layout( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -362,97 +304,85 @@ private Layout( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.TextSegment.Builder subBuilder = null; - if (textSegment_ != null) { - subBuilder = textSegment_.toBuilder(); - } - textSegment_ = - input.readMessage( - com.google.cloud.automl.v1.TextSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSegment_); - textSegment_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.automl.v1.TextSegment.Builder subBuilder = null; + if (textSegment_ != null) { + subBuilder = textSegment_.toBuilder(); } - case 16: - { - pageNumber_ = input.readInt32(); - break; - } - case 26: - { - com.google.cloud.automl.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.automl.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + textSegment_ = input.readMessage(com.google.cloud.automl.v1.TextSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSegment_); + textSegment_ = subBuilder.buildPartial(); } - case 32: - { - int rawValue = input.readEnum(); - textSegmentType_ = rawValue; - break; + break; + } + case 16: { + + pageNumber_ = input.readInt32(); + break; + } + case 26: { + com.google.cloud.automl.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + boundingPoly_ = input.readMessage(com.google.cloud.automl.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + textSegmentType_ = rawValue; + 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); + 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.v1.DataItems - .internal_static_google_cloud_automl_v1_Document_Layout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_Layout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_Document_Layout_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_Layout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Document.Layout.class, - com.google.cloud.automl.v1.Document.Layout.Builder.class); + com.google.cloud.automl.v1.Document.Layout.class, com.google.cloud.automl.v1.Document.Layout.Builder.class); } /** - * - * *
      * The type of TextSegment in the context of the original document.
      * 
* * Protobuf enum {@code google.cloud.automl.v1.Document.Layout.TextSegmentType} */ - public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { + public enum TextSegmentType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Should not be used.
        * 
@@ -461,8 +391,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ TEXT_SEGMENT_TYPE_UNSPECIFIED(0), /** - * - * *
        * The text segment is a token. e.g. word.
        * 
@@ -471,8 +399,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ TOKEN(1), /** - * - * *
        * The text segment is a paragraph.
        * 
@@ -481,8 +407,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ PARAGRAPH(2), /** - * - * *
        * The text segment is a form field.
        * 
@@ -491,8 +415,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ FORM_FIELD(3), /** - * - * *
        * The text segment is the name part of a form field. It will be treated
        * as child of another FORM_FIELD TextSegment if its span is subspan of
@@ -503,8 +425,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       FORM_FIELD_NAME(4),
       /**
-       *
-       *
        * 
        * The text segment is the text content part of a form field. It will be
        * treated as child of another FORM_FIELD TextSegment if its span is
@@ -515,8 +435,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       FORM_FIELD_CONTENTS(5),
       /**
-       *
-       *
        * 
        * The text segment is a whole table, including headers, and all rows.
        * 
@@ -525,8 +443,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ TABLE(6), /** - * - * *
        * The text segment is a table's headers. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -537,8 +453,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       TABLE_HEADER(7),
       /**
-       *
-       *
        * 
        * The text segment is a row in table. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -549,8 +463,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       TABLE_ROW(8),
       /**
-       *
-       *
        * 
        * The text segment is a cell in table. It will be treated as child of
        * another TABLE_ROW TextSegment if its span is subspan of another
@@ -564,8 +476,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Should not be used.
        * 
@@ -574,8 +484,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_SEGMENT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The text segment is a token. e.g. word.
        * 
@@ -584,8 +492,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TOKEN_VALUE = 1; /** - * - * *
        * The text segment is a paragraph.
        * 
@@ -594,8 +500,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PARAGRAPH_VALUE = 2; /** - * - * *
        * The text segment is a form field.
        * 
@@ -604,8 +508,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORM_FIELD_VALUE = 3; /** - * - * *
        * The text segment is the name part of a form field. It will be treated
        * as child of another FORM_FIELD TextSegment if its span is subspan of
@@ -616,8 +518,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int FORM_FIELD_NAME_VALUE = 4;
       /**
-       *
-       *
        * 
        * The text segment is the text content part of a form field. It will be
        * treated as child of another FORM_FIELD TextSegment if its span is
@@ -628,8 +528,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int FORM_FIELD_CONTENTS_VALUE = 5;
       /**
-       *
-       *
        * 
        * The text segment is a whole table, including headers, and all rows.
        * 
@@ -638,8 +536,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TABLE_VALUE = 6; /** - * - * *
        * The text segment is a table's headers. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -650,8 +546,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int TABLE_HEADER_VALUE = 7;
       /**
-       *
-       *
        * 
        * The text segment is a row in table. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -662,8 +556,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int TABLE_ROW_VALUE = 8;
       /**
-       *
-       *
        * 
        * The text segment is a cell in table. It will be treated as child of
        * another TABLE_ROW TextSegment if its span is subspan of another
@@ -674,6 +566,7 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int TABLE_CELL_VALUE = 9;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -698,28 +591,17 @@ public static TextSegmentType valueOf(int value) {
        */
       public static TextSegmentType forNumber(int value) {
         switch (value) {
-          case 0:
-            return TEXT_SEGMENT_TYPE_UNSPECIFIED;
-          case 1:
-            return TOKEN;
-          case 2:
-            return PARAGRAPH;
-          case 3:
-            return FORM_FIELD;
-          case 4:
-            return FORM_FIELD_NAME;
-          case 5:
-            return FORM_FIELD_CONTENTS;
-          case 6:
-            return TABLE;
-          case 7:
-            return TABLE_HEADER;
-          case 8:
-            return TABLE_ROW;
-          case 9:
-            return TABLE_CELL;
-          default:
-            return null;
+          case 0: return TEXT_SEGMENT_TYPE_UNSPECIFIED;
+          case 1: return TOKEN;
+          case 2: return PARAGRAPH;
+          case 3: return FORM_FIELD;
+          case 4: return FORM_FIELD_NAME;
+          case 5: return FORM_FIELD_CONTENTS;
+          case 6: return TABLE;
+          case 7: return TABLE_HEADER;
+          case 8: return TABLE_ROW;
+          case 9: return TABLE_CELL;
+          default: return null;
         }
       }
 
@@ -727,28 +609,28 @@ public static TextSegmentType forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          TextSegmentType> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public TextSegmentType findValueByNumber(int number) {
+                return TextSegmentType.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public TextSegmentType findValueByNumber(int number) {
-                  return TextSegmentType.forNumber(number);
-                }
-              };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
         return com.google.cloud.automl.v1.Document.Layout.getDescriptor().getEnumTypes().get(0);
       }
 
@@ -757,7 +639,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static TextSegmentType valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -777,15 +660,12 @@ private TextSegmentType(int value) {
     public static final int TEXT_SEGMENT_FIELD_NUMBER = 1;
     private com.google.cloud.automl.v1.TextSegment textSegment_;
     /**
-     *
-     *
      * 
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; - * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -793,26 +673,19 @@ public boolean hasTextSegment() { return textSegment_ != null; } /** - * - * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; - * * @return The textSegment. */ @java.lang.Override public com.google.cloud.automl.v1.TextSegment getTextSegment() { - return textSegment_ == null - ? com.google.cloud.automl.v1.TextSegment.getDefaultInstance() - : textSegment_; + return textSegment_ == null ? com.google.cloud.automl.v1.TextSegment.getDefaultInstance() : textSegment_; } /** - * - * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -828,15 +701,12 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
     public static final int PAGE_NUMBER_FIELD_NUMBER = 2;
     private int pageNumber_;
     /**
-     *
-     *
      * 
      * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
      * from 1.
      * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -847,8 +717,6 @@ public int getPageNumber() { public static final int BOUNDING_POLY_FIELD_NUMBER = 3; private com.google.cloud.automl.v1.BoundingPoly boundingPoly_; /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -861,7 +729,6 @@ public int getPageNumber() {
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -869,8 +736,6 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -883,18 +748,13 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.automl.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -916,43 +776,31 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
     public static final int TEXT_SEGMENT_TYPE_FIELD_NUMBER = 4;
     private int textSegmentType_;
     /**
-     *
-     *
      * 
      * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
      * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * * @return The enum numeric value on the wire for textSegmentType. */ - @java.lang.Override - public int getTextSegmentTypeValue() { + @java.lang.Override public int getTextSegmentTypeValue() { return textSegmentType_; } /** - * - * *
      * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
      * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * * @return The textSegmentType. */ - @java.lang.Override - public com.google.cloud.automl.v1.Document.Layout.TextSegmentType getTextSegmentType() { + @java.lang.Override public com.google.cloud.automl.v1.Document.Layout.TextSegmentType getTextSegmentType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.Document.Layout.TextSegmentType result = - com.google.cloud.automl.v1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); - return result == null - ? com.google.cloud.automl.v1.Document.Layout.TextSegmentType.UNRECOGNIZED - : result; + com.google.cloud.automl.v1.Document.Layout.TextSegmentType result = com.google.cloud.automl.v1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); + return result == null ? com.google.cloud.automl.v1.Document.Layout.TextSegmentType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -964,7 +812,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (textSegment_ != null) { output.writeMessage(1, getTextSegment()); } @@ -974,10 +823,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (boundingPoly_ != null) { output.writeMessage(3, getBoundingPoly()); } - if (textSegmentType_ - != com.google.cloud.automl.v1.Document.Layout.TextSegmentType - .TEXT_SEGMENT_TYPE_UNSPECIFIED - .getNumber()) { + if (textSegmentType_ != com.google.cloud.automl.v1.Document.Layout.TextSegmentType.TEXT_SEGMENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, textSegmentType_); } unknownFields.writeTo(output); @@ -990,19 +836,20 @@ public int getSerializedSize() { size = 0; if (textSegment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTextSegment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTextSegment()); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageNumber_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBoundingPoly()); } - if (textSegmentType_ - != com.google.cloud.automl.v1.Document.Layout.TextSegmentType - .TEXT_SEGMENT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, textSegmentType_); + if (textSegmentType_ != com.google.cloud.automl.v1.Document.Layout.TextSegmentType.TEXT_SEGMENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, textSegmentType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1012,22 +859,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.Document.Layout)) { return super.equals(obj); } - com.google.cloud.automl.v1.Document.Layout other = - (com.google.cloud.automl.v1.Document.Layout) obj; + com.google.cloud.automl.v1.Document.Layout other = (com.google.cloud.automl.v1.Document.Layout) obj; if (hasTextSegment() != other.hasTextSegment()) return false; if (hasTextSegment()) { - if (!getTextSegment().equals(other.getTextSegment())) return false; + if (!getTextSegment() + .equals(other.getTextSegment())) return false; } - if (getPageNumber() != other.getPageNumber()) return false; + if (getPageNumber() + != other.getPageNumber()) return false; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (textSegmentType_ != other.textSegmentType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -1058,94 +907,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.Document.Layout parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.Document.Layout parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.Document.Layout parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.Document.Layout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.Document.Layout 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.v1.Document.Layout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.Document.Layout parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.Document.Layout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.Document.Layout parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.Document.Layout parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.Document.Layout parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.Document.Layout parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.Document.Layout parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.Document.Layout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.Document.Layout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1155,32 +998,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.
      * 
* * Protobuf type {@code google.cloud.automl.v1.Document.Layout} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.Document.Layout) com.google.cloud.automl.v1.Document.LayoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_Document_Layout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_Layout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_Document_Layout_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_Layout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Document.Layout.class, - com.google.cloud.automl.v1.Document.Layout.Builder.class); + com.google.cloud.automl.v1.Document.Layout.class, com.google.cloud.automl.v1.Document.Layout.Builder.class); } // Construct using com.google.cloud.automl.v1.Document.Layout.newBuilder() @@ -1188,15 +1026,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1220,9 +1059,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_Document_Layout_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_Layout_descriptor; } @java.lang.Override @@ -1241,8 +1080,7 @@ public com.google.cloud.automl.v1.Document.Layout build() { @java.lang.Override public com.google.cloud.automl.v1.Document.Layout buildPartial() { - com.google.cloud.automl.v1.Document.Layout result = - new com.google.cloud.automl.v1.Document.Layout(this); + com.google.cloud.automl.v1.Document.Layout result = new com.google.cloud.automl.v1.Document.Layout(this); if (textSegmentBuilder_ == null) { result.textSegment_ = textSegment_; } else { @@ -1263,41 +1101,38 @@ public com.google.cloud.automl.v1.Document.Layout buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.Document.Layout) { - return mergeFrom((com.google.cloud.automl.v1.Document.Layout) other); + return mergeFrom((com.google.cloud.automl.v1.Document.Layout)other); } else { super.mergeFrom(other); return this; @@ -1349,49 +1184,36 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.TextSegment textSegment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSegment, - com.google.cloud.automl.v1.TextSegment.Builder, - com.google.cloud.automl.v1.TextSegmentOrBuilder> - textSegmentBuilder_; + com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder> textSegmentBuilder_; /** - * - * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
        * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; - * * @return Whether the textSegment field is set. */ public boolean hasTextSegment() { return textSegmentBuilder_ != null || textSegment_ != null; } /** - * - * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
        * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; - * * @return The textSegment. */ public com.google.cloud.automl.v1.TextSegment getTextSegment() { if (textSegmentBuilder_ == null) { - return textSegment_ == null - ? com.google.cloud.automl.v1.TextSegment.getDefaultInstance() - : textSegment_; + return textSegment_ == null ? com.google.cloud.automl.v1.TextSegment.getDefaultInstance() : textSegment_; } else { return textSegmentBuilder_.getMessage(); } } /** - * - * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1413,8 +1235,6 @@ public Builder setTextSegment(com.google.cloud.automl.v1.TextSegment value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1434,8 +1254,6 @@ public Builder setTextSegment(
         return this;
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1447,9 +1265,7 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1.TextSegment value) {
         if (textSegmentBuilder_ == null) {
           if (textSegment_ != null) {
             textSegment_ =
-                com.google.cloud.automl.v1.TextSegment.newBuilder(textSegment_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.cloud.automl.v1.TextSegment.newBuilder(textSegment_).mergeFrom(value).buildPartial();
           } else {
             textSegment_ = value;
           }
@@ -1461,8 +1277,6 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1.TextSegment value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1482,8 +1296,6 @@ public Builder clearTextSegment() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1492,13 +1304,11 @@ public Builder clearTextSegment() {
        * .google.cloud.automl.v1.TextSegment text_segment = 1;
        */
       public com.google.cloud.automl.v1.TextSegment.Builder getTextSegmentBuilder() {
-
+        
         onChanged();
         return getTextSegmentFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1510,14 +1320,11 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
         if (textSegmentBuilder_ != null) {
           return textSegmentBuilder_.getMessageOrBuilder();
         } else {
-          return textSegment_ == null
-              ? com.google.cloud.automl.v1.TextSegment.getDefaultInstance()
-              : textSegment_;
+          return textSegment_ == null ?
+              com.google.cloud.automl.v1.TextSegment.getDefaultInstance() : textSegment_;
         }
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1526,33 +1333,27 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
        * .google.cloud.automl.v1.TextSegment text_segment = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.automl.v1.TextSegment,
-              com.google.cloud.automl.v1.TextSegment.Builder,
-              com.google.cloud.automl.v1.TextSegmentOrBuilder>
+          com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder> 
           getTextSegmentFieldBuilder() {
         if (textSegmentBuilder_ == null) {
-          textSegmentBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.automl.v1.TextSegment,
-                  com.google.cloud.automl.v1.TextSegment.Builder,
-                  com.google.cloud.automl.v1.TextSegmentOrBuilder>(
-                  getTextSegment(), getParentForChildren(), isClean());
+          textSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder>(
+                  getTextSegment(),
+                  getParentForChildren(),
+                  isClean());
           textSegment_ = null;
         }
         return textSegmentBuilder_;
       }
 
-      private int pageNumber_;
+      private int pageNumber_ ;
       /**
-       *
-       *
        * 
        * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -1560,38 +1361,32 @@ public int getPageNumber() { return pageNumber_; } /** - * - * *
        * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; - * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** - * - * *
        * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; - * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; @@ -1599,13 +1394,8 @@ public Builder clearPageNumber() { private com.google.cloud.automl.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BoundingPoly, - com.google.cloud.automl.v1.BoundingPoly.Builder, - com.google.cloud.automl.v1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1618,15 +1408,12 @@ public Builder clearPageNumber() {
        * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1639,21 +1426,16 @@ public boolean hasBoundingPoly() {
        * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; - * * @return The boundingPoly. */ public com.google.cloud.automl.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1681,8 +1463,6 @@ public Builder setBoundingPoly(com.google.cloud.automl.v1.BoundingPoly value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1708,8 +1488,6 @@ public Builder setBoundingPoly(
         return this;
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1727,9 +1505,7 @@ public Builder mergeBoundingPoly(com.google.cloud.automl.v1.BoundingPoly value)
         if (boundingPolyBuilder_ == null) {
           if (boundingPoly_ != null) {
             boundingPoly_ =
-                com.google.cloud.automl.v1.BoundingPoly.newBuilder(boundingPoly_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.cloud.automl.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
           } else {
             boundingPoly_ = value;
           }
@@ -1741,8 +1517,6 @@ public Builder mergeBoundingPoly(com.google.cloud.automl.v1.BoundingPoly value)
         return this;
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1768,8 +1542,6 @@ public Builder clearBoundingPoly() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1784,13 +1556,11 @@ public Builder clearBoundingPoly() {
        * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
        */
       public com.google.cloud.automl.v1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+        
         onChanged();
         return getBoundingPolyFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1808,14 +1578,11 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
         if (boundingPolyBuilder_ != null) {
           return boundingPolyBuilder_.getMessageOrBuilder();
         } else {
-          return boundingPoly_ == null
-              ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance()
-              : boundingPoly_;
+          return boundingPoly_ == null ?
+              com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingPoly_;
         }
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1830,17 +1597,14 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
        * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.automl.v1.BoundingPoly,
-              com.google.cloud.automl.v1.BoundingPoly.Builder,
-              com.google.cloud.automl.v1.BoundingPolyOrBuilder>
+          com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder> 
           getBoundingPolyFieldBuilder() {
         if (boundingPolyBuilder_ == null) {
-          boundingPolyBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.automl.v1.BoundingPoly,
-                  com.google.cloud.automl.v1.BoundingPoly.Builder,
-                  com.google.cloud.automl.v1.BoundingPolyOrBuilder>(
-                  getBoundingPoly(), getParentForChildren(), isClean());
+          boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder>(
+                  getBoundingPoly(),
+                  getParentForChildren(),
+                  isClean());
           boundingPoly_ = null;
         }
         return boundingPolyBuilder_;
@@ -1848,98 +1612,77 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
 
       private int textSegmentType_ = 0;
       /**
-       *
-       *
        * 
        * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
        * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * * @return The enum numeric value on the wire for textSegmentType. */ - @java.lang.Override - public int getTextSegmentTypeValue() { + @java.lang.Override public int getTextSegmentTypeValue() { return textSegmentType_; } /** - * - * *
        * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
        * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * * @param value The enum numeric value on the wire for textSegmentType to set. * @return This builder for chaining. */ public Builder setTextSegmentTypeValue(int value) { - + textSegmentType_ = value; onChanged(); return this; } /** - * - * *
        * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
        * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * * @return The textSegmentType. */ @java.lang.Override public com.google.cloud.automl.v1.Document.Layout.TextSegmentType getTextSegmentType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.Document.Layout.TextSegmentType result = - com.google.cloud.automl.v1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); - return result == null - ? com.google.cloud.automl.v1.Document.Layout.TextSegmentType.UNRECOGNIZED - : result; + com.google.cloud.automl.v1.Document.Layout.TextSegmentType result = com.google.cloud.automl.v1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); + return result == null ? com.google.cloud.automl.v1.Document.Layout.TextSegmentType.UNRECOGNIZED : result; } /** - * - * *
        * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
        * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * * @param value The textSegmentType to set. * @return This builder for chaining. */ - public Builder setTextSegmentType( - com.google.cloud.automl.v1.Document.Layout.TextSegmentType value) { + public Builder setTextSegmentType(com.google.cloud.automl.v1.Document.Layout.TextSegmentType value) { if (value == null) { throw new NullPointerException(); } - + textSegmentType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
        * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * * @return This builder for chaining. */ public Builder clearTextSegmentType() { - + textSegmentType_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1952,12 +1695,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.Document.Layout) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.Document.Layout) private static final com.google.cloud.automl.v1.Document.Layout DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.Document.Layout(); } @@ -1966,16 +1709,16 @@ public static com.google.cloud.automl.v1.Document.Layout getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Layout parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Layout(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Layout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Layout(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1990,19 +1733,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.Document.Layout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.DocumentInputConfig inputConfig_; /** - * - * *
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -2010,25 +1751,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.DocumentInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * An input config specifying the content of the document.
    * 
@@ -2043,14 +1777,11 @@ public com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrB public static final int DOCUMENT_TEXT_FIELD_NUMBER = 2; private com.google.cloud.automl.v1.TextSnippet documentText_; /** - * - * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; - * * @return Whether the documentText field is set. */ @java.lang.Override @@ -2058,25 +1789,18 @@ public boolean hasDocumentText() { return documentText_ != null; } /** - * - * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; - * * @return The documentText. */ @java.lang.Override public com.google.cloud.automl.v1.TextSnippet getDocumentText() { - return documentText_ == null - ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() - : documentText_; + return documentText_ == null ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : documentText_; } /** - * - * *
    * The plain text version of this document.
    * 
@@ -2091,8 +1815,6 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getDocumentTextOrBuilder( public static final int LAYOUT_FIELD_NUMBER = 3; private java.util.List layout_; /** - * - * *
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -2105,8 +1827,6 @@ public java.util.List getLayoutList(
     return layout_;
   }
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -2115,13 +1835,11 @@ public java.util.List getLayoutList(
    * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLayoutOrBuilderList() {
     return layout_;
   }
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -2134,8 +1852,6 @@ public int getLayoutCount() {
     return layout_.size();
   }
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -2148,8 +1864,6 @@ public com.google.cloud.automl.v1.Document.Layout getLayout(int index) {
     return layout_.get(index);
   }
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -2158,21 +1872,19 @@ public com.google.cloud.automl.v1.Document.Layout getLayout(int index) {
    * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(int index) {
+  public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(
+      int index) {
     return layout_.get(index);
   }
 
   public static final int DOCUMENT_DIMENSIONS_FIELD_NUMBER = 4;
   private com.google.cloud.automl.v1.DocumentDimensions documentDimensions_;
   /**
-   *
-   *
    * 
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; - * * @return Whether the documentDimensions field is set. */ @java.lang.Override @@ -2180,25 +1892,18 @@ public boolean hasDocumentDimensions() { return documentDimensions_ != null; } /** - * - * *
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; - * * @return The documentDimensions. */ @java.lang.Override public com.google.cloud.automl.v1.DocumentDimensions getDocumentDimensions() { - return documentDimensions_ == null - ? com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() - : documentDimensions_; + return documentDimensions_ == null ? com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() : documentDimensions_; } /** - * - * *
    * The dimensions of the page in the document.
    * 
@@ -2213,14 +1918,11 @@ public com.google.cloud.automl.v1.DocumentDimensionsOrBuilder getDocumentDimensi public static final int PAGE_COUNT_FIELD_NUMBER = 5; private int pageCount_; /** - * - * *
    * Number of pages in the document.
    * 
* * int32 page_count = 5; - * * @return The pageCount. */ @java.lang.Override @@ -2229,7 +1931,6 @@ public int getPageCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2241,7 +1942,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -2267,19 +1969,24 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } if (documentText_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentText()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocumentText()); } for (int i = 0; i < layout_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, layout_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, layout_.get(i)); } if (documentDimensions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentDimensions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDocumentDimensions()); } if (pageCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, pageCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2289,7 +1996,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.Document)) { return super.equals(obj); @@ -2298,18 +2005,23 @@ public boolean equals(final java.lang.Object obj) { if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (hasDocumentText() != other.hasDocumentText()) return false; if (hasDocumentText()) { - if (!getDocumentText().equals(other.getDocumentText())) return false; + if (!getDocumentText() + .equals(other.getDocumentText())) return false; } - if (!getLayoutList().equals(other.getLayoutList())) return false; + if (!getLayoutList() + .equals(other.getLayoutList())) return false; if (hasDocumentDimensions() != other.hasDocumentDimensions()) return false; if (hasDocumentDimensions()) { - if (!getDocumentDimensions().equals(other.getDocumentDimensions())) return false; + if (!getDocumentDimensions() + .equals(other.getDocumentDimensions())) return false; } - if (getPageCount() != other.getPageCount()) return false; + if (getPageCount() + != other.getPageCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2344,126 +2056,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.Document parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.Document parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.Document parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.Document parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.automl.v1.Document parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.Document parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.Document parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.Document parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.Document parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.Document parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.Document parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.Document parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.Document prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.Document} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.Document) com.google.cloud.automl.v1.DocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_Document_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_Document_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Document.class, - com.google.cloud.automl.v1.Document.Builder.class); + com.google.cloud.automl.v1.Document.class, com.google.cloud.automl.v1.Document.Builder.class); } // Construct using com.google.cloud.automl.v1.Document.newBuilder() @@ -2471,17 +2175,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLayoutFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2515,9 +2219,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_Document_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_descriptor; } @java.lang.Override @@ -2571,39 +2275,38 @@ public com.google.cloud.automl.v1.Document buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.Document) { - return mergeFrom((com.google.cloud.automl.v1.Document) other); + return mergeFrom((com.google.cloud.automl.v1.Document)other); } else { super.mergeFrom(other); return this; @@ -2636,10 +2339,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1.Document other) { layoutBuilder_ = null; layout_ = other.layout_; bitField0_ = (bitField0_ & ~0x00000001); - layoutBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLayoutFieldBuilder() - : null; + layoutBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLayoutFieldBuilder() : null; } else { layoutBuilder_.addAllMessages(other.layout_); } @@ -2679,52 +2381,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.automl.v1.DocumentInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DocumentInputConfig, - com.google.cloud.automl.v1.DocumentInputConfig.Builder, - com.google.cloud.automl.v1.DocumentInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.automl.v1.DocumentInputConfig, com.google.cloud.automl.v1.DocumentInputConfig.Builder, com.google.cloud.automl.v1.DocumentInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * An input config specifying the content of the document.
      * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * An input config specifying the content of the document.
      * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.automl.v1.DocumentInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2745,8 +2433,6 @@ public Builder setInputConfig(com.google.cloud.automl.v1.DocumentInputConfig val return this; } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2765,8 +2451,6 @@ public Builder setInputConfig( return this; } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2777,9 +2461,7 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.DocumentInputConfig v if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.automl.v1.DocumentInputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.DocumentInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -2791,8 +2473,6 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.DocumentInputConfig v return this; } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2811,8 +2491,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2820,13 +2498,11 @@ public Builder clearInputConfig() { * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; */ public com.google.cloud.automl.v1.DocumentInputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2837,14 +2513,11 @@ public com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrB if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2852,17 +2525,14 @@ public com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrB * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DocumentInputConfig, - com.google.cloud.automl.v1.DocumentInputConfig.Builder, - com.google.cloud.automl.v1.DocumentInputConfigOrBuilder> + com.google.cloud.automl.v1.DocumentInputConfig, com.google.cloud.automl.v1.DocumentInputConfig.Builder, com.google.cloud.automl.v1.DocumentInputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DocumentInputConfig, - com.google.cloud.automl.v1.DocumentInputConfig.Builder, - com.google.cloud.automl.v1.DocumentInputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.DocumentInputConfig, com.google.cloud.automl.v1.DocumentInputConfig.Builder, com.google.cloud.automl.v1.DocumentInputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -2870,47 +2540,34 @@ public com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrB private com.google.cloud.automl.v1.TextSnippet documentText_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, - com.google.cloud.automl.v1.TextSnippet.Builder, - com.google.cloud.automl.v1.TextSnippetOrBuilder> - documentTextBuilder_; + com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> documentTextBuilder_; /** - * - * *
      * The plain text version of this document.
      * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; - * * @return Whether the documentText field is set. */ public boolean hasDocumentText() { return documentTextBuilder_ != null || documentText_ != null; } /** - * - * *
      * The plain text version of this document.
      * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; - * * @return The documentText. */ public com.google.cloud.automl.v1.TextSnippet getDocumentText() { if (documentTextBuilder_ == null) { - return documentText_ == null - ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() - : documentText_; + return documentText_ == null ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : documentText_; } else { return documentTextBuilder_.getMessage(); } } /** - * - * *
      * The plain text version of this document.
      * 
@@ -2931,15 +2588,14 @@ public Builder setDocumentText(com.google.cloud.automl.v1.TextSnippet value) { return this; } /** - * - * *
      * The plain text version of this document.
      * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; */ - public Builder setDocumentText(com.google.cloud.automl.v1.TextSnippet.Builder builderForValue) { + public Builder setDocumentText( + com.google.cloud.automl.v1.TextSnippet.Builder builderForValue) { if (documentTextBuilder_ == null) { documentText_ = builderForValue.build(); onChanged(); @@ -2950,8 +2606,6 @@ public Builder setDocumentText(com.google.cloud.automl.v1.TextSnippet.Builder bu return this; } /** - * - * *
      * The plain text version of this document.
      * 
@@ -2962,9 +2616,7 @@ public Builder mergeDocumentText(com.google.cloud.automl.v1.TextSnippet value) { if (documentTextBuilder_ == null) { if (documentText_ != null) { documentText_ = - com.google.cloud.automl.v1.TextSnippet.newBuilder(documentText_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.TextSnippet.newBuilder(documentText_).mergeFrom(value).buildPartial(); } else { documentText_ = value; } @@ -2976,8 +2628,6 @@ public Builder mergeDocumentText(com.google.cloud.automl.v1.TextSnippet value) { return this; } /** - * - * *
      * The plain text version of this document.
      * 
@@ -2996,8 +2646,6 @@ public Builder clearDocumentText() { return this; } /** - * - * *
      * The plain text version of this document.
      * 
@@ -3005,13 +2653,11 @@ public Builder clearDocumentText() { * .google.cloud.automl.v1.TextSnippet document_text = 2; */ public com.google.cloud.automl.v1.TextSnippet.Builder getDocumentTextBuilder() { - + onChanged(); return getDocumentTextFieldBuilder().getBuilder(); } /** - * - * *
      * The plain text version of this document.
      * 
@@ -3022,14 +2668,11 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getDocumentTextOrBuilder( if (documentTextBuilder_ != null) { return documentTextBuilder_.getMessageOrBuilder(); } else { - return documentText_ == null - ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() - : documentText_; + return documentText_ == null ? + com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : documentText_; } } /** - * - * *
      * The plain text version of this document.
      * 
@@ -3037,41 +2680,32 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getDocumentTextOrBuilder( * .google.cloud.automl.v1.TextSnippet document_text = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, - com.google.cloud.automl.v1.TextSnippet.Builder, - com.google.cloud.automl.v1.TextSnippetOrBuilder> + com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> getDocumentTextFieldBuilder() { if (documentTextBuilder_ == null) { - documentTextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, - com.google.cloud.automl.v1.TextSnippet.Builder, - com.google.cloud.automl.v1.TextSnippetOrBuilder>( - getDocumentText(), getParentForChildren(), isClean()); + documentTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder>( + getDocumentText(), + getParentForChildren(), + isClean()); documentText_ = null; } return documentTextBuilder_; } private java.util.List layout_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLayoutIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { layout_ = new java.util.ArrayList(layout_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Document.Layout, - com.google.cloud.automl.v1.Document.Layout.Builder, - com.google.cloud.automl.v1.Document.LayoutOrBuilder> - layoutBuilder_; + com.google.cloud.automl.v1.Document.Layout, com.google.cloud.automl.v1.Document.Layout.Builder, com.google.cloud.automl.v1.Document.LayoutOrBuilder> layoutBuilder_; /** - * - * *
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3087,8 +2721,6 @@ public java.util.List getLayoutList(
       }
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3104,8 +2736,6 @@ public int getLayoutCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3121,8 +2751,6 @@ public com.google.cloud.automl.v1.Document.Layout getLayout(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3130,7 +2758,8 @@ public com.google.cloud.automl.v1.Document.Layout getLayout(int index) {
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public Builder setLayout(int index, com.google.cloud.automl.v1.Document.Layout value) {
+    public Builder setLayout(
+        int index, com.google.cloud.automl.v1.Document.Layout value) {
       if (layoutBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3144,8 +2773,6 @@ public Builder setLayout(int index, com.google.cloud.automl.v1.Document.Layout v
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3165,8 +2792,6 @@ public Builder setLayout(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3188,8 +2813,6 @@ public Builder addLayout(com.google.cloud.automl.v1.Document.Layout value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3197,7 +2820,8 @@ public Builder addLayout(com.google.cloud.automl.v1.Document.Layout value) {
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public Builder addLayout(int index, com.google.cloud.automl.v1.Document.Layout value) {
+    public Builder addLayout(
+        int index, com.google.cloud.automl.v1.Document.Layout value) {
       if (layoutBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3211,8 +2835,6 @@ public Builder addLayout(int index, com.google.cloud.automl.v1.Document.Layout v
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3220,7 +2842,8 @@ public Builder addLayout(int index, com.google.cloud.automl.v1.Document.Layout v
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public Builder addLayout(com.google.cloud.automl.v1.Document.Layout.Builder builderForValue) {
+    public Builder addLayout(
+        com.google.cloud.automl.v1.Document.Layout.Builder builderForValue) {
       if (layoutBuilder_ == null) {
         ensureLayoutIsMutable();
         layout_.add(builderForValue.build());
@@ -3231,8 +2854,6 @@ public Builder addLayout(com.google.cloud.automl.v1.Document.Layout.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3252,8 +2873,6 @@ public Builder addLayout(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3265,7 +2884,8 @@ public Builder addAllLayout(
         java.lang.Iterable values) {
       if (layoutBuilder_ == null) {
         ensureLayoutIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, layout_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, layout_);
         onChanged();
       } else {
         layoutBuilder_.addAllMessages(values);
@@ -3273,8 +2893,6 @@ public Builder addAllLayout(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3293,8 +2911,6 @@ public Builder clearLayout() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3313,8 +2929,6 @@ public Builder removeLayout(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3322,12 +2936,11 @@ public Builder removeLayout(int index) {
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1.Document.Layout.Builder getLayoutBuilder(int index) {
+    public com.google.cloud.automl.v1.Document.Layout.Builder getLayoutBuilder(
+        int index) {
       return getLayoutFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3335,16 +2948,14 @@ public com.google.cloud.automl.v1.Document.Layout.Builder getLayoutBuilder(int i
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(int index) {
+    public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(
+        int index) {
       if (layoutBuilder_ == null) {
-        return layout_.get(index);
-      } else {
+        return layout_.get(index);  } else {
         return layoutBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3352,8 +2963,8 @@ public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(in
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public java.util.List
-        getLayoutOrBuilderList() {
+    public java.util.List 
+         getLayoutOrBuilderList() {
       if (layoutBuilder_ != null) {
         return layoutBuilder_.getMessageOrBuilderList();
       } else {
@@ -3361,8 +2972,6 @@ public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(in
       }
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3371,12 +2980,10 @@ public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(in
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
     public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder() {
-      return getLayoutFieldBuilder()
-          .addBuilder(com.google.cloud.automl.v1.Document.Layout.getDefaultInstance());
+      return getLayoutFieldBuilder().addBuilder(
+          com.google.cloud.automl.v1.Document.Layout.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3384,13 +2991,12 @@ public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder() {
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder(int index) {
-      return getLayoutFieldBuilder()
-          .addBuilder(index, com.google.cloud.automl.v1.Document.Layout.getDefaultInstance());
+    public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder(
+        int index) {
+      return getLayoutFieldBuilder().addBuilder(
+          index, com.google.cloud.automl.v1.Document.Layout.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3398,23 +3004,20 @@ public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder(int i
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public java.util.List
-        getLayoutBuilderList() {
+    public java.util.List 
+         getLayoutBuilderList() {
       return getLayoutFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.automl.v1.Document.Layout,
-            com.google.cloud.automl.v1.Document.Layout.Builder,
-            com.google.cloud.automl.v1.Document.LayoutOrBuilder>
+        com.google.cloud.automl.v1.Document.Layout, com.google.cloud.automl.v1.Document.Layout.Builder, com.google.cloud.automl.v1.Document.LayoutOrBuilder> 
         getLayoutFieldBuilder() {
       if (layoutBuilder_ == null) {
-        layoutBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.automl.v1.Document.Layout,
-                com.google.cloud.automl.v1.Document.Layout.Builder,
-                com.google.cloud.automl.v1.Document.LayoutOrBuilder>(
-                layout_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        layoutBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.automl.v1.Document.Layout, com.google.cloud.automl.v1.Document.Layout.Builder, com.google.cloud.automl.v1.Document.LayoutOrBuilder>(
+                layout_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         layout_ = null;
       }
       return layoutBuilder_;
@@ -3422,47 +3025,34 @@ public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder(int i
 
     private com.google.cloud.automl.v1.DocumentDimensions documentDimensions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.DocumentDimensions,
-            com.google.cloud.automl.v1.DocumentDimensions.Builder,
-            com.google.cloud.automl.v1.DocumentDimensionsOrBuilder>
-        documentDimensionsBuilder_;
+        com.google.cloud.automl.v1.DocumentDimensions, com.google.cloud.automl.v1.DocumentDimensions.Builder, com.google.cloud.automl.v1.DocumentDimensionsOrBuilder> documentDimensionsBuilder_;
     /**
-     *
-     *
      * 
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; - * * @return Whether the documentDimensions field is set. */ public boolean hasDocumentDimensions() { return documentDimensionsBuilder_ != null || documentDimensions_ != null; } /** - * - * *
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; - * * @return The documentDimensions. */ public com.google.cloud.automl.v1.DocumentDimensions getDocumentDimensions() { if (documentDimensionsBuilder_ == null) { - return documentDimensions_ == null - ? com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() - : documentDimensions_; + return documentDimensions_ == null ? com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() : documentDimensions_; } else { return documentDimensionsBuilder_.getMessage(); } } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3483,8 +3073,6 @@ public Builder setDocumentDimensions(com.google.cloud.automl.v1.DocumentDimensio return this; } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3503,8 +3091,6 @@ public Builder setDocumentDimensions( return this; } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3515,9 +3101,7 @@ public Builder mergeDocumentDimensions(com.google.cloud.automl.v1.DocumentDimens if (documentDimensionsBuilder_ == null) { if (documentDimensions_ != null) { documentDimensions_ = - com.google.cloud.automl.v1.DocumentDimensions.newBuilder(documentDimensions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.DocumentDimensions.newBuilder(documentDimensions_).mergeFrom(value).buildPartial(); } else { documentDimensions_ = value; } @@ -3529,8 +3113,6 @@ public Builder mergeDocumentDimensions(com.google.cloud.automl.v1.DocumentDimens return this; } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3549,8 +3131,6 @@ public Builder clearDocumentDimensions() { return this; } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3558,13 +3138,11 @@ public Builder clearDocumentDimensions() { * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; */ public com.google.cloud.automl.v1.DocumentDimensions.Builder getDocumentDimensionsBuilder() { - + onChanged(); return getDocumentDimensionsFieldBuilder().getBuilder(); } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3575,14 +3153,11 @@ public com.google.cloud.automl.v1.DocumentDimensionsOrBuilder getDocumentDimensi if (documentDimensionsBuilder_ != null) { return documentDimensionsBuilder_.getMessageOrBuilder(); } else { - return documentDimensions_ == null - ? com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() - : documentDimensions_; + return documentDimensions_ == null ? + com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() : documentDimensions_; } } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3590,32 +3165,26 @@ public com.google.cloud.automl.v1.DocumentDimensionsOrBuilder getDocumentDimensi * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DocumentDimensions, - com.google.cloud.automl.v1.DocumentDimensions.Builder, - com.google.cloud.automl.v1.DocumentDimensionsOrBuilder> + com.google.cloud.automl.v1.DocumentDimensions, com.google.cloud.automl.v1.DocumentDimensions.Builder, com.google.cloud.automl.v1.DocumentDimensionsOrBuilder> getDocumentDimensionsFieldBuilder() { if (documentDimensionsBuilder_ == null) { - documentDimensionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DocumentDimensions, - com.google.cloud.automl.v1.DocumentDimensions.Builder, - com.google.cloud.automl.v1.DocumentDimensionsOrBuilder>( - getDocumentDimensions(), getParentForChildren(), isClean()); + documentDimensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.DocumentDimensions, com.google.cloud.automl.v1.DocumentDimensions.Builder, com.google.cloud.automl.v1.DocumentDimensionsOrBuilder>( + getDocumentDimensions(), + getParentForChildren(), + isClean()); documentDimensions_ = null; } return documentDimensionsBuilder_; } - private int pageCount_; + private int pageCount_ ; /** - * - * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; - * * @return The pageCount. */ @java.lang.Override @@ -3623,43 +3192,37 @@ public int getPageCount() { return pageCount_; } /** - * - * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; - * * @param value The pageCount to set. * @return This builder for chaining. */ public Builder setPageCount(int value) { - + pageCount_ = value; onChanged(); return this; } /** - * - * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; - * * @return This builder for chaining. */ public Builder clearPageCount() { - + pageCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3669,12 +3232,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.Document) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.Document) private static final com.google.cloud.automl.v1.Document DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.Document(); } @@ -3683,16 +3246,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -3707,4 +3270,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.Document getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java similarity index 70% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java index ce388f799..5ba371460 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; /** - * - * *
  * Message that describes dimension of a document.
  * 
* * Protobuf type {@code google.cloud.automl.v1.DocumentDimensions} */ -public final class DocumentDimensions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentDimensions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DocumentDimensions) DocumentDimensionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentDimensions.newBuilder() to construct. private DocumentDimensions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentDimensions() { unit_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentDimensions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentDimensions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,70 +53,64 @@ private DocumentDimensions( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - unit_ = rawValue; - break; - } - case 21: - { - width_ = input.readFloat(); - break; - } - case 29: - { - height_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unit_ = rawValue; + break; + } + case 21: { + + width_ = input.readFloat(); + break; + } + case 29: { + + height_ = 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); + 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.v1.DataItems - .internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_DocumentDimensions_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_DocumentDimensions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DocumentDimensions.class, - com.google.cloud.automl.v1.DocumentDimensions.Builder.class); + com.google.cloud.automl.v1.DocumentDimensions.class, com.google.cloud.automl.v1.DocumentDimensions.Builder.class); } /** - * - * *
    * Unit of the document dimension.
    * 
* * Protobuf enum {@code google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit} */ - public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessageEnum { + public enum DocumentDimensionUnit + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Should not be used.
      * 
@@ -142,8 +119,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ DOCUMENT_DIMENSION_UNIT_UNSPECIFIED(0), /** - * - * *
      * Document dimension is measured in inches.
      * 
@@ -152,8 +127,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ INCH(1), /** - * - * *
      * Document dimension is measured in centimeters.
      * 
@@ -162,8 +135,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ CENTIMETER(2), /** - * - * *
      * Document dimension is measured in points. 72 points = 1 inch.
      * 
@@ -175,8 +146,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage ; /** - * - * *
      * Should not be used.
      * 
@@ -185,8 +154,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ public static final int DOCUMENT_DIMENSION_UNIT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Document dimension is measured in inches.
      * 
@@ -195,8 +162,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ public static final int INCH_VALUE = 1; /** - * - * *
      * Document dimension is measured in centimeters.
      * 
@@ -205,8 +170,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ public static final int CENTIMETER_VALUE = 2; /** - * - * *
      * Document dimension is measured in points. 72 points = 1 inch.
      * 
@@ -215,6 +178,7 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ public static final int POINT_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -239,16 +203,11 @@ public static DocumentDimensionUnit valueOf(int value) { */ public static DocumentDimensionUnit forNumber(int value) { switch (value) { - case 0: - return DOCUMENT_DIMENSION_UNIT_UNSPECIFIED; - case 1: - return INCH; - case 2: - return CENTIMETER; - case 3: - return POINT; - default: - return null; + case 0: return DOCUMENT_DIMENSION_UNIT_UNSPECIFIED; + case 1: return INCH; + case 2: return CENTIMETER; + case 3: return POINT; + default: return null; } } @@ -256,28 +215,28 @@ public static DocumentDimensionUnit forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DocumentDimensionUnit> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DocumentDimensionUnit findValueByNumber(int number) { + return DocumentDimensionUnit.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DocumentDimensionUnit findValueByNumber(int number) { - return DocumentDimensionUnit.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.automl.v1.DocumentDimensions.getDescriptor().getEnumTypes().get(0); } @@ -286,7 +245,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static DocumentDimensionUnit valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -306,52 +266,38 @@ private DocumentDimensionUnit(int value) { public static final int UNIT_FIELD_NUMBER = 1; private int unit_; /** - * - * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The enum numeric value on the wire for unit. */ - @java.lang.Override - public int getUnitValue() { + @java.lang.Override public int getUnitValue() { return unit_; } /** - * - * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The unit. */ - @java.lang.Override - public com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit getUnit() { + @java.lang.Override public com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit getUnit() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit result = - com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); - return result == null - ? com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED - : result; + com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit result = com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); + return result == null ? com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED : result; } public static final int WIDTH_FIELD_NUMBER = 2; private float width_; /** - * - * *
    * Width value of the document, works together with the unit.
    * 
* * float width = 2; - * * @return The width. */ @java.lang.Override @@ -362,14 +308,11 @@ public float getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private float height_; /** - * - * *
    * Height value of the document, works together with the unit.
    * 
* * float height = 3; - * * @return The height. */ @java.lang.Override @@ -378,7 +321,6 @@ public float getHeight() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,11 +332,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (unit_ - != com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit - .DOCUMENT_DIMENSION_UNIT_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (unit_ != com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.DOCUMENT_DIMENSION_UNIT_UNSPECIFIED.getNumber()) { output.writeEnum(1, unit_); } if (width_ != 0F) { @@ -412,17 +352,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (unit_ - != com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit - .DOCUMENT_DIMENSION_UNIT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, unit_); + if (unit_ != com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.DOCUMENT_DIMENSION_UNIT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, unit_); } if (width_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, width_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, width_); } if (height_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, height_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, height_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -432,19 +372,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DocumentDimensions)) { return super.equals(obj); } - com.google.cloud.automl.v1.DocumentDimensions other = - (com.google.cloud.automl.v1.DocumentDimensions) obj; + com.google.cloud.automl.v1.DocumentDimensions other = (com.google.cloud.automl.v1.DocumentDimensions) obj; if (unit_ != other.unit_) return false; if (java.lang.Float.floatToIntBits(getWidth()) - != java.lang.Float.floatToIntBits(other.getWidth())) return false; + != java.lang.Float.floatToIntBits( + other.getWidth())) return false; if (java.lang.Float.floatToIntBits(getHeight()) - != java.lang.Float.floatToIntBits(other.getHeight())) return false; + != java.lang.Float.floatToIntBits( + other.getHeight())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -459,135 +400,128 @@ public int hashCode() { hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + unit_; hash = (37 * hash) + WIDTH_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getWidth()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getWidth()); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getHeight()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getHeight()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.DocumentDimensions parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DocumentDimensions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DocumentDimensions 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.v1.DocumentDimensions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.DocumentDimensions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.DocumentDimensions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.DocumentDimensions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DocumentDimensions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.DocumentDimensions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message that describes dimension of a document.
    * 
* * Protobuf type {@code google.cloud.automl.v1.DocumentDimensions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DocumentDimensions) com.google.cloud.automl.v1.DocumentDimensionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_DocumentDimensions_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_DocumentDimensions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DocumentDimensions.class, - com.google.cloud.automl.v1.DocumentDimensions.Builder.class); + com.google.cloud.automl.v1.DocumentDimensions.class, com.google.cloud.automl.v1.DocumentDimensions.Builder.class); } // Construct using com.google.cloud.automl.v1.DocumentDimensions.newBuilder() @@ -595,15 +529,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -617,9 +552,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; } @java.lang.Override @@ -638,8 +573,7 @@ public com.google.cloud.automl.v1.DocumentDimensions build() { @java.lang.Override public com.google.cloud.automl.v1.DocumentDimensions buildPartial() { - com.google.cloud.automl.v1.DocumentDimensions result = - new com.google.cloud.automl.v1.DocumentDimensions(this); + com.google.cloud.automl.v1.DocumentDimensions result = new com.google.cloud.automl.v1.DocumentDimensions(this); result.unit_ = unit_; result.width_ = width_; result.height_ = height_; @@ -651,39 +585,38 @@ public com.google.cloud.automl.v1.DocumentDimensions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DocumentDimensions) { - return mergeFrom((com.google.cloud.automl.v1.DocumentDimensions) other); + return mergeFrom((com.google.cloud.automl.v1.DocumentDimensions)other); } else { super.mergeFrom(other); return this; @@ -732,108 +665,85 @@ public Builder mergeFrom( private int unit_ = 0; /** - * - * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The enum numeric value on the wire for unit. */ - @java.lang.Override - public int getUnitValue() { + @java.lang.Override public int getUnitValue() { return unit_; } /** - * - * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @param value The enum numeric value on the wire for unit to set. * @return This builder for chaining. */ public Builder setUnitValue(int value) { - + unit_ = value; onChanged(); return this; } /** - * - * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The unit. */ @java.lang.Override public com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit getUnit() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit result = - com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); - return result == null - ? com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED - : result; + com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit result = com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); + return result == null ? com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED : result; } /** - * - * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit( - com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit value) { + public Builder setUnit(com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit value) { if (value == null) { throw new NullPointerException(); } - + unit_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return This builder for chaining. */ public Builder clearUnit() { - + unit_ = 0; onChanged(); return this; } - private float width_; + private float width_ ; /** - * - * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; - * * @return The width. */ @java.lang.Override @@ -841,51 +751,42 @@ public float getWidth() { return width_; } /** - * - * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; - * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(float value) { - + width_ = value; onChanged(); return this; } /** - * - * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; - * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0F; onChanged(); return this; } - private float height_; + private float height_ ; /** - * - * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; - * * @return The height. */ @java.lang.Override @@ -893,43 +794,37 @@ public float getHeight() { return height_; } /** - * - * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; - * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(float value) { - + height_ = value; onChanged(); return this; } /** - * - * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; - * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -939,12 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DocumentDimensions) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DocumentDimensions) private static final com.google.cloud.automl.v1.DocumentDimensions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DocumentDimensions(); } @@ -953,16 +848,16 @@ public static com.google.cloud.automl.v1.DocumentDimensions getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentDimensions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentDimensions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentDimensions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentDimensions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,4 +872,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.DocumentDimensions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java similarity index 62% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java index 698f1106c..5a65aab7d 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java @@ -1,75 +1,47 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; -public interface DocumentDimensionsOrBuilder - extends +public interface DocumentDimensionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DocumentDimensions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The enum numeric value on the wire for unit. */ int getUnitValue(); /** - * - * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The unit. */ com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit getUnit(); /** - * - * *
    * Width value of the document, works together with the unit.
    * 
* * float width = 2; - * * @return The width. */ float getWidth(); /** - * - * *
    * Height value of the document, works together with the unit.
    * 
* * float height = 3; - * * @return The height. */ float getHeight(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java similarity index 70% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java index d43ed54da..63d4e6b92 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; /** - * - * *
  * Input configuration of a [Document][google.cloud.automl.v1.Document].
  * 
* * Protobuf type {@code google.cloud.automl.v1.DocumentInputConfig} */ -public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DocumentInputConfig) DocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DocumentInputConfig() {} + private DocumentInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,61 +52,54 @@ private DocumentInputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); - } - gcsSource_ = - input.readMessage( - com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsSource_); - gcsSource_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + gcsSource_ = input.readMessage(com.google.cloud.automl.v1.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); + 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.v1.Io - .internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DocumentInputConfig.class, - com.google.cloud.automl.v1.DocumentInputConfig.Builder.class); + com.google.cloud.automl.v1.DocumentInputConfig.class, com.google.cloud.automl.v1.DocumentInputConfig.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.GcsSource gcsSource_; /** - * - * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -131,7 +108,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -139,8 +115,6 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** - * - * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -149,18 +123,13 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.automl.v1.GcsSource getGcsSource() { - return gcsSource_ == null - ? com.google.cloud.automl.v1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? com.google.cloud.automl.v1.GcsSource.getDefaultInstance() : gcsSource_; } /** - * - * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -176,7 +145,6 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -188,7 +156,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (gcsSource_ != null) {
       output.writeMessage(1, getGcsSource());
     }
@@ -202,7 +171,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (gcsSource_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getGcsSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -212,17 +182,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.DocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.DocumentInputConfig other =
-        (com.google.cloud.automl.v1.DocumentInputConfig) obj;
+    com.google.cloud.automl.v1.DocumentInputConfig other = (com.google.cloud.automl.v1.DocumentInputConfig) obj;
 
     if (hasGcsSource() != other.hasGcsSource()) return false;
     if (hasGcsSource()) {
-      if (!getGcsSource().equals(other.getGcsSource())) return false;
+      if (!getGcsSource()
+          .equals(other.getGcsSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -244,127 +214,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.DocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.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.v1.DocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.automl.v1.DocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.automl.v1.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.DocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1.DocumentInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration of a [Document][google.cloud.automl.v1.Document].
    * 
* * Protobuf type {@code google.cloud.automl.v1.DocumentInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DocumentInputConfig) com.google.cloud.automl.v1.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DocumentInputConfig.class, - com.google.cloud.automl.v1.DocumentInputConfig.Builder.class); + com.google.cloud.automl.v1.DocumentInputConfig.class, com.google.cloud.automl.v1.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.automl.v1.DocumentInputConfig.newBuilder() @@ -372,15 +333,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -394,9 +356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; } @java.lang.Override @@ -415,8 +377,7 @@ public com.google.cloud.automl.v1.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.automl.v1.DocumentInputConfig buildPartial() { - com.google.cloud.automl.v1.DocumentInputConfig result = - new com.google.cloud.automl.v1.DocumentInputConfig(this); + com.google.cloud.automl.v1.DocumentInputConfig result = new com.google.cloud.automl.v1.DocumentInputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -430,39 +391,38 @@ public com.google.cloud.automl.v1.DocumentInputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DocumentInputConfig) { - return mergeFrom((com.google.cloud.automl.v1.DocumentInputConfig) other); + return mergeFrom((com.google.cloud.automl.v1.DocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -505,13 +465,8 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsSource, - com.google.cloud.automl.v1.GcsSource.Builder, - com.google.cloud.automl.v1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -520,15 +475,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** - * - * *
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -537,21 +489,16 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ public com.google.cloud.automl.v1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null - ? com.google.cloud.automl.v1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? com.google.cloud.automl.v1.GcsSource.getDefaultInstance() : gcsSource_; } else { return gcsSourceBuilder_.getMessage(); } } /** - * - * *
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -575,8 +522,6 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -586,7 +531,8 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) {
      *
      * .google.cloud.automl.v1.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.automl.v1.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         gcsSource_ = builderForValue.build();
         onChanged();
@@ -597,8 +543,6 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -612,9 +556,7 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
         if (gcsSource_ != null) {
           gcsSource_ =
-              com.google.cloud.automl.v1.GcsSource.newBuilder(gcsSource_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.automl.v1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial();
         } else {
           gcsSource_ = value;
         }
@@ -626,8 +568,6 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -649,8 +589,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -661,13 +599,11 @@ public Builder clearGcsSource() {
      * .google.cloud.automl.v1.GcsSource gcs_source = 1;
      */
     public com.google.cloud.automl.v1.GcsSource.Builder getGcsSourceBuilder() {
-
+      
       onChanged();
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -681,14 +617,11 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
       if (gcsSourceBuilder_ != null) {
         return gcsSourceBuilder_.getMessageOrBuilder();
       } else {
-        return gcsSource_ == null
-            ? com.google.cloud.automl.v1.GcsSource.getDefaultInstance()
-            : gcsSource_;
+        return gcsSource_ == null ?
+            com.google.cloud.automl.v1.GcsSource.getDefaultInstance() : gcsSource_;
       }
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -699,24 +632,21 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
      * .google.cloud.automl.v1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.GcsSource,
-            com.google.cloud.automl.v1.GcsSource.Builder,
-            com.google.cloud.automl.v1.GcsSourceOrBuilder>
+        com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.automl.v1.GcsSource,
-                com.google.cloud.automl.v1.GcsSource.Builder,
-                com.google.cloud.automl.v1.GcsSourceOrBuilder>(
-                getGcsSource(), getParentForChildren(), isClean());
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder>(
+                getGcsSource(),
+                getParentForChildren(),
+                isClean());
         gcsSource_ = null;
       }
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -726,12 +656,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DocumentInputConfig)
   private static final com.google.cloud.automl.v1.DocumentInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DocumentInputConfig();
   }
@@ -740,16 +670,16 @@ public static com.google.cloud.automl.v1.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);
-        }
-      };
+  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;
@@ -764,4 +694,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.DocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java
similarity index 65%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java
index 713db9cd6..3daa21e98 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/io.proto
 
 package com.google.cloud.automl.v1;
 
-public interface DocumentInputConfigOrBuilder
-    extends
+public interface DocumentInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -34,13 +16,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -49,13 +28,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.automl.v1.GcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java
similarity index 81%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java
index 6f6097129..c97d77086 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/data_items.proto
 
 package com.google.cloud.automl.v1;
 
-public interface DocumentOrBuilder
-    extends
+public interface DocumentOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Document)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.automl.v1.DocumentInputConfig getInputConfig(); /** - * - * *
    * An input config specifying the content of the document.
    * 
@@ -59,32 +35,24 @@ public interface DocumentOrBuilder com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; - * * @return Whether the documentText field is set. */ boolean hasDocumentText(); /** - * - * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; - * * @return The documentText. */ com.google.cloud.automl.v1.TextSnippet getDocumentText(); /** - * - * *
    * The plain text version of this document.
    * 
@@ -94,8 +62,6 @@ public interface DocumentOrBuilder com.google.cloud.automl.v1.TextSnippetOrBuilder getDocumentTextOrBuilder(); /** - * - * *
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -103,10 +69,9 @@ public interface DocumentOrBuilder
    *
    * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
    */
-  java.util.List getLayoutList();
+  java.util.List 
+      getLayoutList();
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -116,8 +81,6 @@ public interface DocumentOrBuilder
    */
   com.google.cloud.automl.v1.Document.Layout getLayout(int index);
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -127,8 +90,6 @@ public interface DocumentOrBuilder
    */
   int getLayoutCount();
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -136,11 +97,9 @@ public interface DocumentOrBuilder
    *
    * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
    */
-  java.util.List
+  java.util.List 
       getLayoutOrBuilderList();
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -148,35 +107,28 @@ public interface DocumentOrBuilder
    *
    * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
    */
-  com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(int index);
+  com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; - * * @return Whether the documentDimensions field is set. */ boolean hasDocumentDimensions(); /** - * - * *
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; - * * @return The documentDimensions. */ com.google.cloud.automl.v1.DocumentDimensions getDocumentDimensions(); /** - * - * *
    * The dimensions of the page in the document.
    * 
@@ -186,14 +138,11 @@ public interface DocumentOrBuilder com.google.cloud.automl.v1.DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder(); /** - * - * *
    * Number of pages in the document.
    * 
* * int32 page_count = 5; - * * @return The pageCount. */ int getPageCount(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java similarity index 69% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java index eff0e1ca2..f521fdca1 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; /** - * - * *
  * Example data used for training or prediction.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ExamplePayload} */ -public final class ExamplePayload extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExamplePayload extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExamplePayload) ExamplePayloadOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExamplePayload.newBuilder() to construct. private ExamplePayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExamplePayload() {} + private ExamplePayload() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExamplePayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExamplePayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,100 +52,90 @@ private ExamplePayload( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.Image.Builder subBuilder = null; - if (payloadCase_ == 1) { - subBuilder = ((com.google.cloud.automl.v1.Image) payload_).toBuilder(); - } - payload_ = - input.readMessage(com.google.cloud.automl.v1.Image.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.Image) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 1; - break; + case 10: { + com.google.cloud.automl.v1.Image.Builder subBuilder = null; + if (payloadCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1.Image) payload_).toBuilder(); } - case 18: - { - com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; - if (payloadCase_ == 2) { - subBuilder = ((com.google.cloud.automl.v1.TextSnippet) payload_).toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSnippet) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 2; - break; + payload_ = + input.readMessage(com.google.cloud.automl.v1.Image.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.Image) payload_); + payload_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.automl.v1.Document.Builder subBuilder = null; - if (payloadCase_ == 4) { - subBuilder = ((com.google.cloud.automl.v1.Document) payload_).toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.automl.v1.Document.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.Document) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 4; - break; + payloadCase_ = 1; + break; + } + case 18: { + com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; + if (payloadCase_ == 2) { + subBuilder = ((com.google.cloud.automl.v1.TextSnippet) payload_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + payload_ = + input.readMessage(com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSnippet) payload_); + payload_ = subBuilder.buildPartial(); } + payloadCase_ = 2; + break; + } + case 34: { + com.google.cloud.automl.v1.Document.Builder subBuilder = null; + if (payloadCase_ == 4) { + subBuilder = ((com.google.cloud.automl.v1.Document) payload_).toBuilder(); + } + payload_ = + input.readMessage(com.google.cloud.automl.v1.Document.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.Document) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 4; + 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); + 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.v1.DataItems - .internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_ExamplePayload_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_ExamplePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExamplePayload.class, - com.google.cloud.automl.v1.ExamplePayload.Builder.class); + com.google.cloud.automl.v1.ExamplePayload.class, com.google.cloud.automl.v1.ExamplePayload.Builder.class); } private int payloadCase_ = 0; private java.lang.Object payload_; - public enum PayloadCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE(1), TEXT_SNIPPET(2), DOCUMENT(4), PAYLOAD_NOT_SET(0); private final int value; - private PayloadCase(int value) { this.value = value; } @@ -177,38 +151,31 @@ public static PayloadCase valueOf(int value) { public static PayloadCase forNumber(int value) { switch (value) { - case 1: - return IMAGE; - case 2: - return TEXT_SNIPPET; - case 4: - return DOCUMENT; - case 0: - return PAYLOAD_NOT_SET; - default: - return null; + case 1: return IMAGE; + case 2: return TEXT_SNIPPET; + case 4: return DOCUMENT; + case 0: return PAYLOAD_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PayloadCase getPayloadCase() { - return PayloadCase.forNumber(payloadCase_); + public PayloadCase + getPayloadCase() { + return PayloadCase.forNumber( + payloadCase_); } public static final int IMAGE_FIELD_NUMBER = 1; /** - * - * *
    * Example image.
    * 
* * .google.cloud.automl.v1.Image image = 1; - * * @return Whether the image field is set. */ @java.lang.Override @@ -216,26 +183,21 @@ public boolean hasImage() { return payloadCase_ == 1; } /** - * - * *
    * Example image.
    * 
* * .google.cloud.automl.v1.Image image = 1; - * * @return The image. */ @java.lang.Override public com.google.cloud.automl.v1.Image getImage() { if (payloadCase_ == 1) { - return (com.google.cloud.automl.v1.Image) payload_; + return (com.google.cloud.automl.v1.Image) payload_; } return com.google.cloud.automl.v1.Image.getDefaultInstance(); } /** - * - * *
    * Example image.
    * 
@@ -245,21 +207,18 @@ public com.google.cloud.automl.v1.Image getImage() { @java.lang.Override public com.google.cloud.automl.v1.ImageOrBuilder getImageOrBuilder() { if (payloadCase_ == 1) { - return (com.google.cloud.automl.v1.Image) payload_; + return (com.google.cloud.automl.v1.Image) payload_; } return com.google.cloud.automl.v1.Image.getDefaultInstance(); } public static final int TEXT_SNIPPET_FIELD_NUMBER = 2; /** - * - * *
    * Example text.
    * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; - * * @return Whether the textSnippet field is set. */ @java.lang.Override @@ -267,26 +226,21 @@ public boolean hasTextSnippet() { return payloadCase_ == 2; } /** - * - * *
    * Example text.
    * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; - * * @return The textSnippet. */ @java.lang.Override public com.google.cloud.automl.v1.TextSnippet getTextSnippet() { if (payloadCase_ == 2) { - return (com.google.cloud.automl.v1.TextSnippet) payload_; + return (com.google.cloud.automl.v1.TextSnippet) payload_; } return com.google.cloud.automl.v1.TextSnippet.getDefaultInstance(); } /** - * - * *
    * Example text.
    * 
@@ -296,21 +250,18 @@ public com.google.cloud.automl.v1.TextSnippet getTextSnippet() { @java.lang.Override public com.google.cloud.automl.v1.TextSnippetOrBuilder getTextSnippetOrBuilder() { if (payloadCase_ == 2) { - return (com.google.cloud.automl.v1.TextSnippet) payload_; + return (com.google.cloud.automl.v1.TextSnippet) payload_; } return com.google.cloud.automl.v1.TextSnippet.getDefaultInstance(); } public static final int DOCUMENT_FIELD_NUMBER = 4; /** - * - * *
    * Example document.
    * 
* * .google.cloud.automl.v1.Document document = 4; - * * @return Whether the document field is set. */ @java.lang.Override @@ -318,26 +269,21 @@ public boolean hasDocument() { return payloadCase_ == 4; } /** - * - * *
    * Example document.
    * 
* * .google.cloud.automl.v1.Document document = 4; - * * @return The document. */ @java.lang.Override public com.google.cloud.automl.v1.Document getDocument() { if (payloadCase_ == 4) { - return (com.google.cloud.automl.v1.Document) payload_; + return (com.google.cloud.automl.v1.Document) payload_; } return com.google.cloud.automl.v1.Document.getDefaultInstance(); } /** - * - * *
    * Example document.
    * 
@@ -347,13 +293,12 @@ public com.google.cloud.automl.v1.Document getDocument() { @java.lang.Override public com.google.cloud.automl.v1.DocumentOrBuilder getDocumentOrBuilder() { if (payloadCase_ == 4) { - return (com.google.cloud.automl.v1.Document) payload_; + return (com.google.cloud.automl.v1.Document) payload_; } return com.google.cloud.automl.v1.Document.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -365,7 +310,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (payloadCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1.Image) payload_); } @@ -385,19 +331,16 @@ public int getSerializedSize() { size = 0; if (payloadCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.automl.v1.Image) payload_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.automl.v1.Image) payload_); } if (payloadCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.automl.v1.TextSnippet) payload_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.automl.v1.TextSnippet) payload_); } if (payloadCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.automl.v1.Document) payload_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.automl.v1.Document) payload_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -407,24 +350,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ExamplePayload)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExamplePayload other = - (com.google.cloud.automl.v1.ExamplePayload) obj; + com.google.cloud.automl.v1.ExamplePayload other = (com.google.cloud.automl.v1.ExamplePayload) obj; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 1: - if (!getImage().equals(other.getImage())) return false; + if (!getImage() + .equals(other.getImage())) return false; break; case 2: - if (!getTextSnippet().equals(other.getTextSnippet())) return false; + if (!getTextSnippet() + .equals(other.getTextSnippet())) return false; break; case 4: - if (!getDocument().equals(other.getDocument())) return false; + if (!getDocument() + .equals(other.getDocument())) return false; break; case 0: default: @@ -461,127 +406,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ExamplePayload parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ExamplePayload parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExamplePayload parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ExamplePayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExamplePayload 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.v1.ExamplePayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExamplePayload parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ExamplePayload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExamplePayload parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ExamplePayload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ExamplePayload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExamplePayload parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ExamplePayload parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExamplePayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ExamplePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Example data used for training or prediction.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ExamplePayload} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExamplePayload) com.google.cloud.automl.v1.ExamplePayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_ExamplePayload_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_ExamplePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExamplePayload.class, - com.google.cloud.automl.v1.ExamplePayload.Builder.class); + com.google.cloud.automl.v1.ExamplePayload.class, com.google.cloud.automl.v1.ExamplePayload.Builder.class); } // Construct using com.google.cloud.automl.v1.ExamplePayload.newBuilder() @@ -589,15 +525,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -607,9 +544,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; } @java.lang.Override @@ -628,8 +565,7 @@ public com.google.cloud.automl.v1.ExamplePayload build() { @java.lang.Override public com.google.cloud.automl.v1.ExamplePayload buildPartial() { - com.google.cloud.automl.v1.ExamplePayload result = - new com.google.cloud.automl.v1.ExamplePayload(this); + com.google.cloud.automl.v1.ExamplePayload result = new com.google.cloud.automl.v1.ExamplePayload(this); if (payloadCase_ == 1) { if (imageBuilder_ == null) { result.payload_ = payload_; @@ -660,39 +596,38 @@ public com.google.cloud.automl.v1.ExamplePayload buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ExamplePayload) { - return mergeFrom((com.google.cloud.automl.v1.ExamplePayload) other); + return mergeFrom((com.google.cloud.automl.v1.ExamplePayload)other); } else { super.mergeFrom(other); return this; @@ -702,25 +637,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.automl.v1.ExamplePayload other) { if (other == com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance()) return this; switch (other.getPayloadCase()) { - case IMAGE: - { - mergeImage(other.getImage()); - break; - } - case TEXT_SNIPPET: - { - mergeTextSnippet(other.getTextSnippet()); - break; - } - case DOCUMENT: - { - mergeDocument(other.getDocument()); - break; - } - case PAYLOAD_NOT_SET: - { - break; - } + case IMAGE: { + mergeImage(other.getImage()); + break; + } + case TEXT_SNIPPET: { + mergeTextSnippet(other.getTextSnippet()); + break; + } + case DOCUMENT: { + mergeDocument(other.getDocument()); + break; + } + case PAYLOAD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -750,12 +681,12 @@ public Builder mergeFrom( } return this; } - private int payloadCase_ = 0; private java.lang.Object payload_; - - public PayloadCase getPayloadCase() { - return PayloadCase.forNumber(payloadCase_); + public PayloadCase + getPayloadCase() { + return PayloadCase.forNumber( + payloadCase_); } public Builder clearPayload() { @@ -765,20 +696,15 @@ public Builder clearPayload() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Image, - com.google.cloud.automl.v1.Image.Builder, - com.google.cloud.automl.v1.ImageOrBuilder> - imageBuilder_; + com.google.cloud.automl.v1.Image, com.google.cloud.automl.v1.Image.Builder, com.google.cloud.automl.v1.ImageOrBuilder> imageBuilder_; /** - * - * *
      * Example image.
      * 
* * .google.cloud.automl.v1.Image image = 1; - * * @return Whether the image field is set. */ @java.lang.Override @@ -786,14 +712,11 @@ public boolean hasImage() { return payloadCase_ == 1; } /** - * - * *
      * Example image.
      * 
* * .google.cloud.automl.v1.Image image = 1; - * * @return The image. */ @java.lang.Override @@ -811,8 +734,6 @@ public com.google.cloud.automl.v1.Image getImage() { } } /** - * - * *
      * Example image.
      * 
@@ -833,15 +754,14 @@ public Builder setImage(com.google.cloud.automl.v1.Image value) { return this; } /** - * - * *
      * Example image.
      * 
* * .google.cloud.automl.v1.Image image = 1; */ - public Builder setImage(com.google.cloud.automl.v1.Image.Builder builderForValue) { + public Builder setImage( + com.google.cloud.automl.v1.Image.Builder builderForValue) { if (imageBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -852,8 +772,6 @@ public Builder setImage(com.google.cloud.automl.v1.Image.Builder builderForValue return this; } /** - * - * *
      * Example image.
      * 
@@ -862,13 +780,10 @@ public Builder setImage(com.google.cloud.automl.v1.Image.Builder builderForValue */ public Builder mergeImage(com.google.cloud.automl.v1.Image value) { if (imageBuilder_ == null) { - if (payloadCase_ == 1 - && payload_ != com.google.cloud.automl.v1.Image.getDefaultInstance()) { - payload_ = - com.google.cloud.automl.v1.Image.newBuilder( - (com.google.cloud.automl.v1.Image) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 1 && + payload_ != com.google.cloud.automl.v1.Image.getDefaultInstance()) { + payload_ = com.google.cloud.automl.v1.Image.newBuilder((com.google.cloud.automl.v1.Image) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -883,8 +798,6 @@ public Builder mergeImage(com.google.cloud.automl.v1.Image value) { return this; } /** - * - * *
      * Example image.
      * 
@@ -908,8 +821,6 @@ public Builder clearImage() { return this; } /** - * - * *
      * Example image.
      * 
@@ -920,8 +831,6 @@ public com.google.cloud.automl.v1.Image.Builder getImageBuilder() { return getImageFieldBuilder().getBuilder(); } /** - * - * *
      * Example image.
      * 
@@ -940,8 +849,6 @@ public com.google.cloud.automl.v1.ImageOrBuilder getImageOrBuilder() { } } /** - * - * *
      * Example image.
      * 
@@ -949,42 +856,32 @@ public com.google.cloud.automl.v1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.automl.v1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Image, - com.google.cloud.automl.v1.Image.Builder, - com.google.cloud.automl.v1.ImageOrBuilder> + com.google.cloud.automl.v1.Image, com.google.cloud.automl.v1.Image.Builder, com.google.cloud.automl.v1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { if (!(payloadCase_ == 1)) { payload_ = com.google.cloud.automl.v1.Image.getDefaultInstance(); } - imageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Image, - com.google.cloud.automl.v1.Image.Builder, - com.google.cloud.automl.v1.ImageOrBuilder>( - (com.google.cloud.automl.v1.Image) payload_, getParentForChildren(), isClean()); + imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Image, com.google.cloud.automl.v1.Image.Builder, com.google.cloud.automl.v1.ImageOrBuilder>( + (com.google.cloud.automl.v1.Image) payload_, + getParentForChildren(), + isClean()); payload_ = null; } payloadCase_ = 1; - onChanged(); - ; + onChanged();; return imageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, - com.google.cloud.automl.v1.TextSnippet.Builder, - com.google.cloud.automl.v1.TextSnippetOrBuilder> - textSnippetBuilder_; + com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> textSnippetBuilder_; /** - * - * *
      * Example text.
      * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; - * * @return Whether the textSnippet field is set. */ @java.lang.Override @@ -992,14 +889,11 @@ public boolean hasTextSnippet() { return payloadCase_ == 2; } /** - * - * *
      * Example text.
      * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; - * * @return The textSnippet. */ @java.lang.Override @@ -1017,8 +911,6 @@ public com.google.cloud.automl.v1.TextSnippet getTextSnippet() { } } /** - * - * *
      * Example text.
      * 
@@ -1039,15 +931,14 @@ public Builder setTextSnippet(com.google.cloud.automl.v1.TextSnippet value) { return this; } /** - * - * *
      * Example text.
      * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; */ - public Builder setTextSnippet(com.google.cloud.automl.v1.TextSnippet.Builder builderForValue) { + public Builder setTextSnippet( + com.google.cloud.automl.v1.TextSnippet.Builder builderForValue) { if (textSnippetBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -1058,8 +949,6 @@ public Builder setTextSnippet(com.google.cloud.automl.v1.TextSnippet.Builder bui return this; } /** - * - * *
      * Example text.
      * 
@@ -1068,13 +957,10 @@ public Builder setTextSnippet(com.google.cloud.automl.v1.TextSnippet.Builder bui */ public Builder mergeTextSnippet(com.google.cloud.automl.v1.TextSnippet value) { if (textSnippetBuilder_ == null) { - if (payloadCase_ == 2 - && payload_ != com.google.cloud.automl.v1.TextSnippet.getDefaultInstance()) { - payload_ = - com.google.cloud.automl.v1.TextSnippet.newBuilder( - (com.google.cloud.automl.v1.TextSnippet) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 2 && + payload_ != com.google.cloud.automl.v1.TextSnippet.getDefaultInstance()) { + payload_ = com.google.cloud.automl.v1.TextSnippet.newBuilder((com.google.cloud.automl.v1.TextSnippet) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1089,8 +975,6 @@ public Builder mergeTextSnippet(com.google.cloud.automl.v1.TextSnippet value) { return this; } /** - * - * *
      * Example text.
      * 
@@ -1114,8 +998,6 @@ public Builder clearTextSnippet() { return this; } /** - * - * *
      * Example text.
      * 
@@ -1126,8 +1008,6 @@ public com.google.cloud.automl.v1.TextSnippet.Builder getTextSnippetBuilder() { return getTextSnippetFieldBuilder().getBuilder(); } /** - * - * *
      * Example text.
      * 
@@ -1146,8 +1026,6 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getTextSnippetOrBuilder() } } /** - * - * *
      * Example text.
      * 
@@ -1155,44 +1033,32 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getTextSnippetOrBuilder() * .google.cloud.automl.v1.TextSnippet text_snippet = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, - com.google.cloud.automl.v1.TextSnippet.Builder, - com.google.cloud.automl.v1.TextSnippetOrBuilder> + com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> getTextSnippetFieldBuilder() { if (textSnippetBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = com.google.cloud.automl.v1.TextSnippet.getDefaultInstance(); } - textSnippetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, - com.google.cloud.automl.v1.TextSnippet.Builder, - com.google.cloud.automl.v1.TextSnippetOrBuilder>( + textSnippetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder>( (com.google.cloud.automl.v1.TextSnippet) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; - onChanged(); - ; + onChanged();; return textSnippetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Document, - com.google.cloud.automl.v1.Document.Builder, - com.google.cloud.automl.v1.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.automl.v1.Document, com.google.cloud.automl.v1.Document.Builder, com.google.cloud.automl.v1.DocumentOrBuilder> documentBuilder_; /** - * - * *
      * Example document.
      * 
* * .google.cloud.automl.v1.Document document = 4; - * * @return Whether the document field is set. */ @java.lang.Override @@ -1200,14 +1066,11 @@ public boolean hasDocument() { return payloadCase_ == 4; } /** - * - * *
      * Example document.
      * 
* * .google.cloud.automl.v1.Document document = 4; - * * @return The document. */ @java.lang.Override @@ -1225,8 +1088,6 @@ public com.google.cloud.automl.v1.Document getDocument() { } } /** - * - * *
      * Example document.
      * 
@@ -1247,15 +1108,14 @@ public Builder setDocument(com.google.cloud.automl.v1.Document value) { return this; } /** - * - * *
      * Example document.
      * 
* * .google.cloud.automl.v1.Document document = 4; */ - public Builder setDocument(com.google.cloud.automl.v1.Document.Builder builderForValue) { + public Builder setDocument( + com.google.cloud.automl.v1.Document.Builder builderForValue) { if (documentBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -1266,8 +1126,6 @@ public Builder setDocument(com.google.cloud.automl.v1.Document.Builder builderFo return this; } /** - * - * *
      * Example document.
      * 
@@ -1276,13 +1134,10 @@ public Builder setDocument(com.google.cloud.automl.v1.Document.Builder builderFo */ public Builder mergeDocument(com.google.cloud.automl.v1.Document value) { if (documentBuilder_ == null) { - if (payloadCase_ == 4 - && payload_ != com.google.cloud.automl.v1.Document.getDefaultInstance()) { - payload_ = - com.google.cloud.automl.v1.Document.newBuilder( - (com.google.cloud.automl.v1.Document) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 4 && + payload_ != com.google.cloud.automl.v1.Document.getDefaultInstance()) { + payload_ = com.google.cloud.automl.v1.Document.newBuilder((com.google.cloud.automl.v1.Document) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1297,8 +1152,6 @@ public Builder mergeDocument(com.google.cloud.automl.v1.Document value) { return this; } /** - * - * *
      * Example document.
      * 
@@ -1322,8 +1175,6 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Example document.
      * 
@@ -1334,8 +1185,6 @@ public com.google.cloud.automl.v1.Document.Builder getDocumentBuilder() { return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Example document.
      * 
@@ -1354,8 +1203,6 @@ public com.google.cloud.automl.v1.DocumentOrBuilder getDocumentOrBuilder() { } } /** - * - * *
      * Example document.
      * 
@@ -1363,30 +1210,26 @@ public com.google.cloud.automl.v1.DocumentOrBuilder getDocumentOrBuilder() { * .google.cloud.automl.v1.Document document = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Document, - com.google.cloud.automl.v1.Document.Builder, - com.google.cloud.automl.v1.DocumentOrBuilder> + com.google.cloud.automl.v1.Document, com.google.cloud.automl.v1.Document.Builder, com.google.cloud.automl.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { if (!(payloadCase_ == 4)) { payload_ = com.google.cloud.automl.v1.Document.getDefaultInstance(); } - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Document, - com.google.cloud.automl.v1.Document.Builder, - com.google.cloud.automl.v1.DocumentOrBuilder>( - (com.google.cloud.automl.v1.Document) payload_, getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Document, com.google.cloud.automl.v1.Document.Builder, com.google.cloud.automl.v1.DocumentOrBuilder>( + (com.google.cloud.automl.v1.Document) payload_, + getParentForChildren(), + isClean()); payload_ = null; } payloadCase_ = 4; - onChanged(); - ; + onChanged();; return documentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1396,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExamplePayload) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExamplePayload) private static final com.google.cloud.automl.v1.ExamplePayload DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExamplePayload(); } @@ -1410,16 +1253,16 @@ public static com.google.cloud.automl.v1.ExamplePayload getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExamplePayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExamplePayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExamplePayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExamplePayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1434,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ExamplePayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java similarity index 73% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java index 7dfbd7281..dd332ebb9 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; -public interface ExamplePayloadOrBuilder - extends +public interface ExamplePayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExamplePayload) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Example image.
    * 
* * .google.cloud.automl.v1.Image image = 1; - * * @return Whether the image field is set. */ boolean hasImage(); /** - * - * *
    * Example image.
    * 
* * .google.cloud.automl.v1.Image image = 1; - * * @return The image. */ com.google.cloud.automl.v1.Image getImage(); /** - * - * *
    * Example image.
    * 
@@ -59,32 +35,24 @@ public interface ExamplePayloadOrBuilder com.google.cloud.automl.v1.ImageOrBuilder getImageOrBuilder(); /** - * - * *
    * Example text.
    * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; - * * @return Whether the textSnippet field is set. */ boolean hasTextSnippet(); /** - * - * *
    * Example text.
    * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; - * * @return The textSnippet. */ com.google.cloud.automl.v1.TextSnippet getTextSnippet(); /** - * - * *
    * Example text.
    * 
@@ -94,32 +62,24 @@ public interface ExamplePayloadOrBuilder com.google.cloud.automl.v1.TextSnippetOrBuilder getTextSnippetOrBuilder(); /** - * - * *
    * Example document.
    * 
* * .google.cloud.automl.v1.Document document = 4; - * * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
    * Example document.
    * 
* * .google.cloud.automl.v1.Document document = 4; - * * @return The document. */ com.google.cloud.automl.v1.Document getDocument(); /** - * - * *
    * Example document.
    * 
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java similarity index 63% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java index 46ca32a4f..f243d149f 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** - * - * *
  * Details of ExportData operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ExportDataOperationMetadata} */ -public final class ExportDataOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportDataOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportDataOperationMetadata) ExportDataOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportDataOperationMetadata.newBuilder() to construct. private ExportDataOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExportDataOperationMetadata() {} + private ExportDataOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportDataOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportDataOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,111 +52,90 @@ private ExportDataOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder - subBuilder = null; - if (outputInfo_ != null) { - subBuilder = outputInfo_.toBuilder(); - } - outputInfo_ = - input.readMessage( - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputInfo_); - outputInfo_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputInfo_ = input.readMessage(com.google.cloud.automl.v1.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); + 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.v1.Operations - .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportDataOperationMetadata.class, - com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ExportDataOperationMetadata.class, com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder.class); } - public interface ExportDataOutputInfoOrBuilder - extends + public interface ExportDataOutputInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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; - * * @return Whether the gcsOutputDirectory field is set. */ boolean hasGcsOutputDirectory(); /** - * - * *
      * The full path of the Google Cloud Storage directory created, into which
      * the exported data is written.
      * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ 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; - * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + com.google.protobuf.ByteString + getGcsOutputDirectoryBytes(); - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - .OutputLocationCase - getOutputLocationCase(); + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.OutputLocationCase getOutputLocationCase(); } /** - * - * *
    * Further describes this export data's output.
    * Supplements
@@ -181,29 +144,30 @@ public interface ExportDataOutputInfoOrBuilder
    *
    * Protobuf type {@code google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo}
    */
-  public static final class ExportDataOutputInfo extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ExportDataOutputInfo extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)
       ExportDataOutputInfoOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ExportDataOutputInfo.newBuilder() to construct.
     private ExportDataOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private ExportDataOutputInfo() {}
+    private ExportDataOutputInfo() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ExportDataOutputInfo();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private ExportDataOutputInfo(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -222,59 +186,52 @@ private ExportDataOutputInfo(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                outputLocationCase_ = 1;
-                outputLocation_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              outputLocationCase_ = 1;
+              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);
+        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.v1.Operations
-          .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Operations
-          .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable
+      return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.class,
-              com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder
-                  .class);
+              com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.class, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder.class);
     }
 
     private int outputLocationCase_ = 0;
     private java.lang.Object outputLocation_;
-
     public enum OutputLocationCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       GCS_OUTPUT_DIRECTORY(1),
       OUTPUTLOCATION_NOT_SET(0);
       private final int value;
-
       private OutputLocationCase(int value) {
         this.value = value;
       }
@@ -290,50 +247,42 @@ public static OutputLocationCase valueOf(int value) {
 
       public static OutputLocationCase forNumber(int value) {
         switch (value) {
-          case 1:
-            return GCS_OUTPUT_DIRECTORY;
-          case 0:
-            return OUTPUTLOCATION_NOT_SET;
-          default:
-            return null;
+          case 1: return GCS_OUTPUT_DIRECTORY;
+          case 0: return OUTPUTLOCATION_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public OutputLocationCase getOutputLocationCase() {
-      return OutputLocationCase.forNumber(outputLocationCase_);
+    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; - * * @return Whether the gcsOutputDirectory field is set. */ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** - * - * *
      * The full path of the Google Cloud Storage directory created, into which
      * the exported data is written.
      * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ public java.lang.String getGcsOutputDirectory() { @@ -344,7 +293,8 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -353,25 +303,24 @@ public 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; - * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -382,7 +331,6 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -394,7 +342,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputLocationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocation_); } @@ -418,19 +367,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)) { + if (!(obj instanceof com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo other = - (com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) obj; + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo other = (com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) obj; if (!getOutputLocationCase().equals(other.getOutputLocationCase())) return false; switch (outputLocationCase_) { case 1: - if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; + if (!getGcsOutputDirectory() + .equals(other.getGcsOutputDirectory())) return false; break; case 0: default: @@ -459,101 +407,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.ExportDataOperationMetadata.ExportDataOutputInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.ExportDataOperationMetadata.ExportDataOutputInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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); + public static com.google.cloud.automl.v1.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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -563,8 +498,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Further describes this export data's output.
      * Supplements
@@ -573,42 +506,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)
         com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.automl.v1.Operations
-            .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.automl.v1.Operations
-            .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable
+        return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.class,
-                com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder
-                    .class);
+                com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.class, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.newBuilder()
+      // Construct using com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -618,22 +547,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.automl.v1.Operations
-            .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo
-          getDefaultInstanceForType() {
-        return com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo
-            .getDefaultInstance();
+      public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getDefaultInstanceForType() {
+        return com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo build() {
-        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo result =
-            buildPartial();
+        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -641,10 +567,8 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputIn
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo
-          buildPartial() {
-        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo result =
-            new com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo(this);
+      public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo buildPartial() {
+        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo result = new com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo(this);
         if (outputLocationCase_ == 1) {
           result.outputLocation_ = outputLocation_;
         }
@@ -657,67 +581,56 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputIn
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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.v1.ExportDataOperationMetadata.ExportDataOutputInfo) {
-          return mergeFrom(
-              (com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) other);
+        if (other instanceof com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) {
+          return mergeFrom((com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo other) {
-        if (other
-            == com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo other) {
+        if (other == com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance()) return this;
         switch (other.getOutputLocationCase()) {
-          case GCS_OUTPUT_DIRECTORY:
-            {
-              outputLocationCase_ = 1;
-              outputLocation_ = other.outputLocation_;
-              onChanged();
-              break;
-            }
-          case OUTPUTLOCATION_NOT_SET:
-            {
-              break;
-            }
+          case GCS_OUTPUT_DIRECTORY: {
+            outputLocationCase_ = 1;
+            outputLocation_ = other.outputLocation_;
+            onChanged();
+            break;
+          }
+          case OUTPUTLOCATION_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -734,14 +647,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parsedMessage =
-            null;
+        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -750,12 +660,12 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int outputLocationCase_ = 0;
       private java.lang.Object outputLocation_;
-
-      public OutputLocationCase getOutputLocationCase() {
-        return OutputLocationCase.forNumber(outputLocationCase_);
+      public OutputLocationCase
+          getOutputLocationCase() {
+        return OutputLocationCase.forNumber(
+            outputLocationCase_);
       }
 
       public Builder clearOutputLocation() {
@@ -765,16 +675,14 @@ public Builder clearOutputLocation() {
         return this;
       }
 
+
       /**
-       *
-       *
        * 
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; - * * @return Whether the gcsOutputDirectory field is set. */ @java.lang.Override @@ -782,15 +690,12 @@ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -800,7 +705,8 @@ public java.lang.String getGcsOutputDirectory() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -811,26 +717,25 @@ public 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; - * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -840,37 +745,32 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; - * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory(java.lang.String value) { + public Builder setGcsOutputDirectory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 1; + 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; - * * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { @@ -882,29 +782,26 @@ public Builder clearGcsOutputDirectory() { return this; } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; - * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputLocationCase_ = 1; outputLocation_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -917,33 +814,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) - private static final com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo(); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -955,24 +849,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int OUTPUT_INFO_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo outputInfo_; /** - * - * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -980,43 +870,30 @@ public boolean hasOutputInfo() { return outputInfo_ != null; } /** - * - * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - getOutputInfo() { - return outputInfo_ == null - ? com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - .getDefaultInstance() - : outputInfo_; + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getOutputInfo() { + return outputInfo_ == null ? com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance() : outputInfo_; } /** - * - * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ @java.lang.Override - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder - getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder getOutputInfoOrBuilder() { return getOutputInfo(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1028,7 +905,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputInfo_ != null) { output.writeMessage(1, getOutputInfo()); } @@ -1042,7 +920,8 @@ public int getSerializedSize() { size = 0; if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1052,17 +931,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ExportDataOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportDataOperationMetadata other = - (com.google.cloud.automl.v1.ExportDataOperationMetadata) obj; + com.google.cloud.automl.v1.ExportDataOperationMetadata other = (com.google.cloud.automl.v1.ExportDataOperationMetadata) obj; if (hasOutputInfo() != other.hasOutputInfo()) return false; if (hasOutputInfo()) { - if (!getOutputInfo().equals(other.getOutputInfo())) return false; + if (!getOutputInfo() + .equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1085,127 +964,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ExportDataOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.ExportDataOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ExportDataOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ExportDataOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ExportDataOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportDataOperationMetadata) com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportDataOperationMetadata.class, - com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ExportDataOperationMetadata.class, com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ExportDataOperationMetadata.newBuilder() @@ -1213,15 +1082,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1235,9 +1105,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; } @java.lang.Override @@ -1256,8 +1126,7 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ExportDataOperationMetadata buildPartial() { - com.google.cloud.automl.v1.ExportDataOperationMetadata result = - new com.google.cloud.automl.v1.ExportDataOperationMetadata(this); + com.google.cloud.automl.v1.ExportDataOperationMetadata result = new com.google.cloud.automl.v1.ExportDataOperationMetadata(this); if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { @@ -1271,39 +1140,38 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ExportDataOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ExportDataOperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.ExportDataOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1311,8 +1179,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ExportDataOperationMetadata other) { - if (other == com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance()) return this; if (other.hasOutputInfo()) { mergeOutputInfo(other.getOutputInfo()); } @@ -1335,8 +1202,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ExportDataOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ExportDataOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1348,63 +1214,41 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo outputInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder> - outputInfoBuilder_; + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder> outputInfoBuilder_; /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { return outputInfoBuilder_ != null || outputInfo_ != null; } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; * @return The outputInfo. */ - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - getOutputInfo() { + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null - ? com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - .getDefaultInstance() - : outputInfo_; + return outputInfo_ == null ? com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance() : outputInfo_; } else { return outputInfoBuilder_.getMessage(); } } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ - public Builder setOutputInfo( - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo value) { + public Builder setOutputInfo(com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1418,19 +1262,14 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ public Builder setOutputInfo( - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder - builderForValue) { + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1441,25 +1280,17 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ - public Builder mergeOutputInfo( - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo value) { + public Builder mergeOutputInfo(com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo value) { if (outputInfoBuilder_ == null) { if (outputInfo_ != null) { outputInfo_ = - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - .newBuilder(outputInfo_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); } else { outputInfo_ = value; } @@ -1471,15 +1302,11 @@ public Builder mergeOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1493,75 +1320,55 @@ public Builder clearOutputInfo() { return this; } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder - getOutputInfoBuilder() { - + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder getOutputInfoBuilder() { + onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder - getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder getOutputInfoOrBuilder() { if (outputInfoBuilder_ != null) { return outputInfoBuilder_.getMessageOrBuilder(); } else { - return outputInfo_ == null - ? com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - .getDefaultInstance() - : outputInfo_; + return outputInfo_ == null ? + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance() : outputInfo_; } } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder> + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder> getOutputInfoFieldBuilder() { if (outputInfoBuilder_ == null) { - outputInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, - com.google.cloud.automl.v1.ExportDataOperationMetadata - .ExportDataOutputInfoOrBuilder>( - getOutputInfo(), getParentForChildren(), isClean()); + outputInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder>( + getOutputInfo(), + getParentForChildren(), + isClean()); outputInfo_ = null; } return outputInfoBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1571,12 +1378,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportDataOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportDataOperationMetadata) private static final com.google.cloud.automl.v1.ExportDataOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportDataOperationMetadata(); } @@ -1585,16 +1392,16 @@ public static com.google.cloud.automl.v1.ExportDataOperationMetadata getDefaultI 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); - } - }; + 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; @@ -1609,4 +1416,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1.ExportDataOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java similarity index 54% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java index 030c8faf7..18910ce0e 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java @@ -1,64 +1,36 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; -public interface ExportDataOperationMetadataOrBuilder - extends +public interface ExportDataOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportDataOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; * @return Whether the outputInfo field is set. */ boolean hasOutputInfo(); /** - * - * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; * @return The outputInfo. */ com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getOutputInfo(); /** - * - * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder - getOutputInfoOrBuilder(); + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder getOutputInfoOrBuilder(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java similarity index 62% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java index 0ed4da44f..8e84b2038 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.ExportData][google.cloud.automl.v1.AutoMl.ExportData].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ExportDataRequest} */ -public final class ExportDataRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportDataRequest) ExportDataRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportDataRequest.newBuilder() to construct. private ExportDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportDataRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportDataRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,76 +53,65 @@ private ExportDataRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 26: { + com.google.cloud.automl.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.automl.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.automl.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + outputConfig_ = input.readMessage(com.google.cloud.automl.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportDataRequest.class, - com.google.cloud.automl.v1.ExportDataRequest.Builder.class); + com.google.cloud.automl.v1.ExportDataRequest.class, com.google.cloud.automl.v1.ExportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the dataset.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -148,31 +120,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 dataset.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -183,16 +153,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1.OutputConfig outputConfig_; /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -200,34 +165,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -235,7 +189,6 @@ public com.google.cloud.automl.v1.OutputConfigOrBuilder getOutputConfigOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -267,7 +221,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -277,18 +232,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ExportDataRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportDataRequest other = - (com.google.cloud.automl.v1.ExportDataRequest) obj; + com.google.cloud.automl.v1.ExportDataRequest other = (com.google.cloud.automl.v1.ExportDataRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -312,127 +268,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ExportDataRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ExportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportDataRequest 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.v1.ExportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ExportDataRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ExportDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExportDataRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ExportDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ExportData][google.cloud.automl.v1.AutoMl.ExportData].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ExportDataRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportDataRequest) com.google.cloud.automl.v1.ExportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportDataRequest.class, - com.google.cloud.automl.v1.ExportDataRequest.Builder.class); + com.google.cloud.automl.v1.ExportDataRequest.class, com.google.cloud.automl.v1.ExportDataRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.ExportDataRequest.newBuilder() @@ -440,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -464,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; } @java.lang.Override @@ -485,8 +433,7 @@ public com.google.cloud.automl.v1.ExportDataRequest build() { @java.lang.Override public com.google.cloud.automl.v1.ExportDataRequest buildPartial() { - com.google.cloud.automl.v1.ExportDataRequest result = - new com.google.cloud.automl.v1.ExportDataRequest(this); + com.google.cloud.automl.v1.ExportDataRequest result = new com.google.cloud.automl.v1.ExportDataRequest(this); result.name_ = name_; if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; @@ -501,39 +448,38 @@ public com.google.cloud.automl.v1.ExportDataRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ExportDataRequest) { - return mergeFrom((com.google.cloud.automl.v1.ExportDataRequest) other); + return mergeFrom((com.google.cloud.automl.v1.ExportDataRequest)other); } else { super.mergeFrom(other); return this; @@ -580,22 +526,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the dataset.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -604,23 +546,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the dataset.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -628,67 +567,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the dataset.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -696,58 +622,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.OutputConfig, - com.google.cloud.automl.v1.OutputConfig.Builder, - com.google.cloud.automl.v1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.automl.v1.OutputConfig, com.google.cloud.automl.v1.OutputConfig.Builder, com.google.cloud.automl.v1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.automl.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.automl.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -763,15 +670,11 @@ public Builder setOutputConfig(com.google.cloud.automl.v1.OutputConfig value) { return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.automl.v1.OutputConfig.Builder builderForValue) { @@ -785,23 +688,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.automl.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.automl.v1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -813,15 +710,11 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1.OutputConfig value) return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -835,71 +728,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.OutputConfig, - com.google.cloud.automl.v1.OutputConfig.Builder, - com.google.cloud.automl.v1.OutputConfigOrBuilder> + com.google.cloud.automl.v1.OutputConfig, com.google.cloud.automl.v1.OutputConfig.Builder, com.google.cloud.automl.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.OutputConfig, - com.google.cloud.automl.v1.OutputConfig.Builder, - com.google.cloud.automl.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.OutputConfig, com.google.cloud.automl.v1.OutputConfig.Builder, com.google.cloud.automl.v1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -909,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportDataRequest) private static final com.google.cloud.automl.v1.ExportDataRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportDataRequest(); } @@ -923,16 +800,16 @@ public static com.google.cloud.automl.v1.ExportDataRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportDataRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDataRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ExportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequestOrBuilder.java new file mode 100644 index 000000000..a753632d3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface ExportDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the dataset.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the dataset.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The desired output location.
+   * 
+ * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + *
+   * Required. The desired output location.
+   * 
+ * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The outputConfig. + */ + com.google.cloud.automl.v1.OutputConfig getOutputConfig(); + /** + *
+   * Required. The desired output location.
+   * 
+ * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.automl.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java similarity index 61% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java index 0f3dbc56a..274124bf0 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** - * - * *
  * Details of ExportModel operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ExportModelOperationMetadata} */ -public final class ExportModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportModelOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportModelOperationMetadata) ExportModelOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportModelOperationMetadata.newBuilder() to construct. private ExportModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExportModelOperationMetadata() {} + private ExportModelOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,94 +52,78 @@ private ExportModelOperationMetadata( case 0: done = true; break; - case 18: - { - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder - subBuilder = null; - if (outputInfo_ != null) { - subBuilder = outputInfo_.toBuilder(); - } - outputInfo_ = - input.readMessage( - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputInfo_); - outputInfo_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputInfo_ = input.readMessage(com.google.cloud.automl.v1.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); + 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.v1.Operations - .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportModelOperationMetadata.class, - com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ExportModelOperationMetadata.class, com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder.class); } - public interface ExportModelOutputInfoOrBuilder - extends + public interface ExportModelOutputInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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; - * * @return The gcsOutputDirectory. */ 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; - * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + com.google.protobuf.ByteString + getGcsOutputDirectoryBytes(); } /** - * - * *
    * Further describes the output of model export.
    * Supplements
@@ -164,31 +132,31 @@ public interface ExportModelOutputInfoOrBuilder
    *
    * Protobuf type {@code google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo}
    */
-  public static final class ExportModelOutputInfo extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ExportModelOutputInfo extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo)
       ExportModelOutputInfoOrBuilder {
-    private static final long serialVersionUID = 0L;
+  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
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ExportModelOutputInfo();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private ExportModelOutputInfo(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -207,60 +175,53 @@ private ExportModelOutputInfo(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                gcsOutputDirectory_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              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);
+        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.v1.Operations
-          .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Operations
-          .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable
+      return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.class,
-              com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder
-                  .class);
+              com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.class, com.google.cloud.automl.v1.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; - * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -269,30 +230,30 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsOutputDirectory_ = b; return b; } else { @@ -301,7 +262,6 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsOutputDirectory_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsOutputDirectory_); } @@ -337,17 +298,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo)) { + if (!(obj instanceof com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo other = - (com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) obj; + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo other = (com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) obj; - if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; + if (!getGcsOutputDirectory() + .equals(other.getGcsOutputDirectory())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -366,101 +325,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.ExportModelOperationMetadata.ExportModelOutputInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.ExportModelOperationMetadata.ExportModelOutputInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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); + public static com.google.cloud.automl.v1.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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -470,53 +416,46 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Further describes the output of model export.
      * Supplements
      * [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
      * 
* - * Protobuf type {@code - * google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo} + * Protobuf type {@code google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.class, - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - .Builder.class); + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.class, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder.class); } - // Construct using - // com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.newBuilder() + // Construct using com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -526,22 +465,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - .getDefaultInstance(); + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo build() { - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo result = - buildPartial(); + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -549,10 +485,8 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutput } @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - buildPartial() { - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo result = - new com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo(this); + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo buildPartial() { + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo result = new com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo(this); result.gcsOutputDirectory_ = gcsOutputDirectory_; onBuilt(); return result; @@ -562,56 +496,46 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutput public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ExportModelOperationMetadata.ExportModelOutputInfo) { - return mergeFrom( - (com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) - other); + if (other instanceof com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) { + return mergeFrom((com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo other) { - if (other - == com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo other) { + if (other == com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance()) return this; if (!other.getGcsOutputDirectory().isEmpty()) { gcsOutputDirectory_ = other.gcsOutputDirectory_; onChanged(); @@ -631,14 +555,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - parsedMessage = null; + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -650,21 +571,19 @@ public Builder mergeFrom( 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; - * * @return The gcsOutputDirectory. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsOutputDirectory_ = s; return s; @@ -673,22 +592,21 @@ public 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; - * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsOutputDirectory_ = b; return b; } else { @@ -696,69 +614,61 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the model will be exported.
        * 
* * string gcs_output_directory = 1; - * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory(java.lang.String value) { + public Builder setGcsOutputDirectory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsOutputDirectory_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -771,34 +681,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) - private static final com.google.cloud.automl.v1.ExportModelOperationMetadata - .ExportModelOutputInfo - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo(); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -810,26 +716,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int OUTPUT_INFO_FIELD_NUMBER = 2; private com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo outputInfo_; /** - * - * *
    * Output only. Information further describing the output of this model
    * export.
    * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -837,47 +738,32 @@ public boolean hasOutputInfo() { return outputInfo_ != null; } /** - * - * *
    * Output only. Information further describing the output of this model
    * export.
    * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - getOutputInfo() { - return outputInfo_ == null - ? com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - .getDefaultInstance() - : outputInfo_; + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo() { + return outputInfo_ == null ? com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance() : outputInfo_; } /** - * - * *
    * Output only. Information further describing the output of this model
    * export.
    * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder - getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder getOutputInfoOrBuilder() { return getOutputInfo(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -889,7 +775,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputInfo_ != null) { output.writeMessage(2, getOutputInfo()); } @@ -903,7 +790,8 @@ public int getSerializedSize() { size = 0; if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -913,17 +801,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ExportModelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportModelOperationMetadata other = - (com.google.cloud.automl.v1.ExportModelOperationMetadata) obj; + com.google.cloud.automl.v1.ExportModelOperationMetadata other = (com.google.cloud.automl.v1.ExportModelOperationMetadata) obj; if (hasOutputInfo() != other.hasOutputInfo()) return false; if (hasOutputInfo()) { - if (!getOutputInfo().equals(other.getOutputInfo())) return false; + if (!getOutputInfo() + .equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -946,127 +834,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ExportModelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.ExportModelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ExportModelOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ExportModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ExportModelOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportModelOperationMetadata) com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportModelOperationMetadata.class, - com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ExportModelOperationMetadata.class, com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ExportModelOperationMetadata.newBuilder() @@ -1074,15 +952,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1096,9 +975,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; } @java.lang.Override @@ -1117,8 +996,7 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ExportModelOperationMetadata buildPartial() { - com.google.cloud.automl.v1.ExportModelOperationMetadata result = - new com.google.cloud.automl.v1.ExportModelOperationMetadata(this); + com.google.cloud.automl.v1.ExportModelOperationMetadata result = new com.google.cloud.automl.v1.ExportModelOperationMetadata(this); if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { @@ -1132,39 +1010,38 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ExportModelOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ExportModelOperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.ExportModelOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1172,8 +1049,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ExportModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance()) return this; if (other.hasOutputInfo()) { mergeOutputInfo(other.getOutputInfo()); } @@ -1196,8 +1072,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ExportModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ExportModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1207,69 +1082,46 @@ public Builder mergeFrom( return this; } - private com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - outputInfo_; + private com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo outputInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder, - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder> - outputInfoBuilder_; + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder> outputInfoBuilder_; /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { return outputInfoBuilder_ != null || outputInfo_ != null; } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; * @return The outputInfo. */ - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - getOutputInfo() { + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null - ? com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - .getDefaultInstance() - : outputInfo_; + return outputInfo_ == null ? com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance() : outputInfo_; } else { return outputInfoBuilder_.getMessage(); } } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ - public Builder setOutputInfo( - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo value) { + public Builder setOutputInfo(com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1283,20 +1135,15 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ public Builder setOutputInfo( - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder - builderForValue) { + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1307,26 +1154,18 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ - public Builder mergeOutputInfo( - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo value) { + public Builder mergeOutputInfo(com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo value) { if (outputInfoBuilder_ == null) { if (outputInfo_ != null) { outputInfo_ = - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - .newBuilder(outputInfo_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); } else { outputInfo_ = value; } @@ -1338,16 +1177,12 @@ public Builder mergeOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1361,79 +1196,58 @@ public Builder clearOutputInfo() { return this; } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder - getOutputInfoBuilder() { - + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder getOutputInfoBuilder() { + onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder - getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder getOutputInfoOrBuilder() { if (outputInfoBuilder_ != null) { return outputInfoBuilder_.getMessageOrBuilder(); } else { - return outputInfo_ == null - ? com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - .getDefaultInstance() - : outputInfo_; + return outputInfo_ == null ? + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance() : outputInfo_; } } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder, - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder> + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder> getOutputInfoFieldBuilder() { if (outputInfoBuilder_ == null) { - outputInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - .Builder, - com.google.cloud.automl.v1.ExportModelOperationMetadata - .ExportModelOutputInfoOrBuilder>( - getOutputInfo(), getParentForChildren(), isClean()); + outputInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder>( + getOutputInfo(), + getParentForChildren(), + isClean()); outputInfo_ = null; } return outputInfoBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1443,12 +1257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportModelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportModelOperationMetadata) private static final com.google.cloud.automl.v1.ExportModelOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportModelOperationMetadata(); } @@ -1457,16 +1271,16 @@ public static com.google.cloud.automl.v1.ExportModelOperationMetadata getDefault 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); - } - }; + 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; @@ -1481,4 +1295,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.ExportModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..3ed6bf02b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface ExportModelOperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportModelOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * @return Whether the outputInfo field is set. + */ + boolean hasOutputInfo(); + /** + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * @return The outputInfo. + */ + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo(); + /** + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + */ + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder getOutputInfoOrBuilder(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java similarity index 63% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java index 4baf50eee..acd37259b 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel].
  * Models need to be enabled for exporting, otherwise an error code will be
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.ExportModelRequest}
  */
-public final class ExportModelRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ExportModelRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportModelRequest)
     ExportModelRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExportModelRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ExportModelRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,77 +55,65 @@ private ExportModelRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.automl.v1.ModelExportOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.automl.v1.ModelExportOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.automl.v1.ModelExportOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            outputConfig_ = input.readMessage(com.google.cloud.automl.v1.ModelExportOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            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);
+      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.v1.AutoMlProto
-        .internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.AutoMlProto
-        .internal_static_google_cloud_automl_v1_ExportModelRequest_fieldAccessorTable
+    return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportModelRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.ExportModelRequest.class,
-            com.google.cloud.automl.v1.ExportModelRequest.Builder.class);
+            com.google.cloud.automl.v1.ExportModelRequest.class, com.google.cloud.automl.v1.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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -151,31 +122,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -186,16 +155,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1.ModelExportOutputConfig outputConfig_; /** - * - * *
    * Required. The desired output location and configuration.
    * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -203,34 +167,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location and configuration.
    * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.ModelExportOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The desired output location and configuration.
    * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -238,7 +191,6 @@ public com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder getOutputConf } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -270,7 +223,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -280,18 +234,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ExportModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportModelRequest other = - (com.google.cloud.automl.v1.ExportModelRequest) obj; + com.google.cloud.automl.v1.ExportModelRequest other = (com.google.cloud.automl.v1.ExportModelRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -315,104 +270,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ExportModelRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ExportModelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ExportModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.ExportModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExportModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ExportModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ExportModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ExportModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ExportModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel].
    * Models need to be enabled for exporting, otherwise an error code will be
@@ -421,23 +369,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.ExportModelRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportModelRequest)
       com.google.cloud.automl.v1.ExportModelRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.AutoMlProto
-          .internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.AutoMlProto
-          .internal_static_google_cloud_automl_v1_ExportModelRequest_fieldAccessorTable
+      return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportModelRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.ExportModelRequest.class,
-              com.google.cloud.automl.v1.ExportModelRequest.Builder.class);
+              com.google.cloud.automl.v1.ExportModelRequest.class, com.google.cloud.automl.v1.ExportModelRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.ExportModelRequest.newBuilder()
@@ -445,15 +391,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -469,9 +416,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.AutoMlProto
-          .internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
     }
 
     @java.lang.Override
@@ -490,8 +437,7 @@ public com.google.cloud.automl.v1.ExportModelRequest build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.ExportModelRequest buildPartial() {
-      com.google.cloud.automl.v1.ExportModelRequest result =
-          new com.google.cloud.automl.v1.ExportModelRequest(this);
+      com.google.cloud.automl.v1.ExportModelRequest result = new com.google.cloud.automl.v1.ExportModelRequest(this);
       result.name_ = name_;
       if (outputConfigBuilder_ == null) {
         result.outputConfig_ = outputConfig_;
@@ -506,39 +452,38 @@ public com.google.cloud.automl.v1.ExportModelRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.ExportModelRequest) {
-        return mergeFrom((com.google.cloud.automl.v1.ExportModelRequest) other);
+        return mergeFrom((com.google.cloud.automl.v1.ExportModelRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -585,22 +530,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the model to export.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -609,23 +550,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the model to export.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -633,67 +571,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the model to export.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the model to export.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the model to export.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -701,58 +626,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1.ModelExportOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ModelExportOutputConfig, - com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, - com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.automl.v1.ModelExportOutputConfig, com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.automl.v1.ModelExportOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.automl.v1.ModelExportOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -768,15 +674,11 @@ public Builder setOutputConfig(com.google.cloud.automl.v1.ModelExportOutputConfi return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.automl.v1.ModelExportOutputConfig.Builder builderForValue) { @@ -790,23 +692,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.automl.v1.ModelExportOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.automl.v1.ModelExportOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.ModelExportOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -818,15 +714,11 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1.ModelExportOutputCon return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -840,71 +732,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.ModelExportOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ModelExportOutputConfig, - com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, - com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder> + com.google.cloud.automl.v1.ModelExportOutputConfig, com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ModelExportOutputConfig, - com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, - com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ModelExportOutputConfig, com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -914,12 +790,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportModelRequest) private static final com.google.cloud.automl.v1.ExportModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportModelRequest(); } @@ -928,16 +804,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -952,4 +828,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ExportModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java new file mode 100644 index 000000000..a775e62f6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface ExportModelRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the model to export.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the model to export.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The outputConfig. + */ + com.google.cloud.automl.v1.ModelExportOutputConfig getOutputConfig(); + /** + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java similarity index 71% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java index 79d453518..94be5c369 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; /** - * - * *
  * The Google Cloud Storage location where the output is to be written to.
  * 
* * Protobuf type {@code google.cloud.automl.v1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private GcsDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - outputUriPrefix_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputUriPrefix_ = 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); + 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.v1.Io - .internal_static_google_cloud_automl_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GcsDestination.class, - com.google.cloud.automl.v1.GcsDestination.Builder.class); + com.google.cloud.automl.v1.GcsDestination.class, com.google.cloud.automl.v1.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; private volatile java.lang.Object outputUriPrefix_; /** - * - * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -126,7 +104,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ @java.lang.Override @@ -135,15 +112,14 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** - * - * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -154,15 +130,16 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -171,7 +148,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +159,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -207,15 +184,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.automl.v1.GcsDestination other = - (com.google.cloud.automl.v1.GcsDestination) obj; + com.google.cloud.automl.v1.GcsDestination other = (com.google.cloud.automl.v1.GcsDestination) obj; - if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix() + .equals(other.getOutputUriPrefix())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,127 +211,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GcsDestination 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.v1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the output is to be written to.
    * 
* * Protobuf type {@code google.cloud.automl.v1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GcsDestination) com.google.cloud.automl.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GcsDestination.class, - com.google.cloud.automl.v1.GcsDestination.Builder.class); + com.google.cloud.automl.v1.GcsDestination.class, com.google.cloud.automl.v1.GcsDestination.Builder.class); } // Construct using com.google.cloud.automl.v1.GcsDestination.newBuilder() @@ -362,15 +330,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsDestination_descriptor; } @java.lang.Override @@ -401,8 +370,7 @@ public com.google.cloud.automl.v1.GcsDestination build() { @java.lang.Override public com.google.cloud.automl.v1.GcsDestination buildPartial() { - com.google.cloud.automl.v1.GcsDestination result = - new com.google.cloud.automl.v1.GcsDestination(this); + com.google.cloud.automl.v1.GcsDestination result = new com.google.cloud.automl.v1.GcsDestination(this); result.outputUriPrefix_ = outputUriPrefix_; onBuilt(); return result; @@ -412,39 +380,38 @@ public com.google.cloud.automl.v1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GcsDestination) { - return mergeFrom((com.google.cloud.automl.v1.GcsDestination) other); + return mergeFrom((com.google.cloud.automl.v1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -488,8 +455,6 @@ public Builder mergeFrom( private java.lang.Object outputUriPrefix_ = ""; /** - * - * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -500,13 +465,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -515,8 +480,6 @@ public java.lang.String getOutputUriPrefix() { } } /** - * - * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -527,14 +490,15 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -542,8 +506,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } } /** - * - * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -554,22 +516,20 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix(java.lang.String value) { + public Builder setOutputUriPrefix( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUriPrefix_ = value; onChanged(); return this; } /** - * - * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -580,18 +540,15 @@ public Builder setOutputUriPrefix(java.lang.String value) {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { - + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); onChanged(); return this; } /** - * - * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -602,23 +559,23 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUriPrefixBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUriPrefix_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GcsDestination) private static final com.google.cloud.automl.v1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GcsDestination(); } @@ -642,16 +599,16 @@ public static com.google.cloud.automl.v1.GcsDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,4 +623,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java similarity index 62% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java index 58952024f..22d5e5fae 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -36,13 +18,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** - * - * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -53,8 +32,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString getOutputUriPrefixBytes(); + com.google.protobuf.ByteString + getOutputUriPrefixBytes(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java similarity index 72% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java index a3977d4d9..989a2f49e 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; /** - * - * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.automl.v1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,29 +54,29 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - inputUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - inputUris_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + inputUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + inputUris_.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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { inputUris_ = inputUris_.getUnmodifiableView(); @@ -102,27 +85,22 @@ private GcsSource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GcsSource.class, - com.google.cloud.automl.v1.GcsSource.Builder.class); + com.google.cloud.automl.v1.GcsSource.class, com.google.cloud.automl.v1.GcsSource.Builder.class); } public static final int INPUT_URIS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList inputUris_; /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -130,15 +108,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList getInputUrisList() { + public com.google.protobuf.ProtocolStringList + getInputUrisList() { return inputUris_; } /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -146,15 +122,12 @@ public com.google.protobuf.ProtocolStringList getInputUrisList() {
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -162,7 +135,6 @@ public int getInputUrisCount() {
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -170,8 +142,6 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -179,16 +149,15 @@ public java.lang.String getInputUris(int index) {
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString getInputUrisBytes(int index) { + public com.google.protobuf.ByteString + getInputUrisBytes(int index) { return inputUris_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < inputUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUris_.getRaw(i)); } @@ -229,14 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GcsSource)) { return super.equals(obj); } com.google.cloud.automl.v1.GcsSource other = (com.google.cloud.automl.v1.GcsSource) obj; - if (!getInputUrisList().equals(other.getInputUrisList())) return false; + if (!getInputUrisList() + .equals(other.getInputUrisList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,126 +228,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GcsSource parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.automl.v1.GcsSource parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GcsSource 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.v1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GcsSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.automl.v1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GcsSource) com.google.cloud.automl.v1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GcsSource.class, - com.google.cloud.automl.v1.GcsSource.Builder.class); + com.google.cloud.automl.v1.GcsSource.class, com.google.cloud.automl.v1.GcsSource.Builder.class); } // Construct using com.google.cloud.automl.v1.GcsSource.newBuilder() @@ -384,15 +347,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +366,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsSource_descriptor; } @java.lang.Override @@ -438,39 +402,38 @@ public com.google.cloud.automl.v1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GcsSource) { - return mergeFrom((com.google.cloud.automl.v1.GcsSource) other); + return mergeFrom((com.google.cloud.automl.v1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -517,21 +480,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList inputUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInputUrisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { inputUris_ = new com.google.protobuf.LazyStringArrayList(inputUris_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -539,15 +497,13 @@ private void ensureInputUrisIsMutable() {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList getInputUrisList() { + public com.google.protobuf.ProtocolStringList + getInputUrisList() { return inputUris_.getUnmodifiableView(); } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -555,15 +511,12 @@ public com.google.protobuf.ProtocolStringList getInputUrisList() {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -571,7 +524,6 @@ public int getInputUrisCount() {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -579,8 +531,6 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -588,16 +538,14 @@ public java.lang.String getInputUris(int index) {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString getInputUrisBytes(int index) { + public com.google.protobuf.ByteString + getInputUrisBytes(int index) { return inputUris_.getByteString(index); } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -605,23 +553,21 @@ public com.google.protobuf.ByteString getInputUrisBytes(int index) {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The inputUris to set. * @return This builder for chaining. */ - public Builder setInputUris(int index, java.lang.String value) { + public Builder setInputUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -629,22 +575,20 @@ public Builder setInputUris(int index, java.lang.String value) {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The inputUris to add. * @return This builder for chaining. */ - public Builder addInputUris(java.lang.String value) { + public Builder addInputUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -652,19 +596,18 @@ public Builder addInputUris(java.lang.String value) {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The inputUris to add. * @return This builder for chaining. */ - public Builder addAllInputUris(java.lang.Iterable values) { + public Builder addAllInputUris( + java.lang.Iterable values) { ensureInputUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputUris_); onChanged(); return this; } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -672,7 +615,6 @@ public Builder addAllInputUris(java.lang.Iterable values) {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInputUris() { @@ -682,8 +624,6 @@ public Builder clearInputUris() { return this; } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -691,23 +631,23 @@ public Builder clearInputUris() {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the inputUris to add. * @return This builder for chaining. */ - public Builder addInputUrisBytes(com.google.protobuf.ByteString value) { + public Builder addInputUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -717,12 +657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GcsSource) private static final com.google.cloud.automl.v1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GcsSource(); } @@ -731,16 +671,16 @@ public static com.google.cloud.automl.v1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -755,4 +695,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java similarity index 69% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java index 9f413dcb7..5fe795b32 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -33,13 +15,11 @@ public interface GcsSourceOrBuilder
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the inputUris. */ - java.util.List getInputUrisList(); + java.util.List + getInputUrisList(); /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -47,13 +27,10 @@ public interface GcsSourceOrBuilder
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of inputUris. */ int getInputUrisCount(); /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -61,14 +38,11 @@ public interface GcsSourceOrBuilder
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The inputUris at the given index. */ java.lang.String getInputUris(int index); /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -76,9 +50,9 @@ public interface GcsSourceOrBuilder
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - com.google.protobuf.ByteString getInputUrisBytes(int index); + com.google.protobuf.ByteString + getInputUrisBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java new file mode 100644 index 000000000..b7d1ece63 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/geometry.proto + +package com.google.cloud.automl.v1; + +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_v1_NormalizedVertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_BoundingPoly_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_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/v1/geometry.proto\022" + + "\026google.cloud.automl.v1\032\034google/api/anno" + + "tations.proto\"(\n\020NormalizedVertex\022\t\n\001x\030\001" + + " \001(\002\022\t\n\001y\030\002 \001(\002\"U\n\014BoundingPoly\022E\n\023norma" + + "lized_vertices\030\002 \003(\0132(.google.cloud.auto" + + "ml.v1.NormalizedVertexB\252\001\n\032com.google.cl" + + "oud.automl.v1P\001Z * Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1.AutoMl.GetAnnotationSpec]. *
* * Protobuf type {@code google.cloud.automl.v1.GetAnnotationSpecRequest} */ -public final class GetAnnotationSpecRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAnnotationSpecRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GetAnnotationSpecRequest) GetAnnotationSpecRequestOrBuilder { - private static final long serialVersionUID = 0L; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAnnotationSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAnnotationSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetAnnotationSpecRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, - com.google.cloud.automl.v1.GetAnnotationSpecRequest.Builder.class); + com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, com.google.cloud.automl.v1.GetAnnotationSpecRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the annotation spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 annotation spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GetAnnotationSpecRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.GetAnnotationSpecRequest other = - (com.google.cloud.automl.v1.GetAnnotationSpecRequest) obj; + com.google.cloud.automl.v1.GetAnnotationSpecRequest other = (com.google.cloud.automl.v1.GetAnnotationSpecRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GetAnnotationSpecRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.GetAnnotationSpecRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.GetAnnotationSpecRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1.AutoMl.GetAnnotationSpec].
    * 
* * Protobuf type {@code google.cloud.automl.v1.GetAnnotationSpecRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GetAnnotationSpecRequest) com.google.cloud.automl.v1.GetAnnotationSpecRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, - com.google.cloud.automl.v1.GetAnnotationSpecRequest.Builder.class); + com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, com.google.cloud.automl.v1.GetAnnotationSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.GetAnnotationSpecRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1.GetAnnotationSpecRequest build() { @java.lang.Override public com.google.cloud.automl.v1.GetAnnotationSpecRequest buildPartial() { - com.google.cloud.automl.v1.GetAnnotationSpecRequest result = - new com.google.cloud.automl.v1.GetAnnotationSpecRequest(this); + com.google.cloud.automl.v1.GetAnnotationSpecRequest result = new com.google.cloud.automl.v1.GetAnnotationSpecRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1.GetAnnotationSpecRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GetAnnotationSpecRequest) { - return mergeFrom((com.google.cloud.automl.v1.GetAnnotationSpecRequest) other); + return mergeFrom((com.google.cloud.automl.v1.GetAnnotationSpecRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.GetAnnotationSpecRequest other) { - if (other == com.google.cloud.automl.v1.GetAnnotationSpecRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.GetAnnotationSpecRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.GetAnnotationSpecRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.GetAnnotationSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GetAnnotationSpecRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GetAnnotationSpecRequest) private static final com.google.cloud.automl.v1.GetAnnotationSpecRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GetAnnotationSpecRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.automl.v1.GetAnnotationSpecRequest getDefaultInst 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); - } - }; + 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; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.GetAnnotationSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequestOrBuilder.java new file mode 100644 index 000000000..f7c29a585 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface GetAnnotationSpecRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetAnnotationSpecRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the annotation spec to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the annotation spec to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java index 2c64c4e97..e62bb2769 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.GetDataset][google.cloud.automl.v1.AutoMl.GetDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1.GetDatasetRequest} */ -public final class GetDatasetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GetDatasetRequest) GetDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDatasetRequest.newBuilder() to construct. private GetDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetDatasetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetDatasetRequest.class, - com.google.cloud.automl.v1.GetDatasetRequest.Builder.class); + com.google.cloud.automl.v1.GetDatasetRequest.class, com.google.cloud.automl.v1.GetDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the dataset to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 dataset to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GetDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.GetDatasetRequest other = - (com.google.cloud.automl.v1.GetDatasetRequest) obj; + com.google.cloud.automl.v1.GetDatasetRequest other = (com.google.cloud.automl.v1.GetDatasetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GetDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetDatasetRequest 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.v1.GetDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.GetDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.GetDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetDatasetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.GetDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.GetDataset][google.cloud.automl.v1.AutoMl.GetDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1.GetDatasetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GetDatasetRequest) com.google.cloud.automl.v1.GetDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetDatasetRequest.class, - com.google.cloud.automl.v1.GetDatasetRequest.Builder.class); + com.google.cloud.automl.v1.GetDatasetRequest.class, com.google.cloud.automl.v1.GetDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.GetDatasetRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1.GetDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1.GetDatasetRequest buildPartial() { - com.google.cloud.automl.v1.GetDatasetRequest result = - new com.google.cloud.automl.v1.GetDatasetRequest(this); + com.google.cloud.automl.v1.GetDatasetRequest result = new com.google.cloud.automl.v1.GetDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1.GetDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GetDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1.GetDatasetRequest) other); + return mergeFrom((com.google.cloud.automl.v1.GetDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -482,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -506,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -530,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -607,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GetDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GetDatasetRequest) private static final com.google.cloud.automl.v1.GetDatasetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GetDatasetRequest(); } @@ -621,16 +564,16 @@ public static com.google.cloud.automl.v1.GetDatasetRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.GetDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java new file mode 100644 index 000000000..5091fd3da --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface GetDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the dataset to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the dataset to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java similarity index 64% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java index 156ffe7ee..4c29df15d 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1.AutoMl.GetModelEvaluation].
  * 
* * Protobuf type {@code google.cloud.automl.v1.GetModelEvaluationRequest} */ -public final class GetModelEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetModelEvaluationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GetModelEvaluationRequest) GetModelEvaluationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetModelEvaluationRequest.newBuilder() to construct. private GetModelEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetModelEvaluationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetModelEvaluationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetModelEvaluationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetModelEvaluationRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetModelEvaluationRequest.class, - com.google.cloud.automl.v1.GetModelEvaluationRequest.Builder.class); + com.google.cloud.automl.v1.GetModelEvaluationRequest.class, com.google.cloud.automl.v1.GetModelEvaluationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name for the model evaluation.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name for the model evaluation.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GetModelEvaluationRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.GetModelEvaluationRequest other = - (com.google.cloud.automl.v1.GetModelEvaluationRequest) obj; + com.google.cloud.automl.v1.GetModelEvaluationRequest other = (com.google.cloud.automl.v1.GetModelEvaluationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GetModelEvaluationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetModelEvaluationRequest 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.v1.GetModelEvaluationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.GetModelEvaluationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1.AutoMl.GetModelEvaluation].
    * 
* * Protobuf type {@code google.cloud.automl.v1.GetModelEvaluationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GetModelEvaluationRequest) com.google.cloud.automl.v1.GetModelEvaluationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetModelEvaluationRequest.class, - com.google.cloud.automl.v1.GetModelEvaluationRequest.Builder.class); + com.google.cloud.automl.v1.GetModelEvaluationRequest.class, com.google.cloud.automl.v1.GetModelEvaluationRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.GetModelEvaluationRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1.GetModelEvaluationRequest build() { @java.lang.Override public com.google.cloud.automl.v1.GetModelEvaluationRequest buildPartial() { - com.google.cloud.automl.v1.GetModelEvaluationRequest result = - new com.google.cloud.automl.v1.GetModelEvaluationRequest(this); + com.google.cloud.automl.v1.GetModelEvaluationRequest result = new com.google.cloud.automl.v1.GetModelEvaluationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1.GetModelEvaluationRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GetModelEvaluationRequest) { - return mergeFrom((com.google.cloud.automl.v1.GetModelEvaluationRequest) other); + return mergeFrom((com.google.cloud.automl.v1.GetModelEvaluationRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.GetModelEvaluationRequest other) { - if (other == com.google.cloud.automl.v1.GetModelEvaluationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.GetModelEvaluationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.GetModelEvaluationRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.GetModelEvaluationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name for the model evaluation.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name for the model evaluation.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name for the model evaluation.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name for the model evaluation.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name for the model evaluation.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GetModelEvaluationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GetModelEvaluationRequest) private static final com.google.cloud.automl.v1.GetModelEvaluationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GetModelEvaluationRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.automl.v1.GetModelEvaluationRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetModelEvaluationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelEvaluationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetModelEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetModelEvaluationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1.GetModelEvaluationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java new file mode 100644 index 000000000..02a5b3143 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface GetModelEvaluationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetModelEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name for the model evaluation.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name for the model evaluation.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java similarity index 64% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java index 74e64962e..c1f7701eb 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.GetModel][google.cloud.automl.v1.AutoMl.GetModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1.GetModelRequest} */ -public final class GetModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GetModelRequest) GetModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetModelRequest.newBuilder() to construct. private GetModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetModelRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetModelRequest.class, - com.google.cloud.automl.v1.GetModelRequest.Builder.class); + com.google.cloud.automl.v1.GetModelRequest.class, com.google.cloud.automl.v1.GetModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the model.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the model.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GetModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.GetModelRequest other = - (com.google.cloud.automl.v1.GetModelRequest) obj; + com.google.cloud.automl.v1.GetModelRequest other = (com.google.cloud.automl.v1.GetModelRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.GetModelRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.GetModelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GetModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetModelRequest 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.v1.GetModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.GetModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.GetModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.GetModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.GetModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GetModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.GetModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.GetModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.GetModel][google.cloud.automl.v1.AutoMl.GetModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1.GetModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GetModelRequest) com.google.cloud.automl.v1.GetModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetModelRequest.class, - com.google.cloud.automl.v1.GetModelRequest.Builder.class); + com.google.cloud.automl.v1.GetModelRequest.class, com.google.cloud.automl.v1.GetModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.GetModelRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1.GetModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.GetModelRequest buildPartial() { - com.google.cloud.automl.v1.GetModelRequest result = - new com.google.cloud.automl.v1.GetModelRequest(this); + com.google.cloud.automl.v1.GetModelRequest result = new com.google.cloud.automl.v1.GetModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1.GetModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GetModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.GetModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1.GetModelRequest)other); } else { super.mergeFrom(other); return this; @@ -482,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the model.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -506,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the model.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -530,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the model.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -607,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GetModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GetModelRequest) private static final com.google.cloud.automl.v1.GetModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GetModelRequest(); } @@ -621,16 +564,16 @@ public static com.google.cloud.automl.v1.GetModelRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.GetModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java new file mode 100644 index 000000000..d66f596dc --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface GetModelRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the model.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the model.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java similarity index 71% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java index 2022701ca..6912696ab 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; /** - * - * *
  * A representation of an image.
  * Only images up to 30MB in size are supported.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.Image}
  */
-public final class Image extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Image extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.Image)
     ImageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Image.newBuilder() to construct.
   private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Image() {
     thumbnailUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Image();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Image(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,63 +54,57 @@ private Image(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              dataCase_ = 1;
-              data_ = input.readBytes();
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            dataCase_ = 1;
+            data_ = input.readBytes();
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              thumbnailUri_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            thumbnailUri_ = 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);
+      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.v1.DataItems
-        .internal_static_google_cloud_automl_v1_Image_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Image_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.DataItems
-        .internal_static_google_cloud_automl_v1_Image_fieldAccessorTable
+    return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Image_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.automl.v1.Image.class, com.google.cloud.automl.v1.Image.Builder.class);
   }
 
   private int dataCase_ = 0;
   private java.lang.Object data_;
-
   public enum DataCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     IMAGE_BYTES(1),
     DATA_NOT_SET(0);
     private final int value;
-
     private DataCase(int value) {
       this.value = value;
     }
@@ -143,28 +120,24 @@ public static DataCase valueOf(int value) {
 
     public static DataCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return IMAGE_BYTES;
-        case 0:
-          return DATA_NOT_SET;
-        default:
-          return null;
+        case 1: return IMAGE_BYTES;
+        case 0: return DATA_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DataCase getDataCase() {
-    return DataCase.forNumber(dataCase_);
+  public DataCase
+  getDataCase() {
+    return DataCase.forNumber(
+        dataCase_);
   }
 
   public static final int IMAGE_BYTES_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -172,7 +145,6 @@ public DataCase getDataCase() {
    * 
* * bytes image_bytes = 1; - * * @return Whether the imageBytes field is set. */ @java.lang.Override @@ -180,8 +152,6 @@ public boolean hasImageBytes() { return dataCase_ == 1; } /** - * - * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -189,7 +159,6 @@ public boolean hasImageBytes() {
    * 
* * bytes image_bytes = 1; - * * @return The imageBytes. */ @java.lang.Override @@ -203,14 +172,11 @@ public com.google.protobuf.ByteString getImageBytes() { public static final int THUMBNAIL_URI_FIELD_NUMBER = 4; private volatile java.lang.Object thumbnailUri_; /** - * - * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; - * * @return The thumbnailUri. */ @java.lang.Override @@ -219,29 +185,29 @@ public java.lang.String getThumbnailUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); thumbnailUri_ = s; return s; } } /** - * - * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; - * * @return The bytes for thumbnailUri. */ @java.lang.Override - public com.google.protobuf.ByteString getThumbnailUriBytes() { + public com.google.protobuf.ByteString + getThumbnailUriBytes() { java.lang.Object ref = thumbnailUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); thumbnailUri_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getThumbnailUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,9 +227,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dataCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) data_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbnailUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, thumbnailUri_); @@ -279,9 +246,9 @@ public int getSerializedSize() { size = 0; if (dataCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) data_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbnailUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, thumbnailUri_); @@ -294,18 +261,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.Image)) { return super.equals(obj); } com.google.cloud.automl.v1.Image other = (com.google.cloud.automl.v1.Image) obj; - if (!getThumbnailUri().equals(other.getThumbnailUri())) return false; + if (!getThumbnailUri() + .equals(other.getThumbnailUri())) return false; if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 1: - if (!getImageBytes().equals(other.getImageBytes())) return false; + if (!getImageBytes() + .equals(other.getImageBytes())) return false; break; case 0: default: @@ -336,103 +305,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.Image parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.Image parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.Image parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.Image parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.automl.v1.Image parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.Image 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.v1.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.Image parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.Image parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.Image parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.Image parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.Image parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.Image parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.Image parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A representation of an image.
    * Only images up to 30MB in size are supported.
@@ -440,23 +403,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.Image}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.Image)
       com.google.cloud.automl.v1.ImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.DataItems
-          .internal_static_google_cloud_automl_v1_Image_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Image_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.DataItems
-          .internal_static_google_cloud_automl_v1_Image_fieldAccessorTable
+      return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Image_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.Image.class,
-              com.google.cloud.automl.v1.Image.Builder.class);
+              com.google.cloud.automl.v1.Image.class, com.google.cloud.automl.v1.Image.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.Image.newBuilder()
@@ -464,15 +425,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -484,9 +446,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.DataItems
-          .internal_static_google_cloud_automl_v1_Image_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Image_descriptor;
     }
 
     @java.lang.Override
@@ -519,39 +481,38 @@ public com.google.cloud.automl.v1.Image buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.Image) {
-        return mergeFrom((com.google.cloud.automl.v1.Image) other);
+        return mergeFrom((com.google.cloud.automl.v1.Image)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -565,15 +526,13 @@ public Builder mergeFrom(com.google.cloud.automl.v1.Image other) {
         onChanged();
       }
       switch (other.getDataCase()) {
-        case IMAGE_BYTES:
-          {
-            setImageBytes(other.getImageBytes());
-            break;
-          }
-        case DATA_NOT_SET:
-          {
-            break;
-          }
+        case IMAGE_BYTES: {
+          setImageBytes(other.getImageBytes());
+          break;
+        }
+        case DATA_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -603,12 +562,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int dataCase_ = 0;
     private java.lang.Object data_;
-
-    public DataCase getDataCase() {
-      return DataCase.forNumber(dataCase_);
+    public DataCase
+        getDataCase() {
+      return DataCase.forNumber(
+          dataCase_);
     }
 
     public Builder clearData() {
@@ -618,9 +577,8 @@ public Builder clearData() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -628,15 +586,12 @@ public Builder clearData() {
      * 
* * bytes image_bytes = 1; - * * @return Whether the imageBytes field is set. */ public boolean hasImageBytes() { return dataCase_ == 1; } /** - * - * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -644,7 +599,6 @@ public boolean hasImageBytes() {
      * 
* * bytes image_bytes = 1; - * * @return The imageBytes. */ public com.google.protobuf.ByteString getImageBytes() { @@ -654,8 +608,6 @@ public com.google.protobuf.ByteString getImageBytes() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -663,22 +615,19 @@ public com.google.protobuf.ByteString getImageBytes() {
      * 
* * bytes image_bytes = 1; - * * @param value The imageBytes to set. * @return This builder for chaining. */ public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - dataCase_ = 1; + throw new NullPointerException(); + } + dataCase_ = 1; data_ = value; onChanged(); return this; } /** - * - * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -686,7 +635,6 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes image_bytes = 1; - * * @return This builder for chaining. */ public Builder clearImageBytes() { @@ -700,20 +648,18 @@ public Builder clearImageBytes() { private java.lang.Object thumbnailUri_ = ""; /** - * - * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; - * * @return The thumbnailUri. */ public java.lang.String getThumbnailUri() { java.lang.Object ref = thumbnailUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); thumbnailUri_ = s; return s; @@ -722,21 +668,20 @@ public java.lang.String getThumbnailUri() { } } /** - * - * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; - * * @return The bytes for thumbnailUri. */ - public com.google.protobuf.ByteString getThumbnailUriBytes() { + public com.google.protobuf.ByteString + getThumbnailUriBytes() { java.lang.Object ref = thumbnailUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); thumbnailUri_ = b; return b; } else { @@ -744,68 +689,61 @@ public com.google.protobuf.ByteString getThumbnailUriBytes() { } } /** - * - * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; - * * @param value The thumbnailUri to set. * @return This builder for chaining. */ - public Builder setThumbnailUri(java.lang.String value) { + public Builder setThumbnailUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + thumbnailUri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; - * * @return This builder for chaining. */ public Builder clearThumbnailUri() { - + thumbnailUri_ = getDefaultInstance().getThumbnailUri(); onChanged(); return this; } /** - * - * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; - * * @param value The bytes for thumbnailUri to set. * @return This builder for chaining. */ - public Builder setThumbnailUriBytes(com.google.protobuf.ByteString value) { + public Builder setThumbnailUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + thumbnailUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -815,12 +753,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.Image) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.Image) private static final com.google.cloud.automl.v1.Image DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.Image(); } @@ -829,16 +767,16 @@ public static com.google.cloud.automl.v1.Image getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Image parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Image(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Image(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -853,4 +791,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java similarity index 66% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java index 33aa1a777..10a9223ad 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** - * - * *
  * Dataset metadata that is specific to image classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationDatasetMetadata} */ -public final class ImageClassificationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageClassificationDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageClassificationDatasetMetadata) ImageClassificationDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageClassificationDatasetMetadata.newBuilder() to construct. - private ImageClassificationDatasetMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageClassificationDatasetMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageClassificationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageClassificationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,85 +53,72 @@ private ImageClassificationDatasetMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + classificationType_ = rawValue; + 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); + 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.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.class, - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.class, com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 1; private int classificationType_; /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The classificationType. */ - @java.lang.Override - public com.google.cloud.automl.v1.ClassificationType getClassificationType() { + @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = - com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,10 +130,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (classificationType_ - != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, classificationType_); } unknownFields.writeTo(output); @@ -176,10 +144,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ - != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, classificationType_); + if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -189,13 +156,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageClassificationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata other = - (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) obj; + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata other = (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -217,127 +183,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageClassificationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata 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.v1.ImageClassificationDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ImageClassificationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Dataset metadata that is specific to image classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageClassificationDatasetMetadata) com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.class, - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.class, com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.newBuilder() @@ -345,15 +301,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -363,14 +320,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance(); } @@ -385,8 +341,7 @@ public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata result = - new com.google.cloud.automl.v1.ImageClassificationDatasetMetadata(this); + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata result = new com.google.cloud.automl.v1.ImageClassificationDatasetMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -396,39 +351,38 @@ public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageClassificationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -436,9 +390,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImageClassificationDatasetMetadata other) { - if (other - == com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance()) return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -461,9 +413,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -475,65 +425,51 @@ public Builder mergeFrom( private int classificationType_ = 0; /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The classificationType. */ @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = - com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @param value The classificationType to set. * @return This builder for chaining. */ @@ -541,31 +477,28 @@ public Builder setClassificationType(com.google.cloud.automl.v1.ClassificationTy if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -575,13 +508,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageClassificationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageClassificationDatasetMetadata) - private static final com.google.cloud.automl.v1.ImageClassificationDatasetMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.ImageClassificationDatasetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageClassificationDatasetMetadata(); } @@ -590,16 +522,16 @@ public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -614,4 +546,6 @@ public com.google.protobuf.Parser getParserF public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java similarity index 55% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java index c59fda666..4a74e9fb9 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; -public interface ImageClassificationDatasetMetadataOrBuilder - extends +public interface ImageClassificationDatasetMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageClassificationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The classificationType. */ com.google.cloud.automl.v1.ClassificationType getClassificationType(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java similarity index 63% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java index 8663c6790..4059154d0 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java @@ -1,57 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model deployment metadata specific to Image Classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata} */ -public final class ImageClassificationModelDeploymentMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageClassificationModelDeploymentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) ImageClassificationModelDeploymentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageClassificationModelDeploymentMetadata.newBuilder() to construct. - private ImageClassificationModelDeploymentMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationModelDeploymentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageClassificationModelDeploymentMetadata() {} + private ImageClassificationModelDeploymentMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageClassificationModelDeploymentMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageClassificationModelDeploymentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,50 +52,46 @@ private ImageClassificationModelDeploymentMetadata( case 0: done = true; break; - case 8: - { - nodeCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.class, - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.class, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.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
@@ -123,7 +101,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int64 node_count = 1; - * * @return The nodeCount. */ @java.lang.Override @@ -132,7 +109,6 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (nodeCount_ != 0L) { output.writeInt64(1, nodeCount_); } @@ -158,7 +135,8 @@ public int getSerializedSize() { size = 0; if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, nodeCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -168,15 +146,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata other = - (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) obj; + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata other = (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) obj; - if (getNodeCount() != other.getNodeCount()) return false; + if (getNodeCount() + != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -189,152 +167,142 @@ public int hashCode() { 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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNodeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageClassificationModelDeploymentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata 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.v1.ImageClassificationModelDeploymentMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - 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.v1.ImageClassificationModelDeploymentMetadata 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.v1.ImageClassificationModelDeploymentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model deployment metadata specific to Image Classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.class, - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.class, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder.class); } - // Construct using - // com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.newBuilder() + // Construct using com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -344,16 +312,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } @java.lang.Override @@ -367,8 +333,7 @@ public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata bui @java.lang.Override public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata buildPartial() { - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata result = - new com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata(this); + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata result = new com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata(this); result.nodeCount_ = nodeCount_; onBuilt(); return result; @@ -378,51 +343,46 @@ public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageClassificationModelDeploymentMetadata) { - return mergeFrom( - (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata other) { - if (other - == com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata other) { + if (other == com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance()) return this; if (other.getNodeCount() != 0L) { setNodeCount(other.getNodeCount()); } @@ -445,9 +405,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -457,10 +415,8 @@ public Builder mergeFrom( return this; } - private long nodeCount_; + 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
@@ -470,7 +426,6 @@ public Builder mergeFrom(
      * 
* * int64 node_count = 1; - * * @return The nodeCount. */ @java.lang.Override @@ -478,8 +433,6 @@ 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
@@ -489,19 +442,16 @@ public long getNodeCount() {
      * 
* * int64 node_count = 1; - * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -511,18 +461,17 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 1; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -532,33 +481,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - private static final com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata(); } - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - getDefaultInstance() { + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationModelDeploymentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationModelDeploymentMetadata(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationModelDeploymentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationModelDeploymentMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -570,8 +516,9 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java similarity index 56% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java index 5d33c7a93..31b535325 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; -public interface ImageClassificationModelDeploymentMetadataOrBuilder - extends +public interface ImageClassificationModelDeploymentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) 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
@@ -35,7 +17,6 @@ public interface ImageClassificationModelDeploymentMetadataOrBuilder
    * 
* * int64 node_count = 1; - * * @return The nodeCount. */ long getNodeCount(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java similarity index 82% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java index 9ab37303a..d4e2412f8 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model metadata for image classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationModelMetadata} */ -public final class ImageClassificationModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageClassificationModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageClassificationModelMetadata) ImageClassificationModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageClassificationModelMetadata.newBuilder() to construct. - private ImageClassificationModelMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageClassificationModelMetadata() { baseModelId_ = ""; stopReason_ = ""; @@ -46,15 +27,16 @@ private ImageClassificationModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageClassificationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageClassificationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,86 +55,79 @@ private ImageClassificationModelMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - baseModelId_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + baseModelId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - stopReason_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + stopReason_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - modelType_ = s; - break; - } - case 105: - { - nodeQps_ = input.readDouble(); - break; - } - case 112: - { - nodeCount_ = input.readInt64(); - break; - } - case 128: - { - trainBudgetMilliNodeHours_ = input.readInt64(); - break; - } - case 136: - { - trainCostMilliNodeHours_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + modelType_ = s; + break; + } + case 105: { + + nodeQps_ = input.readDouble(); + break; + } + case 112: { + + nodeCount_ = input.readInt64(); + break; + } + case 128: { + + trainBudgetMilliNodeHours_ = input.readInt64(); + break; + } + case 136: { + + 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); + 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.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationModelMetadata.class, - com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationModelMetadata.class, com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder.class); } public static final int BASE_MODEL_ID_FIELD_NUMBER = 1; private volatile java.lang.Object baseModelId_; /** - * - * *
    * 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
@@ -162,7 +137,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string base_model_id = 1; - * * @return The baseModelId. */ @java.lang.Override @@ -171,15 +145,14 @@ public java.lang.String getBaseModelId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModelId_ = s; return s; } } /** - * - * *
    * 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
@@ -189,15 +162,16 @@ public java.lang.String getBaseModelId() {
    * 
* * string base_model_id = 1; - * * @return The bytes for baseModelId. */ @java.lang.Override - public com.google.protobuf.ByteString getBaseModelIdBytes() { + public com.google.protobuf.ByteString + getBaseModelIdBytes() { java.lang.Object ref = baseModelId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseModelId_ = b; return b; } else { @@ -208,8 +182,6 @@ public com.google.protobuf.ByteString getBaseModelIdBytes() { public static final int TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 16; 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 actual
@@ -228,7 +200,6 @@ public com.google.protobuf.ByteString getBaseModelIdBytes() {
    * 
* * int64 train_budget_milli_node_hours = 16; - * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -239,8 +210,6 @@ public long getTrainBudgetMilliNodeHours() { public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 17; private long trainCostMilliNodeHours_; /** - * - * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -248,7 +217,6 @@ public long getTrainBudgetMilliNodeHours() {
    * 
* * int64 train_cost_milli_node_hours = 17; - * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -259,15 +227,12 @@ public long getTrainCostMilliNodeHours() { public static final int STOP_REASON_FIELD_NUMBER = 5; private volatile java.lang.Object stopReason_; /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The stopReason. */ @java.lang.Override @@ -276,30 +241,30 @@ public java.lang.String getStopReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; } } /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ @java.lang.Override - public com.google.protobuf.ByteString getStopReasonBytes() { + public com.google.protobuf.ByteString + getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stopReason_ = b; return b; } else { @@ -310,8 +275,6 @@ 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.
@@ -349,7 +312,6 @@ public com.google.protobuf.ByteString getStopReasonBytes() {
    * 
* * string model_type = 7; - * * @return The modelType. */ @java.lang.Override @@ -358,15 +320,14 @@ public java.lang.String getModelType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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.
@@ -404,15 +365,16 @@ public java.lang.String getModelType() {
    * 
* * string model_type = 7; - * * @return The bytes for modelType. */ @java.lang.Override - public com.google.protobuf.ByteString getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelType_ = b; return b; } else { @@ -423,15 +385,12 @@ public com.google.protobuf.ByteString getModelTypeBytes() { public static final int NODE_QPS_FIELD_NUMBER = 13; 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 = 13; - * * @return The nodeQps. */ @java.lang.Override @@ -442,8 +401,6 @@ public double getNodeQps() { public static final int NODE_COUNT_FIELD_NUMBER = 14; 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
@@ -451,7 +408,6 @@ public double getNodeQps() {
    * 
* * int64 node_count = 14; - * * @return The nodeCount. */ @java.lang.Override @@ -460,7 +416,6 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -472,7 +427,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseModelId_); } @@ -513,17 +469,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, modelType_); } if (nodeQps_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(13, nodeQps_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(13, nodeQps_); } if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(14, nodeCount_); } if (trainBudgetMilliNodeHours_ != 0L) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size(16, trainBudgetMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(16, trainBudgetMilliNodeHours_); } if (trainCostMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(17, trainCostMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(17, trainCostMilliNodeHours_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -533,22 +492,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageClassificationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageClassificationModelMetadata other = - (com.google.cloud.automl.v1.ImageClassificationModelMetadata) obj; - - if (!getBaseModelId().equals(other.getBaseModelId())) return false; - if (getTrainBudgetMilliNodeHours() != other.getTrainBudgetMilliNodeHours()) return false; - if (getTrainCostMilliNodeHours() != other.getTrainCostMilliNodeHours()) return false; - if (!getStopReason().equals(other.getStopReason())) return false; - if (!getModelType().equals(other.getModelType())) return false; + com.google.cloud.automl.v1.ImageClassificationModelMetadata other = (com.google.cloud.automl.v1.ImageClassificationModelMetadata) obj; + + if (!getBaseModelId() + .equals(other.getBaseModelId())) return false; + if (getTrainBudgetMilliNodeHours() + != other.getTrainBudgetMilliNodeHours()) return false; + if (getTrainCostMilliNodeHours() + != other.getTrainCostMilliNodeHours()) return false; + if (!getStopReason() + .equals(other.getStopReason())) return false; + if (!getModelType() + .equals(other.getModelType())) return false; if (java.lang.Double.doubleToLongBits(getNodeQps()) - != java.lang.Double.doubleToLongBits(other.getNodeQps())) return false; - if (getNodeCount() != other.getNodeCount()) return false; + != java.lang.Double.doubleToLongBits( + other.getNodeQps())) return false; + if (getNodeCount() + != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -563,147 +528,138 @@ public int hashCode() { hash = (37 * hash) + BASE_MODEL_ID_FIELD_NUMBER; hash = (53 * hash) + getBaseModelId().hashCode(); hash = (37 * hash) + TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainBudgetMilliNodeHours()); + 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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTrainCostMilliNodeHours()); 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 = (37 * hash) + NODE_QPS_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getNodeQps())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNodeQps())); hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNodeCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNodeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageClassificationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata 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.v1.ImageClassificationModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ImageClassificationModelMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ImageClassificationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model metadata for image classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageClassificationModelMetadata) com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationModelMetadata.class, - com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationModelMetadata.class, com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ImageClassificationModelMetadata.newBuilder() @@ -711,15 +667,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -741,9 +698,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override @@ -762,8 +719,7 @@ public com.google.cloud.automl.v1.ImageClassificationModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ImageClassificationModelMetadata buildPartial() { - com.google.cloud.automl.v1.ImageClassificationModelMetadata result = - new com.google.cloud.automl.v1.ImageClassificationModelMetadata(this); + com.google.cloud.automl.v1.ImageClassificationModelMetadata result = new com.google.cloud.automl.v1.ImageClassificationModelMetadata(this); result.baseModelId_ = baseModelId_; result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; @@ -779,39 +735,38 @@ public com.google.cloud.automl.v1.ImageClassificationModelMetadata buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageClassificationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImageClassificationModelMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.ImageClassificationModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -819,8 +774,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImageClassificationModelMetadata other) { - if (other == com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance()) return this; if (!other.getBaseModelId().isEmpty()) { baseModelId_ = other.baseModelId_; onChanged(); @@ -864,8 +818,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ImageClassificationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ImageClassificationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -877,8 +830,6 @@ public Builder mergeFrom( private java.lang.Object baseModelId_ = ""; /** - * - * *
      * 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
@@ -888,13 +839,13 @@ public Builder mergeFrom(
      * 
* * string base_model_id = 1; - * * @return The baseModelId. */ public java.lang.String getBaseModelId() { java.lang.Object ref = baseModelId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModelId_ = s; return s; @@ -903,8 +854,6 @@ 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
@@ -914,14 +863,15 @@ public java.lang.String getBaseModelId() {
      * 
* * string base_model_id = 1; - * * @return The bytes for baseModelId. */ - public com.google.protobuf.ByteString getBaseModelIdBytes() { + public com.google.protobuf.ByteString + getBaseModelIdBytes() { java.lang.Object ref = baseModelId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseModelId_ = b; return b; } else { @@ -929,8 +879,6 @@ 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
@@ -940,22 +888,20 @@ public com.google.protobuf.ByteString getBaseModelIdBytes() {
      * 
* * string base_model_id = 1; - * * @param value The baseModelId to set. * @return This builder for chaining. */ - public Builder setBaseModelId(java.lang.String value) { + public Builder setBaseModelId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + baseModelId_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -965,18 +911,15 @@ public Builder setBaseModelId(java.lang.String value) {
      * 
* * string base_model_id = 1; - * * @return This builder for chaining. */ public Builder clearBaseModelId() { - + baseModelId_ = getDefaultInstance().getBaseModelId(); onChanged(); return this; } /** - * - * *
      * 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
@@ -986,25 +929,23 @@ public Builder clearBaseModelId() {
      * 
* * string base_model_id = 1; - * * @param value The bytes for baseModelId to set. * @return This builder for chaining. */ - public Builder setBaseModelIdBytes(com.google.protobuf.ByteString value) { + public Builder setBaseModelIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseModelId_ = value; onChanged(); return this; } - private long trainBudgetMilliNodeHours_; + 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 actual
@@ -1023,7 +964,6 @@ public Builder setBaseModelIdBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 train_budget_milli_node_hours = 16; - * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -1031,8 +971,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 actual
@@ -1051,19 +989,16 @@ public long getTrainBudgetMilliNodeHours() {
      * 
* * int64 train_budget_milli_node_hours = 16; - * * @param value The trainBudgetMilliNodeHours to set. * @return This builder for chaining. */ 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 actual
@@ -1082,20 +1017,17 @@ public Builder setTrainBudgetMilliNodeHours(long value) {
      * 
* * int64 train_budget_milli_node_hours = 16; - * * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; } - private long trainCostMilliNodeHours_; + private long trainCostMilliNodeHours_ ; /** - * - * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1103,7 +1035,6 @@ public Builder clearTrainBudgetMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 17; - * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -1111,8 +1042,6 @@ public long getTrainCostMilliNodeHours() { return trainCostMilliNodeHours_; } /** - * - * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1120,19 +1049,16 @@ public long getTrainCostMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 17; - * * @param value The trainCostMilliNodeHours to set. * @return This builder for chaining. */ public Builder setTrainCostMilliNodeHours(long value) { - + trainCostMilliNodeHours_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1140,11 +1066,10 @@ public Builder setTrainCostMilliNodeHours(long value) {
      * 
* * int64 train_cost_milli_node_hours = 17; - * * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + trainCostMilliNodeHours_ = 0L; onChanged(); return this; @@ -1152,21 +1077,19 @@ public Builder clearTrainCostMilliNodeHours() { private java.lang.Object stopReason_ = ""; /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return The stopReason. */ public java.lang.String getStopReason() { java.lang.Object ref = stopReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; @@ -1175,22 +1098,21 @@ public java.lang.String getStopReason() { } } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ - public com.google.protobuf.ByteString getStopReasonBytes() { + public com.google.protobuf.ByteString + getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stopReason_ = b; return b; } else { @@ -1198,64 +1120,57 @@ public com.google.protobuf.ByteString getStopReasonBytes() { } } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @param value The stopReason to set. * @return This builder for chaining. */ - public Builder setStopReason(java.lang.String value) { + public Builder setStopReason( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stopReason_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return This builder for chaining. */ public Builder clearStopReason() { - + stopReason_ = getDefaultInstance().getStopReason(); onChanged(); return this; } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @param value The bytes for stopReason to set. * @return This builder for chaining. */ - public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { + public Builder setStopReasonBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stopReason_ = value; onChanged(); return this; @@ -1263,8 +1178,6 @@ public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { 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.
@@ -1302,13 +1215,13 @@ public Builder setStopReasonBytes(com.google.protobuf.ByteString value) {
      * 
* * string model_type = 7; - * * @return The modelType. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelType_ = s; return s; @@ -1317,8 +1230,6 @@ public java.lang.String getModelType() { } } /** - * - * *
      * Optional. Type of the model. The available values are:
      * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -1356,14 +1267,15 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 7; - * * @return The bytes for modelType. */ - public com.google.protobuf.ByteString getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelType_ = b; return b; } else { @@ -1371,8 +1283,6 @@ public com.google.protobuf.ByteString getModelTypeBytes() { } } /** - * - * *
      * Optional. Type of the model. The available values are:
      * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -1410,22 +1320,20 @@ public com.google.protobuf.ByteString getModelTypeBytes() {
      * 
* * string model_type = 7; - * * @param value The modelType to set. * @return This builder for chaining. */ - public Builder setModelType(java.lang.String value) { + public Builder setModelType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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.
@@ -1463,18 +1371,15 @@ public Builder setModelType(java.lang.String value) {
      * 
* * string model_type = 7; - * * @return This builder for chaining. */ 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.
@@ -1512,32 +1417,29 @@ public Builder clearModelType() {
      * 
* * string model_type = 7; - * * @param value The bytes for modelType to set. * @return This builder for chaining. */ - public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { + public Builder setModelTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelType_ = value; onChanged(); return this; } - private double nodeQps_; + 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 = 13; - * * @return The nodeQps. */ @java.lang.Override @@ -1545,47 +1447,39 @@ 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 = 13; - * * @param value The nodeQps to set. * @return This builder for chaining. */ 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 = 13; - * * @return This builder for chaining. */ public Builder clearNodeQps() { - + nodeQps_ = 0D; onChanged(); return this; } - private long nodeCount_; + 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
@@ -1593,7 +1487,6 @@ public Builder clearNodeQps() {
      * 
* * int64 node_count = 14; - * * @return The nodeCount. */ @java.lang.Override @@ -1601,8 +1494,6 @@ 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
@@ -1610,19 +1501,16 @@ public long getNodeCount() {
      * 
* * int64 node_count = 14; - * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -1630,18 +1518,17 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 14; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1651,12 +1538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageClassificationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageClassificationModelMetadata) private static final com.google.cloud.automl.v1.ImageClassificationModelMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageClassificationModelMetadata(); } @@ -1665,16 +1552,16 @@ public static com.google.cloud.automl.v1.ImageClassificationModelMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1689,4 +1576,6 @@ public com.google.protobuf.Parser getParserFor public com.google.cloud.automl.v1.ImageClassificationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java similarity index 90% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java index a7f2dbb60..1c1bdfe03 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; -public interface ImageClassificationModelMetadataOrBuilder - extends +public interface ImageClassificationModelMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageClassificationModelMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * 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
@@ -35,13 +17,10 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * string base_model_id = 1; - * * @return The baseModelId. */ 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
@@ -51,14 +30,12 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * string base_model_id = 1; - * * @return The bytes for baseModelId. */ - com.google.protobuf.ByteString getBaseModelIdBytes(); + com.google.protobuf.ByteString + getBaseModelIdBytes(); /** - * - * *
    * 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 actual
@@ -77,14 +54,11 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * int64 train_budget_milli_node_hours = 16; - * * @return The trainBudgetMilliNodeHours. */ long getTrainBudgetMilliNodeHours(); /** - * - * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -92,41 +66,33 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * int64 train_cost_milli_node_hours = 17; - * * @return The trainCostMilliNodeHours. */ long getTrainCostMilliNodeHours(); /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The stopReason. */ java.lang.String getStopReason(); /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ - com.google.protobuf.ByteString getStopReasonBytes(); + 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.
@@ -164,13 +130,10 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * string model_type = 7; - * * @return The modelType. */ java.lang.String getModelType(); /** - * - * *
    * Optional. Type of the model. The available values are:
    * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -208,28 +171,23 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * string model_type = 7; - * * @return The bytes for modelType. */ - com.google.protobuf.ByteString getModelTypeBytes(); + com.google.protobuf.ByteString + getModelTypeBytes(); /** - * - * *
    * 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 = 13; - * * @return The nodeQps. */ double getNodeQps(); /** - * - * *
    * 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
@@ -237,7 +195,6 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * int64 node_count = 14; - * * @return The nodeCount. */ long getNodeCount(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java similarity index 68% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java index 459327f5d..7d729600f 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java @@ -1,56 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/detection.proto package com.google.cloud.automl.v1; /** - * - * *
  * Annotation details for image object detection.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionAnnotation} */ -public final class ImageObjectDetectionAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageObjectDetectionAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageObjectDetectionAnnotation) ImageObjectDetectionAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageObjectDetectionAnnotation.newBuilder() to construct. - private ImageObjectDetectionAnnotation( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageObjectDetectionAnnotation() {} + private ImageObjectDetectionAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageObjectDetectionAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageObjectDetectionAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,72 +52,64 @@ private ImageObjectDetectionAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.automl.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.automl.v1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 21: - { - score_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.automl.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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.v1.Detection - .internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Detection - .internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.class, - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.class, com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder.class); } public static final int BOUNDING_BOX_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.BoundingPoly boundingBox_; /** - * - * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -142,25 +117,18 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.automl.v1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * Output only. The rectangle representing the object location.
    * 
@@ -175,15 +143,12 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder( 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; - * * @return The score. */ @java.lang.Override @@ -192,7 +157,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingBox_ != null) { output.writeMessage(1, getBoundingBox()); } @@ -221,10 +186,12 @@ public int getSerializedSize() { size = 0; if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingBox()); } if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,20 +201,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageObjectDetectionAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation other = - (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) obj; + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation other = (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) obj; if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -264,134 +232,125 @@ public int hashCode() { hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageObjectDetectionAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.ImageObjectDetectionAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ImageObjectDetectionAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ImageObjectDetectionAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageObjectDetectionAnnotation) com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Detection - .internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Detection - .internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.class, - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.class, com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.newBuilder() @@ -399,15 +358,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Detection - .internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; } @java.lang.Override @@ -444,8 +404,7 @@ public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation buildPartial() { - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation result = - new com.google.cloud.automl.v1.ImageObjectDetectionAnnotation(this); + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation result = new com.google.cloud.automl.v1.ImageObjectDetectionAnnotation(this); if (boundingBoxBuilder_ == null) { result.boundingBox_ = boundingBox_; } else { @@ -460,39 +419,38 @@ public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageObjectDetectionAnnotation) { - return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) other); + return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation)other); } else { super.mergeFrom(other); return this; @@ -500,8 +458,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionAnnotation other) { - if (other == com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance()) return this; if (other.hasBoundingBox()) { mergeBoundingBox(other.getBoundingBox()); } @@ -527,8 +484,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -540,47 +496,34 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BoundingPoly, - com.google.cloud.automl.v1.BoundingPoly.Builder, - com.google.cloud.automl.v1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; - * * @return The boundingBox. */ public com.google.cloud.automl.v1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -601,15 +544,14 @@ public Builder setBoundingBox(com.google.cloud.automl.v1.BoundingPoly value) { return this; } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; */ - public Builder setBoundingBox(com.google.cloud.automl.v1.BoundingPoly.Builder builderForValue) { + public Builder setBoundingBox( + com.google.cloud.automl.v1.BoundingPoly.Builder builderForValue) { if (boundingBoxBuilder_ == null) { boundingBox_ = builderForValue.build(); onChanged(); @@ -620,8 +562,6 @@ public Builder setBoundingBox(com.google.cloud.automl.v1.BoundingPoly.Builder bu return this; } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -632,9 +572,7 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1.BoundingPoly value) { if (boundingBoxBuilder_ == null) { if (boundingBox_ != null) { boundingBox_ = - com.google.cloud.automl.v1.BoundingPoly.newBuilder(boundingBox_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial(); } else { boundingBox_ = value; } @@ -646,8 +584,6 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1.BoundingPoly value) { return this; } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -666,8 +602,6 @@ public Builder clearBoundingBox() { return this; } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -675,13 +609,11 @@ public Builder clearBoundingBox() { * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; */ public com.google.cloud.automl.v1.BoundingPoly.Builder getBoundingBoxBuilder() { - + onChanged(); return getBoundingBoxFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -692,14 +624,11 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder( if (boundingBoxBuilder_ != null) { return boundingBoxBuilder_.getMessageOrBuilder(); } else { - return boundingBox_ == null - ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? + com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -707,33 +636,27 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder( * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BoundingPoly, - com.google.cloud.automl.v1.BoundingPoly.Builder, - com.google.cloud.automl.v1.BoundingPolyOrBuilder> + com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder> getBoundingBoxFieldBuilder() { if (boundingBoxBuilder_ == null) { - boundingBoxBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BoundingPoly, - com.google.cloud.automl.v1.BoundingPoly.Builder, - com.google.cloud.automl.v1.BoundingPolyOrBuilder>( - getBoundingBox(), getParentForChildren(), isClean()); + boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder>( + getBoundingBox(), + getParentForChildren(), + isClean()); boundingBox_ = null; } return boundingBoxBuilder_; } - private float score_; + 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; - * * @return The score. */ @java.lang.Override @@ -741,45 +664,39 @@ 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; - * * @param value The score to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -789,12 +706,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageObjectDetectionAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageObjectDetectionAnnotation) private static final com.google.cloud.automl.v1.ImageObjectDetectionAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageObjectDetectionAnnotation(); } @@ -803,16 +720,16 @@ public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getDefau 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); - } - }; + 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; @@ -827,4 +744,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java index 8e7c6cd4c..7e51f5a4b 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/detection.proto package com.google.cloud.automl.v1; -public interface ImageObjectDetectionAnnotationOrBuilder - extends +public interface ImageObjectDetectionAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageObjectDetectionAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; - * * @return The boundingBox. */ com.google.cloud.automl.v1.BoundingPoly getBoundingBox(); /** - * - * *
    * Output only. The rectangle representing the object location.
    * 
@@ -59,15 +35,12 @@ public interface ImageObjectDetectionAnnotationOrBuilder com.google.cloud.automl.v1.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; - * * @return The score. */ float getScore(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java similarity index 62% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java index b462a4ab0..4405ad26f 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java @@ -1,57 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** - * - * *
  * Dataset metadata specific to image object detection.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata} */ -public final class ImageObjectDetectionDatasetMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageObjectDetectionDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) ImageObjectDetectionDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageObjectDetectionDatasetMetadata.newBuilder() to construct. - private ImageObjectDetectionDatasetMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageObjectDetectionDatasetMetadata() {} + private ImageObjectDetectionDatasetMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageObjectDetectionDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageObjectDetectionDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,42 +52,39 @@ private ImageObjectDetectionDatasetMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.class, - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.class, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -135,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata other = - (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) obj; + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata other = (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageObjectDetectionDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.ImageObjectDetectionDatasetMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ImageObjectDetectionDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.class, - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.class, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.newBuilder() @@ -288,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -304,14 +274,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); } @@ -326,8 +295,7 @@ public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata result = - new com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata(this); + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata result = new com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata(this); onBuilt(); return result; } @@ -336,39 +304,38 @@ public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageObjectDetectionDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -376,9 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata other) { - if (other - == com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -398,9 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -409,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -421,32 +384,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) - private static final com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata(); } - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata - getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -458,8 +419,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java new file mode 100644 index 000000000..9030bfc74 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/image.proto + +package com.google.cloud.automl.v1; + +public interface ImageObjectDetectionDatasetMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java similarity index 69% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java index b65f5e6a7..3bf5a7dee 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/detection.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model evaluation metrics for image object detection problems.
  * Evaluates prediction quality of labeled bounding boxes.
@@ -28,33 +11,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics}
  */
-public final class ImageObjectDetectionEvaluationMetrics
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImageObjectDetectionEvaluationMetrics extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)
     ImageObjectDetectionEvaluationMetricsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImageObjectDetectionEvaluationMetrics.newBuilder() to construct.
-  private ImageObjectDetectionEvaluationMetrics(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ImageObjectDetectionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImageObjectDetectionEvaluationMetrics() {
     boundingBoxMetricsEntries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImageObjectDetectionEvaluationMetrics();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImageObjectDetectionEvaluationMetrics(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,79 +55,69 @@ private ImageObjectDetectionEvaluationMetrics(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              evaluatedBoundingBoxCount_ = input.readInt32();
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                boundingBoxMetricsEntries_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              boundingBoxMetricsEntries_.add(
-                  input.readMessage(
-                      com.google.cloud.automl.v1.BoundingBoxMetricsEntry.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 29:
-            {
-              boundingBoxMeanAveragePrecision_ = input.readFloat();
-              break;
+          case 8: {
+
+            evaluatedBoundingBoxCount_ = input.readInt32();
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              boundingBoxMetricsEntries_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            boundingBoxMetricsEntries_.add(
+                input.readMessage(com.google.cloud.automl.v1.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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        boundingBoxMetricsEntries_ =
-            java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+        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.v1.Detection
-        .internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Detection
-        .internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable
+    return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.class,
-            com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder.class);
+            com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.class, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder.class);
   }
 
   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; - * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -155,11 +126,8 @@ public int getEvaluatedBoundingBoxCount() { } public static final int BOUNDING_BOX_METRICS_ENTRIES_FIELD_NUMBER = 2; - private java.util.List - boundingBoxMetricsEntries_; + 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
@@ -167,18 +135,13 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ @java.lang.Override - public java.util.List - getBoundingBoxMetricsEntriesList() { + 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
@@ -186,18 +149,14 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ @java.lang.Override - public java.util.List + 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
@@ -205,17 +164,13 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ @java.lang.Override 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
@@ -223,18 +178,13 @@ public int getBoundingBoxMetricsEntriesCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( - int index) { + public com.google.cloud.automl.v1.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
@@ -242,28 +192,23 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsE
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder - getBoundingBoxMetricsEntriesOrBuilder(int index) { + public com.google.cloud.automl.v1.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; - * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -272,7 +217,6 @@ public float getBoundingBoxMeanAveragePrecision() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (evaluatedBoundingBoxCount_ != 0) { output.writeInt32(1, evaluatedBoundingBoxCount_); } @@ -304,17 +249,16 @@ public int getSerializedSize() { size = 0; if (evaluatedBoundingBoxCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, evaluatedBoundingBoxCount_); + 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)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, boundingBoxMetricsEntries_.get(i)); } if (boundingBoxMeanAveragePrecision_ != 0F) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 3, boundingBoxMeanAveragePrecision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, boundingBoxMeanAveragePrecision_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -324,19 +268,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics other = - (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) obj; + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics other = (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) obj; - if (getEvaluatedBoundingBoxCount() != other.getEvaluatedBoundingBoxCount()) return false; - if (!getBoundingBoxMetricsEntriesList().equals(other.getBoundingBoxMetricsEntriesList())) - return false; + 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; + != java.lang.Float.floatToIntBits( + other.getBoundingBoxMeanAveragePrecision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -355,111 +300,104 @@ public int hashCode() { hash = (53 * hash) + getBoundingBoxMetricsEntriesList().hashCode(); } hash = (37 * hash) + BOUNDING_BOX_MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoundingBoxMeanAveragePrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoundingBoxMeanAveragePrecision()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageObjectDetectionEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -467,23 +405,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)
       com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.Detection
-          .internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Detection
-          .internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable
+      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.class,
-              com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder.class);
+              com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.class, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.newBuilder()
@@ -491,17 +427,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getBoundingBoxMetricsEntriesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -519,14 +455,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.Detection
-          .internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
-        getDefaultInstanceForType() {
+    public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getDefaultInstanceForType() {
       return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance();
     }
 
@@ -541,14 +476,12 @@ public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics build()
 
     @java.lang.Override
     public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics buildPartial() {
-      com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics result =
-          new com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics(this);
+      com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics result = new com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics(this);
       int from_bitField0_ = bitField0_;
       result.evaluatedBoundingBoxCount_ = evaluatedBoundingBoxCount_;
       if (boundingBoxMetricsEntriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          boundingBoxMetricsEntries_ =
-              java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+          boundingBoxMetricsEntries_ = java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.boundingBoxMetricsEntries_ = boundingBoxMetricsEntries_;
@@ -564,50 +497,46 @@ public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics buildPar
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.ImageObjectDetectionEvaluationMetrics) {
-        return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) other);
+        return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics other) {
-      if (other
-          == com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics other) {
+      if (other == com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance()) return this;
       if (other.getEvaluatedBoundingBoxCount() != 0) {
         setEvaluatedBoundingBoxCount(other.getEvaluatedBoundingBoxCount());
       }
@@ -629,10 +558,9 @@ public Builder mergeFrom(
             boundingBoxMetricsEntriesBuilder_ = null;
             boundingBoxMetricsEntries_ = other.boundingBoxMetricsEntries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingBoxMetricsEntriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getBoundingBoxMetricsEntriesFieldBuilder()
-                    : null;
+            boundingBoxMetricsEntriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getBoundingBoxMetricsEntriesFieldBuilder() : null;
           } else {
             boundingBoxMetricsEntriesBuilder_.addAllMessages(other.boundingBoxMetricsEntries_);
           }
@@ -660,9 +588,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -671,20 +597,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private int evaluatedBoundingBoxCount_;
+    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; - * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -692,64 +614,50 @@ 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; - * * @param value The evaluatedBoundingBoxCount to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearEvaluatedBoundingBoxCount() { - + evaluatedBoundingBoxCount_ = 0; onChanged(); return this; } - private java.util.List - boundingBoxMetricsEntries_ = java.util.Collections.emptyList(); - + private java.util.List boundingBoxMetricsEntries_ = + java.util.Collections.emptyList(); private void ensureBoundingBoxMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingBoxMetricsEntries_ = - new java.util.ArrayList( - boundingBoxMetricsEntries_); + boundingBoxMetricsEntries_ = new java.util.ArrayList(boundingBoxMetricsEntries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, - com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder> - boundingBoxMetricsEntriesBuilder_; + com.google.cloud.automl.v1.BoundingBoxMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, com.google.cloud.automl.v1.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
@@ -757,12 +665,9 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public java.util.List - getBoundingBoxMetricsEntriesList() { + public java.util.List getBoundingBoxMetricsEntriesList() { if (boundingBoxMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_); } else { @@ -770,8 +675,6 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() { } } /** - * - * *
      * 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
@@ -779,9 +682,7 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public int getBoundingBoxMetricsEntriesCount() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -791,8 +692,6 @@ public 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
@@ -800,12 +699,9 @@ public int getBoundingBoxMetricsEntriesCount() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( - int index) { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { return boundingBoxMetricsEntries_.get(index); } else { @@ -813,8 +709,6 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsE } } /** - * - * *
      * 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
@@ -822,9 +716,7 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsE
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder setBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry value) { @@ -841,8 +733,6 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -850,9 +740,7 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder setBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder builderForValue) { @@ -866,8 +754,6 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -875,12 +761,9 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public Builder addBoundingBoxMetricsEntries( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry value) { + public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1.BoundingBoxMetricsEntry value) { if (boundingBoxMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -894,8 +777,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -903,9 +784,7 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder addBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry value) { @@ -922,8 +801,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -931,9 +808,7 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder addBoundingBoxMetricsEntries( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder builderForValue) { @@ -947,8 +822,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -956,9 +829,7 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder addBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder builderForValue) { @@ -972,8 +843,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -981,15 +850,14 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.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_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, boundingBoxMetricsEntries_); onChanged(); } else { boundingBoxMetricsEntriesBuilder_.addAllMessages(values); @@ -997,8 +865,6 @@ public Builder addAllBoundingBoxMetricsEntries( 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
@@ -1006,9 +872,7 @@ public Builder addAllBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder clearBoundingBoxMetricsEntries() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -1021,8 +885,6 @@ public Builder clearBoundingBoxMetricsEntries() { 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
@@ -1030,9 +892,7 @@ public Builder clearBoundingBoxMetricsEntries() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder removeBoundingBoxMetricsEntries(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -1045,8 +905,6 @@ public Builder removeBoundingBoxMetricsEntries(int 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
@@ -1054,17 +912,13 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder - getBoundingBoxMetricsEntriesBuilder(int index) { + public com.google.cloud.automl.v1.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
@@ -1072,21 +926,16 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder - getBoundingBoxMetricsEntriesOrBuilder(int index) { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( + int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { - return boundingBoxMetricsEntries_.get(index); - } else { + 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
@@ -1094,12 +943,10 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public java.util.List - getBoundingBoxMetricsEntriesOrBuilderList() { + public java.util.List + getBoundingBoxMetricsEntriesOrBuilderList() { if (boundingBoxMetricsEntriesBuilder_ != null) { return boundingBoxMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1107,8 +954,6 @@ public Builder removeBoundingBoxMetricsEntries(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
@@ -1116,18 +961,13 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder - addBoundingBoxMetricsEntriesBuilder() { - return getBoundingBoxMetricsEntriesFieldBuilder() - .addBuilder(com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder addBoundingBoxMetricsEntriesBuilder() { + return getBoundingBoxMetricsEntriesFieldBuilder().addBuilder( + com.google.cloud.automl.v1.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
@@ -1135,19 +975,14 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder - addBoundingBoxMetricsEntriesBuilder(int index) { - return getBoundingBoxMetricsEntriesFieldBuilder() - .addBuilder( - index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder addBoundingBoxMetricsEntriesBuilder( + int index) { + return getBoundingBoxMetricsEntriesFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1.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
@@ -1155,26 +990,18 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public java.util.List - getBoundingBoxMetricsEntriesBuilderList() { + public java.util.List + getBoundingBoxMetricsEntriesBuilderList() { return getBoundingBoxMetricsEntriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, - com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder> + com.google.cloud.automl.v1.BoundingBoxMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder> getBoundingBoxMetricsEntriesFieldBuilder() { if (boundingBoxMetricsEntriesBuilder_ == null) { - boundingBoxMetricsEntriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry, - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, - com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder>( + boundingBoxMetricsEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.BoundingBoxMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder>( boundingBoxMetricsEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1184,17 +1011,14 @@ public Builder removeBoundingBoxMetricsEntries(int index) { return boundingBoxMetricsEntriesBuilder_; } - private float boundingBoxMeanAveragePrecision_; + 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; - * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -1202,45 +1026,39 @@ 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; - * * @param value The boundingBoxMeanAveragePrecision to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearBoundingBoxMeanAveragePrecision() { - + boundingBoxMeanAveragePrecision_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1250,32 +1068,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) - private static final com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics(); } - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -1287,8 +1103,9 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java similarity index 66% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java index 18a95dd0f..7ddc18d62 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java @@ -1,45 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/detection.proto package com.google.cloud.automl.v1; -public interface ImageObjectDetectionEvaluationMetricsOrBuilder - extends +public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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; - * * @return The evaluatedBoundingBoxCount. */ 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
@@ -47,15 +26,11 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - java.util.List + 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
@@ -63,14 +38,10 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ com.google.cloud.automl.v1.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
@@ -78,14 +49,10 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.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
@@ -93,15 +60,11 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - java.util.List + 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
@@ -109,23 +72,18 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ com.google.cloud.automl.v1.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; - * * @return The boundingBoxMeanAveragePrecision. */ float getBoundingBoxMeanAveragePrecision(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java similarity index 63% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java index 23bb23349..24795ab85 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java @@ -1,57 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model deployment metadata specific to Image Object Detection.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata} */ -public final class ImageObjectDetectionModelDeploymentMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageObjectDetectionModelDeploymentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) ImageObjectDetectionModelDeploymentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageObjectDetectionModelDeploymentMetadata.newBuilder() to construct. - private ImageObjectDetectionModelDeploymentMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionModelDeploymentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageObjectDetectionModelDeploymentMetadata() {} + private ImageObjectDetectionModelDeploymentMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageObjectDetectionModelDeploymentMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageObjectDetectionModelDeploymentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,50 +52,46 @@ private ImageObjectDetectionModelDeploymentMetadata( case 0: done = true; break; - case 8: - { - nodeCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.class, - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.class, com.google.cloud.automl.v1.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
@@ -123,7 +101,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int64 node_count = 1; - * * @return The nodeCount. */ @java.lang.Override @@ -132,7 +109,6 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (nodeCount_ != 0L) { output.writeInt64(1, nodeCount_); } @@ -158,7 +135,8 @@ public int getSerializedSize() { size = 0; if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, nodeCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -168,15 +146,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata other = - (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) obj; + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata other = (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) obj; - if (getNodeCount() != other.getNodeCount()) return false; + if (getNodeCount() + != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -189,152 +167,142 @@ public int hashCode() { 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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNodeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1.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.v1.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.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ImageObjectDetectionModelDeploymentMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.class, - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.class, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder.class); } - // Construct using - // com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.newBuilder() + // Construct using com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -344,22 +312,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata build() { - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata result = - buildPartial(); + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -368,8 +333,7 @@ public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata bu @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata buildPartial() { - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata result = - new com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata(this); + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata result = new com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata(this); result.nodeCount_ = nodeCount_; onBuilt(); return result; @@ -379,51 +343,46 @@ public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageObjectDetectionModelDeploymentMetadata) { - return mergeFrom( - (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata other) { - if (other - == com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata other) { + if (other == com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance()) return this; if (other.getNodeCount() != 0L) { setNodeCount(other.getNodeCount()); } @@ -446,9 +405,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,10 +415,8 @@ public Builder mergeFrom( return this; } - private long nodeCount_; + 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
@@ -471,7 +426,6 @@ public Builder mergeFrom(
      * 
* * int64 node_count = 1; - * * @return The nodeCount. */ @java.lang.Override @@ -479,8 +433,6 @@ 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
@@ -490,19 +442,16 @@ public long getNodeCount() {
      * 
* * int64 node_count = 1; - * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -512,18 +461,17 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 1; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,47 +481,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - private static final com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata(); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java similarity index 57% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java index 0f975dd43..cf3f1c1e2 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; -public interface ImageObjectDetectionModelDeploymentMetadataOrBuilder - extends +public interface ImageObjectDetectionModelDeploymentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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
@@ -35,7 +17,6 @@ public interface ImageObjectDetectionModelDeploymentMetadataOrBuilder
    * 
* * int64 node_count = 1; - * * @return The nodeCount. */ long getNodeCount(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java similarity index 80% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java index c6bac21ae..c741e381c 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model metadata specific to image object detection.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionModelMetadata} */ -public final class ImageObjectDetectionModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageObjectDetectionModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageObjectDetectionModelMetadata) ImageObjectDetectionModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageObjectDetectionModelMetadata.newBuilder() to construct. - private ImageObjectDetectionModelMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageObjectDetectionModelMetadata() { modelType_ = ""; stopReason_ = ""; @@ -45,15 +26,16 @@ private ImageObjectDetectionModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageObjectDetectionModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageObjectDetectionModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,79 +54,73 @@ private ImageObjectDetectionModelMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - modelType_ = s; - break; - } - case 24: - { - nodeCount_ = input.readInt64(); - break; - } - case 33: - { - nodeQps_ = input.readDouble(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + modelType_ = s; + break; + } + case 24: { - stopReason_ = s; - break; - } - case 48: - { - trainBudgetMilliNodeHours_ = input.readInt64(); - break; - } - case 56: - { - trainCostMilliNodeHours_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nodeCount_ = input.readInt64(); + break; + } + case 33: { + + nodeQps_ = input.readDouble(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + stopReason_ = s; + 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); + 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.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.class, - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.class, com.google.cloud.automl.v1.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
@@ -172,7 +148,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string model_type = 1; - * * @return The modelType. */ @java.lang.Override @@ -181,15 +156,14 @@ public java.lang.String getModelType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -217,15 +191,16 @@ public java.lang.String getModelType() {
    * 
* * string model_type = 1; - * * @return The bytes for modelType. */ @java.lang.Override - public com.google.protobuf.ByteString getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelType_ = b; return b; } else { @@ -236,8 +211,6 @@ public com.google.protobuf.ByteString getModelTypeBytes() { 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
@@ -245,7 +218,6 @@ public com.google.protobuf.ByteString getModelTypeBytes() {
    * 
* * int64 node_count = 3; - * * @return The nodeCount. */ @java.lang.Override @@ -256,15 +228,12 @@ public long getNodeCount() { 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; - * * @return The nodeQps. */ @java.lang.Override @@ -275,15 +244,12 @@ public double getNodeQps() { public static final int STOP_REASON_FIELD_NUMBER = 5; private volatile java.lang.Object stopReason_; /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The stopReason. */ @java.lang.Override @@ -292,30 +258,30 @@ public java.lang.String getStopReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; } } /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ @java.lang.Override - public com.google.protobuf.ByteString getStopReasonBytes() { + public com.google.protobuf.ByteString + getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stopReason_ = b; return b; } else { @@ -326,8 +292,6 @@ public com.google.protobuf.ByteString getStopReasonBytes() { 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 actual
@@ -347,7 +311,6 @@ public com.google.protobuf.ByteString getStopReasonBytes() {
    * 
* * int64 train_budget_milli_node_hours = 6; - * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -358,8 +321,6 @@ public long getTrainBudgetMilliNodeHours() { public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 7; private long trainCostMilliNodeHours_; /** - * - * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -367,7 +328,6 @@ public long getTrainBudgetMilliNodeHours() {
    * 
* * int64 train_cost_milli_node_hours = 7; - * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -376,7 +336,6 @@ public long getTrainCostMilliNodeHours() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelType_); } @@ -420,19 +380,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, modelType_); } if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, nodeCount_); } if (nodeQps_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, nodeQps_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, nodeQps_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stopReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stopReason_); } if (trainBudgetMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, trainBudgetMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, trainBudgetMilliNodeHours_); } if (trainCostMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, trainCostMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, trainCostMilliNodeHours_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -442,21 +406,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata other = - (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) obj; + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata other = (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) obj; - if (!getModelType().equals(other.getModelType())) return false; - if (getNodeCount() != other.getNodeCount()) return false; + 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 (!getStopReason().equals(other.getStopReason())) return false; - if (getTrainBudgetMilliNodeHours() != other.getTrainBudgetMilliNodeHours()) return false; - if (getTrainCostMilliNodeHours() != other.getTrainCostMilliNodeHours()) return false; + != java.lang.Double.doubleToLongBits( + other.getNodeQps())) return false; + if (!getStopReason() + .equals(other.getStopReason())) return false; + if (getTrainBudgetMilliNodeHours() + != other.getTrainBudgetMilliNodeHours()) return false; + if (getTrainCostMilliNodeHours() + != other.getTrainCostMilliNodeHours()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -471,145 +440,136 @@ public int 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 = (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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNodeQps())); hash = (37 * hash) + STOP_REASON_FIELD_NUMBER; hash = (53 * hash) + getStopReason().hashCode(); hash = (37 * hash) + TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainBudgetMilliNodeHours()); + 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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTrainCostMilliNodeHours()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageObjectDetectionModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.ImageObjectDetectionModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ImageObjectDetectionModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageObjectDetectionModelMetadata) com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.class, - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.class, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.newBuilder() @@ -617,15 +577,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -645,14 +606,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto - .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } @@ -667,8 +627,7 @@ public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata buildPartial() { - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata result = - new com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata(this); + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata result = new com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata(this); result.modelType_ = modelType_; result.nodeCount_ = nodeCount_; result.nodeQps_ = nodeQps_; @@ -683,39 +642,38 @@ public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageObjectDetectionModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -723,9 +681,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata other) { - if (other - == com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance()) return this; if (!other.getModelType().isEmpty()) { modelType_ = other.modelType_; onChanged(); @@ -765,8 +721,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -778,8 +733,6 @@ public Builder mergeFrom( 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
@@ -807,13 +760,13 @@ public Builder mergeFrom(
      * 
* * string model_type = 1; - * * @return The modelType. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelType_ = s; return s; @@ -822,8 +775,6 @@ public 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
@@ -851,14 +802,15 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 1; - * * @return The bytes for modelType. */ - public com.google.protobuf.ByteString getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelType_ = b; return b; } else { @@ -866,8 +818,6 @@ public com.google.protobuf.ByteString getModelTypeBytes() { } } /** - * - * *
      * Optional. Type of the model. The available values are:
      * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
@@ -895,22 +845,20 @@ public com.google.protobuf.ByteString getModelTypeBytes() {
      * 
* * string model_type = 1; - * * @param value The modelType to set. * @return This builder for chaining. */ - public Builder setModelType(java.lang.String value) { + public Builder setModelType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -938,18 +886,15 @@ public Builder setModelType(java.lang.String value) {
      * 
* * string model_type = 1; - * * @return This builder for chaining. */ 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
@@ -977,25 +922,23 @@ public Builder clearModelType() {
      * 
* * string model_type = 1; - * * @param value The bytes for modelType to set. * @return This builder for chaining. */ - public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { + public Builder setModelTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelType_ = value; onChanged(); return this; } - private long nodeCount_; + 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
@@ -1003,7 +946,6 @@ public Builder setModelTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 node_count = 3; - * * @return The nodeCount. */ @java.lang.Override @@ -1011,8 +953,6 @@ 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
@@ -1020,19 +960,16 @@ public long getNodeCount() {
      * 
* * int64 node_count = 3; - * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -1040,27 +977,23 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 3; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } - private double nodeQps_; + 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; - * * @return The nodeQps. */ @java.lang.Override @@ -1068,38 +1001,32 @@ 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; - * * @param value The nodeQps to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearNodeQps() { - + nodeQps_ = 0D; onChanged(); return this; @@ -1107,21 +1034,19 @@ public Builder clearNodeQps() { private java.lang.Object stopReason_ = ""; /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return The stopReason. */ public java.lang.String getStopReason() { java.lang.Object ref = stopReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; @@ -1130,22 +1055,21 @@ public java.lang.String getStopReason() { } } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ - public com.google.protobuf.ByteString getStopReasonBytes() { + public com.google.protobuf.ByteString + getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stopReason_ = b; return b; } else { @@ -1153,73 +1077,64 @@ public com.google.protobuf.ByteString getStopReasonBytes() { } } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @param value The stopReason to set. * @return This builder for chaining. */ - public Builder setStopReason(java.lang.String value) { + public Builder setStopReason( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stopReason_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return This builder for chaining. */ public Builder clearStopReason() { - + stopReason_ = getDefaultInstance().getStopReason(); onChanged(); return this; } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @param value The bytes for stopReason to set. * @return This builder for chaining. */ - public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { + public Builder setStopReasonBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stopReason_ = value; onChanged(); return this; } - private long trainBudgetMilliNodeHours_; + 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 actual
@@ -1239,7 +1154,6 @@ public Builder setStopReasonBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 train_budget_milli_node_hours = 6; - * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -1247,8 +1161,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 actual
@@ -1268,19 +1180,16 @@ public long getTrainBudgetMilliNodeHours() {
      * 
* * int64 train_budget_milli_node_hours = 6; - * * @param value The trainBudgetMilliNodeHours to set. * @return This builder for chaining. */ 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 actual
@@ -1300,20 +1209,17 @@ public Builder setTrainBudgetMilliNodeHours(long value) {
      * 
* * int64 train_budget_milli_node_hours = 6; - * * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; } - private long trainCostMilliNodeHours_; + private long trainCostMilliNodeHours_ ; /** - * - * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1321,7 +1227,6 @@ public Builder clearTrainBudgetMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; - * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -1329,8 +1234,6 @@ public long getTrainCostMilliNodeHours() { return trainCostMilliNodeHours_; } /** - * - * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1338,19 +1241,16 @@ public long getTrainCostMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; - * * @param value The trainCostMilliNodeHours to set. * @return This builder for chaining. */ public Builder setTrainCostMilliNodeHours(long value) { - + trainCostMilliNodeHours_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1358,18 +1258,17 @@ public Builder setTrainCostMilliNodeHours(long value) {
      * 
* * int64 train_cost_milli_node_hours = 7; - * * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + trainCostMilliNodeHours_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1379,13 +1278,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageObjectDetectionModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageObjectDetectionModelMetadata) - private static final com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata(); } @@ -1394,16 +1292,16 @@ public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getDe 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); - } - }; + 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; @@ -1418,4 +1316,6 @@ public com.google.protobuf.Parser getParserFo public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java similarity index 88% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java index fcee25c28..f5642a7ee 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; -public interface ImageObjectDetectionModelMetadataOrBuilder - extends +public interface ImageObjectDetectionModelMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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
@@ -53,13 +35,10 @@ public interface ImageObjectDetectionModelMetadataOrBuilder
    * 
* * string model_type = 1; - * * @return The modelType. */ 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
@@ -87,14 +66,12 @@ public interface ImageObjectDetectionModelMetadataOrBuilder
    * 
* * string model_type = 1; - * * @return The bytes for modelType. */ - com.google.protobuf.ByteString getModelTypeBytes(); + 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
@@ -102,55 +79,44 @@ public interface ImageObjectDetectionModelMetadataOrBuilder
    * 
* * int64 node_count = 3; - * * @return The nodeCount. */ 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; - * * @return The nodeQps. */ double getNodeQps(); /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The stopReason. */ java.lang.String getStopReason(); /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ - com.google.protobuf.ByteString getStopReasonBytes(); + com.google.protobuf.ByteString + getStopReasonBytes(); /** - * - * *
    * 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 actual
@@ -170,14 +136,11 @@ public interface ImageObjectDetectionModelMetadataOrBuilder
    * 
* * int64 train_budget_milli_node_hours = 6; - * * @return The trainBudgetMilliNodeHours. */ long getTrainBudgetMilliNodeHours(); /** - * - * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -185,7 +148,6 @@ public interface ImageObjectDetectionModelMetadataOrBuilder
    * 
* * int64 train_cost_milli_node_hours = 7; - * * @return The trainCostMilliNodeHours. */ long getTrainCostMilliNodeHours(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java index 953354308..8362965ca 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; -public interface ImageOrBuilder - extends +public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Image) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -33,13 +15,10 @@ public interface ImageOrBuilder
    * 
* * bytes image_bytes = 1; - * * @return Whether the imageBytes field is set. */ boolean hasImageBytes(); /** - * - * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -47,35 +26,29 @@ public interface ImageOrBuilder
    * 
* * bytes image_bytes = 1; - * * @return The imageBytes. */ com.google.protobuf.ByteString getImageBytes(); /** - * - * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; - * * @return The thumbnailUri. */ java.lang.String getThumbnailUri(); /** - * - * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; - * * @return The bytes for thumbnailUri. */ - com.google.protobuf.ByteString getThumbnailUriBytes(); + com.google.protobuf.ByteString + getThumbnailUriBytes(); public com.google.cloud.automl.v1.Image.DataCase getDataCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java new file mode 100644 index 000000000..cf4690219 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java @@ -0,0 +1,139 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/image.proto + +package com.google.cloud.automl.v1; + +public final class ImageProto { + private ImageProto() {} + 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_v1_ImageClassificationDatasetMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_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/v1/image.proto\022\026go" + + "ogle.cloud.automl.v1\032\031google/api/resourc" + + "e.proto\032,google/cloud/automl/v1/annotati" + + "on_spec.proto\032+google/cloud/automl/v1/cl" + + "assification.proto\032\037google/protobuf/time" + + "stamp.proto\032\034google/api/annotations.prot" + + "o\"m\n\"ImageClassificationDatasetMetadata\022" + + "G\n\023classification_type\030\001 \001(\0162*.google.cl" + + "oud.automl.v1.ClassificationType\"%\n#Imag" + + "eObjectDetectionDatasetMetadata\"\324\001\n Imag" + + "eClassificationModelMetadata\022\025\n\rbase_mod" + + "el_id\030\001 \001(\t\022%\n\035train_budget_milli_node_h" + + "ours\030\020 \001(\003\022#\n\033train_cost_milli_node_hour" + + "s\030\021 \001(\003\022\023\n\013stop_reason\030\005 \001(\t\022\022\n\nmodel_ty" + + "pe\030\007 \001(\t\022\020\n\010node_qps\030\r \001(\001\022\022\n\nnode_count" + + "\030\016 \001(\003\"\276\001\n!ImageObjectDetectionModelMeta" + + "data\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\022\023\n\013stop_reason\030\005 " + + "\001(\t\022%\n\035train_budget_milli_node_hours\030\006 \001" + + "(\003\022#\n\033train_cost_milli_node_hours\030\007 \001(\003\"" + + "@\n*ImageClassificationModelDeploymentMet" + + "adata\022\022\n\nnode_count\030\001 \001(\003\"A\n+ImageObject" + + "DetectionModelDeploymentMetadata\022\022\n\nnode" + + "_count\030\001 \001(\003B\266\001\n\032com.google.cloud.automl" + + ".v1B\nImageProtoP\001Z * Details of ImportData operation. *
* * Protobuf type {@code google.cloud.automl.v1.ImportDataOperationMetadata} */ -public final class ImportDataOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportDataOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImportDataOperationMetadata) ImportDataOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportDataOperationMetadata.newBuilder() to construct. private ImportDataOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImportDataOperationMetadata() {} + private ImportDataOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportDataOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportDataOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private ImportDataOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.Operations - .internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImportDataOperationMetadata.class, - com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ImportDataOperationMetadata.class, com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImportDataOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImportDataOperationMetadata other = - (com.google.cloud.automl.v1.ImportDataOperationMetadata) obj; + com.google.cloud.automl.v1.ImportDataOperationMetadata other = (com.google.cloud.automl.v1.ImportDataOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImportDataOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.ImportDataOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ImportDataOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ImportDataOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ImportDataOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImportDataOperationMetadata) com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImportDataOperationMetadata.class, - com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ImportDataOperationMetadata.class, com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ImportDataOperationMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; } @java.lang.Override @@ -323,8 +295,7 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ImportDataOperationMetadata buildPartial() { - com.google.cloud.automl.v1.ImportDataOperationMetadata result = - new com.google.cloud.automl.v1.ImportDataOperationMetadata(this); + com.google.cloud.automl.v1.ImportDataOperationMetadata result = new com.google.cloud.automl.v1.ImportDataOperationMetadata(this); onBuilt(); return result; } @@ -333,39 +304,38 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImportDataOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImportDataOperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.ImportDataOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -373,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImportDataOperationMetadata other) { - if (other == com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -394,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ImportDataOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ImportDataOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -404,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -416,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImportDataOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImportDataOperationMetadata) private static final com.google.cloud.automl.v1.ImportDataOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImportDataOperationMetadata(); } @@ -430,16 +398,16 @@ public static com.google.cloud.automl.v1.ImportDataOperationMetadata getDefaultI 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); - } - }; + 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; @@ -454,4 +422,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1.ImportDataOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadataOrBuilder.java new file mode 100644 index 000000000..9397301ba --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface ImportDataOperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImportDataOperationMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java similarity index 63% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java index b1a9835f6..093521f0f 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImportDataRequest} */ -public final class ImportDataRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImportDataRequest) ImportDataRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportDataRequest.newBuilder() to construct. private ImportDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportDataRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportDataRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,77 +53,66 @@ private ImportDataRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 26: { + com.google.cloud.automl.v1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.automl.v1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.automl.v1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.automl.v1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImportDataRequest.class, - com.google.cloud.automl.v1.ImportDataRequest.Builder.class); + com.google.cloud.automl.v1.ImportDataRequest.class, com.google.cloud.automl.v1.ImportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Dataset name. Dataset must already exist. All imported
    * annotations and examples will be added.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -149,32 +121,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Dataset name. Dataset must already exist. All imported
    * annotations and examples will be added.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -185,17 +155,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1.InputConfig inputConfig_; /** - * - * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -203,36 +168,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.automl.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.InputConfigOrBuilder getInputConfigOrBuilder() { @@ -240,7 +194,6 @@ public com.google.cloud.automl.v1.InputConfigOrBuilder getInputConfigOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -272,7 +226,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,18 +237,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImportDataRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImportDataRequest other = - (com.google.cloud.automl.v1.ImportDataRequest) obj; + com.google.cloud.automl.v1.ImportDataRequest other = (com.google.cloud.automl.v1.ImportDataRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -317,127 +273,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ImportDataRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImportDataRequest 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.v1.ImportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ImportDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ImportDataRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ImportDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImportDataRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ImportDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ImportDataRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImportDataRequest) com.google.cloud.automl.v1.ImportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImportDataRequest.class, - com.google.cloud.automl.v1.ImportDataRequest.Builder.class); + com.google.cloud.automl.v1.ImportDataRequest.class, com.google.cloud.automl.v1.ImportDataRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.ImportDataRequest.newBuilder() @@ -445,15 +392,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; } @java.lang.Override @@ -490,8 +438,7 @@ public com.google.cloud.automl.v1.ImportDataRequest build() { @java.lang.Override public com.google.cloud.automl.v1.ImportDataRequest buildPartial() { - com.google.cloud.automl.v1.ImportDataRequest result = - new com.google.cloud.automl.v1.ImportDataRequest(this); + com.google.cloud.automl.v1.ImportDataRequest result = new com.google.cloud.automl.v1.ImportDataRequest(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -506,39 +453,38 @@ public com.google.cloud.automl.v1.ImportDataRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImportDataRequest) { - return mergeFrom((com.google.cloud.automl.v1.ImportDataRequest) other); + return mergeFrom((com.google.cloud.automl.v1.ImportDataRequest)other); } else { super.mergeFrom(other); return this; @@ -585,23 +531,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -610,24 +552,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -635,70 +574,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -706,61 +632,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.InputConfig, - com.google.cloud.automl.v1.InputConfig.Builder, - com.google.cloud.automl.v1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.automl.v1.InputConfig, com.google.cloud.automl.v1.InputConfig.Builder, com.google.cloud.automl.v1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.automl.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.automl.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.automl.v1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -776,18 +683,15 @@ public Builder setInputConfig(com.google.cloud.automl.v1.InputConfig value) { return this; } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInputConfig(com.google.cloud.automl.v1.InputConfig.Builder builderForValue) { + public Builder setInputConfig( + com.google.cloud.automl.v1.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); onChanged(); @@ -798,24 +702,18 @@ public Builder setInputConfig(com.google.cloud.automl.v1.InputConfig.Builder bui return this; } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInputConfig(com.google.cloud.automl.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.automl.v1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -827,16 +725,12 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.InputConfig value) { return this; } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -850,74 +744,58 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.automl.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.automl.v1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.InputConfig, - com.google.cloud.automl.v1.InputConfig.Builder, - com.google.cloud.automl.v1.InputConfigOrBuilder> + com.google.cloud.automl.v1.InputConfig, com.google.cloud.automl.v1.InputConfig.Builder, com.google.cloud.automl.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.InputConfig, - com.google.cloud.automl.v1.InputConfig.Builder, - com.google.cloud.automl.v1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.InputConfig, com.google.cloud.automl.v1.InputConfig.Builder, com.google.cloud.automl.v1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -927,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImportDataRequest) private static final com.google.cloud.automl.v1.ImportDataRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImportDataRequest(); } @@ -941,16 +819,16 @@ public static com.google.cloud.automl.v1.ImportDataRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportDataRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportDataRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,4 +843,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ImportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequestOrBuilder.java new file mode 100644 index 000000000..0dd384639 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequestOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface ImportDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImportDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Dataset name. Dataset must already exist. All imported
+   * annotations and examples will be added.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Dataset name. Dataset must already exist. All imported
+   * annotations and examples will be added.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the inputConfig field is set. + */ + boolean hasInputConfig(); + /** + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The inputConfig. + */ + com.google.cloud.automl.v1.InputConfig getInputConfig(); + /** + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.automl.v1.InputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java similarity index 85% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java index 062c26564..3d720a46a 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; /** - * - * *
  * Input configuration for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
  * The format of input depends on dataset_metadata the Dataset into which
@@ -497,29 +480,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.InputConfig}
  */
-public final class InputConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InputConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.InputConfig)
     InputConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InputConfig.newBuilder() to construct.
   private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private InputConfig() {}
+  private InputConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private InputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -539,91 +523,85 @@ private InputConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null;
-              if (sourceCase_ == 1) {
-                subBuilder = ((com.google.cloud.automl.v1.GcsSource) source_).toBuilder();
-              }
-              source_ =
-                  input.readMessage(
-                      com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsSource) source_);
-                source_ = subBuilder.buildPartial();
-              }
-              sourceCase_ = 1;
-              break;
+          case 10: {
+            com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null;
+            if (sourceCase_ == 1) {
+              subBuilder = ((com.google.cloud.automl.v1.GcsSource) source_).toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                params_ =
-                    com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry params__ =
-                  input.readMessage(
-                      ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              params_.getMutableMap().put(params__.getKey(), params__.getValue());
-              break;
+            source_ =
+                input.readMessage(com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsSource) source_);
+              source_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            sourceCase_ = 1;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              params_ = com.google.protobuf.MapField.newMapField(
+                  ParamsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
+            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);
+      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.v1.Io
-        .internal_static_google_cloud_automl_v1_InputConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 2:
         return internalGetParams();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Io
-        .internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable
+    return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.InputConfig.class,
-            com.google.cloud.automl.v1.InputConfig.Builder.class);
+            com.google.cloud.automl.v1.InputConfig.class, com.google.cloud.automl.v1.InputConfig.Builder.class);
   }
 
   private int sourceCase_ = 0;
   private java.lang.Object source_;
-
   public enum SourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_SOURCE(1),
     SOURCE_NOT_SET(0);
     private final int value;
-
     private SourceCase(int value) {
       this.value = value;
     }
@@ -639,28 +617,24 @@ public static SourceCase valueOf(int value) {
 
     public static SourceCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return GCS_SOURCE;
-        case 0:
-          return SOURCE_NOT_SET;
-        default:
-          return null;
+        case 1: return GCS_SOURCE;
+        case 0: return SOURCE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SourceCase getSourceCase() {
-    return SourceCase.forNumber(sourceCase_);
+  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.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -668,7 +642,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -676,8 +649,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -685,19 +656,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.automl.v1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.automl.v1.GcsSource) source_; + return (com.google.cloud.automl.v1.GcsSource) source_; } return com.google.cloud.automl.v1.GcsSource.getDefaultInstance(); } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -709,29 +677,30 @@ public com.google.cloud.automl.v1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.automl.v1.GcsSource) source_;
+       return (com.google.cloud.automl.v1.GcsSource) source_;
     }
     return com.google.cloud.automl.v1.GcsSource.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.v1.Io
-                .internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_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() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> params_;
+  private com.google.protobuf.MapField
+  internalGetParams() {
     if (params_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          ParamsDefaultEntryHolder.defaultEntry);
     }
     return params_;
   }
@@ -740,8 +709,6 @@ 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
@@ -756,22 +723,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 2;
    */
+
   @java.lang.Override
-  public boolean containsParams(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsParams(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetParams().getMap().containsKey(key);
   }
-  /** Use {@link #getParamsMap()} instead. */
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Override
   @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
@@ -787,12 +754,11 @@ public java.util.Map getParams() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
+
   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
@@ -808,16 +774,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-  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();
+
+  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
@@ -833,11 +799,12 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> params = 2;
    */
   @java.lang.Override
-  public java.lang.String getParamsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetParams().getMap();
+
+  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();
     }
@@ -845,7 +812,6 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -857,12 +823,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.automl.v1.GcsSource) source_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        2);
     unknownFields.writeTo(output);
   }
 
@@ -873,19 +844,18 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.automl.v1.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__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.automl.v1.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__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -895,18 +865,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.InputConfig)) {
       return super.equals(obj);
     }
     com.google.cloud.automl.v1.InputConfig other = (com.google.cloud.automl.v1.InputConfig) obj;
 
-    if (!internalGetParams().equals(other.internalGetParams())) return false;
+    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;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -939,104 +911,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.InputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.InputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.InputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.InputConfig 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.v1.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.InputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.InputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.InputConfig parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
    * The format of input depends on dataset_metadata the Dataset into which
@@ -1513,43 +1478,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.InputConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.InputConfig)
       com.google.cloud.automl.v1.InputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_InputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetParams();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMutableParams();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.InputConfig.class,
-              com.google.cloud.automl.v1.InputConfig.Builder.class);
+              com.google.cloud.automl.v1.InputConfig.class, com.google.cloud.automl.v1.InputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.InputConfig.newBuilder()
@@ -1557,15 +1522,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1576,9 +1542,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_InputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1597,8 +1563,7 @@ public com.google.cloud.automl.v1.InputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.InputConfig buildPartial() {
-      com.google.cloud.automl.v1.InputConfig result =
-          new com.google.cloud.automl.v1.InputConfig(this);
+      com.google.cloud.automl.v1.InputConfig result = new com.google.cloud.automl.v1.InputConfig(this);
       int from_bitField0_ = bitField0_;
       if (sourceCase_ == 1) {
         if (gcsSourceBuilder_ == null) {
@@ -1618,39 +1583,38 @@ public com.google.cloud.automl.v1.InputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.InputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1.InputConfig) other);
+        return mergeFrom((com.google.cloud.automl.v1.InputConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1659,17 +1623,16 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.automl.v1.InputConfig other) {
       if (other == com.google.cloud.automl.v1.InputConfig.getDefaultInstance()) return this;
-      internalGetMutableParams().mergeFrom(other.internalGetParams());
+      internalGetMutableParams().mergeFrom(
+          other.internalGetParams());
       switch (other.getSourceCase()) {
-        case GCS_SOURCE:
-          {
-            mergeGcsSource(other.getGcsSource());
-            break;
-          }
-        case SOURCE_NOT_SET:
-          {
-            break;
-          }
+        case GCS_SOURCE: {
+          mergeGcsSource(other.getGcsSource());
+          break;
+        }
+        case SOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1699,12 +1662,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-
-    public SourceCase getSourceCase() {
-      return SourceCase.forNumber(sourceCase_);
+    public SourceCase
+        getSourceCase() {
+      return SourceCase.forNumber(
+          sourceCase_);
     }
 
     public Builder clearSource() {
@@ -1717,13 +1680,8 @@ public Builder clearSource() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.GcsSource,
-            com.google.cloud.automl.v1.GcsSource.Builder,
-            com.google.cloud.automl.v1.GcsSourceOrBuilder>
-        gcsSourceBuilder_;
+        com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> gcsSourceBuilder_;
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1731,7 +1689,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1739,8 +1696,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1748,7 +1703,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -1766,8 +1720,6 @@ public com.google.cloud.automl.v1.GcsSource getGcsSource() { } } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1790,8 +1742,6 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1800,7 +1750,8 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) {
      *
      * .google.cloud.automl.v1.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.automl.v1.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -1811,8 +1762,6 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1823,13 +1772,10 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builder
      */
     public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.automl.v1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.automl.v1.GcsSource.newBuilder(
-                      (com.google.cloud.automl.v1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.automl.v1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.automl.v1.GcsSource.newBuilder((com.google.cloud.automl.v1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -1844,8 +1790,6 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1871,8 +1815,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1885,8 +1827,6 @@ public com.google.cloud.automl.v1.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1907,8 +1847,6 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1918,43 +1856,40 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
      * .google.cloud.automl.v1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.GcsSource,
-            com.google.cloud.automl.v1.GcsSource.Builder,
-            com.google.cloud.automl.v1.GcsSourceOrBuilder>
+        com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.automl.v1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.automl.v1.GcsSource,
-                com.google.cloud.automl.v1.GcsSource.Builder,
-                com.google.cloud.automl.v1.GcsSourceOrBuilder>(
-                (com.google.cloud.automl.v1.GcsSource) source_, getParentForChildren(), isClean());
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder>(
+                (com.google.cloud.automl.v1.GcsSource) source_,
+                getParentForChildren(),
+                isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
 
-    private com.google.protobuf.MapField params_;
-
-    private com.google.protobuf.MapField internalGetParams() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> params_;
+    private com.google.protobuf.MapField
+    internalGetParams() {
       if (params_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            ParamsDefaultEntryHolder.defaultEntry);
       }
       return params_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableParams() {
-      onChanged();
-      ;
+    internalGetMutableParams() {
+      onChanged();;
       if (params_ == null) {
-        params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry);
+        params_ = com.google.protobuf.MapField.newMapField(
+            ParamsDefaultEntryHolder.defaultEntry);
       }
       if (!params_.isMutable()) {
         params_ = params_.copy();
@@ -1966,8 +1901,6 @@ 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
@@ -1982,22 +1915,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 2;
      */
+
     @java.lang.Override
-    public boolean containsParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsParams(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetParams().getMap().containsKey(key);
     }
-    /** Use {@link #getParamsMap()} instead. */
+    /**
+     * Use {@link #getParamsMap()} instead.
+     */
     @java.lang.Override
     @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
@@ -2013,12 +1946,11 @@ public java.util.Map getParams() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
+
     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
@@ -2034,17 +1966,16 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
+
     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();
+        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
@@ -2060,11 +1991,12 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 2;
      */
     @java.lang.Override
-    public java.lang.String getParamsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetParams().getMap();
+
+    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();
       }
@@ -2072,12 +2004,11 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap().clear();
+      internalGetMutableParams().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters describing the semantic of the
      * imported data, any string must be up to 25000
@@ -2092,21 +2023,23 @@ public Builder clearParams() {
      *
      * map<string, string> params = 2;
      */
-    public Builder removeParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableParams().getMutableMap().remove(key);
+
+    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. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableParams() {
+    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
@@ -2121,19 +2054,16 @@ public java.util.Map getMutableParams() {
      *
      * 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);
+    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
@@ -2148,13 +2078,16 @@ public Builder putParams(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> params = 2;
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+
+    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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2164,12 +2097,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.InputConfig)
   private static final com.google.cloud.automl.v1.InputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.InputConfig();
   }
@@ -2178,16 +2111,16 @@ public static com.google.cloud.automl.v1.InputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public InputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new InputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public InputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new InputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2202,4 +2135,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java
similarity index 79%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java
index 9f92b2dbb..e01b9a642 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/io.proto
 
 package com.google.cloud.automl.v1;
 
-public interface InputConfigOrBuilder
-    extends
+public interface InputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The Google Cloud Storage location for the input content.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -33,13 +15,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location for the input content.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -47,13 +26,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.automl.v1.GcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location for the input content.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -65,8 +41,6 @@ public interface InputConfigOrBuilder
   com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -83,8 +57,6 @@ public interface InputConfigOrBuilder
    */
   int getParamsCount();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -99,13 +71,15 @@ public interface InputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  boolean containsParams(java.lang.String key);
-  /** Use {@link #getParamsMap()} instead. */
+  boolean containsParams(
+      java.lang.String key);
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getParams();
+  java.util.Map
+  getParams();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -120,10 +94,9 @@ public interface InputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.util.Map getParamsMap();
+  java.util.Map
+  getParamsMap();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -138,10 +111,11 @@ public interface InputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  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
@@ -156,7 +130,9 @@ public interface InputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.lang.String getParamsOrThrow(java.lang.String key);
+
+  java.lang.String getParamsOrThrow(
+      java.lang.String key);
 
   public com.google.cloud.automl.v1.InputConfig.SourceCase getSourceCase();
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java
new file mode 100644
index 000000000..110c9467b
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java
@@ -0,0 +1,184 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1/io.proto
+
+package com.google.cloud.automl.v1;
+
+public final class Io {
+  private Io() {}
+  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_v1_InputConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_OutputConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_GcsSource_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_GcsDestination_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_GcsDestination_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\037google/cloud/automl/v1/io.proto\022\026googl" +
+      "e.cloud.automl.v1\032\037google/api/field_beha" +
+      "vior.proto\032\034google/api/annotations.proto" +
+      "\"\300\001\n\013InputConfig\0227\n\ngcs_source\030\001 \001(\0132!.g" +
+      "oogle.cloud.automl.v1.GcsSourceH\000\022?\n\006par" +
+      "ams\030\002 \003(\0132/.google.cloud.automl.v1.Input" +
+      "Config.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\"a\n\027B" +
+      "atchPredictInputConfig\022<\n\ngcs_source\030\001 \001" +
+      "(\0132!.google.cloud.automl.v1.GcsSourceB\003\340" +
+      "A\002H\000B\010\n\006source\"L\n\023DocumentInputConfig\0225\n" +
+      "\ngcs_source\030\001 \001(\0132!.google.cloud.automl." +
+      "v1.GcsSource\"e\n\014OutputConfig\022F\n\017gcs_dest" +
+      "ination\030\001 \001(\0132&.google.cloud.automl.v1.G" +
+      "csDestinationB\003\340A\002H\000B\r\n\013destination\"q\n\030B" +
+      "atchPredictOutputConfig\022F\n\017gcs_destinati" +
+      "on\030\001 \001(\0132&.google.cloud.automl.v1.GcsDes" +
+      "tinationB\003\340A\002H\000B\r\n\013destination\"\202\002\n\027Model" +
+      "ExportOutputConfig\022F\n\017gcs_destination\030\001 " +
+      "\001(\0132&.google.cloud.automl.v1.GcsDestinat" +
+      "ionB\003\340A\002H\000\022\024\n\014model_format\030\004 \001(\t\022K\n\006para" +
+      "ms\030\002 \003(\0132;.google.cloud.automl.v1.ModelE" +
+      "xportOutputConfig.ParamsEntry\032-\n\013ParamsE" +
+      "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\r\n\013" +
+      "destination\"$\n\tGcsSource\022\027\n\ninput_uris\030\001" +
+      " \003(\tB\003\340A\002\"0\n\016GcsDestination\022\036\n\021output_ur" +
+      "i_prefix\030\001 \001(\tB\003\340A\002B\252\001\n\032com.google.cloud" +
+      ".automl.v1P\001Z
  * Request message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListDatasetsRequest} */ -public final class ListDatasetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDatasetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListDatasetsRequest) ListDatasetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDatasetsRequest.newBuilder() to construct. private ListDatasetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDatasetsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListDatasetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDatasetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDatasetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,79 +55,69 @@ private ListDatasetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + 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(); + filter_ = s; + break; + } + case 32: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListDatasetsRequest.class, - com.google.cloud.automl.v1.ListDatasetsRequest.Builder.class); + com.google.cloud.automl.v1.ListDatasetsRequest.class, com.google.cloud.automl.v1.ListDatasetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,31 +126,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,18 +159,16 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
-   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+   *             `image_classification_dataset_metadata:*`). Some examples of
+   *             using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
-   *                                          translation_dataset_metadata.
+   *                                          `translation_dataset_metadata`.
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -208,33 +177,34 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
-   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+   *             `image_classification_dataset_metadata:*`). Some examples of
+   *             using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
-   *                                          translation_dataset_metadata.
+   *                                          `translation_dataset_metadata`.
    * 
* * string filter = 3; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -245,15 +215,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * Requested page size. Server may return fewer results than requested.
    * If unspecified, server will pick a default size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -264,8 +231,6 @@ public int getPageSize() { 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 via
@@ -274,7 +239,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -283,15 +247,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 via
@@ -300,15 +263,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -317,7 +281,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,7 +292,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -358,7 +322,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -371,18 +336,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListDatasetsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListDatasetsRequest other = - (com.google.cloud.automl.v1.ListDatasetsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.automl.v1.ListDatasetsRequest other = (com.google.cloud.automl.v1.ListDatasetsRequest) obj; + + if (!getParent() + .equals(other.getParent())) 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; } @@ -407,127 +375,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListDatasetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListDatasetsRequest 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.v1.ListDatasetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ListDatasetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ListDatasetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListDatasetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ListDatasetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListDatasetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListDatasetsRequest) com.google.cloud.automl.v1.ListDatasetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListDatasetsRequest.class, - com.google.cloud.automl.v1.ListDatasetsRequest.Builder.class); + com.google.cloud.automl.v1.ListDatasetsRequest.class, com.google.cloud.automl.v1.ListDatasetsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.ListDatasetsRequest.newBuilder() @@ -535,15 +494,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -559,9 +519,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; } @java.lang.Override @@ -580,8 +540,7 @@ public com.google.cloud.automl.v1.ListDatasetsRequest build() { @java.lang.Override public com.google.cloud.automl.v1.ListDatasetsRequest buildPartial() { - com.google.cloud.automl.v1.ListDatasetsRequest result = - new com.google.cloud.automl.v1.ListDatasetsRequest(this); + com.google.cloud.automl.v1.ListDatasetsRequest result = new com.google.cloud.automl.v1.ListDatasetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -594,39 +553,38 @@ public com.google.cloud.automl.v1.ListDatasetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListDatasetsRequest) { - return mergeFrom((com.google.cloud.automl.v1.ListDatasetsRequest) other); + return mergeFrom((com.google.cloud.automl.v1.ListDatasetsRequest)other); } else { super.mergeFrom(other); return this; @@ -681,22 +639,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -705,23 +659,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -729,67 +680,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -797,24 +735,23 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
-     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+     *             `image_classification_dataset_metadata:*`). Some examples of
+     *             using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
-     *                                          translation_dataset_metadata.
+     *                                          `translation_dataset_metadata`.
      * 
* * string filter = 3; - * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -823,25 +760,25 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
-     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+     *             `image_classification_dataset_metadata:*`). Some examples of
+     *             using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
-     *                                          translation_dataset_metadata.
+     *                                          `translation_dataset_metadata`.
      * 
* * string filter = 3; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -849,89 +786,82 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
-     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+     *             `image_classification_dataset_metadata:*`). Some examples of
+     *             using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
-     *                                          translation_dataset_metadata.
+     *                                          `translation_dataset_metadata`.
      * 
* * string filter = 3; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
-     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+     *             `image_classification_dataset_metadata:*`). Some examples of
+     *             using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
-     *                                          translation_dataset_metadata.
+     *                                          `translation_dataset_metadata`.
      * 
* * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
-     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+     *             `image_classification_dataset_metadata:*`). Some examples of
+     *             using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
-     *                                          translation_dataset_metadata.
+     *                                          `translation_dataset_metadata`.
      * 
* * string filter = 3; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -939,38 +869,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -978,8 +902,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -988,13 +910,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1003,8 +925,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1013,14 +933,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1028,8 +949,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1038,22 +957,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1062,18 +979,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1082,23 +996,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1108,12 +1022,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListDatasetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListDatasetsRequest) private static final com.google.cloud.automl.v1.ListDatasetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListDatasetsRequest(); } @@ -1122,16 +1036,16 @@ public static com.google.cloud.automl.v1.ListDatasetsRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDatasetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1146,4 +1060,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ListDatasetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java index 943963732..7172d610d 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java @@ -1,107 +1,74 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListDatasetsRequestOrBuilder - extends +public interface ListDatasetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListDatasetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
-   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+   *             `image_classification_dataset_metadata:*`). Some examples of
+   *             using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
-   *                                          translation_dataset_metadata.
+   *                                          `translation_dataset_metadata`.
    * 
* * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
-   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+   *             `image_classification_dataset_metadata:*`). Some examples of
+   *             using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
-   *                                          translation_dataset_metadata.
+   *                                          `translation_dataset_metadata`.
    * 
* * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Requested page size. Server may return fewer results than requested.
    * If unspecified, server will pick a default size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -110,13 +77,10 @@ public interface ListDatasetsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -125,8 +89,8 @@ public interface ListDatasetsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java similarity index 74% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java index 267a4d6bf..1f6b20e95 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Response message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListDatasetsResponse} */ -public final class ListDatasetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDatasetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListDatasetsResponse) ListDatasetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDatasetsResponse.newBuilder() to construct. private ListDatasetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDatasetsResponse() { datasets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListDatasetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDatasetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDatasetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListDatasetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - datasets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - datasets_.add( - input.readMessage( - com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + datasets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + datasets_.add( + input.readMessage(com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { datasets_ = java.util.Collections.unmodifiableList(datasets_); @@ -111,27 +92,22 @@ private ListDatasetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListDatasetsResponse.class, - com.google.cloud.automl.v1.ListDatasetsResponse.Builder.class); + com.google.cloud.automl.v1.ListDatasetsResponse.class, com.google.cloud.automl.v1.ListDatasetsResponse.Builder.class); } public static final int DATASETS_FIELD_NUMBER = 1; private java.util.List datasets_; /** - * - * *
    * The datasets read.
    * 
@@ -143,8 +119,6 @@ public java.util.List getDatasetsList() { return datasets_; } /** - * - * *
    * The datasets read.
    * 
@@ -152,13 +126,11 @@ public java.util.List getDatasetsList() { * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDatasetsOrBuilderList() { return datasets_; } /** - * - * *
    * The datasets read.
    * 
@@ -170,8 +142,6 @@ public int getDatasetsCount() { return datasets_.size(); } /** - * - * *
    * The datasets read.
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.automl.v1.Dataset getDatasets(int index) { return datasets_.get(index); } /** - * - * *
    * The datasets read.
    * 
@@ -192,22 +160,20 @@ public com.google.cloud.automl.v1.Dataset getDatasets(int index) { * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ @java.lang.Override - public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder(int index) { + public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder( + int index) { return datasets_.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 [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -216,30 +182,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -248,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +225,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < datasets_.size(); i++) { output.writeMessage(1, datasets_.get(i)); } @@ -277,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < datasets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, datasets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, datasets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -290,16 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListDatasetsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListDatasetsResponse other = - (com.google.cloud.automl.v1.ListDatasetsResponse) obj; + com.google.cloud.automl.v1.ListDatasetsResponse other = (com.google.cloud.automl.v1.ListDatasetsResponse) obj; - if (!getDatasetsList().equals(other.getDatasetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDatasetsList() + .equals(other.getDatasetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,127 +290,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListDatasetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListDatasetsResponse 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.v1.ListDatasetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ListDatasetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ListDatasetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListDatasetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ListDatasetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListDatasetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListDatasetsResponse) com.google.cloud.automl.v1.ListDatasetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListDatasetsResponse.class, - com.google.cloud.automl.v1.ListDatasetsResponse.Builder.class); + com.google.cloud.automl.v1.ListDatasetsResponse.class, com.google.cloud.automl.v1.ListDatasetsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1.ListDatasetsResponse.newBuilder() @@ -450,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDatasetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; } @java.lang.Override @@ -497,8 +456,7 @@ public com.google.cloud.automl.v1.ListDatasetsResponse build() { @java.lang.Override public com.google.cloud.automl.v1.ListDatasetsResponse buildPartial() { - com.google.cloud.automl.v1.ListDatasetsResponse result = - new com.google.cloud.automl.v1.ListDatasetsResponse(this); + com.google.cloud.automl.v1.ListDatasetsResponse result = new com.google.cloud.automl.v1.ListDatasetsResponse(this); int from_bitField0_ = bitField0_; if (datasetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -518,39 +476,38 @@ public com.google.cloud.automl.v1.ListDatasetsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListDatasetsResponse) { - return mergeFrom((com.google.cloud.automl.v1.ListDatasetsResponse) other); + return mergeFrom((com.google.cloud.automl.v1.ListDatasetsResponse)other); } else { super.mergeFrom(other); return this; @@ -558,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ListDatasetsResponse other) { - if (other == com.google.cloud.automl.v1.ListDatasetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ListDatasetsResponse.getDefaultInstance()) return this; if (datasetsBuilder_ == null) { if (!other.datasets_.isEmpty()) { if (datasets_.isEmpty()) { @@ -578,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ListDatasetsResponse other) datasetsBuilder_ = null; datasets_ = other.datasets_; bitField0_ = (bitField0_ & ~0x00000001); - datasetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDatasetsFieldBuilder() - : null; + datasetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDatasetsFieldBuilder() : null; } else { datasetsBuilder_.addAllMessages(other.datasets_); } @@ -619,28 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List datasets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDatasetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { datasets_ = new java.util.ArrayList(datasets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, - com.google.cloud.automl.v1.Dataset.Builder, - com.google.cloud.automl.v1.DatasetOrBuilder> - datasetsBuilder_; + com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> datasetsBuilder_; /** - * - * *
      * The datasets read.
      * 
@@ -655,8 +603,6 @@ public java.util.List getDatasetsList() { } } /** - * - * *
      * The datasets read.
      * 
@@ -671,8 +617,6 @@ public int getDatasetsCount() { } } /** - * - * *
      * The datasets read.
      * 
@@ -687,15 +631,14 @@ public com.google.cloud.automl.v1.Dataset getDatasets(int index) { } } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public Builder setDatasets(int index, com.google.cloud.automl.v1.Dataset value) { + public Builder setDatasets( + int index, com.google.cloud.automl.v1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -709,8 +652,6 @@ public Builder setDatasets(int index, com.google.cloud.automl.v1.Dataset value) return this; } /** - * - * *
      * The datasets read.
      * 
@@ -729,8 +670,6 @@ public Builder setDatasets( return this; } /** - * - * *
      * The datasets read.
      * 
@@ -751,15 +690,14 @@ public Builder addDatasets(com.google.cloud.automl.v1.Dataset value) { return this; } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public Builder addDatasets(int index, com.google.cloud.automl.v1.Dataset value) { + public Builder addDatasets( + int index, com.google.cloud.automl.v1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -773,15 +711,14 @@ public Builder addDatasets(int index, com.google.cloud.automl.v1.Dataset value) return this; } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public Builder addDatasets(com.google.cloud.automl.v1.Dataset.Builder builderForValue) { + public Builder addDatasets( + com.google.cloud.automl.v1.Dataset.Builder builderForValue) { if (datasetsBuilder_ == null) { ensureDatasetsIsMutable(); datasets_.add(builderForValue.build()); @@ -792,8 +729,6 @@ public Builder addDatasets(com.google.cloud.automl.v1.Dataset.Builder builderFor return this; } /** - * - * *
      * The datasets read.
      * 
@@ -812,8 +747,6 @@ public Builder addDatasets( return this; } /** - * - * *
      * The datasets read.
      * 
@@ -824,7 +757,8 @@ public Builder addAllDatasets( java.lang.Iterable values) { if (datasetsBuilder_ == null) { ensureDatasetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, datasets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, datasets_); onChanged(); } else { datasetsBuilder_.addAllMessages(values); @@ -832,8 +766,6 @@ public Builder addAllDatasets( return this; } /** - * - * *
      * The datasets read.
      * 
@@ -851,8 +783,6 @@ public Builder clearDatasets() { return this; } /** - * - * *
      * The datasets read.
      * 
@@ -870,44 +800,39 @@ public Builder removeDatasets(int index) { return this; } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1.Dataset.Builder getDatasetsBuilder(int index) { + public com.google.cloud.automl.v1.Dataset.Builder getDatasetsBuilder( + int index) { return getDatasetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder(int index) { + public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder( + int index) { if (datasetsBuilder_ == null) { - return datasets_.get(index); - } else { + return datasets_.get(index); } else { return datasetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public java.util.List - getDatasetsOrBuilderList() { + public java.util.List + getDatasetsOrBuilderList() { if (datasetsBuilder_ != null) { return datasetsBuilder_.getMessageOrBuilderList(); } else { @@ -915,8 +840,6 @@ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder(int inde } } /** - * - * *
      * The datasets read.
      * 
@@ -924,47 +847,42 @@ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder(int inde * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ public com.google.cloud.automl.v1.Dataset.Builder addDatasetsBuilder() { - return getDatasetsFieldBuilder() - .addBuilder(com.google.cloud.automl.v1.Dataset.getDefaultInstance()); + return getDatasetsFieldBuilder().addBuilder( + com.google.cloud.automl.v1.Dataset.getDefaultInstance()); } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1.Dataset.Builder addDatasetsBuilder(int index) { - return getDatasetsFieldBuilder() - .addBuilder(index, com.google.cloud.automl.v1.Dataset.getDefaultInstance()); + public com.google.cloud.automl.v1.Dataset.Builder addDatasetsBuilder( + int index) { + return getDatasetsFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1.Dataset.getDefaultInstance()); } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public java.util.List getDatasetsBuilderList() { + public java.util.List + getDatasetsBuilderList() { return getDatasetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, - com.google.cloud.automl.v1.Dataset.Builder, - com.google.cloud.automl.v1.DatasetOrBuilder> + com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> getDatasetsFieldBuilder() { if (datasetsBuilder_ == null) { - datasetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, - com.google.cloud.automl.v1.Dataset.Builder, - com.google.cloud.automl.v1.DatasetOrBuilder>( - datasets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + datasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder>( + datasets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); datasets_ = null; } return datasetsBuilder_; @@ -972,21 +890,19 @@ public java.util.List getDatasetsBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -995,22 +911,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1018,71 +933,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1092,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListDatasetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListDatasetsResponse) private static final com.google.cloud.automl.v1.ListDatasetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListDatasetsResponse(); } @@ -1106,16 +1014,16 @@ public static com.google.cloud.automl.v1.ListDatasetsResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDatasetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ListDatasetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java index 04048ce43..438c807d1 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListDatasetsResponseOrBuilder - extends +public interface ListDatasetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListDatasetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - java.util.List getDatasetsList(); + java.util.List + getDatasetsList(); /** - * - * *
    * The datasets read.
    * 
@@ -44,8 +25,6 @@ public interface ListDatasetsResponseOrBuilder */ com.google.cloud.automl.v1.Dataset getDatasets(int index); /** - * - * *
    * The datasets read.
    * 
@@ -54,50 +33,43 @@ public interface ListDatasetsResponseOrBuilder */ int getDatasetsCount(); /** - * - * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - java.util.List getDatasetsOrBuilderList(); + java.util.List + getDatasetsOrBuilderList(); /** - * - * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder(int index); + com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java similarity index 73% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java index a046f6c20..3849bc9d7 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelEvaluationsRequest} */ -public final class ListModelEvaluationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListModelEvaluationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListModelEvaluationsRequest) ListModelEvaluationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListModelEvaluationsRequest.newBuilder() to construct. private ListModelEvaluationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListModelEvaluationsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListModelEvaluationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListModelEvaluationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListModelEvaluationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,81 +55,71 @@ private ListModelEvaluationsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + 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(); + filter_ = s; + break; + } + case 32: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, - com.google.cloud.automl.v1.ListModelEvaluationsRequest.Builder.class); + com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, com.google.cloud.automl.v1.ListModelEvaluationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -155,33 +128,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -192,8 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * Required. An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -206,7 +175,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -215,15 +183,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -236,15 +203,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -255,14 +223,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * Requested page size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -273,8 +238,6 @@ public int getPageSize() { 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 via
@@ -283,7 +246,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -292,15 +254,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 via
@@ -309,15 +270,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -326,7 +288,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,7 +299,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -367,7 +329,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -380,18 +343,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListModelEvaluationsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListModelEvaluationsRequest other = - (com.google.cloud.automl.v1.ListModelEvaluationsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.automl.v1.ListModelEvaluationsRequest other = (com.google.cloud.automl.v1.ListModelEvaluationsRequest) obj; + + if (!getParent() + .equals(other.getParent())) 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; } @@ -417,127 +383,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListModelEvaluationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest 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.v1.ListModelEvaluationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ListModelEvaluationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ListModelEvaluationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelEvaluationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListModelEvaluationsRequest) com.google.cloud.automl.v1.ListModelEvaluationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, - com.google.cloud.automl.v1.ListModelEvaluationsRequest.Builder.class); + com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, com.google.cloud.automl.v1.ListModelEvaluationsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.ListModelEvaluationsRequest.newBuilder() @@ -545,15 +501,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override @@ -590,8 +547,7 @@ public com.google.cloud.automl.v1.ListModelEvaluationsRequest build() { @java.lang.Override public com.google.cloud.automl.v1.ListModelEvaluationsRequest buildPartial() { - com.google.cloud.automl.v1.ListModelEvaluationsRequest result = - new com.google.cloud.automl.v1.ListModelEvaluationsRequest(this); + com.google.cloud.automl.v1.ListModelEvaluationsRequest result = new com.google.cloud.automl.v1.ListModelEvaluationsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -604,39 +560,38 @@ public com.google.cloud.automl.v1.ListModelEvaluationsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListModelEvaluationsRequest) { - return mergeFrom((com.google.cloud.automl.v1.ListModelEvaluationsRequest) other); + return mergeFrom((com.google.cloud.automl.v1.ListModelEvaluationsRequest)other); } else { super.mergeFrom(other); return this; @@ -644,8 +599,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ListModelEvaluationsRequest other) { - if (other == com.google.cloud.automl.v1.ListModelEvaluationsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ListModelEvaluationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -680,8 +634,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ListModelEvaluationsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ListModelEvaluationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -693,24 +646,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -719,25 +668,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -745,73 +691,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -819,8 +752,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -833,13 +764,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -848,8 +779,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -862,14 +791,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -877,8 +807,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -891,22 +819,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Required. An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -919,18 +845,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Required. An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -943,31 +866,28 @@ public Builder clearFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -975,36 +895,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1012,8 +926,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1022,13 +934,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1037,8 +949,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1047,14 +957,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1062,8 +973,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1072,22 +981,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1096,18 +1003,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1116,23 +1020,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1142,12 +1046,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListModelEvaluationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListModelEvaluationsRequest) private static final com.google.cloud.automl.v1.ListModelEvaluationsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListModelEvaluationsRequest(); } @@ -1156,16 +1060,16 @@ public static com.google.cloud.automl.v1.ListModelEvaluationsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelEvaluationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelEvaluationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelEvaluationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelEvaluationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1180,4 +1084,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1.ListModelEvaluationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java index 9a12d5b14..288df54fa 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListModelEvaluationsRequestOrBuilder - extends +public interface ListModelEvaluationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListModelEvaluationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -71,13 +44,10 @@ public interface ListModelEvaluationsRequestOrBuilder
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -90,27 +60,22 @@ public interface ListModelEvaluationsRequestOrBuilder
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Requested page size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
@@ -119,13 +84,10 @@ public interface ListModelEvaluationsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
@@ -134,8 +96,8 @@ public interface ListModelEvaluationsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java similarity index 75% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java index 5e0c1713b..95a9578cd 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelEvaluationsResponse} */ -public final class ListModelEvaluationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListModelEvaluationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListModelEvaluationsResponse) ListModelEvaluationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListModelEvaluationsResponse.newBuilder() to construct. private ListModelEvaluationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListModelEvaluationsResponse() { modelEvaluation_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListModelEvaluationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListModelEvaluationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListModelEvaluationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,38 +55,35 @@ private ListModelEvaluationsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - modelEvaluation_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - modelEvaluation_.add( - input.readMessage( - com.google.cloud.automl.v1.ModelEvaluation.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + modelEvaluation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + modelEvaluation_.add( + input.readMessage(com.google.cloud.automl.v1.ModelEvaluation.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { modelEvaluation_ = java.util.Collections.unmodifiableList(modelEvaluation_); @@ -112,27 +92,22 @@ private ListModelEvaluationsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, - com.google.cloud.automl.v1.ListModelEvaluationsResponse.Builder.class); + com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, com.google.cloud.automl.v1.ListModelEvaluationsResponse.Builder.class); } public static final int MODEL_EVALUATION_FIELD_NUMBER = 1; private java.util.List modelEvaluation_; /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -144,8 +119,6 @@ public java.util.List getModelEvalua return modelEvaluation_; } /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -153,13 +126,11 @@ public java.util.List getModelEvalua * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ @java.lang.Override - public java.util.List + public java.util.List getModelEvaluationOrBuilderList() { return modelEvaluation_; } /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -171,8 +142,6 @@ public int getModelEvaluationCount() { return modelEvaluation_.size(); } /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -184,8 +153,6 @@ public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation(int index) return modelEvaluation_.get(index); } /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -201,8 +168,6 @@ public com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrB 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 the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -210,7 +175,6 @@ public com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrB
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,15 +183,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -235,15 +198,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -252,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < modelEvaluation_.size(); i++) { output.writeMessage(1, modelEvaluation_.get(i)); } @@ -281,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < modelEvaluation_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, modelEvaluation_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, modelEvaluation_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -294,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListModelEvaluationsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListModelEvaluationsResponse other = - (com.google.cloud.automl.v1.ListModelEvaluationsResponse) obj; + com.google.cloud.automl.v1.ListModelEvaluationsResponse other = (com.google.cloud.automl.v1.ListModelEvaluationsResponse) obj; - if (!getModelEvaluationList().equals(other.getModelEvaluationList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getModelEvaluationList() + .equals(other.getModelEvaluationList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListModelEvaluationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse 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.v1.ListModelEvaluationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.ListModelEvaluationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.ListModelEvaluationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelEvaluationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListModelEvaluationsResponse) com.google.cloud.automl.v1.ListModelEvaluationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, - com.google.cloud.automl.v1.ListModelEvaluationsResponse.Builder.class); + com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, com.google.cloud.automl.v1.ListModelEvaluationsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1.ListModelEvaluationsResponse.newBuilder() @@ -455,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getModelEvaluationFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override @@ -502,8 +458,7 @@ public com.google.cloud.automl.v1.ListModelEvaluationsResponse build() { @java.lang.Override public com.google.cloud.automl.v1.ListModelEvaluationsResponse buildPartial() { - com.google.cloud.automl.v1.ListModelEvaluationsResponse result = - new com.google.cloud.automl.v1.ListModelEvaluationsResponse(this); + com.google.cloud.automl.v1.ListModelEvaluationsResponse result = new com.google.cloud.automl.v1.ListModelEvaluationsResponse(this); int from_bitField0_ = bitField0_; if (modelEvaluationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -523,39 +478,38 @@ public com.google.cloud.automl.v1.ListModelEvaluationsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListModelEvaluationsResponse) { - return mergeFrom((com.google.cloud.automl.v1.ListModelEvaluationsResponse) other); + return mergeFrom((com.google.cloud.automl.v1.ListModelEvaluationsResponse)other); } else { super.mergeFrom(other); return this; @@ -563,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ListModelEvaluationsResponse other) { - if (other == com.google.cloud.automl.v1.ListModelEvaluationsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ListModelEvaluationsResponse.getDefaultInstance()) return this; if (modelEvaluationBuilder_ == null) { if (!other.modelEvaluation_.isEmpty()) { if (modelEvaluation_.isEmpty()) { @@ -583,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ListModelEvaluationsResponse modelEvaluationBuilder_ = null; modelEvaluation_ = other.modelEvaluation_; bitField0_ = (bitField0_ & ~0x00000001); - modelEvaluationBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getModelEvaluationFieldBuilder() - : null; + modelEvaluationBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getModelEvaluationFieldBuilder() : null; } else { modelEvaluationBuilder_.addAllMessages(other.modelEvaluation_); } @@ -615,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ListModelEvaluationsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ListModelEvaluationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List modelEvaluation_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureModelEvaluationIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - modelEvaluation_ = - new java.util.ArrayList(modelEvaluation_); + modelEvaluation_ = new java.util.ArrayList(modelEvaluation_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ModelEvaluation, - com.google.cloud.automl.v1.ModelEvaluation.Builder, - com.google.cloud.automl.v1.ModelEvaluationOrBuilder> - modelEvaluationBuilder_; + com.google.cloud.automl.v1.ModelEvaluation, com.google.cloud.automl.v1.ModelEvaluation.Builder, com.google.cloud.automl.v1.ModelEvaluationOrBuilder> modelEvaluationBuilder_; /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -662,8 +605,6 @@ public java.util.List getModelEvalua } } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -678,8 +619,6 @@ public int getModelEvaluationCount() { } } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -694,15 +633,14 @@ public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation(int index) } } /** - * - * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public Builder setModelEvaluation(int index, com.google.cloud.automl.v1.ModelEvaluation value) { + public Builder setModelEvaluation( + int index, com.google.cloud.automl.v1.ModelEvaluation value) { if (modelEvaluationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -716,8 +654,6 @@ public Builder setModelEvaluation(int index, com.google.cloud.automl.v1.ModelEva return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -736,8 +672,6 @@ public Builder setModelEvaluation( return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -758,15 +692,14 @@ public Builder addModelEvaluation(com.google.cloud.automl.v1.ModelEvaluation val return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public Builder addModelEvaluation(int index, com.google.cloud.automl.v1.ModelEvaluation value) { + public Builder addModelEvaluation( + int index, com.google.cloud.automl.v1.ModelEvaluation value) { if (modelEvaluationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -780,8 +713,6 @@ public Builder addModelEvaluation(int index, com.google.cloud.automl.v1.ModelEva return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -800,8 +731,6 @@ public Builder addModelEvaluation( return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -820,8 +749,6 @@ public Builder addModelEvaluation( return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -832,7 +759,8 @@ public Builder addAllModelEvaluation( java.lang.Iterable values) { if (modelEvaluationBuilder_ == null) { ensureModelEvaluationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modelEvaluation_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modelEvaluation_); onChanged(); } else { modelEvaluationBuilder_.addAllMessages(values); @@ -840,8 +768,6 @@ public Builder addAllModelEvaluation( return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -859,8 +785,6 @@ public Builder clearModelEvaluation() { return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -878,20 +802,17 @@ public Builder removeModelEvaluation(int index) { return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public com.google.cloud.automl.v1.ModelEvaluation.Builder getModelEvaluationBuilder(int index) { + public com.google.cloud.automl.v1.ModelEvaluation.Builder getModelEvaluationBuilder( + int index) { return getModelEvaluationFieldBuilder().getBuilder(index); } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -901,22 +822,19 @@ public com.google.cloud.automl.v1.ModelEvaluation.Builder getModelEvaluationBuil public com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder( int index) { if (modelEvaluationBuilder_ == null) { - return modelEvaluation_.get(index); - } else { + return modelEvaluation_.get(index); } else { return modelEvaluationBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public java.util.List - getModelEvaluationOrBuilderList() { + public java.util.List + getModelEvaluationOrBuilderList() { if (modelEvaluationBuilder_ != null) { return modelEvaluationBuilder_.getMessageOrBuilderList(); } else { @@ -924,8 +842,6 @@ public com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrB } } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -933,47 +849,38 @@ public com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrB * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ public com.google.cloud.automl.v1.ModelEvaluation.Builder addModelEvaluationBuilder() { - return getModelEvaluationFieldBuilder() - .addBuilder(com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance()); + return getModelEvaluationFieldBuilder().addBuilder( + com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance()); } /** - * - * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public com.google.cloud.automl.v1.ModelEvaluation.Builder addModelEvaluationBuilder(int index) { - return getModelEvaluationFieldBuilder() - .addBuilder(index, com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance()); + public com.google.cloud.automl.v1.ModelEvaluation.Builder addModelEvaluationBuilder( + int index) { + return getModelEvaluationFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance()); } /** - * - * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public java.util.List - getModelEvaluationBuilderList() { + public java.util.List + getModelEvaluationBuilderList() { return getModelEvaluationFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ModelEvaluation, - com.google.cloud.automl.v1.ModelEvaluation.Builder, - com.google.cloud.automl.v1.ModelEvaluationOrBuilder> + com.google.cloud.automl.v1.ModelEvaluation, com.google.cloud.automl.v1.ModelEvaluation.Builder, com.google.cloud.automl.v1.ModelEvaluationOrBuilder> getModelEvaluationFieldBuilder() { if (modelEvaluationBuilder_ == null) { - modelEvaluationBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ModelEvaluation, - com.google.cloud.automl.v1.ModelEvaluation.Builder, - com.google.cloud.automl.v1.ModelEvaluationOrBuilder>( + modelEvaluationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.ModelEvaluation, com.google.cloud.automl.v1.ModelEvaluation.Builder, com.google.cloud.automl.v1.ModelEvaluationOrBuilder>( modelEvaluation_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -985,8 +892,6 @@ public com.google.cloud.automl.v1.ModelEvaluation.Builder addModelEvaluationBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -994,13 +899,13 @@ public com.google.cloud.automl.v1.ModelEvaluation.Builder addModelEvaluationBuil
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1009,8 +914,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -1018,14 +921,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1033,8 +937,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -1042,22 +944,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -1065,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -1084,23 +981,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1110,12 +1007,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListModelEvaluationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListModelEvaluationsResponse) private static final com.google.cloud.automl.v1.ListModelEvaluationsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListModelEvaluationsResponse(); } @@ -1124,16 +1021,16 @@ public static com.google.cloud.automl.v1.ListModelEvaluationsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelEvaluationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelEvaluationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelEvaluationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelEvaluationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.ListModelEvaluationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java index 6c7601bd2..339718202 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListModelEvaluationsResponseOrBuilder - extends +public interface ListModelEvaluationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListModelEvaluationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - java.util.List getModelEvaluationList(); + java.util.List + getModelEvaluationList(); /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -44,8 +25,6 @@ public interface ListModelEvaluationsResponseOrBuilder */ com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation(int index); /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -54,30 +33,25 @@ public interface ListModelEvaluationsResponseOrBuilder */ int getModelEvaluationCount(); /** - * - * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - java.util.List + java.util.List getModelEvaluationOrBuilderList(); /** - * - * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder(int index); + com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -85,13 +59,10 @@ public interface ListModelEvaluationsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -99,8 +70,8 @@ public interface ListModelEvaluationsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java similarity index 70% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java index 369143556..c54ae19ab 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelsRequest} */ -public final class ListModelsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListModelsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListModelsRequest) ListModelsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListModelsRequest.newBuilder() to construct. private ListModelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListModelsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListModelsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListModelsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListModelsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,79 +55,69 @@ private ListModelsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + 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(); + filter_ = s; + break; + } + case 32: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelsRequest.class, - com.google.cloud.automl.v1.ListModelsRequest.Builder.class); + com.google.cloud.automl.v1.ListModelsRequest.class, com.google.cloud.automl.v1.ListModelsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,31 +126,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,20 +159,17 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
-   *             video_classification_model_metadata:*).
+   *             `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.
+   *                                      `image_classification_model_metadata`.
    *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -210,35 +178,35 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
-   *             video_classification_model_metadata:*).
+   *             `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.
+   *                                      `image_classification_model_metadata`.
    *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -249,14 +217,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * Requested page size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -267,8 +232,6 @@ public int getPageSize() { 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 via
@@ -277,7 +240,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -286,15 +248,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 via
@@ -303,15 +264,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -320,7 +282,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -361,7 +323,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -374,18 +337,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListModelsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListModelsRequest other = - (com.google.cloud.automl.v1.ListModelsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.automl.v1.ListModelsRequest other = (com.google.cloud.automl.v1.ListModelsRequest) obj; + + if (!getParent() + .equals(other.getParent())) 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; } @@ -410,127 +376,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ListModelsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListModelsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelsRequest 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.v1.ListModelsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ListModelsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ListModelsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ListModelsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListModelsRequest) com.google.cloud.automl.v1.ListModelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelsRequest.class, - com.google.cloud.automl.v1.ListModelsRequest.Builder.class); + com.google.cloud.automl.v1.ListModelsRequest.class, com.google.cloud.automl.v1.ListModelsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.ListModelsRequest.newBuilder() @@ -538,15 +495,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -562,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; } @java.lang.Override @@ -583,8 +541,7 @@ public com.google.cloud.automl.v1.ListModelsRequest build() { @java.lang.Override public com.google.cloud.automl.v1.ListModelsRequest buildPartial() { - com.google.cloud.automl.v1.ListModelsRequest result = - new com.google.cloud.automl.v1.ListModelsRequest(this); + com.google.cloud.automl.v1.ListModelsRequest result = new com.google.cloud.automl.v1.ListModelsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -597,39 +554,38 @@ public com.google.cloud.automl.v1.ListModelsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListModelsRequest) { - return mergeFrom((com.google.cloud.automl.v1.ListModelsRequest) other); + return mergeFrom((com.google.cloud.automl.v1.ListModelsRequest)other); } else { super.mergeFrom(other); return this; @@ -684,22 +640,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -708,23 +660,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -732,67 +681,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -800,26 +736,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
-     *             video_classification_model_metadata:*).
+     *             `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.
+     *                                      `image_classification_model_metadata`.
      *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; - * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -828,27 +762,26 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
-     *             video_classification_model_metadata:*).
+     *             `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.
+     *                                      `image_classification_model_metadata`.
      *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -856,94 +789,84 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
-     *             video_classification_model_metadata:*).
+     *             `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.
+     *                                      `image_classification_model_metadata`.
      *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
-     *             video_classification_model_metadata:*).
+     *             `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.
+     *                                      `image_classification_model_metadata`.
      *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
-     *             video_classification_model_metadata:*).
+     *             `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.
+     *                                      `image_classification_model_metadata`.
      *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -951,36 +874,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -988,8 +905,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -998,13 +913,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1013,8 +928,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1023,14 +936,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1038,8 +952,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1048,22 +960,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1072,18 +982,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1092,23 +999,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1118,12 +1025,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListModelsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListModelsRequest) private static final com.google.cloud.automl.v1.ListModelsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListModelsRequest(); } @@ -1132,16 +1039,16 @@ public static com.google.cloud.automl.v1.ListModelsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1156,4 +1063,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ListModelsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java index 92546f334..d38dea72d 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java @@ -1,110 +1,75 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListModelsRequestOrBuilder - extends +public interface ListModelsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListModelsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
-   *             video_classification_model_metadata:*).
+   *             `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.
+   *                                      `image_classification_model_metadata`.
    *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
-   *             video_classification_model_metadata:*).
+   *             `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.
+   *                                      `image_classification_model_metadata`.
    *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Requested page size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -113,13 +78,10 @@ public interface ListModelsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -128,8 +90,8 @@ public interface ListModelsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java similarity index 74% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java index c667c5cd0..8e2ad3fae 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Response message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelsResponse} */ -public final class ListModelsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListModelsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListModelsResponse) ListModelsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListModelsResponse.newBuilder() to construct. private ListModelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListModelsResponse() { model_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListModelsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListModelsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListModelsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListModelsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - model_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - model_.add( - input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + model_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + model_.add( + input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { model_ = java.util.Collections.unmodifiableList(model_); @@ -110,27 +92,22 @@ private ListModelsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelsResponse.class, - com.google.cloud.automl.v1.ListModelsResponse.Builder.class); + com.google.cloud.automl.v1.ListModelsResponse.class, com.google.cloud.automl.v1.ListModelsResponse.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private java.util.List model_; /** - * - * *
    * List of models in the requested page.
    * 
@@ -142,8 +119,6 @@ public java.util.List getModelList() { return model_; } /** - * - * *
    * List of models in the requested page.
    * 
@@ -151,13 +126,11 @@ public java.util.List getModelList() { * repeated .google.cloud.automl.v1.Model model = 1; */ @java.lang.Override - public java.util.List + public java.util.List getModelOrBuilderList() { return model_; } /** - * - * *
    * List of models in the requested page.
    * 
@@ -169,8 +142,6 @@ public int getModelCount() { return model_.size(); } /** - * - * *
    * List of models in the requested page.
    * 
@@ -182,8 +153,6 @@ public com.google.cloud.automl.v1.Model getModel(int index) { return model_.get(index); } /** - * - * *
    * List of models in the requested page.
    * 
@@ -191,22 +160,20 @@ public com.google.cloud.automl.v1.Model getModel(int index) { * repeated .google.cloud.automl.v1.Model model = 1; */ @java.lang.Override - public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder(int index) { + public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder( + int index) { return model_.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 [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -215,30 +182,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -247,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +225,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < model_.size(); i++) { output.writeMessage(1, model_.get(i)); } @@ -276,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < model_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, model_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, model_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -289,16 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListModelsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListModelsResponse other = - (com.google.cloud.automl.v1.ListModelsResponse) obj; + com.google.cloud.automl.v1.ListModelsResponse other = (com.google.cloud.automl.v1.ListModelsResponse) obj; - if (!getModelList().equals(other.getModelList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getModelList() + .equals(other.getModelList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,127 +290,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ListModelsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListModelsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelsResponse 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.v1.ListModelsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ListModelsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ListModelsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ListModelsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListModelsResponse) com.google.cloud.automl.v1.ListModelsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelsResponse.class, - com.google.cloud.automl.v1.ListModelsResponse.Builder.class); + com.google.cloud.automl.v1.ListModelsResponse.class, com.google.cloud.automl.v1.ListModelsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1.ListModelsResponse.newBuilder() @@ -449,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getModelFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; } @java.lang.Override @@ -496,8 +456,7 @@ public com.google.cloud.automl.v1.ListModelsResponse build() { @java.lang.Override public com.google.cloud.automl.v1.ListModelsResponse buildPartial() { - com.google.cloud.automl.v1.ListModelsResponse result = - new com.google.cloud.automl.v1.ListModelsResponse(this); + com.google.cloud.automl.v1.ListModelsResponse result = new com.google.cloud.automl.v1.ListModelsResponse(this); int from_bitField0_ = bitField0_; if (modelBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -517,39 +476,38 @@ public com.google.cloud.automl.v1.ListModelsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListModelsResponse) { - return mergeFrom((com.google.cloud.automl.v1.ListModelsResponse) other); + return mergeFrom((com.google.cloud.automl.v1.ListModelsResponse)other); } else { super.mergeFrom(other); return this; @@ -576,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ListModelsResponse other) { modelBuilder_ = null; model_ = other.model_; bitField0_ = (bitField0_ & ~0x00000001); - modelBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getModelFieldBuilder() - : null; + modelBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getModelFieldBuilder() : null; } else { modelBuilder_.addAllMessages(other.model_); } @@ -617,28 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List model_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureModelIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { model_ = new java.util.ArrayList(model_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Model, - com.google.cloud.automl.v1.Model.Builder, - com.google.cloud.automl.v1.ModelOrBuilder> - modelBuilder_; + com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> modelBuilder_; /** - * - * *
      * List of models in the requested page.
      * 
@@ -653,8 +603,6 @@ public java.util.List getModelList() { } } /** - * - * *
      * List of models in the requested page.
      * 
@@ -669,8 +617,6 @@ public int getModelCount() { } } /** - * - * *
      * List of models in the requested page.
      * 
@@ -685,15 +631,14 @@ public com.google.cloud.automl.v1.Model getModel(int index) { } } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public Builder setModel(int index, com.google.cloud.automl.v1.Model value) { + public Builder setModel( + int index, com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -707,15 +652,14 @@ public Builder setModel(int index, com.google.cloud.automl.v1.Model value) { return this; } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public Builder setModel(int index, com.google.cloud.automl.v1.Model.Builder builderForValue) { + public Builder setModel( + int index, com.google.cloud.automl.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { ensureModelIsMutable(); model_.set(index, builderForValue.build()); @@ -726,8 +670,6 @@ public Builder setModel(int index, com.google.cloud.automl.v1.Model.Builder buil return this; } /** - * - * *
      * List of models in the requested page.
      * 
@@ -748,15 +690,14 @@ public Builder addModel(com.google.cloud.automl.v1.Model value) { return this; } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public Builder addModel(int index, com.google.cloud.automl.v1.Model value) { + public Builder addModel( + int index, com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -770,15 +711,14 @@ public Builder addModel(int index, com.google.cloud.automl.v1.Model value) { return this; } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public Builder addModel(com.google.cloud.automl.v1.Model.Builder builderForValue) { + public Builder addModel( + com.google.cloud.automl.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { ensureModelIsMutable(); model_.add(builderForValue.build()); @@ -789,15 +729,14 @@ public Builder addModel(com.google.cloud.automl.v1.Model.Builder builderForValue return this; } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public Builder addModel(int index, com.google.cloud.automl.v1.Model.Builder builderForValue) { + public Builder addModel( + int index, com.google.cloud.automl.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { ensureModelIsMutable(); model_.add(index, builderForValue.build()); @@ -808,8 +747,6 @@ public Builder addModel(int index, com.google.cloud.automl.v1.Model.Builder buil return this; } /** - * - * *
      * List of models in the requested page.
      * 
@@ -820,7 +757,8 @@ public Builder addAllModel( java.lang.Iterable values) { if (modelBuilder_ == null) { ensureModelIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, model_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, model_); onChanged(); } else { modelBuilder_.addAllMessages(values); @@ -828,8 +766,6 @@ public Builder addAllModel( return this; } /** - * - * *
      * List of models in the requested page.
      * 
@@ -847,8 +783,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * List of models in the requested page.
      * 
@@ -866,44 +800,39 @@ public Builder removeModel(int index) { return this; } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public com.google.cloud.automl.v1.Model.Builder getModelBuilder(int index) { + public com.google.cloud.automl.v1.Model.Builder getModelBuilder( + int index) { return getModelFieldBuilder().getBuilder(index); } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder(int index) { + public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder( + int index) { if (modelBuilder_ == null) { - return model_.get(index); - } else { + return model_.get(index); } else { return modelBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public java.util.List - getModelOrBuilderList() { + public java.util.List + getModelOrBuilderList() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilderList(); } else { @@ -911,8 +840,6 @@ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder(int index) { } } /** - * - * *
      * List of models in the requested page.
      * 
@@ -920,47 +847,42 @@ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder(int index) { * repeated .google.cloud.automl.v1.Model model = 1; */ public com.google.cloud.automl.v1.Model.Builder addModelBuilder() { - return getModelFieldBuilder() - .addBuilder(com.google.cloud.automl.v1.Model.getDefaultInstance()); + return getModelFieldBuilder().addBuilder( + com.google.cloud.automl.v1.Model.getDefaultInstance()); } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public com.google.cloud.automl.v1.Model.Builder addModelBuilder(int index) { - return getModelFieldBuilder() - .addBuilder(index, com.google.cloud.automl.v1.Model.getDefaultInstance()); + public com.google.cloud.automl.v1.Model.Builder addModelBuilder( + int index) { + return getModelFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1.Model.getDefaultInstance()); } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public java.util.List getModelBuilderList() { + public java.util.List + getModelBuilderList() { return getModelFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Model, - com.google.cloud.automl.v1.Model.Builder, - com.google.cloud.automl.v1.ModelOrBuilder> + com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Model, - com.google.cloud.automl.v1.Model.Builder, - com.google.cloud.automl.v1.ModelOrBuilder>( - model_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + modelBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder>( + model_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); model_ = null; } return modelBuilder_; @@ -968,21 +890,19 @@ public java.util.List getModelBuilderL private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -991,22 +911,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1014,71 +933,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1088,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListModelsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListModelsResponse) private static final com.google.cloud.automl.v1.ListModelsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListModelsResponse(); } @@ -1102,16 +1014,16 @@ public static com.google.cloud.automl.v1.ListModelsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ListModelsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java index 1a6badc77..254738a34 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListModelsResponseOrBuilder - extends +public interface ListModelsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListModelsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - java.util.List getModelList(); + java.util.List + getModelList(); /** - * - * *
    * List of models in the requested page.
    * 
@@ -44,8 +25,6 @@ public interface ListModelsResponseOrBuilder */ com.google.cloud.automl.v1.Model getModel(int index); /** - * - * *
    * List of models in the requested page.
    * 
@@ -54,50 +33,43 @@ public interface ListModelsResponseOrBuilder */ int getModelCount(); /** - * - * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - java.util.List getModelOrBuilderList(); + java.util.List + getModelOrBuilderList(); /** - * - * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder(int index); + com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java similarity index 100% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java similarity index 66% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java index 3b6c1d919..f30c54c04 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/model.proto package com.google.cloud.automl.v1; /** - * - * *
  * API proto representing a trained machine learning model.
  * 
* * Protobuf type {@code google.cloud.automl.v1.Model} */ -public final class Model extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Model extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.Model) ModelOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Model.newBuilder() to construct. private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Model() { name_ = ""; displayName_ = ""; @@ -47,15 +29,16 @@ private Model() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Model(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Model( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,262 +58,213 @@ private Model( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - datasetId_ = s; - break; + datasetId_ = s; + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 64: - { - int rawValue = input.readEnum(); - deploymentState_ = rawValue; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 64: { + int rawValue = input.readEnum(); - etag_ = s; - break; + deploymentState_ = rawValue; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 90: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 106: { + com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 13) { + subBuilder = ((com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_).toBuilder(); + } + modelMetadata_ = + input.readMessage(com.google.cloud.automl.v1.ImageClassificationModelMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 13; + break; + } + case 114: { + com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 14) { + subBuilder = ((com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_).toBuilder(); } - case 106: - { - com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 13) { - subBuilder = - ((com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_) - .toBuilder(); - } - modelMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.ImageClassificationModelMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 13; - break; + modelMetadata_ = + input.readMessage(com.google.cloud.automl.v1.TextClassificationModelMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); } - case 114: - { - com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 14) { - subBuilder = - ((com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_) - .toBuilder(); - } - modelMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.TextClassificationModelMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 14; - break; + modelMetadataCase_ = 14; + break; + } + case 122: { + com.google.cloud.automl.v1.TranslationModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 15) { + subBuilder = ((com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_).toBuilder(); + } + modelMetadata_ = + input.readMessage(com.google.cloud.automl.v1.TranslationModelMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 15; + break; + } + case 154: { + com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 19) { + subBuilder = ((com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_).toBuilder(); } - case 122: - { - com.google.cloud.automl.v1.TranslationModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 15) { - subBuilder = - ((com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_) - .toBuilder(); - } - modelMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.TranslationModelMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 15; - break; + modelMetadata_ = + input.readMessage(com.google.cloud.automl.v1.TextExtractionModelMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 19; + break; + } + case 162: { + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 20) { + subBuilder = ((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_).toBuilder(); } - case 154: - { - com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 19) { - subBuilder = - ((com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_) - .toBuilder(); - } - modelMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.TextExtractionModelMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 19; - break; + modelMetadata_ = + input.readMessage(com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); } - case 162: - { - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder subBuilder = - null; - if (modelMetadataCase_ == 20) { - subBuilder = - ((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_) - .toBuilder(); - } - modelMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 20; - break; + modelMetadataCase_ = 20; + break; + } + case 178: { + com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 22) { + subBuilder = ((com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_).toBuilder(); } - case 178: - { - com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 22) { - subBuilder = - ((com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_) - .toBuilder(); - } - modelMetadata_ = - input.readMessage( - com.google.cloud.automl.v1.TextSentimentModelMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 22; - break; + modelMetadata_ = + input.readMessage(com.google.cloud.automl.v1.TextSentimentModelMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); } - case 274: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + modelMetadataCase_ = 22; + break; + } + case 274: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.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); + 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.v1.ModelOuterClass - .internal_static_google_cloud_automl_v1_Model_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 34: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ModelOuterClass - .internal_static_google_cloud_automl_v1_Model_fieldAccessorTable + return com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.automl.v1.Model.class, com.google.cloud.automl.v1.Model.Builder.class); } /** - * - * *
    * Deployment state of the model.
    * 
* * Protobuf enum {@code google.cloud.automl.v1.Model.DeploymentState} */ - public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { + public enum DeploymentState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Should not be used, an un-set enum has this value by default.
      * 
@@ -339,8 +273,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ DEPLOYMENT_STATE_UNSPECIFIED(0), /** - * - * *
      * Model is deployed.
      * 
@@ -349,8 +281,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ DEPLOYED(1), /** - * - * *
      * Model is not deployed.
      * 
@@ -362,8 +292,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Should not be used, an un-set enum has this value by default.
      * 
@@ -372,8 +300,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Model is deployed.
      * 
@@ -382,8 +308,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYED_VALUE = 1; /** - * - * *
      * Model is not deployed.
      * 
@@ -392,6 +316,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNDEPLOYED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -416,42 +341,39 @@ public static DeploymentState valueOf(int value) { */ public static DeploymentState forNumber(int value) { switch (value) { - case 0: - return DEPLOYMENT_STATE_UNSPECIFIED; - case 1: - return DEPLOYED; - case 2: - return UNDEPLOYED; - default: - return null; + case 0: return DEPLOYMENT_STATE_UNSPECIFIED; + case 1: return DEPLOYED; + case 2: return UNDEPLOYED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DeploymentState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeploymentState findValueByNumber(int number) { + return DeploymentState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DeploymentState findValueByNumber(int number) { - return DeploymentState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.automl.v1.Model.getDescriptor().getEnumTypes().get(0); } @@ -460,7 +382,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static DeploymentState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -479,10 +402,8 @@ private DeploymentState(int value) { private int modelMetadataCase_ = 0; private java.lang.Object modelMetadata_; - public enum ModelMetadataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION_MODEL_METADATA(15), IMAGE_CLASSIFICATION_MODEL_METADATA(13), @@ -492,7 +413,6 @@ public enum ModelMetadataCase TEXT_SENTIMENT_MODEL_METADATA(22), MODELMETADATA_NOT_SET(0); private final int value; - private ModelMetadataCase(int value) { this.value = value; } @@ -508,44 +428,34 @@ 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 20: - return IMAGE_OBJECT_DETECTION_MODEL_METADATA; - case 19: - return TEXT_EXTRACTION_MODEL_METADATA; - case 22: - return TEXT_SENTIMENT_MODEL_METADATA; - case 0: - return MODELMETADATA_NOT_SET; - default: - return null; + case 15: return TRANSLATION_MODEL_METADATA; + case 13: return IMAGE_CLASSIFICATION_MODEL_METADATA; + case 14: return TEXT_CLASSIFICATION_MODEL_METADATA; + case 20: return IMAGE_OBJECT_DETECTION_MODEL_METADATA; + case 19: return TEXT_EXTRACTION_MODEL_METADATA; + case 22: return TEXT_SENTIMENT_MODEL_METADATA; + case 0: return MODELMETADATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ModelMetadataCase getModelMetadataCase() { - return ModelMetadataCase.forNumber(modelMetadataCase_); + public ModelMetadataCase + getModelMetadataCase() { + return ModelMetadataCase.forNumber( + modelMetadataCase_); } public static final int TRANSLATION_MODEL_METADATA_FIELD_NUMBER = 15; /** - * - * *
    * Metadata for translation models.
    * 
* * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * * @return Whether the translationModelMetadata field is set. */ @java.lang.Override @@ -553,26 +463,21 @@ public boolean hasTranslationModelMetadata() { return modelMetadataCase_ == 15; } /** - * - * *
    * Metadata for translation models.
    * 
* * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * * @return The translationModelMetadata. */ @java.lang.Override public com.google.cloud.automl.v1.TranslationModelMetadata getTranslationModelMetadata() { if (modelMetadataCase_ == 15) { - return (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for translation models.
    * 
@@ -580,26 +485,20 @@ public com.google.cloud.automl.v1.TranslationModelMetadata getTranslationModelMe * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder - getTranslationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder() { if (modelMetadataCase_ == 15) { - return (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 13; /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return Whether the imageClassificationModelMetadata field is set. */ @java.lang.Override @@ -607,58 +506,42 @@ public boolean hasImageClassificationModelMetadata() { return modelMetadataCase_ == 13; } /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return The imageClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelMetadata - getImageClassificationModelMetadata() { + public com.google.cloud.automl.v1.ImageClassificationModelMetadata getImageClassificationModelMetadata() { if (modelMetadataCase_ == 13) { - return (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder - getImageClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder() { if (modelMetadataCase_ == 13) { - return (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 14; /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return Whether the textClassificationModelMetadata field is set. */ @java.lang.Override @@ -666,58 +549,42 @@ public boolean hasTextClassificationModelMetadata() { return modelMetadataCase_ == 14; } /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return The textClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationModelMetadata - getTextClassificationModelMetadata() { + public com.google.cloud.automl.v1.TextClassificationModelMetadata getTextClassificationModelMetadata() { if (modelMetadataCase_ == 14) { - return (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder - getTextClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder() { if (modelMetadataCase_ == 14) { - return (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance(); } public static final int IMAGE_OBJECT_DETECTION_MODEL_METADATA_FIELD_NUMBER = 20; /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return Whether the imageObjectDetectionModelMetadata field is set. */ @java.lang.Override @@ -725,57 +592,42 @@ public boolean hasImageObjectDetectionModelMetadata() { return modelMetadataCase_ == 20; } /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return The imageObjectDetectionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata - getImageObjectDetectionModelMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata() { if (modelMetadataCase_ == 20) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder - getImageObjectDetectionModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder() { if (modelMetadataCase_ == 20) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } public static final int TEXT_EXTRACTION_MODEL_METADATA_FIELD_NUMBER = 19; /** - * - * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return Whether the textExtractionModelMetadata field is set. */ @java.lang.Override @@ -783,54 +635,42 @@ public boolean hasTextExtractionModelMetadata() { return modelMetadataCase_ == 19; } /** - * - * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return The textExtractionModelMetadata. */ @java.lang.Override public com.google.cloud.automl.v1.TextExtractionModelMetadata getTextExtractionModelMetadata() { if (modelMetadataCase_ == 19) { - return (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder - getTextExtractionModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder() { if (modelMetadataCase_ == 19) { - return (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance(); } public static final int TEXT_SENTIMENT_MODEL_METADATA_FIELD_NUMBER = 22; /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return Whether the textSentimentModelMetadata field is set. */ @java.lang.Override @@ -838,39 +678,31 @@ public boolean hasTextSentimentModelMetadata() { return modelMetadataCase_ == 22; } /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return The textSentimentModelMetadata. */ @java.lang.Override public com.google.cloud.automl.v1.TextSentimentModelMetadata getTextSentimentModelMetadata() { if (modelMetadataCase_ == 22) { - return (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder - getTextSentimentModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder() { if (modelMetadataCase_ == 22) { - return (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance(); } @@ -878,15 +710,12 @@ public com.google.cloud.automl.v1.TextSentimentModelMetadata getTextSentimentMod 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; - * * @return The name. */ @java.lang.Override @@ -895,30 +724,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -929,8 +758,6 @@ public com.google.protobuf.ByteString getNameBytes() { 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
@@ -939,7 +766,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -948,15 +774,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -965,15 +790,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -984,15 +810,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { 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; - * * @return The datasetId. */ @java.lang.Override @@ -1001,30 +824,30 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -1035,14 +858,11 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1050,14 +870,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return The createTime. */ @java.lang.Override @@ -1065,8 +882,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
@@ -1081,14 +896,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1096,14 +908,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ @java.lang.Override @@ -1111,8 +920,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
@@ -1127,53 +934,41 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 8; private int deploymentState_; /** - * - * *
    * Output only. Deployment state of the model. A model can only serve
    * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override - public int getDeploymentStateValue() { + @java.lang.Override public int getDeploymentStateValue() { return deploymentState_; } /** - * - * *
    * Output only. Deployment state of the model. A model can only serve
    * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * * @return The deploymentState. */ - @java.lang.Override - public com.google.cloud.automl.v1.Model.DeploymentState getDeploymentState() { + @java.lang.Override public com.google.cloud.automl.v1.Model.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.Model.DeploymentState result = - com.google.cloud.automl.v1.Model.DeploymentState.valueOf(deploymentState_); + com.google.cloud.automl.v1.Model.DeploymentState result = com.google.cloud.automl.v1.Model.DeploymentState.valueOf(deploymentState_); return result == null ? com.google.cloud.automl.v1.Model.DeploymentState.UNRECOGNIZED : result; } public static final int ETAG_FIELD_NUMBER = 10; private volatile java.lang.Object etag_; /** - * - * *
    * Used to perform a consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 10; - * * @return The etag. */ @java.lang.Override @@ -1182,30 +977,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Used to perform a consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 10; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1214,23 +1009,24 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int LABELS_FIELD_NUMBER = 34; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.automl.v1.ModelOuterClass - .internal_static_google_cloud_automl_v1_Model_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1239,8 +1035,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -1252,22 +1046,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 34;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -1280,12 +1074,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 34;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -1298,16 +1091,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 34;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -1320,11 +1113,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 34;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1332,7 +1126,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1344,7 +1137,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1357,9 +1151,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (createTime_ != null) {
       output.writeMessage(7, getCreateTime());
     }
-    if (deploymentState_
-        != com.google.cloud.automl.v1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED
-            .getNumber()) {
+    if (deploymentState_ != com.google.cloud.automl.v1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(8, deploymentState_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
@@ -1369,30 +1161,29 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
       output.writeMessage(11, getUpdateTime());
     }
     if (modelMetadataCase_ == 13) {
-      output.writeMessage(
-          13, (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_);
+      output.writeMessage(13, (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 14) {
-      output.writeMessage(
-          14, (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_);
+      output.writeMessage(14, (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 15) {
       output.writeMessage(15, (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 19) {
-      output.writeMessage(
-          19, (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_);
+      output.writeMessage(19, (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 20) {
-      output.writeMessage(
-          20, (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_);
+      output.writeMessage(20, (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 22) {
-      output.writeMessage(
-          22, (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_);
-    }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 34);
+      output.writeMessage(22, (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_);
+    }
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        34);
     unknownFields.writeTo(output);
   }
 
@@ -1412,58 +1203,53 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, datasetId_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getCreateTime());
     }
-    if (deploymentState_
-        != com.google.cloud.automl.v1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, deploymentState_);
+    if (deploymentState_ != com.google.cloud.automl.v1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(8, deploymentState_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, etag_);
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(11, getUpdateTime());
     }
     if (modelMetadataCase_ == 13) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              13, (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(13, (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 14) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              14, (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(14, (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 15) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              15, (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(15, (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 19) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              19, (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(19, (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 20) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              20, (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(20, (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 22) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              22, (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(22, (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(34, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1473,32 +1259,39 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.Model)) {
       return super.equals(obj);
     }
     com.google.cloud.automl.v1.Model other = (com.google.cloud.automl.v1.Model) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
-    if (!getDatasetId().equals(other.getDatasetId())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
+    if (!getDatasetId()
+        .equals(other.getDatasetId())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
     if (deploymentState_ != other.deploymentState_) return false;
-    if (!getEtag().equals(other.getEtag())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getEtag()
+        .equals(other.getEtag())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getModelMetadataCase().equals(other.getModelMetadataCase())) return false;
     switch (modelMetadataCase_) {
       case 15:
-        if (!getTranslationModelMetadata().equals(other.getTranslationModelMetadata()))
-          return false;
+        if (!getTranslationModelMetadata()
+            .equals(other.getTranslationModelMetadata())) return false;
         break;
       case 13:
         if (!getImageClassificationModelMetadata()
@@ -1513,12 +1306,12 @@ public boolean equals(final java.lang.Object obj) {
             .equals(other.getImageObjectDetectionModelMetadata())) return false;
         break;
       case 19:
-        if (!getTextExtractionModelMetadata().equals(other.getTextExtractionModelMetadata()))
-          return false;
+        if (!getTextExtractionModelMetadata()
+            .equals(other.getTextExtractionModelMetadata())) return false;
         break;
       case 22:
-        if (!getTextSentimentModelMetadata().equals(other.getTextSentimentModelMetadata()))
-          return false;
+        if (!getTextSentimentModelMetadata()
+            .equals(other.getTextSentimentModelMetadata())) return false;
         break;
       case 0:
       default:
@@ -1589,146 +1382,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.Model parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.Model parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.Model parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.Model parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.automl.v1.Model parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.Model 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.v1.Model parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.Model parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.Model parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.Model parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.Model parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.Model parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.Model parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.Model parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1.Model prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * API proto representing a trained machine learning model.
    * 
* * Protobuf type {@code google.cloud.automl.v1.Model} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.Model) com.google.cloud.automl.v1.ModelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ModelOuterClass - .internal_static_google_cloud_automl_v1_Model_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 34: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 34: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ModelOuterClass - .internal_static_google_cloud_automl_v1_Model_fieldAccessorTable + return com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Model.class, - com.google.cloud.automl.v1.Model.Builder.class); + com.google.cloud.automl.v1.Model.class, com.google.cloud.automl.v1.Model.Builder.class); } // Construct using com.google.cloud.automl.v1.Model.newBuilder() @@ -1736,15 +1523,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1777,9 +1565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ModelOuterClass - .internal_static_google_cloud_automl_v1_Model_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_descriptor; } @java.lang.Override @@ -1868,39 +1656,38 @@ public com.google.cloud.automl.v1.Model buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.Model) { - return mergeFrom((com.google.cloud.automl.v1.Model) other); + return mergeFrom((com.google.cloud.automl.v1.Model)other); } else { super.mergeFrom(other); return this; @@ -1934,42 +1721,36 @@ public Builder mergeFrom(com.google.cloud.automl.v1.Model other) { etag_ = other.etag_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); switch (other.getModelMetadataCase()) { - case TRANSLATION_MODEL_METADATA: - { - mergeTranslationModelMetadata(other.getTranslationModelMetadata()); - break; - } - case IMAGE_CLASSIFICATION_MODEL_METADATA: - { - mergeImageClassificationModelMetadata(other.getImageClassificationModelMetadata()); - break; - } - case TEXT_CLASSIFICATION_MODEL_METADATA: - { - mergeTextClassificationModelMetadata(other.getTextClassificationModelMetadata()); - break; - } - case IMAGE_OBJECT_DETECTION_MODEL_METADATA: - { - mergeImageObjectDetectionModelMetadata(other.getImageObjectDetectionModelMetadata()); - break; - } - case TEXT_EXTRACTION_MODEL_METADATA: - { - mergeTextExtractionModelMetadata(other.getTextExtractionModelMetadata()); - break; - } - case TEXT_SENTIMENT_MODEL_METADATA: - { - mergeTextSentimentModelMetadata(other.getTextSentimentModelMetadata()); - break; - } - case MODELMETADATA_NOT_SET: - { - break; - } + case TRANSLATION_MODEL_METADATA: { + mergeTranslationModelMetadata(other.getTranslationModelMetadata()); + break; + } + case IMAGE_CLASSIFICATION_MODEL_METADATA: { + mergeImageClassificationModelMetadata(other.getImageClassificationModelMetadata()); + break; + } + case TEXT_CLASSIFICATION_MODEL_METADATA: { + mergeTextClassificationModelMetadata(other.getTextClassificationModelMetadata()); + break; + } + case IMAGE_OBJECT_DETECTION_MODEL_METADATA: { + mergeImageObjectDetectionModelMetadata(other.getImageObjectDetectionModelMetadata()); + break; + } + case TEXT_EXTRACTION_MODEL_METADATA: { + mergeTextExtractionModelMetadata(other.getTextExtractionModelMetadata()); + break; + } + case TEXT_SENTIMENT_MODEL_METADATA: { + mergeTextSentimentModelMetadata(other.getTextSentimentModelMetadata()); + break; + } + case MODELMETADATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1999,12 +1780,12 @@ public Builder mergeFrom( } return this; } - private int modelMetadataCase_ = 0; private java.lang.Object modelMetadata_; - - public ModelMetadataCase getModelMetadataCase() { - return ModelMetadataCase.forNumber(modelMetadataCase_); + public ModelMetadataCase + getModelMetadataCase() { + return ModelMetadataCase.forNumber( + modelMetadataCase_); } public Builder clearModelMetadata() { @@ -2017,20 +1798,13 @@ public Builder clearModelMetadata() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationModelMetadata, - com.google.cloud.automl.v1.TranslationModelMetadata.Builder, - com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder> - translationModelMetadataBuilder_; + com.google.cloud.automl.v1.TranslationModelMetadata, com.google.cloud.automl.v1.TranslationModelMetadata.Builder, com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder> translationModelMetadataBuilder_; /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * - * + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; * @return Whether the translationModelMetadata field is set. */ @java.lang.Override @@ -2038,15 +1812,11 @@ public boolean hasTranslationModelMetadata() { return modelMetadataCase_ == 15; } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * - * + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; * @return The translationModelMetadata. */ @java.lang.Override @@ -2064,17 +1834,13 @@ public com.google.cloud.automl.v1.TranslationModelMetadata getTranslationModelMe } } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ - public Builder setTranslationModelMetadata( - com.google.cloud.automl.v1.TranslationModelMetadata value) { + public Builder setTranslationModelMetadata(com.google.cloud.automl.v1.TranslationModelMetadata value) { if (translationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2088,14 +1854,11 @@ public Builder setTranslationModelMetadata( return this; } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ public Builder setTranslationModelMetadata( com.google.cloud.automl.v1.TranslationModelMetadata.Builder builderForValue) { @@ -2109,26 +1872,18 @@ public Builder setTranslationModelMetadata( return this; } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ - public Builder mergeTranslationModelMetadata( - com.google.cloud.automl.v1.TranslationModelMetadata value) { + public Builder mergeTranslationModelMetadata(com.google.cloud.automl.v1.TranslationModelMetadata value) { if (translationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 15 - && modelMetadata_ - != com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance()) { - modelMetadata_ = - com.google.cloud.automl.v1.TranslationModelMetadata.newBuilder( - (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelMetadataCase_ == 15 && + modelMetadata_ != com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance()) { + modelMetadata_ = com.google.cloud.automl.v1.TranslationModelMetadata.newBuilder((com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_) + .mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } @@ -2143,14 +1898,11 @@ public Builder mergeTranslationModelMetadata( return this; } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ public Builder clearTranslationModelMetadata() { if (translationModelMetadataBuilder_ == null) { @@ -2169,32 +1921,24 @@ public Builder clearTranslationModelMetadata() { return this; } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ - public com.google.cloud.automl.v1.TranslationModelMetadata.Builder - getTranslationModelMetadataBuilder() { + public com.google.cloud.automl.v1.TranslationModelMetadata.Builder getTranslationModelMetadataBuilder() { return getTranslationModelMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder - getTranslationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder() { if ((modelMetadataCase_ == 15) && (translationModelMetadataBuilder_ != null)) { return translationModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2205,56 +1949,39 @@ public Builder clearTranslationModelMetadata() { } } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationModelMetadata, - com.google.cloud.automl.v1.TranslationModelMetadata.Builder, - com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder> + com.google.cloud.automl.v1.TranslationModelMetadata, com.google.cloud.automl.v1.TranslationModelMetadata.Builder, com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder> getTranslationModelMetadataFieldBuilder() { if (translationModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 15)) { modelMetadata_ = com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance(); } - translationModelMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationModelMetadata, - com.google.cloud.automl.v1.TranslationModelMetadata.Builder, - com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder>( + translationModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TranslationModelMetadata, com.google.cloud.automl.v1.TranslationModelMetadata.Builder, com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder>( (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 15; - onChanged(); - ; + onChanged();; return translationModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelMetadata, - com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, - com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder> - imageClassificationModelMetadataBuilder_; + com.google.cloud.automl.v1.ImageClassificationModelMetadata, com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder> imageClassificationModelMetadataBuilder_; /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return Whether the imageClassificationModelMetadata field is set. */ @java.lang.Override @@ -2262,21 +1989,15 @@ public boolean hasImageClassificationModelMetadata() { return modelMetadataCase_ == 13; } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return The imageClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelMetadata - getImageClassificationModelMetadata() { + public com.google.cloud.automl.v1.ImageClassificationModelMetadata getImageClassificationModelMetadata() { if (imageClassificationModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 13) { return (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_; @@ -2290,18 +2011,13 @@ public boolean hasImageClassificationModelMetadata() { } } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ - public Builder setImageClassificationModelMetadata( - com.google.cloud.automl.v1.ImageClassificationModelMetadata value) { + public Builder setImageClassificationModelMetadata(com.google.cloud.automl.v1.ImageClassificationModelMetadata value) { if (imageClassificationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2315,15 +2031,11 @@ public Builder setImageClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ public Builder setImageClassificationModelMetadata( com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder builderForValue) { @@ -2337,28 +2049,18 @@ public Builder setImageClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ - public Builder mergeImageClassificationModelMetadata( - com.google.cloud.automl.v1.ImageClassificationModelMetadata value) { + public Builder mergeImageClassificationModelMetadata(com.google.cloud.automl.v1.ImageClassificationModelMetadata value) { if (imageClassificationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 13 - && modelMetadata_ - != com.google.cloud.automl.v1.ImageClassificationModelMetadata - .getDefaultInstance()) { - modelMetadata_ = - com.google.cloud.automl.v1.ImageClassificationModelMetadata.newBuilder( - (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelMetadataCase_ == 13 && + modelMetadata_ != com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance()) { + modelMetadata_ = com.google.cloud.automl.v1.ImageClassificationModelMetadata.newBuilder((com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_) + .mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } @@ -2373,15 +2075,11 @@ public Builder mergeImageClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ public Builder clearImageClassificationModelMetadata() { if (imageClassificationModelMetadataBuilder_ == null) { @@ -2400,34 +2098,24 @@ public Builder clearImageClassificationModelMetadata() { return this; } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ - public com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder - getImageClassificationModelMetadataBuilder() { + public com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder getImageClassificationModelMetadataBuilder() { return getImageClassificationModelMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder - getImageClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder() { if ((modelMetadataCase_ == 13) && (imageClassificationModelMetadataBuilder_ != null)) { return imageClassificationModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2438,58 +2126,39 @@ public Builder clearImageClassificationModelMetadata() { } } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelMetadata, - com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, - com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder> + com.google.cloud.automl.v1.ImageClassificationModelMetadata, com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder> getImageClassificationModelMetadataFieldBuilder() { if (imageClassificationModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 13)) { - modelMetadata_ = - com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance(); + modelMetadata_ = com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance(); } - imageClassificationModelMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelMetadata, - com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, - com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder>( + imageClassificationModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageClassificationModelMetadata, com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder>( (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 13; - onChanged(); - ; + onChanged();; return imageClassificationModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationModelMetadata, - com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, - com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder> - textClassificationModelMetadataBuilder_; + com.google.cloud.automl.v1.TextClassificationModelMetadata, com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder> textClassificationModelMetadataBuilder_; /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return Whether the textClassificationModelMetadata field is set. */ @java.lang.Override @@ -2497,21 +2166,15 @@ public boolean hasTextClassificationModelMetadata() { return modelMetadataCase_ == 14; } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return The textClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationModelMetadata - getTextClassificationModelMetadata() { + public com.google.cloud.automl.v1.TextClassificationModelMetadata getTextClassificationModelMetadata() { if (textClassificationModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 14) { return (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_; @@ -2525,18 +2188,13 @@ public boolean hasTextClassificationModelMetadata() { } } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ - public Builder setTextClassificationModelMetadata( - com.google.cloud.automl.v1.TextClassificationModelMetadata value) { + public Builder setTextClassificationModelMetadata(com.google.cloud.automl.v1.TextClassificationModelMetadata value) { if (textClassificationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2550,15 +2208,11 @@ public Builder setTextClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ public Builder setTextClassificationModelMetadata( com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder builderForValue) { @@ -2572,28 +2226,18 @@ public Builder setTextClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ - public Builder mergeTextClassificationModelMetadata( - com.google.cloud.automl.v1.TextClassificationModelMetadata value) { + public Builder mergeTextClassificationModelMetadata(com.google.cloud.automl.v1.TextClassificationModelMetadata value) { if (textClassificationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 14 - && modelMetadata_ - != com.google.cloud.automl.v1.TextClassificationModelMetadata - .getDefaultInstance()) { - modelMetadata_ = - com.google.cloud.automl.v1.TextClassificationModelMetadata.newBuilder( - (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelMetadataCase_ == 14 && + modelMetadata_ != com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance()) { + modelMetadata_ = com.google.cloud.automl.v1.TextClassificationModelMetadata.newBuilder((com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_) + .mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } @@ -2608,15 +2252,11 @@ public Builder mergeTextClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ public Builder clearTextClassificationModelMetadata() { if (textClassificationModelMetadataBuilder_ == null) { @@ -2635,34 +2275,24 @@ public Builder clearTextClassificationModelMetadata() { return this; } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ - public com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder - getTextClassificationModelMetadataBuilder() { + public com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder getTextClassificationModelMetadataBuilder() { return getTextClassificationModelMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder - getTextClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder() { if ((modelMetadataCase_ == 14) && (textClassificationModelMetadataBuilder_ != null)) { return textClassificationModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2673,58 +2303,39 @@ public Builder clearTextClassificationModelMetadata() { } } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationModelMetadata, - com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, - com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder> + com.google.cloud.automl.v1.TextClassificationModelMetadata, com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder> getTextClassificationModelMetadataFieldBuilder() { if (textClassificationModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 14)) { - modelMetadata_ = - com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance(); + modelMetadata_ = com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance(); } - textClassificationModelMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationModelMetadata, - com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, - com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder>( + textClassificationModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextClassificationModelMetadata, com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder>( (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 14; - onChanged(); - ; + onChanged();; return textClassificationModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder> - imageObjectDetectionModelMetadataBuilder_; + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder> imageObjectDetectionModelMetadataBuilder_; /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return Whether the imageObjectDetectionModelMetadata field is set. */ @java.lang.Override @@ -2732,21 +2343,15 @@ public boolean hasImageObjectDetectionModelMetadata() { return modelMetadataCase_ == 20; } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return The imageObjectDetectionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata - getImageObjectDetectionModelMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata() { if (imageObjectDetectionModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 20) { return (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_; @@ -2760,18 +2365,13 @@ public boolean hasImageObjectDetectionModelMetadata() { } } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ - public Builder setImageObjectDetectionModelMetadata( - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata value) { + public Builder setImageObjectDetectionModelMetadata(com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata value) { if (imageObjectDetectionModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2785,15 +2385,11 @@ public Builder setImageObjectDetectionModelMetadata( return this; } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ public Builder setImageObjectDetectionModelMetadata( com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder builderForValue) { @@ -2807,28 +2403,18 @@ public Builder setImageObjectDetectionModelMetadata( return this; } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ - public Builder mergeImageObjectDetectionModelMetadata( - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata value) { + public Builder mergeImageObjectDetectionModelMetadata(com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata value) { if (imageObjectDetectionModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 20 - && modelMetadata_ - != com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata - .getDefaultInstance()) { - modelMetadata_ = - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.newBuilder( - (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelMetadataCase_ == 20 && + modelMetadata_ != com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance()) { + modelMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.newBuilder((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_) + .mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } @@ -2843,15 +2429,11 @@ public Builder mergeImageObjectDetectionModelMetadata( return this; } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ public Builder clearImageObjectDetectionModelMetadata() { if (imageObjectDetectionModelMetadataBuilder_ == null) { @@ -2870,34 +2452,24 @@ public Builder clearImageObjectDetectionModelMetadata() { return this; } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder - getImageObjectDetectionModelMetadataBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder getImageObjectDetectionModelMetadataBuilder() { return getImageObjectDetectionModelMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder - getImageObjectDetectionModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder() { if ((modelMetadataCase_ == 20) && (imageObjectDetectionModelMetadataBuilder_ != null)) { return imageObjectDetectionModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2908,58 +2480,39 @@ public Builder clearImageObjectDetectionModelMetadata() { } } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder> + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder> getImageObjectDetectionModelMetadataFieldBuilder() { if (imageObjectDetectionModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 20)) { - modelMetadata_ = - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance(); + modelMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } - imageObjectDetectionModelMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder>( + imageObjectDetectionModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder>( (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 20; - onChanged(); - ; + onChanged();; return imageObjectDetectionModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionModelMetadata, - com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, - com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder> - textExtractionModelMetadataBuilder_; + com.google.cloud.automl.v1.TextExtractionModelMetadata, com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder> textExtractionModelMetadataBuilder_; /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return Whether the textExtractionModelMetadata field is set. */ @java.lang.Override @@ -2967,16 +2520,11 @@ public boolean hasTextExtractionModelMetadata() { return modelMetadataCase_ == 19; } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return The textExtractionModelMetadata. */ @java.lang.Override @@ -2994,18 +2542,13 @@ public com.google.cloud.automl.v1.TextExtractionModelMetadata getTextExtractionM } } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ - public Builder setTextExtractionModelMetadata( - com.google.cloud.automl.v1.TextExtractionModelMetadata value) { + public Builder setTextExtractionModelMetadata(com.google.cloud.automl.v1.TextExtractionModelMetadata value) { if (textExtractionModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3019,15 +2562,11 @@ public Builder setTextExtractionModelMetadata( return this; } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ public Builder setTextExtractionModelMetadata( com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder builderForValue) { @@ -3041,27 +2580,18 @@ public Builder setTextExtractionModelMetadata( return this; } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ - public Builder mergeTextExtractionModelMetadata( - com.google.cloud.automl.v1.TextExtractionModelMetadata value) { + public Builder mergeTextExtractionModelMetadata(com.google.cloud.automl.v1.TextExtractionModelMetadata value) { if (textExtractionModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 19 - && modelMetadata_ - != com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance()) { - modelMetadata_ = - com.google.cloud.automl.v1.TextExtractionModelMetadata.newBuilder( - (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelMetadataCase_ == 19 && + modelMetadata_ != com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance()) { + modelMetadata_ = com.google.cloud.automl.v1.TextExtractionModelMetadata.newBuilder((com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_) + .mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } @@ -3076,15 +2606,11 @@ public Builder mergeTextExtractionModelMetadata( return this; } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ public Builder clearTextExtractionModelMetadata() { if (textExtractionModelMetadataBuilder_ == null) { @@ -3103,34 +2629,24 @@ public Builder clearTextExtractionModelMetadata() { return this; } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ - public com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder - getTextExtractionModelMetadataBuilder() { + public com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder getTextExtractionModelMetadataBuilder() { return getTextExtractionModelMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder - getTextExtractionModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder() { if ((modelMetadataCase_ == 19) && (textExtractionModelMetadataBuilder_ != null)) { return textExtractionModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3141,57 +2657,39 @@ public Builder clearTextExtractionModelMetadata() { } } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionModelMetadata, - com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, - com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder> + com.google.cloud.automl.v1.TextExtractionModelMetadata, com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder> getTextExtractionModelMetadataFieldBuilder() { if (textExtractionModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 19)) { - modelMetadata_ = - com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance(); + modelMetadata_ = com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance(); } - textExtractionModelMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionModelMetadata, - com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, - com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder>( + textExtractionModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextExtractionModelMetadata, com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder>( (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 19; - onChanged(); - ; + onChanged();; return textExtractionModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentModelMetadata, - com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, - com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder> - textSentimentModelMetadataBuilder_; + com.google.cloud.automl.v1.TextSentimentModelMetadata, com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder> textSentimentModelMetadataBuilder_; /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return Whether the textSentimentModelMetadata field is set. */ @java.lang.Override @@ -3199,15 +2697,11 @@ public boolean hasTextSentimentModelMetadata() { return modelMetadataCase_ == 22; } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return The textSentimentModelMetadata. */ @java.lang.Override @@ -3225,17 +2719,13 @@ public com.google.cloud.automl.v1.TextSentimentModelMetadata getTextSentimentMod } } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ - public Builder setTextSentimentModelMetadata( - com.google.cloud.automl.v1.TextSentimentModelMetadata value) { + public Builder setTextSentimentModelMetadata(com.google.cloud.automl.v1.TextSentimentModelMetadata value) { if (textSentimentModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3249,14 +2739,11 @@ public Builder setTextSentimentModelMetadata( return this; } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ public Builder setTextSentimentModelMetadata( com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder builderForValue) { @@ -3270,26 +2757,18 @@ public Builder setTextSentimentModelMetadata( return this; } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ - public Builder mergeTextSentimentModelMetadata( - com.google.cloud.automl.v1.TextSentimentModelMetadata value) { + public Builder mergeTextSentimentModelMetadata(com.google.cloud.automl.v1.TextSentimentModelMetadata value) { if (textSentimentModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 22 - && modelMetadata_ - != com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance()) { - modelMetadata_ = - com.google.cloud.automl.v1.TextSentimentModelMetadata.newBuilder( - (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelMetadataCase_ == 22 && + modelMetadata_ != com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance()) { + modelMetadata_ = com.google.cloud.automl.v1.TextSentimentModelMetadata.newBuilder((com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_) + .mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } @@ -3304,14 +2783,11 @@ public Builder mergeTextSentimentModelMetadata( return this; } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ public Builder clearTextSentimentModelMetadata() { if (textSentimentModelMetadataBuilder_ == null) { @@ -3330,32 +2806,24 @@ public Builder clearTextSentimentModelMetadata() { return this; } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ - public com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder - getTextSentimentModelMetadataBuilder() { + public com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder getTextSentimentModelMetadataBuilder() { return getTextSentimentModelMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder - getTextSentimentModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder() { if ((modelMetadataCase_ == 22) && (textSentimentModelMetadataBuilder_ != null)) { return textSentimentModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3366,58 +2834,46 @@ public Builder clearTextSentimentModelMetadata() { } } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentModelMetadata, - com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, - com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder> + com.google.cloud.automl.v1.TextSentimentModelMetadata, com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder> getTextSentimentModelMetadataFieldBuilder() { if (textSentimentModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 22)) { - modelMetadata_ = - com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance(); + modelMetadata_ = com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance(); } - textSentimentModelMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentModelMetadata, - com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, - com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder>( + textSentimentModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSentimentModelMetadata, com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder>( (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 22; - onChanged(); - ; + onChanged();; return textSentimentModelMetadataBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3426,22 +2882,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3449,64 +2904,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3514,8 +2962,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private 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
@@ -3524,13 +2970,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3539,8 +2985,6 @@ 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
@@ -3549,14 +2993,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -3564,8 +3009,6 @@ 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
@@ -3574,22 +3017,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -3598,18 +3039,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * 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
@@ -3618,16 +3056,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3635,21 +3073,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private 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; - * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -3658,22 +3094,21 @@ 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.
      * 
* * string dataset_id = 3; - * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -3681,64 +3116,57 @@ 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.
      * 
* * string dataset_id = 3; - * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId(java.lang.String value) { + public Builder setDatasetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + datasetId_ = value; onChanged(); return this; } /** - * - * *
      * 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; - * * @return This builder for chaining. */ public Builder clearDatasetId() { - + datasetId_ = getDefaultInstance().getDatasetId(); onChanged(); return this; } /** - * - * *
      * 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; - * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetId_ = value; onChanged(); return this; @@ -3746,47 +3174,34 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3807,15 +3222,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3826,8 +3240,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3838,7 +3250,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3850,8 +3262,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3870,8 +3280,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3879,13 +3287,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3896,14 +3302,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3911,17 +3314,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3929,47 +3329,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3990,15 +3377,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -4009,8 +3395,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4021,7 +3405,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -4033,8 +3417,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4053,8 +3435,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4062,13 +3442,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 11; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4079,14 +3457,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4094,17 +3469,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -4112,71 +3484,55 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int deploymentState_ = 0; /** - * - * *
      * Output only. Deployment state of the model. A model can only serve
      * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override - public int getDeploymentStateValue() { + @java.lang.Override public int getDeploymentStateValue() { return deploymentState_; } /** - * - * *
      * Output only. Deployment state of the model. A model can only serve
      * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * * @param value The enum numeric value on the wire for deploymentState to set. * @return This builder for chaining. */ public Builder setDeploymentStateValue(int value) { - + deploymentState_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Deployment state of the model. A model can only serve
      * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * * @return The deploymentState. */ @java.lang.Override public com.google.cloud.automl.v1.Model.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.Model.DeploymentState result = - com.google.cloud.automl.v1.Model.DeploymentState.valueOf(deploymentState_); - return result == null - ? com.google.cloud.automl.v1.Model.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.automl.v1.Model.DeploymentState result = com.google.cloud.automl.v1.Model.DeploymentState.valueOf(deploymentState_); + return result == null ? com.google.cloud.automl.v1.Model.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Deployment state of the model. A model can only serve
      * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * * @param value The deploymentState to set. * @return This builder for chaining. */ @@ -4184,25 +3540,22 @@ public Builder setDeploymentState(com.google.cloud.automl.v1.Model.DeploymentSta if (value == null) { throw new NullPointerException(); } - + deploymentState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Deployment state of the model. A model can only serve
      * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * * @return This builder for chaining. */ public Builder clearDeploymentState() { - + deploymentState_ = 0; onChanged(); return this; @@ -4210,21 +3563,19 @@ public Builder clearDeploymentState() { private java.lang.Object etag_ = ""; /** - * - * *
      * Used to perform a consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 10; - * * @return The etag. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -4233,22 +3584,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Used to perform a consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 10; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -4256,84 +3606,78 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Used to perform a consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 10; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Used to perform a consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 10; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Used to perform a consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 10; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4345,8 +3689,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -4358,22 +3700,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 34;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -4386,12 +3728,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 34;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -4404,17 +3745,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 34;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -4427,11 +3767,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 34;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -4439,12 +3780,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -4456,21 +3796,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 34;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -4482,19 +3824,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 34;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -4506,13 +3845,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 34;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -4522,12 +3864,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.Model)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.Model)
   private static final com.google.cloud.automl.v1.Model DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.Model();
   }
@@ -4536,16 +3878,16 @@ public static com.google.cloud.automl.v1.Model getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Model parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Model(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Model parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Model(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -4560,4 +3902,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.Model getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java
similarity index 67%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java
index 1fe450d1e..7b3dd99d5 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/model_evaluation.proto
 
 package com.google.cloud.automl.v1;
 
 /**
- *
- *
  * 
  * Evaluation results of a model.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ModelEvaluation} */ -public final class ModelEvaluation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ModelEvaluation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ModelEvaluation) ModelEvaluationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ModelEvaluation.newBuilder() to construct. private ModelEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ModelEvaluation() { name_ = ""; annotationSpecId_ = ""; @@ -45,15 +27,16 @@ private ModelEvaluation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ModelEvaluation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ModelEvaluation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,188 +55,148 @@ private ModelEvaluation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + annotationSpecId_ = s; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { - annotationSpecId_ = s; - break; + evaluatedExampleCount_ = input.readInt32(); + break; + } + case 66: { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 8) { + subBuilder = ((com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_).toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + metrics_ = + input.readMessage(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); } - case 48: - { - evaluatedExampleCount_ = input.readInt32(); - break; + metricsCase_ = 8; + break; + } + case 74: { + com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 9) { + subBuilder = ((com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_).toBuilder(); } - case 66: - { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 8) { - subBuilder = - ((com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_) - .toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 8; - break; + metrics_ = + input.readMessage(com.google.cloud.automl.v1.TranslationEvaluationMetrics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); } - case 74: - { - com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 9) { - subBuilder = - ((com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_) - .toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.automl.v1.TranslationEvaluationMetrics.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 9; - break; + metricsCase_ = 9; + break; + } + case 90: { + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 11) { + subBuilder = ((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_).toBuilder(); } - case 90: - { - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 11) { - subBuilder = - ((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_) - .toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 11; - break; + metrics_ = + input.readMessage(com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); } - case 98: - { - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder subBuilder = - null; - if (metricsCase_ == 12) { - subBuilder = - ((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_) - .toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 12; - break; + metricsCase_ = 11; + break; + } + case 98: { + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 12) { + subBuilder = ((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_).toBuilder(); } - case 106: - { - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 13) { - subBuilder = - ((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_) - .toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 13; - break; + metrics_ = + input.readMessage(com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; + metricsCase_ = 12; + break; + } + case 106: { + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 13) { + subBuilder = ((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + metrics_ = + input.readMessage(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 13; + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = 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); + 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.v1.ModelEvaluationOuterClass - .internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ModelEvaluationOuterClass - .internal_static_google_cloud_automl_v1_ModelEvaluation_fieldAccessorTable + return com.google.cloud.automl.v1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1_ModelEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ModelEvaluation.class, - com.google.cloud.automl.v1.ModelEvaluation.Builder.class); + com.google.cloud.automl.v1.ModelEvaluation.class, com.google.cloud.automl.v1.ModelEvaluation.Builder.class); } private int metricsCase_ = 0; private java.lang.Object metrics_; - public enum MetricsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLASSIFICATION_EVALUATION_METRICS(8), TRANSLATION_EVALUATION_METRICS(9), @@ -262,7 +205,6 @@ public enum MetricsCase TEXT_EXTRACTION_EVALUATION_METRICS(13), METRICS_NOT_SET(0); private final int value; - private MetricsCase(int value) { this.value = value; } @@ -278,36 +220,28 @@ public static MetricsCase valueOf(int value) { public static MetricsCase forNumber(int value) { switch (value) { - case 8: - return CLASSIFICATION_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: - return null; + case 8: return CLASSIFICATION_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: return null; } } - public int getNumber() { return this.value; } }; - public MetricsCase getMetricsCase() { - return MetricsCase.forNumber(metricsCase_); + public MetricsCase + getMetricsCase() { + return MetricsCase.forNumber( + metricsCase_); } public static final int CLASSIFICATION_EVALUATION_METRICS_FIELD_NUMBER = 8; /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -315,10 +249,7 @@ public MetricsCase getMetricsCase() {
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return Whether the classificationEvaluationMetrics field is set. */ @java.lang.Override @@ -326,8 +257,6 @@ public boolean hasClassificationEvaluationMetrics() { return metricsCase_ == 8; } /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -335,23 +264,17 @@ public boolean hasClassificationEvaluationMetrics() {
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return The classificationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics - getClassificationEvaluationMetrics() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics getClassificationEvaluationMetrics() { if (metricsCase_ == 8) { - return (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance(); } /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -359,30 +282,23 @@ public boolean hasClassificationEvaluationMetrics() {
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder - getClassificationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder() { if (metricsCase_ == 8) { - return (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance(); } public static final int TRANSLATION_EVALUATION_METRICS_FIELD_NUMBER = 9; /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return Whether the translationEvaluationMetrics field is set. */ @java.lang.Override @@ -390,55 +306,42 @@ public boolean hasTranslationEvaluationMetrics() { return metricsCase_ == 9; } /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return The translationEvaluationMetrics. */ @java.lang.Override public com.google.cloud.automl.v1.TranslationEvaluationMetrics getTranslationEvaluationMetrics() { if (metricsCase_ == 9) { - return (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance(); } /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder - getTranslationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder() { if (metricsCase_ == 9) { - return (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance(); } public static final int IMAGE_OBJECT_DETECTION_EVALUATION_METRICS_FIELD_NUMBER = 12; /** - * - * *
    * Model evaluation metrics for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ @java.lang.Override @@ -446,58 +349,42 @@ public boolean hasImageObjectDetectionEvaluationMetrics() { return metricsCase_ == 12; } /** - * - * *
    * Model evaluation metrics for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return The imageObjectDetectionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - getImageObjectDetectionEvaluationMetrics() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics() { if (metricsCase_ == 12) { - return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } /** - * - * *
    * Model evaluation metrics for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder - getImageObjectDetectionEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder() { if (metricsCase_ == 12) { - return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } public static final int TEXT_SENTIMENT_EVALUATION_METRICS_FIELD_NUMBER = 11; /** - * - * *
    * Evaluation metrics for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return Whether the textSentimentEvaluationMetrics field is set. */ @java.lang.Override @@ -505,58 +392,42 @@ public boolean hasTextSentimentEvaluationMetrics() { return metricsCase_ == 11; } /** - * - * *
    * Evaluation metrics for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return The textSentimentEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics - getTextSentimentEvaluationMetrics() { + public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics() { if (metricsCase_ == 11) { - return (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance(); } /** - * - * *
    * Evaluation metrics for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder - getTextSentimentEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder() { if (metricsCase_ == 11) { - return (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance(); } public static final int TEXT_EXTRACTION_EVALUATION_METRICS_FIELD_NUMBER = 13; /** - * - * *
    * Evaluation metrics for text extraction models.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return Whether the textExtractionEvaluationMetrics field is set. */ @java.lang.Override @@ -564,42 +435,31 @@ public boolean hasTextExtractionEvaluationMetrics() { return metricsCase_ == 13; } /** - * - * *
    * Evaluation metrics for text extraction models.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return The textExtractionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - getTextExtractionEvaluationMetrics() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics() { if (metricsCase_ == 13) { - return (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance(); } /** - * - * *
    * Evaluation metrics for text extraction models.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder - getTextExtractionEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder() { if (metricsCase_ == 13) { - return (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance(); } @@ -607,8 +467,6 @@ public boolean hasTextExtractionEvaluationMetrics() { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -616,7 +474,6 @@ public boolean hasTextExtractionEvaluationMetrics() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -625,15 +482,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 evaluation.
    * Format:
@@ -641,15 +497,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -660,8 +517,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 2; private volatile java.lang.Object annotationSpecId_; /** - * - * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -674,7 +529,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string annotation_spec_id = 2; - * * @return The annotationSpecId. */ @java.lang.Override @@ -683,15 +537,14 @@ public java.lang.String getAnnotationSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; } } /** - * - * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -704,15 +557,16 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string annotation_spec_id = 2; - * * @return The bytes for annotationSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -723,8 +577,6 @@ 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
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -739,7 +591,6 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
    * 
* * string display_name = 15; - * * @return The displayName. */ @java.lang.Override @@ -748,15 +599,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -771,15 +621,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 15; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -790,14 +641,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -805,14 +653,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ @java.lang.Override @@ -820,8 +665,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
@@ -836,8 +679,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EVALUATED_EXAMPLE_COUNT_FIELD_NUMBER = 6; private int evaluatedExampleCount_; /** - * - * *
    * 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
@@ -850,7 +691,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * int32 evaluated_example_count = 6; - * * @return The evaluatedExampleCount. */ @java.lang.Override @@ -859,7 +699,6 @@ public int getEvaluatedExampleCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -871,7 +710,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -894,12 +734,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(11, (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_); } if (metricsCase_ == 12) { - output.writeMessage( - 12, (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); + output.writeMessage(12, (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); } if (metricsCase_ == 13) { - output.writeMessage( - 13, (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); + output.writeMessage(13, (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, displayName_); @@ -920,35 +758,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annotationSpecId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (evaluatedExampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, evaluatedExampleCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, evaluatedExampleCount_); } if (metricsCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_); } if (metricsCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_); } if (metricsCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_); } if (metricsCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); } if (metricsCase_ == 13) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, displayName_); @@ -961,22 +796,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ModelEvaluation)) { return super.equals(obj); } - com.google.cloud.automl.v1.ModelEvaluation other = - (com.google.cloud.automl.v1.ModelEvaluation) obj; + com.google.cloud.automl.v1.ModelEvaluation other = (com.google.cloud.automl.v1.ModelEvaluation) obj; - if (!getName().equals(other.getName())) return false; - if (!getAnnotationSpecId().equals(other.getAnnotationSpecId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + 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; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (getEvaluatedExampleCount() != other.getEvaluatedExampleCount()) return false; + if (getEvaluatedExampleCount() + != other.getEvaluatedExampleCount()) return false; if (!getMetricsCase().equals(other.getMetricsCase())) return false; switch (metricsCase_) { case 8: @@ -984,16 +823,16 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClassificationEvaluationMetrics())) return false; break; case 9: - if (!getTranslationEvaluationMetrics().equals(other.getTranslationEvaluationMetrics())) - return false; + 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; + if (!getTextSentimentEvaluationMetrics() + .equals(other.getTextSentimentEvaluationMetrics())) return false; break; case 13: if (!getTextExtractionEvaluationMetrics() @@ -1054,127 +893,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ModelEvaluation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ModelEvaluation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ModelEvaluation 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.v1.ModelEvaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ModelEvaluation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.ModelEvaluation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.ModelEvaluation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ModelEvaluation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ModelEvaluation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Evaluation results of a model.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ModelEvaluation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ModelEvaluation) com.google.cloud.automl.v1.ModelEvaluationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.ModelEvaluationOuterClass - .internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ModelEvaluationOuterClass - .internal_static_google_cloud_automl_v1_ModelEvaluation_fieldAccessorTable + return com.google.cloud.automl.v1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1_ModelEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ModelEvaluation.class, - com.google.cloud.automl.v1.ModelEvaluation.Builder.class); + com.google.cloud.automl.v1.ModelEvaluation.class, com.google.cloud.automl.v1.ModelEvaluation.Builder.class); } // Construct using com.google.cloud.automl.v1.ModelEvaluation.newBuilder() @@ -1182,15 +1012,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1214,9 +1045,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.ModelEvaluationOuterClass - .internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; } @java.lang.Override @@ -1235,8 +1066,7 @@ public com.google.cloud.automl.v1.ModelEvaluation build() { @java.lang.Override public com.google.cloud.automl.v1.ModelEvaluation buildPartial() { - com.google.cloud.automl.v1.ModelEvaluation result = - new com.google.cloud.automl.v1.ModelEvaluation(this); + com.google.cloud.automl.v1.ModelEvaluation result = new com.google.cloud.automl.v1.ModelEvaluation(this); if (metricsCase_ == 8) { if (classificationEvaluationMetricsBuilder_ == null) { result.metrics_ = metrics_; @@ -1290,39 +1120,38 @@ public com.google.cloud.automl.v1.ModelEvaluation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ModelEvaluation) { - return mergeFrom((com.google.cloud.automl.v1.ModelEvaluation) other); + return mergeFrom((com.google.cloud.automl.v1.ModelEvaluation)other); } else { super.mergeFrom(other); return this; @@ -1350,36 +1179,29 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ModelEvaluation other) { setEvaluatedExampleCount(other.getEvaluatedExampleCount()); } switch (other.getMetricsCase()) { - case CLASSIFICATION_EVALUATION_METRICS: - { - mergeClassificationEvaluationMetrics(other.getClassificationEvaluationMetrics()); - 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; - } + case CLASSIFICATION_EVALUATION_METRICS: { + mergeClassificationEvaluationMetrics(other.getClassificationEvaluationMetrics()); + 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; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1409,12 +1231,12 @@ public Builder mergeFrom( } return this; } - private int metricsCase_ = 0; private java.lang.Object metrics_; - - public MetricsCase getMetricsCase() { - return MetricsCase.forNumber(metricsCase_); + public MetricsCase + getMetricsCase() { + return MetricsCase.forNumber( + metricsCase_); } public Builder clearMetrics() { @@ -1424,14 +1246,10 @@ public Builder clearMetrics() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder> - classificationEvaluationMetricsBuilder_; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder> classificationEvaluationMetricsBuilder_; /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1439,10 +1257,7 @@ public Builder clearMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return Whether the classificationEvaluationMetrics field is set. */ @java.lang.Override @@ -1450,8 +1265,6 @@ public boolean hasClassificationEvaluationMetrics() { return metricsCase_ == 8; } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1459,15 +1272,11 @@ public boolean hasClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return The classificationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics - getClassificationEvaluationMetrics() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics getClassificationEvaluationMetrics() { if (classificationEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 8) { return (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_; @@ -1481,8 +1290,6 @@ public boolean hasClassificationEvaluationMetrics() { } } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1490,12 +1297,9 @@ public boolean hasClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ - public Builder setClassificationEvaluationMetrics( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics value) { + public Builder setClassificationEvaluationMetrics(com.google.cloud.automl.v1.ClassificationEvaluationMetrics value) { if (classificationEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1509,8 +1313,6 @@ public Builder setClassificationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1518,9 +1320,7 @@ public Builder setClassificationEvaluationMetrics(
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ public Builder setClassificationEvaluationMetrics( com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder builderForValue) { @@ -1534,8 +1334,6 @@ public Builder setClassificationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1543,22 +1341,14 @@ public Builder setClassificationEvaluationMetrics(
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ - public Builder mergeClassificationEvaluationMetrics( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics value) { + public Builder mergeClassificationEvaluationMetrics(com.google.cloud.automl.v1.ClassificationEvaluationMetrics value) { if (classificationEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 8 - && metrics_ - != com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .getDefaultInstance()) { - metrics_ = - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.newBuilder( - (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_) - .mergeFrom(value) - .buildPartial(); + if (metricsCase_ == 8 && + metrics_ != com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance()) { + metrics_ = com.google.cloud.automl.v1.ClassificationEvaluationMetrics.newBuilder((com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_) + .mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -1573,8 +1363,6 @@ public Builder mergeClassificationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1582,9 +1370,7 @@ public Builder mergeClassificationEvaluationMetrics(
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ public Builder clearClassificationEvaluationMetrics() { if (classificationEvaluationMetricsBuilder_ == null) { @@ -1603,8 +1389,6 @@ public Builder clearClassificationEvaluationMetrics() { return this; } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1612,17 +1396,12 @@ public Builder clearClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder - getClassificationEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder getClassificationEvaluationMetricsBuilder() { return getClassificationEvaluationMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1630,13 +1409,10 @@ public Builder clearClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder - getClassificationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder() { if ((metricsCase_ == 8) && (classificationEvaluationMetricsBuilder_ != null)) { return classificationEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -1647,8 +1423,6 @@ public Builder clearClassificationEvaluationMetrics() { } } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1656,52 +1430,35 @@ public Builder clearClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1.ClassificationEvaluationMetrics, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder> getClassificationEvaluationMetricsFieldBuilder() { if (classificationEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 8)) { - metrics_ = - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance(); + metrics_ = com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance(); } - classificationEvaluationMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder>( + classificationEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 8; - onChanged(); - ; + onChanged();; return classificationEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationEvaluationMetrics, - com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, - com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder> - translationEvaluationMetricsBuilder_; + com.google.cloud.automl.v1.TranslationEvaluationMetrics, com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder> translationEvaluationMetricsBuilder_; /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return Whether the translationEvaluationMetrics field is set. */ @java.lang.Override @@ -1709,21 +1466,15 @@ public boolean hasTranslationEvaluationMetrics() { return metricsCase_ == 9; } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return The translationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationEvaluationMetrics - getTranslationEvaluationMetrics() { + public com.google.cloud.automl.v1.TranslationEvaluationMetrics getTranslationEvaluationMetrics() { if (translationEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 9) { return (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_; @@ -1737,18 +1488,13 @@ public boolean hasTranslationEvaluationMetrics() { } } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ - public Builder setTranslationEvaluationMetrics( - com.google.cloud.automl.v1.TranslationEvaluationMetrics value) { + public Builder setTranslationEvaluationMetrics(com.google.cloud.automl.v1.TranslationEvaluationMetrics value) { if (translationEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1762,15 +1508,11 @@ public Builder setTranslationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ public Builder setTranslationEvaluationMetrics( com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder builderForValue) { @@ -1784,27 +1526,18 @@ public Builder setTranslationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ - public Builder mergeTranslationEvaluationMetrics( - com.google.cloud.automl.v1.TranslationEvaluationMetrics value) { + public Builder mergeTranslationEvaluationMetrics(com.google.cloud.automl.v1.TranslationEvaluationMetrics value) { if (translationEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 9 - && metrics_ - != com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance()) { - metrics_ = - com.google.cloud.automl.v1.TranslationEvaluationMetrics.newBuilder( - (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_) - .mergeFrom(value) - .buildPartial(); + if (metricsCase_ == 9 && + metrics_ != com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance()) { + metrics_ = com.google.cloud.automl.v1.TranslationEvaluationMetrics.newBuilder((com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_) + .mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -1819,15 +1552,11 @@ public Builder mergeTranslationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ public Builder clearTranslationEvaluationMetrics() { if (translationEvaluationMetricsBuilder_ == null) { @@ -1846,34 +1575,24 @@ public Builder clearTranslationEvaluationMetrics() { return this; } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ - public com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder - getTranslationEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder getTranslationEvaluationMetricsBuilder() { return getTranslationEvaluationMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder - getTranslationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder() { if ((metricsCase_ == 9) && (translationEvaluationMetricsBuilder_ != null)) { return translationEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -1884,57 +1603,39 @@ public Builder clearTranslationEvaluationMetrics() { } } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationEvaluationMetrics, - com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, - com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1.TranslationEvaluationMetrics, com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder> getTranslationEvaluationMetricsFieldBuilder() { if (translationEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 9)) { metrics_ = com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance(); } - translationEvaluationMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationEvaluationMetrics, - com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, - com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder>( + translationEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TranslationEvaluationMetrics, com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 9; - onChanged(); - ; + onChanged();; return translationEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder> - imageObjectDetectionEvaluationMetricsBuilder_; + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder> imageObjectDetectionEvaluationMetricsBuilder_; /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ @java.lang.Override @@ -1942,48 +1643,35 @@ public boolean hasImageObjectDetectionEvaluationMetrics() { return metricsCase_ == 12; } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return The imageObjectDetectionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - getImageObjectDetectionEvaluationMetrics() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics() { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 12) { return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } else { if (metricsCase_ == 12) { return imageObjectDetectionEvaluationMetricsBuilder_.getMessage(); } - return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ - public Builder setImageObjectDetectionEvaluationMetrics( - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics value) { + public Builder setImageObjectDetectionEvaluationMetrics(com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics value) { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1997,15 +1685,11 @@ public Builder setImageObjectDetectionEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ public Builder setImageObjectDetectionEvaluationMetrics( com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder builderForValue) { @@ -2019,28 +1703,18 @@ public Builder setImageObjectDetectionEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ - public Builder mergeImageObjectDetectionEvaluationMetrics( - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics value) { + public Builder mergeImageObjectDetectionEvaluationMetrics(com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics value) { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 12 - && metrics_ - != com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - .getDefaultInstance()) { - metrics_ = - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.newBuilder( - (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_) - .mergeFrom(value) - .buildPartial(); + if (metricsCase_ == 12 && + metrics_ != com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance()) { + metrics_ = com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.newBuilder((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_) + .mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -2055,15 +1729,11 @@ public Builder mergeImageObjectDetectionEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ public Builder clearImageObjectDetectionEvaluationMetrics() { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { @@ -2082,97 +1752,67 @@ public Builder clearImageObjectDetectionEvaluationMetrics() { return this; } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder - getImageObjectDetectionEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder getImageObjectDetectionEvaluationMetricsBuilder() { return getImageObjectDetectionEvaluationMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder - getImageObjectDetectionEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder() { if ((metricsCase_ == 12) && (imageObjectDetectionEvaluationMetricsBuilder_ != null)) { return imageObjectDetectionEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { if (metricsCase_ == 12) { return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder> getImageObjectDetectionEvaluationMetricsFieldBuilder() { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 12)) { - metrics_ = - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); + metrics_ = com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } - imageObjectDetectionEvaluationMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder>( + imageObjectDetectionEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 12; - onChanged(); - ; + onChanged();; return imageObjectDetectionEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, - com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder> - textSentimentEvaluationMetricsBuilder_; + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder> textSentimentEvaluationMetricsBuilder_; /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return Whether the textSentimentEvaluationMetrics field is set. */ @java.lang.Override @@ -2180,21 +1820,15 @@ public boolean hasTextSentimentEvaluationMetrics() { return metricsCase_ == 11; } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return The textSentimentEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics - getTextSentimentEvaluationMetrics() { + public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics() { if (textSentimentEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 11) { return (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_; @@ -2208,18 +1842,13 @@ public boolean hasTextSentimentEvaluationMetrics() { } } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ - public Builder setTextSentimentEvaluationMetrics( - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics value) { + public Builder setTextSentimentEvaluationMetrics(com.google.cloud.automl.v1.TextSentimentEvaluationMetrics value) { if (textSentimentEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2233,15 +1862,11 @@ public Builder setTextSentimentEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ public Builder setTextSentimentEvaluationMetrics( com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder builderForValue) { @@ -2255,27 +1880,18 @@ public Builder setTextSentimentEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ - public Builder mergeTextSentimentEvaluationMetrics( - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics value) { + public Builder mergeTextSentimentEvaluationMetrics(com.google.cloud.automl.v1.TextSentimentEvaluationMetrics value) { if (textSentimentEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 11 - && metrics_ - != com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance()) { - metrics_ = - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.newBuilder( - (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_) - .mergeFrom(value) - .buildPartial(); + if (metricsCase_ == 11 && + metrics_ != com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance()) { + metrics_ = com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.newBuilder((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_) + .mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -2290,15 +1906,11 @@ public Builder mergeTextSentimentEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ public Builder clearTextSentimentEvaluationMetrics() { if (textSentimentEvaluationMetricsBuilder_ == null) { @@ -2317,34 +1929,24 @@ public Builder clearTextSentimentEvaluationMetrics() { return this; } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ - public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder - getTextSentimentEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder getTextSentimentEvaluationMetricsBuilder() { return getTextSentimentEvaluationMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder - getTextSentimentEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder() { if ((metricsCase_ == 11) && (textSentimentEvaluationMetricsBuilder_ != null)) { return textSentimentEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -2355,57 +1957,39 @@ public Builder clearTextSentimentEvaluationMetrics() { } } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, - com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder> getTextSentimentEvaluationMetricsFieldBuilder() { if (textSentimentEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 11)) { metrics_ = com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance(); } - textSentimentEvaluationMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, - com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder>( + textSentimentEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 11; - onChanged(); - ; + onChanged();; return textSentimentEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, - com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder> - textExtractionEvaluationMetricsBuilder_; + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder> textExtractionEvaluationMetricsBuilder_; /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return Whether the textExtractionEvaluationMetrics field is set. */ @java.lang.Override @@ -2413,21 +1997,15 @@ public boolean hasTextExtractionEvaluationMetrics() { return metricsCase_ == 13; } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return The textExtractionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - getTextExtractionEvaluationMetrics() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics() { if (textExtractionEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 13) { return (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_; @@ -2441,18 +2019,13 @@ public boolean hasTextExtractionEvaluationMetrics() { } } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ - public Builder setTextExtractionEvaluationMetrics( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics value) { + public Builder setTextExtractionEvaluationMetrics(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics value) { if (textExtractionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2466,15 +2039,11 @@ public Builder setTextExtractionEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ public Builder setTextExtractionEvaluationMetrics( com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder builderForValue) { @@ -2488,28 +2057,18 @@ public Builder setTextExtractionEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ - public Builder mergeTextExtractionEvaluationMetrics( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics value) { + public Builder mergeTextExtractionEvaluationMetrics(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics value) { if (textExtractionEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 13 - && metrics_ - != com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .getDefaultInstance()) { - metrics_ = - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.newBuilder( - (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_) - .mergeFrom(value) - .buildPartial(); + if (metricsCase_ == 13 && + metrics_ != com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance()) { + metrics_ = com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.newBuilder((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_) + .mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -2524,15 +2083,11 @@ public Builder mergeTextExtractionEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ public Builder clearTextExtractionEvaluationMetrics() { if (textExtractionEvaluationMetricsBuilder_ == null) { @@ -2551,34 +2106,24 @@ public Builder clearTextExtractionEvaluationMetrics() { return this; } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder - getTextExtractionEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder getTextExtractionEvaluationMetricsBuilder() { return getTextExtractionEvaluationMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder - getTextExtractionEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder() { if ((metricsCase_ == 13) && (textExtractionEvaluationMetricsBuilder_ != null)) { return textExtractionEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -2589,46 +2134,33 @@ public Builder clearTextExtractionEvaluationMetrics() { } } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, - com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder> getTextExtractionEvaluationMetricsFieldBuilder() { if (textExtractionEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 13)) { - metrics_ = - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance(); + metrics_ = com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance(); } - textExtractionEvaluationMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, - com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder>( + textExtractionEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 13; - onChanged(); - ; + onChanged();; return textExtractionEvaluationMetricsBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2636,13 +2168,13 @@ public Builder clearTextExtractionEvaluationMetrics() {
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2651,8 +2183,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2660,14 +2190,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2675,8 +2206,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2684,22 +2213,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2707,18 +2234,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2726,16 +2250,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2743,8 +2267,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object annotationSpecId_ = ""; /** - * - * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2757,13 +2279,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string annotation_spec_id = 2; - * * @return The annotationSpecId. */ public java.lang.String getAnnotationSpecId() { java.lang.Object ref = annotationSpecId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; @@ -2772,8 +2294,6 @@ public java.lang.String getAnnotationSpecId() { } } /** - * - * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2786,14 +2306,15 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 2; - * * @return The bytes for annotationSpecId. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -2801,8 +2322,6 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { } } /** - * - * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2815,22 +2334,20 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
      * 
* * string annotation_spec_id = 2; - * * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId(java.lang.String value) { + public Builder setAnnotationSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2843,18 +2360,15 @@ public Builder setAnnotationSpecId(java.lang.String value) {
      * 
* * string annotation_spec_id = 2; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { - + annotationSpecId_ = getDefaultInstance().getAnnotationSpecId(); onChanged(); return this; } /** - * - * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2867,16 +2381,16 @@ public Builder clearAnnotationSpecId() {
      * 
* * string annotation_spec_id = 2; - * * @param value The bytes for annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecId_ = value; onChanged(); return this; @@ -2884,8 +2398,6 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2900,13 +2412,13 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 15; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2915,8 +2427,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2931,14 +2441,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 15; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2946,8 +2457,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2962,22 +2471,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 15; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2992,18 +2499,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 15; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -3018,16 +2522,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 15; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3035,47 +2539,34 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3096,15 +2587,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3115,8 +2605,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3127,7 +2615,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3139,8 +2627,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3159,8 +2645,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3168,13 +2652,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3185,14 +2667,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3200,26 +2679,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - private int evaluatedExampleCount_; + private int evaluatedExampleCount_ ; /** - * - * *
      * 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
@@ -3232,7 +2706,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * int32 evaluated_example_count = 6; - * * @return The evaluatedExampleCount. */ @java.lang.Override @@ -3240,8 +2713,6 @@ public int getEvaluatedExampleCount() { return evaluatedExampleCount_; } /** - * - * *
      * 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
@@ -3254,19 +2725,16 @@ public int getEvaluatedExampleCount() {
      * 
* * int32 evaluated_example_count = 6; - * * @param value The evaluatedExampleCount to set. * @return This builder for chaining. */ public Builder setEvaluatedExampleCount(int value) { - + evaluatedExampleCount_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -3279,18 +2747,17 @@ public Builder setEvaluatedExampleCount(int value) {
      * 
* * int32 evaluated_example_count = 6; - * * @return This builder for chaining. */ public Builder clearEvaluatedExampleCount() { - + evaluatedExampleCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3300,12 +2767,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ModelEvaluation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ModelEvaluation) private static final com.google.cloud.automl.v1.ModelEvaluation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ModelEvaluation(); } @@ -3314,16 +2781,16 @@ public static com.google.cloud.automl.v1.ModelEvaluation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModelEvaluation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModelEvaluation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelEvaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelEvaluation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3338,4 +2805,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ModelEvaluation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java similarity index 100% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java similarity index 73% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java index 6cd4e4624..e67255a93 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/model_evaluation.proto package com.google.cloud.automl.v1; -public interface ModelEvaluationOrBuilder - extends +public interface ModelEvaluationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ModelEvaluation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -33,16 +15,11 @@ public interface ModelEvaluationOrBuilder
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return Whether the classificationEvaluationMetrics field is set. */ boolean hasClassificationEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -50,16 +27,11 @@ public interface ModelEvaluationOrBuilder
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return The classificationEvaluationMetrics. */ com.google.cloud.automl.v1.ClassificationEvaluationMetrics getClassificationEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -67,182 +39,119 @@ public interface ModelEvaluationOrBuilder
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ - com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder - getClassificationEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder(); /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return Whether the translationEvaluationMetrics field is set. */ boolean hasTranslationEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return The translationEvaluationMetrics. */ com.google.cloud.automl.v1.TranslationEvaluationMetrics getTranslationEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ - com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder - getTranslationEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder(); /** - * - * *
    * Model evaluation metrics for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ boolean hasImageObjectDetectionEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return The imageObjectDetectionEvaluationMetrics. */ - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - getImageObjectDetectionEvaluationMetrics(); + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for image object detection.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder - getImageObjectDetectionEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder(); /** - * - * *
    * Evaluation metrics for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return Whether the textSentimentEvaluationMetrics field is set. */ boolean hasTextSentimentEvaluationMetrics(); /** - * - * *
    * Evaluation metrics for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return The textSentimentEvaluationMetrics. */ com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics(); /** - * - * *
    * Evaluation metrics for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ - com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder - getTextSentimentEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder(); /** - * - * *
    * Evaluation metrics for text extraction models.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return Whether the textExtractionEvaluationMetrics field is set. */ boolean hasTextExtractionEvaluationMetrics(); /** - * - * *
    * Evaluation metrics for text extraction models.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return The textExtractionEvaluationMetrics. */ com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics(); /** - * - * *
    * Evaluation metrics for text extraction models.
    * 
* - * - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ - com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder - getTextExtractionEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder(); /** - * - * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -250,13 +159,10 @@ public interface ModelEvaluationOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -264,14 +170,12 @@ public interface ModelEvaluationOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -284,13 +188,10 @@ public interface ModelEvaluationOrBuilder
    * 
* * string annotation_spec_id = 2; - * * @return The annotationSpecId. */ java.lang.String getAnnotationSpecId(); /** - * - * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -303,14 +204,12 @@ public interface ModelEvaluationOrBuilder
    * 
* * string annotation_spec_id = 2; - * * @return The bytes for annotationSpecId. */ - com.google.protobuf.ByteString getAnnotationSpecIdBytes(); + com.google.protobuf.ByteString + getAnnotationSpecIdBytes(); /** - * - * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -325,13 +224,10 @@ public interface ModelEvaluationOrBuilder
    * 
* * string display_name = 15; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -346,38 +242,30 @@ public interface ModelEvaluationOrBuilder
    * 
* * string display_name = 15; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
@@ -387,8 +275,6 @@ public interface ModelEvaluationOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * 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
@@ -401,7 +287,6 @@ public interface ModelEvaluationOrBuilder
    * 
* * int32 evaluated_example_count = 6; - * * @return The evaluatedExampleCount. */ int getEvaluatedExampleCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOuterClass.java new file mode 100644 index 000000000..165456a98 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOuterClass.java @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/model_evaluation.proto + +package com.google.cloud.automl.v1; + +public final class ModelEvaluationOuterClass { + private ModelEvaluationOuterClass() {} + 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_v1_ModelEvaluation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ModelEvaluation_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/v1/model_evaluatio" + + "n.proto\022\026google.cloud.automl.v1\032\031google/" + + "api/resource.proto\032+google/cloud/automl/" + + "v1/classification.proto\032&google/cloud/au" + + "toml/v1/detection.proto\032,google/cloud/au" + + "toml/v1/text_extraction.proto\032+google/cl" + + "oud/automl/v1/text_sentiment.proto\032(goog" + + "le/cloud/automl/v1/translation.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\034google/ap" + + "i/annotations.proto\"\276\006\n\017ModelEvaluation\022" + + "d\n!classification_evaluation_metrics\030\010 \001" + + "(\01327.google.cloud.automl.v1.Classificati" + + "onEvaluationMetricsH\000\022^\n\036translation_eva" + + "luation_metrics\030\t \001(\01324.google.cloud.aut" + + "oml.v1.TranslationEvaluationMetricsH\000\022r\n" + + ")image_object_detection_evaluation_metri" + + "cs\030\014 \001(\0132=.google.cloud.automl.v1.ImageO" + + "bjectDetectionEvaluationMetricsH\000\022c\n!tex" + + "t_sentiment_evaluation_metrics\030\013 \001(\01326.g" + + "oogle.cloud.automl.v1.TextSentimentEvalu" + + "ationMetricsH\000\022e\n\"text_extraction_evalua" + + "tion_metrics\030\r \001(\01327.google.cloud.automl" + + ".v1.TextExtractionEvaluationMetricsH\000\022\014\n" + + "\004name\030\001 \001(\t\022\032\n\022annotation_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\027evalua" + + "ted_example_count\030\006 \001(\005:\207\001\352A\203\001\n%automl.g" + + "oogleapis.com/ModelEvaluation\022Zprojects/" + + "{project}/locations/{location}/models/{m" + + "odel}/modelEvaluations/{model_evaluation" + + "}B\t\n\007metricsB\252\001\n\032com.google.cloud.automl" + + ".v1P\001Z * Output configuration for ModelExport Action. *
* * Protobuf type {@code google.cloud.automl.v1.ModelExportOutputConfig} */ -public final class ModelExportOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ModelExportOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ModelExportOutputConfig) ModelExportOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ModelExportOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ModelExportOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,98 +54,91 @@ private ModelExportOutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = - com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put(params__.getKey(), params__.getValue()); - break; + destination_ = + input.readMessage(com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - modelFormat_ = s; - break; + destinationCase_ = 1; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + params__ = input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put( + params__.getKey(), params__.getValue()); + 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); + 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.v1.Io - .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ModelExportOutputConfig.class, - com.google.cloud.automl.v1.ModelExportOutputConfig.Builder.class); + com.google.cloud.automl.v1.ModelExportOutputConfig.class, com.google.cloud.automl.v1.ModelExportOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -178,28 +154,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -211,10 +183,7 @@ public DestinationCase getDestinationCase() {
    *  will be written.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -222,8 +191,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -235,22 +202,17 @@ public boolean hasGcsDestination() {
    *  will be written.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -262,14 +224,12 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
    *  will be written.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } @@ -277,8 +237,6 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui 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
@@ -311,7 +269,6 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
    * 
* * string model_format = 4; - * * @return The modelFormat. */ @java.lang.Override @@ -320,15 +277,14 @@ public java.lang.String getModelFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -361,15 +317,16 @@ public java.lang.String getModelFormat() {
    * 
* * string model_format = 4; - * * @return The bytes for modelFormat. */ @java.lang.Override - public com.google.protobuf.ByteString getModelFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelFormat_ = b; return b; } else { @@ -378,23 +335,24 @@ public com.google.protobuf.ByteString getModelFormatBytes() { } 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.v1.Io - .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_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() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -403,8 +361,6 @@ 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
@@ -416,22 +372,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 2;
    */
+
   @java.lang.Override
-  public boolean containsParams(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsParams(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetParams().getMap().containsKey(key);
   }
-  /** Use {@link #getParamsMap()} instead. */
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Override
   @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
@@ -444,12 +400,11 @@ public java.util.Map getParams() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
+
   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
@@ -462,16 +417,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-  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();
+
+  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
@@ -484,11 +439,12 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> params = 2;
    */
   @java.lang.Override
-  public java.lang.String getParamsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetParams().getMap();
+
+  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();
     }
@@ -496,7 +452,6 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -508,12 +463,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.automl.v1.GcsDestination) destination_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        2);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelFormat_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modelFormat_);
     }
@@ -527,19 +487,18 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.automl.v1.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__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.automl.v1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelFormat_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modelFormat_);
@@ -552,20 +511,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.ModelExportOutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.ModelExportOutputConfig other =
-        (com.google.cloud.automl.v1.ModelExportOutputConfig) obj;
+    com.google.cloud.automl.v1.ModelExportOutputConfig other = (com.google.cloud.automl.v1.ModelExportOutputConfig) obj;
 
-    if (!getModelFormat().equals(other.getModelFormat())) return false;
-    if (!internalGetParams().equals(other.internalGetParams())) return false;
+    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;
+        if (!getGcsDestination()
+            .equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -601,146 +562,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.ModelExportOutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.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.v1.ModelExportOutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.automl.v1.ModelExportOutputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.automl.v1.ModelExportOutputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1.ModelExportOutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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.v1.ModelExportOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ModelExportOutputConfig) com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ModelExportOutputConfig.class, - com.google.cloud.automl.v1.ModelExportOutputConfig.Builder.class); + com.google.cloud.automl.v1.ModelExportOutputConfig.class, com.google.cloud.automl.v1.ModelExportOutputConfig.Builder.class); } // Construct using com.google.cloud.automl.v1.ModelExportOutputConfig.newBuilder() @@ -748,15 +702,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -769,9 +724,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; } @java.lang.Override @@ -790,8 +745,7 @@ public com.google.cloud.automl.v1.ModelExportOutputConfig build() { @java.lang.Override public com.google.cloud.automl.v1.ModelExportOutputConfig buildPartial() { - com.google.cloud.automl.v1.ModelExportOutputConfig result = - new com.google.cloud.automl.v1.ModelExportOutputConfig(this); + com.google.cloud.automl.v1.ModelExportOutputConfig result = new com.google.cloud.automl.v1.ModelExportOutputConfig(this); int from_bitField0_ = bitField0_; if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { @@ -812,39 +766,38 @@ public com.google.cloud.automl.v1.ModelExportOutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ModelExportOutputConfig) { - return mergeFrom((com.google.cloud.automl.v1.ModelExportOutputConfig) other); + return mergeFrom((com.google.cloud.automl.v1.ModelExportOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -852,23 +805,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ModelExportOutputConfig other) { - if (other == com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance()) return this; if (!other.getModelFormat().isEmpty()) { modelFormat_ = other.modelFormat_; onChanged(); } - internalGetMutableParams().mergeFrom(other.internalGetParams()); + internalGetMutableParams().mergeFrom( + other.internalGetParams()); switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -889,8 +840,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.ModelExportOutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.ModelExportOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -899,12 +849,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -917,13 +867,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, - com.google.cloud.automl.v1.GcsDestination.Builder, - com.google.cloud.automl.v1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -935,10 +880,7 @@ public Builder clearDestination() {
      *  will be written.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -946,8 +888,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -959,10 +899,7 @@ public boolean hasGcsDestination() {
      *  will be written.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsDestination. */ @java.lang.Override @@ -980,8 +917,6 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -993,9 +928,7 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
      *  will be written.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -1011,8 +944,6 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value return this; } /** - * - * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -1024,9 +955,7 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value
      *  will be written.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGcsDestination( com.google.cloud.automl.v1.GcsDestination.Builder builderForValue) { @@ -1040,8 +969,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -1053,19 +980,14 @@ public Builder setGcsDestination(
      *  will be written.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.automl.v1.GcsDestination.newBuilder( - (com.google.cloud.automl.v1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.automl.v1.GcsDestination.newBuilder((com.google.cloud.automl.v1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1080,8 +1002,6 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val return this; } /** - * - * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -1093,9 +1013,7 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val
      *  will be written.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1114,8 +1032,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -1127,16 +1043,12 @@ public Builder clearGcsDestination() {
      *  will be written.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -1148,9 +1060,7 @@ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilde
      *  will be written.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1164,8 +1074,6 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui } } /** - * - * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -1177,39 +1085,29 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
      *  will be written.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, - com.google.cloud.automl.v1.GcsDestination.Builder, - com.google.cloud.automl.v1.GcsDestinationOrBuilder> + com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, - com.google.cloud.automl.v1.GcsDestination.Builder, - com.google.cloud.automl.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder>( (com.google.cloud.automl.v1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } 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
@@ -1242,13 +1140,13 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
      * 
* * string model_format = 4; - * * @return The modelFormat. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelFormat_ = s; return s; @@ -1257,8 +1155,6 @@ public 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
@@ -1291,14 +1187,15 @@ public java.lang.String getModelFormat() {
      * 
* * string model_format = 4; - * * @return The bytes for modelFormat. */ - public com.google.protobuf.ByteString getModelFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelFormat_ = b; return b; } else { @@ -1306,8 +1203,6 @@ public com.google.protobuf.ByteString getModelFormatBytes() { } } /** - * - * *
      * 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
@@ -1340,22 +1235,20 @@ public com.google.protobuf.ByteString getModelFormatBytes() {
      * 
* * string model_format = 4; - * * @param value The modelFormat to set. * @return This builder for chaining. */ - public Builder setModelFormat(java.lang.String value) { + public Builder setModelFormat( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -1388,18 +1281,15 @@ public Builder setModelFormat(java.lang.String value) {
      * 
* * string model_format = 4; - * * @return This builder for chaining. */ 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
@@ -1432,36 +1322,37 @@ public Builder clearModelFormat() {
      * 
* * string model_format = 4; - * * @param value The bytes for modelFormat to set. * @return This builder for chaining. */ - public Builder setModelFormatBytes(com.google.protobuf.ByteString value) { + public Builder setModelFormatBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelFormat_ = value; onChanged(); return this; } - private com.google.protobuf.MapField params_; - - private com.google.protobuf.MapField internalGetParams() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } - private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged(); - ; + internalGetMutableParams() { + onChanged();; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1473,8 +1364,6 @@ 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
@@ -1486,22 +1375,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 2;
      */
+
     @java.lang.Override
-    public boolean containsParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsParams(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetParams().getMap().containsKey(key);
     }
-    /** Use {@link #getParamsMap()} instead. */
+    /**
+     * Use {@link #getParamsMap()} instead.
+     */
     @java.lang.Override
     @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
@@ -1514,12 +1403,11 @@ public java.util.Map getParams() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
+
     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
@@ -1532,17 +1420,16 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
+
     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();
+        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
@@ -1555,11 +1442,12 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 2;
      */
     @java.lang.Override
-    public java.lang.String getParamsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetParams().getMap();
+
+    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();
       }
@@ -1567,12 +1455,11 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap().clear();
+      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
@@ -1584,21 +1471,23 @@ public Builder clearParams() {
      *
      * map<string, string> params = 2;
      */
-    public Builder removeParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableParams().getMutableMap().remove(key);
+
+    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. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableParams() {
+    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
@@ -1610,19 +1499,16 @@ public java.util.Map getMutableParams() {
      *
      * 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);
+    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
@@ -1634,13 +1520,16 @@ public Builder putParams(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> params = 2;
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+
+    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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1650,12 +1539,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ModelExportOutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ModelExportOutputConfig)
   private static final com.google.cloud.automl.v1.ModelExportOutputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ModelExportOutputConfig();
   }
@@ -1664,16 +1553,16 @@ public static com.google.cloud.automl.v1.ModelExportOutputConfig getDefaultInsta
     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);
-        }
-      };
+  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;
@@ -1688,4 +1577,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.ModelExportOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
similarity index 83%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
index 57d1497ac..46026606f 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/io.proto
 
 package com.google.cloud.automl.v1;
 
-public interface ModelExportOutputConfigOrBuilder
-    extends
+public interface ModelExportOutputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ModelExportOutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -37,16 +19,11 @@ public interface ModelExportOutputConfigOrBuilder
    *  will be written.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -58,16 +35,11 @@ public interface ModelExportOutputConfigOrBuilder
    *  will be written.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsDestination. */ com.google.cloud.automl.v1.GcsDestination getGcsDestination(); /** - * - * *
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -79,15 +51,11 @@ public interface ModelExportOutputConfigOrBuilder
    *  will be written.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * 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
@@ -120,13 +88,10 @@ public interface ModelExportOutputConfigOrBuilder
    * 
* * string model_format = 4; - * * @return The modelFormat. */ 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
@@ -159,14 +124,12 @@ public interface ModelExportOutputConfigOrBuilder
    * 
* * string model_format = 4; - * * @return The bytes for modelFormat. */ - com.google.protobuf.ByteString getModelFormatBytes(); + 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
@@ -180,8 +143,6 @@ public interface ModelExportOutputConfigOrBuilder
    */
   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
@@ -193,13 +154,15 @@ public interface ModelExportOutputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  boolean containsParams(java.lang.String key);
-  /** Use {@link #getParamsMap()} instead. */
+  boolean containsParams(
+      java.lang.String key);
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getParams();
+  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
@@ -211,10 +174,9 @@ public interface ModelExportOutputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.util.Map getParamsMap();
+  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
@@ -226,10 +188,11 @@ public interface ModelExportOutputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  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
@@ -241,7 +204,9 @@ public interface ModelExportOutputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.lang.String getParamsOrThrow(java.lang.String key);
+
+  java.lang.String getParamsOrThrow(
+      java.lang.String key);
 
   public com.google.cloud.automl.v1.ModelExportOutputConfig.DestinationCase getDestinationCase();
 }
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java
similarity index 100%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java
similarity index 75%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java
index 50848b2ea..3b1a40e2d 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java
@@ -1,299 +1,197 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/model.proto
 
 package com.google.cloud.automl.v1;
 
-public interface ModelOrBuilder
-    extends
+public interface ModelOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Model)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Metadata for translation models.
    * 
* * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * * @return Whether the translationModelMetadata field is set. */ boolean hasTranslationModelMetadata(); /** - * - * *
    * Metadata for translation models.
    * 
* * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * * @return The translationModelMetadata. */ com.google.cloud.automl.v1.TranslationModelMetadata getTranslationModelMetadata(); /** - * - * *
    * Metadata for translation models.
    * 
* * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ - com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder - getTranslationModelMetadataOrBuilder(); + com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder(); /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return Whether the imageClassificationModelMetadata field is set. */ boolean hasImageClassificationModelMetadata(); /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return The imageClassificationModelMetadata. */ com.google.cloud.automl.v1.ImageClassificationModelMetadata getImageClassificationModelMetadata(); /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ - com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder - getImageClassificationModelMetadataOrBuilder(); + com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder(); /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return Whether the textClassificationModelMetadata field is set. */ boolean hasTextClassificationModelMetadata(); /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return The textClassificationModelMetadata. */ com.google.cloud.automl.v1.TextClassificationModelMetadata getTextClassificationModelMetadata(); /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ - com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder - getTextClassificationModelMetadataOrBuilder(); + com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder(); /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return Whether the imageObjectDetectionModelMetadata field is set. */ boolean hasImageObjectDetectionModelMetadata(); /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return The imageObjectDetectionModelMetadata. */ - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata - getImageObjectDetectionModelMetadata(); + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata(); /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder - getImageObjectDetectionModelMetadataOrBuilder(); + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder(); /** - * - * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return Whether the textExtractionModelMetadata field is set. */ boolean hasTextExtractionModelMetadata(); /** - * - * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return The textExtractionModelMetadata. */ com.google.cloud.automl.v1.TextExtractionModelMetadata getTextExtractionModelMetadata(); /** - * - * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ - com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder - getTextExtractionModelMetadataOrBuilder(); + com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder(); /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return Whether the textSentimentModelMetadata field is set. */ boolean hasTextSentimentModelMetadata(); /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return The textSentimentModelMetadata. */ com.google.cloud.automl.v1.TextSentimentModelMetadata getTextSentimentModelMetadata(); /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ - com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder - getTextSentimentModelMetadataOrBuilder(); + com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder(); /** - * - * *
    * Output only. Resource name of the model.
    * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the model.
    * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * 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
@@ -302,13 +200,10 @@ public interface ModelOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ 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
@@ -317,65 +212,52 @@ public interface ModelOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * 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; - * * @return The datasetId. */ 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.
    * 
* * string dataset_id = 3; - * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString getDatasetIdBytes(); + com.google.protobuf.ByteString + getDatasetIdBytes(); /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
@@ -385,32 +267,24 @@ public interface ModelOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
@@ -420,62 +294,49 @@ public interface ModelOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Deployment state of the model. A model can only serve
    * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * * @return The enum numeric value on the wire for deploymentState. */ int getDeploymentStateValue(); /** - * - * *
    * Output only. Deployment state of the model. A model can only serve
    * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * * @return The deploymentState. */ com.google.cloud.automl.v1.Model.DeploymentState getDeploymentState(); /** - * - * *
    * Used to perform a consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 10; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Used to perform a consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 10; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -489,8 +350,6 @@ public interface ModelOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -502,13 +361,15 @@ public interface ModelOrBuilder
    *
    * map<string, string> labels = 34;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -520,10 +381,9 @@ public interface ModelOrBuilder
    *
    * map<string, string> labels = 34;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -535,10 +395,11 @@ public interface ModelOrBuilder
    *
    * map<string, string> labels = 34;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -550,7 +411,9 @@ public interface ModelOrBuilder
    *
    * map<string, string> labels = 34;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   public com.google.cloud.automl.v1.Model.ModelMetadataCase getModelMetadataCase();
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOuterClass.java
new file mode 100644
index 000000000..97be4aaad
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOuterClass.java
@@ -0,0 +1,113 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1/model.proto
+
+package com.google.cloud.automl.v1;
+
+public final class ModelOuterClass {
+  private ModelOuterClass() {}
+  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_v1_Model_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_Model_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_Model_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_Model_LabelsEntry_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/v1/model.proto\022\026go" +
+      "ogle.cloud.automl.v1\032\031google/api/resourc" +
+      "e.proto\032\"google/cloud/automl/v1/image.pr" +
+      "oto\032!google/cloud/automl/v1/text.proto\032(" +
+      "google/cloud/automl/v1/translation.proto" +
+      "\032\037google/protobuf/timestamp.proto\032\034googl" +
+      "e/api/annotations.proto\"\361\010\n\005Model\022V\n\032tra" +
+      "nslation_model_metadata\030\017 \001(\01320.google.c" +
+      "loud.automl.v1.TranslationModelMetadataH" +
+      "\000\022g\n#image_classification_model_metadata" +
+      "\030\r \001(\01328.google.cloud.automl.v1.ImageCla" +
+      "ssificationModelMetadataH\000\022e\n\"text_class" +
+      "ification_model_metadata\030\016 \001(\01327.google." +
+      "cloud.automl.v1.TextClassificationModelM" +
+      "etadataH\000\022j\n%image_object_detection_mode" +
+      "l_metadata\030\024 \001(\01329.google.cloud.automl.v" +
+      "1.ImageObjectDetectionModelMetadataH\000\022]\n" +
+      "\036text_extraction_model_metadata\030\023 \001(\01323." +
+      "google.cloud.automl.v1.TextExtractionMod" +
+      "elMetadataH\000\022[\n\035text_sentiment_model_met" +
+      "adata\030\026 \001(\01322.google.cloud.automl.v1.Tex" +
+      "tSentimentModelMetadataH\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\013update_time\030\013 \001(\0132\032.google" +
+      ".protobuf.Timestamp\022G\n\020deployment_state\030" +
+      "\010 \001(\0162-.google.cloud.automl.v1.Model.Dep" +
+      "loymentState\022\014\n\004etag\030\n \001(\t\0229\n\006labels\030\" \003" +
+      "(\0132).google.cloud.automl.v1.Model.Labels" +
+      "Entry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" +
+      "ue\030\002 \001(\t:\0028\001\"Q\n\017DeploymentState\022 \n\034DEPLO" +
+      "YMENT_STATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020\001\022" +
+      "\016\n\nUNDEPLOYED\020\002:X\352AU\n\033automl.googleapis." +
+      "com/Model\0226projects/{project}/locations/" +
+      "{location}/models/{model}B\020\n\016model_metad" +
+      "ataB\252\001\n\032com.google.cloud.automl.v1P\001Z
  * A vertex represents a 2D point in the image.
  * The normalized vertex coordinates are between 0 to 1 fractions relative to
@@ -31,29 +14,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.NormalizedVertex}
  */
-public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NormalizedVertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.NormalizedVertex)
     NormalizedVertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private NormalizedVertex() {}
+  private NormalizedVertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,61 +56,56 @@ private NormalizedVertex(
           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;
+          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);
+      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.v1.Geometry
-        .internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Geometry
-        .internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.NormalizedVertex.class,
-            com.google.cloud.automl.v1.NormalizedVertex.Builder.class);
+            com.google.cloud.automl.v1.NormalizedVertex.class, com.google.cloud.automl.v1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * Required. Horizontal coordinate.
    * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -137,14 +116,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Required. Vertical coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -153,7 +129,6 @@ public float getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (x_ != 0F) { output.writeFloat(1, x_); } @@ -182,10 +158,12 @@ public int getSerializedSize() { size = 0; if (x_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (y_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,18 +173,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.automl.v1.NormalizedVertex other = - (com.google.cloud.automl.v1.NormalizedVertex) obj; + com.google.cloud.automl.v1.NormalizedVertex other = (com.google.cloud.automl.v1.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 (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; } @@ -219,112 +198,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.NormalizedVertex parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.NormalizedVertex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.NormalizedVertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.NormalizedVertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.NormalizedVertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.NormalizedVertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.NormalizedVertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -335,23 +309,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.NormalizedVertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.NormalizedVertex)
       com.google.cloud.automl.v1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.Geometry
-          .internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Geometry
-          .internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.NormalizedVertex.class,
-              com.google.cloud.automl.v1.NormalizedVertex.Builder.class);
+              com.google.cloud.automl.v1.NormalizedVertex.class, com.google.cloud.automl.v1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.NormalizedVertex.newBuilder()
@@ -359,15 +331,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -379,9 +352,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.Geometry
-          .internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -400,8 +373,7 @@ public com.google.cloud.automl.v1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.NormalizedVertex buildPartial() {
-      com.google.cloud.automl.v1.NormalizedVertex result =
-          new com.google.cloud.automl.v1.NormalizedVertex(this);
+      com.google.cloud.automl.v1.NormalizedVertex result = new com.google.cloud.automl.v1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -412,39 +384,38 @@ public com.google.cloud.automl.v1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.automl.v1.NormalizedVertex) other);
+        return mergeFrom((com.google.cloud.automl.v1.NormalizedVertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -488,16 +459,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * Required. Horizontal coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -505,51 +473,42 @@ public float getX() { return x_; } /** - * - * *
      * Required. Horizontal coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * Required. Horizontal coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -557,43 +516,37 @@ public float getY() { return y_; } /** - * - * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +556,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.NormalizedVertex) private static final com.google.cloud.automl.v1.NormalizedVertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.NormalizedVertex(); } @@ -617,16 +570,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -641,4 +594,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..432a7d0d5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/NormalizedVertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/geometry.proto + +package com.google.cloud.automl.v1; + +public interface NormalizedVertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Horizontal coordinate.
+   * 
+ * + * float x = 1; + * @return The x. + */ + float getX(); + + /** + *
+   * Required. Vertical coordinate.
+   * 
+ * + * float y = 2; + * @return The y. + */ + float getY(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java similarity index 72% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java index f183e108e..e7836c8cb 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** - * - * *
  * Metadata used across all long running operations returned by AutoML API.
  * 
* * Protobuf type {@code google.cloud.automl.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { partialFailures_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,240 +54,186 @@ private OperationMetadata( case 0: done = true; break; - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - partialFailures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - partialFailures_.add( - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); - break; + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + partialFailures_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + partialFailures_.add( + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + com.google.cloud.automl.v1.DeleteOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 8) { + subBuilder = ((com.google.cloud.automl.v1.DeleteOperationMetadata) details_).toBuilder(); + } + details_ = + input.readMessage(com.google.cloud.automl.v1.DeleteOperationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.DeleteOperationMetadata) details_); + details_ = subBuilder.buildPartial(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } + detailsCase_ = 8; + break; + } + case 82: { + com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 10) { + subBuilder = ((com.google.cloud.automl.v1.CreateModelOperationMetadata) details_).toBuilder(); + } + details_ = + input.readMessage(com.google.cloud.automl.v1.CreateModelOperationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.CreateModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 10; + break; + } + case 104: { - break; + progressPercent_ = input.readInt32(); + break; + } + case 122: { + com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 15) { + subBuilder = ((com.google.cloud.automl.v1.ImportDataOperationMetadata) details_).toBuilder(); + } + details_ = + input.readMessage(com.google.cloud.automl.v1.ImportDataOperationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ImportDataOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 15; + break; + } + case 130: { + com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 16) { + subBuilder = ((com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_).toBuilder(); } - case 66: - { - com.google.cloud.automl.v1.DeleteOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 8) { - subBuilder = - ((com.google.cloud.automl.v1.DeleteOperationMetadata) details_).toBuilder(); - } - details_ = - input.readMessage( - com.google.cloud.automl.v1.DeleteOperationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.DeleteOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 8; - break; + details_ = + input.readMessage(com.google.cloud.automl.v1.BatchPredictOperationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 16; + break; + } + case 170: { + com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 21) { + subBuilder = ((com.google.cloud.automl.v1.ExportDataOperationMetadata) details_).toBuilder(); } - case 82: - { - com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 10) { - subBuilder = - ((com.google.cloud.automl.v1.CreateModelOperationMetadata) details_) - .toBuilder(); - } - details_ = - input.readMessage( - com.google.cloud.automl.v1.CreateModelOperationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 10; - break; + details_ = + input.readMessage(com.google.cloud.automl.v1.ExportDataOperationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ExportDataOperationMetadata) details_); + details_ = subBuilder.buildPartial(); } - case 104: - { - progressPercent_ = input.readInt32(); - break; + detailsCase_ = 21; + break; + } + case 178: { + com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 22) { + subBuilder = ((com.google.cloud.automl.v1.ExportModelOperationMetadata) details_).toBuilder(); } - case 122: - { - com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 15) { - subBuilder = - ((com.google.cloud.automl.v1.ImportDataOperationMetadata) details_).toBuilder(); - } - details_ = - input.readMessage( - com.google.cloud.automl.v1.ImportDataOperationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 15; - break; + details_ = + input.readMessage(com.google.cloud.automl.v1.ExportModelOperationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ExportModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); } - case 130: - { - com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 16) { - subBuilder = - ((com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_) - .toBuilder(); - } - details_ = - input.readMessage( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 16; - break; + detailsCase_ = 22; + break; + } + case 194: { + com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 24) { + subBuilder = ((com.google.cloud.automl.v1.DeployModelOperationMetadata) details_).toBuilder(); } - case 170: - { - com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 21) { - subBuilder = - ((com.google.cloud.automl.v1.ExportDataOperationMetadata) details_).toBuilder(); - } - details_ = - input.readMessage( - com.google.cloud.automl.v1.ExportDataOperationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 21; - break; + details_ = + input.readMessage(com.google.cloud.automl.v1.DeployModelOperationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.DeployModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); } - case 178: - { - com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 22) { - subBuilder = - ((com.google.cloud.automl.v1.ExportModelOperationMetadata) details_) - .toBuilder(); - } - details_ = - input.readMessage( - com.google.cloud.automl.v1.ExportModelOperationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 22; - break; + detailsCase_ = 24; + break; + } + case 202: { + com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 25) { + subBuilder = ((com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_).toBuilder(); } - case 194: - { - com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 24) { - subBuilder = - ((com.google.cloud.automl.v1.DeployModelOperationMetadata) details_) - .toBuilder(); - } - details_ = - input.readMessage( - com.google.cloud.automl.v1.DeployModelOperationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 24; - break; + details_ = + input.readMessage(com.google.cloud.automl.v1.UndeployModelOperationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); } - case 202: - { - com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 25) { - subBuilder = - ((com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_) - .toBuilder(); - } - details_ = - input.readMessage( - com.google.cloud.automl.v1.UndeployModelOperationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 25; - break; + detailsCase_ = 25; + break; + } + case 242: { + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 30) { + subBuilder = ((com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_).toBuilder(); } - case 242: - { - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 30) { - subBuilder = - ((com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_) - .toBuilder(); - } - details_ = - input.readMessage( - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 30; - break; + details_ = + input.readMessage(com.google.cloud.automl.v1.CreateDatasetOperationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_); + details_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + detailsCase_ = 30; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); @@ -313,28 +242,23 @@ private OperationMetadata( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.OperationMetadata.class, - com.google.cloud.automl.v1.OperationMetadata.Builder.class); + com.google.cloud.automl.v1.OperationMetadata.class, com.google.cloud.automl.v1.OperationMetadata.Builder.class); } private int detailsCase_ = 0; private java.lang.Object details_; - public enum DetailsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DELETE_DETAILS(8), DEPLOY_MODEL_DETAILS(24), @@ -347,7 +271,6 @@ public enum DetailsCase EXPORT_MODEL_DETAILS(22), DETAILS_NOT_SET(0); private final int value; - private DetailsCase(int value) { this.value = value; } @@ -363,50 +286,37 @@ 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 30: - return CREATE_DATASET_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 0: - return DETAILS_NOT_SET; - default: - return null; + case 8: return DELETE_DETAILS; + case 24: return DEPLOY_MODEL_DETAILS; + case 25: return UNDEPLOY_MODEL_DETAILS; + case 10: return CREATE_MODEL_DETAILS; + case 30: return CREATE_DATASET_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 0: return DETAILS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DetailsCase getDetailsCase() { - return DetailsCase.forNumber(detailsCase_); + public DetailsCase + getDetailsCase() { + return DetailsCase.forNumber( + detailsCase_); } public static final int DELETE_DETAILS_FIELD_NUMBER = 8; /** - * - * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; - * * @return Whether the deleteDetails field is set. */ @java.lang.Override @@ -414,26 +324,21 @@ public boolean hasDeleteDetails() { return detailsCase_ == 8; } /** - * - * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; - * * @return The deleteDetails. */ @java.lang.Override public com.google.cloud.automl.v1.DeleteOperationMetadata getDeleteDetails() { if (detailsCase_ == 8) { - return (com.google.cloud.automl.v1.DeleteOperationMetadata) details_; + return (com.google.cloud.automl.v1.DeleteOperationMetadata) details_; } return com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of a Delete operation.
    * 
@@ -443,21 +348,18 @@ public com.google.cloud.automl.v1.DeleteOperationMetadata getDeleteDetails() { @java.lang.Override public com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder getDeleteDetailsOrBuilder() { if (detailsCase_ == 8) { - return (com.google.cloud.automl.v1.DeleteOperationMetadata) details_; + return (com.google.cloud.automl.v1.DeleteOperationMetadata) details_; } return com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance(); } public static final int DEPLOY_MODEL_DETAILS_FIELD_NUMBER = 24; /** - * - * *
    * Details of a DeployModel operation.
    * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; - * * @return Whether the deployModelDetails field is set. */ @java.lang.Override @@ -465,26 +367,21 @@ public boolean hasDeployModelDetails() { return detailsCase_ == 24; } /** - * - * *
    * Details of a DeployModel operation.
    * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; - * * @return The deployModelDetails. */ @java.lang.Override public com.google.cloud.automl.v1.DeployModelOperationMetadata getDeployModelDetails() { if (detailsCase_ == 24) { - return (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_; } return com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of a DeployModel operation.
    * 
@@ -492,25 +389,20 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadata getDeployModelDet * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ @java.lang.Override - public com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder - getDeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder() { if (detailsCase_ == 24) { - return (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_; } return com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance(); } public static final int UNDEPLOY_MODEL_DETAILS_FIELD_NUMBER = 25; /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return Whether the undeployModelDetails field is set. */ @java.lang.Override @@ -518,53 +410,42 @@ public boolean hasUndeployModelDetails() { return detailsCase_ == 25; } /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return The undeployModelDetails. */ @java.lang.Override public com.google.cloud.automl.v1.UndeployModelOperationMetadata getUndeployModelDetails() { if (detailsCase_ == 25) { - return (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_; } return com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; */ @java.lang.Override - public com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder - getUndeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder() { if (detailsCase_ == 25) { - return (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_; } return com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance(); } public static final int CREATE_MODEL_DETAILS_FIELD_NUMBER = 10; /** - * - * *
    * Details of CreateModel operation.
    * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; - * * @return Whether the createModelDetails field is set. */ @java.lang.Override @@ -572,26 +453,21 @@ public boolean hasCreateModelDetails() { return detailsCase_ == 10; } /** - * - * *
    * Details of CreateModel operation.
    * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; - * * @return The createModelDetails. */ @java.lang.Override public com.google.cloud.automl.v1.CreateModelOperationMetadata getCreateModelDetails() { if (detailsCase_ == 10) { - return (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_; } return com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of CreateModel operation.
    * 
@@ -599,25 +475,20 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadata getCreateModelDet * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ @java.lang.Override - public com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder - getCreateModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder() { if (detailsCase_ == 10) { - return (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_; } return com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance(); } public static final int CREATE_DATASET_DETAILS_FIELD_NUMBER = 30; /** - * - * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; * @return Whether the createDatasetDetails field is set. */ @java.lang.Override @@ -625,53 +496,42 @@ public boolean hasCreateDatasetDetails() { return detailsCase_ == 30; } /** - * - * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; * @return The createDatasetDetails. */ @java.lang.Override public com.google.cloud.automl.v1.CreateDatasetOperationMetadata getCreateDatasetDetails() { if (detailsCase_ == 30) { - return (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_; + return (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_; } return com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; */ @java.lang.Override - public com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder - getCreateDatasetDetailsOrBuilder() { + public com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder getCreateDatasetDetailsOrBuilder() { if (detailsCase_ == 30) { - return (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_; + return (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_; } return com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance(); } public static final int IMPORT_DATA_DETAILS_FIELD_NUMBER = 15; /** - * - * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; - * * @return Whether the importDataDetails field is set. */ @java.lang.Override @@ -679,26 +539,21 @@ public boolean hasImportDataDetails() { return detailsCase_ == 15; } /** - * - * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; - * * @return The importDataDetails. */ @java.lang.Override public com.google.cloud.automl.v1.ImportDataOperationMetadata getImportDataDetails() { if (detailsCase_ == 15) { - return (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_; + return (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_; } return com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of ImportData operation.
    * 
@@ -706,24 +561,20 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadata getImportDataDetai * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ @java.lang.Override - public com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder - getImportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder getImportDataDetailsOrBuilder() { if (detailsCase_ == 15) { - return (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_; + return (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_; } return com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance(); } public static final int BATCH_PREDICT_DETAILS_FIELD_NUMBER = 16; /** - * - * *
    * Details of BatchPredict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * * @return Whether the batchPredictDetails field is set. */ @java.lang.Override @@ -731,26 +582,21 @@ public boolean hasBatchPredictDetails() { return detailsCase_ == 16; } /** - * - * *
    * Details of BatchPredict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * * @return The batchPredictDetails. */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictOperationMetadata getBatchPredictDetails() { if (detailsCase_ == 16) { - return (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_; + return (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_; } return com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of BatchPredict operation.
    * 
@@ -758,24 +604,20 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadata getBatchPredictD * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder - getBatchPredictDetailsOrBuilder() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder() { if (detailsCase_ == 16) { - return (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_; + return (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_; } return com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance(); } public static final int EXPORT_DATA_DETAILS_FIELD_NUMBER = 21; /** - * - * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; - * * @return Whether the exportDataDetails field is set. */ @java.lang.Override @@ -783,26 +625,21 @@ public boolean hasExportDataDetails() { return detailsCase_ == 21; } /** - * - * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; - * * @return The exportDataDetails. */ @java.lang.Override public com.google.cloud.automl.v1.ExportDataOperationMetadata getExportDataDetails() { if (detailsCase_ == 21) { - return (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_; + return (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_; } return com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of ExportData operation.
    * 
@@ -810,24 +647,20 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata getExportDataDetai * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ @java.lang.Override - public com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder - getExportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder getExportDataDetailsOrBuilder() { if (detailsCase_ == 21) { - return (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_; + return (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_; } return com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance(); } public static final int EXPORT_MODEL_DETAILS_FIELD_NUMBER = 22; /** - * - * *
    * Details of ExportModel operation.
    * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; - * * @return Whether the exportModelDetails field is set. */ @java.lang.Override @@ -835,26 +668,21 @@ public boolean hasExportModelDetails() { return detailsCase_ == 22; } /** - * - * *
    * Details of ExportModel operation.
    * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; - * * @return The exportModelDetails. */ @java.lang.Override public com.google.cloud.automl.v1.ExportModelOperationMetadata getExportModelDetails() { if (detailsCase_ == 22) { - return (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_; } return com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of ExportModel operation.
    * 
@@ -862,10 +690,9 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata getExportModelDet * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder - getExportModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder() { if (detailsCase_ == 22) { - return (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_; } return com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance(); } @@ -873,15 +700,12 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata getExportModelDet 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; - * * @return The progressPercent. */ @java.lang.Override @@ -892,8 +716,6 @@ public int getProgressPercent() { 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.
@@ -908,8 +730,6 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -920,13 +740,11 @@ public java.util.List getPartialFailuresList() {
    * repeated .google.rpc.Status partial_failures = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPartialFailuresOrBuilderList() {
     return partialFailures_;
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -941,8 +759,6 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -957,8 +773,6 @@ public com.google.rpc.Status getPartialFailures(int index) {
     return partialFailures_.get(index);
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -969,21 +783,19 @@ public com.google.rpc.Status getPartialFailures(int index) {
    * repeated .google.rpc.Status partial_failures = 2;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
+  public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
+      int index) {
     return partialFailures_.get(index);
   }
 
   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; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -991,14 +803,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -1006,8 +815,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when the operation was created.
    * 
@@ -1022,14 +829,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1037,14 +841,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ @java.lang.Override @@ -1052,8 +853,6 @@ 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.
    * 
@@ -1066,7 +865,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1078,7 +876,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -1128,61 +927,56 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < partialFailures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, partialFailures_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, partialFailures_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (detailsCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.automl.v1.DeleteOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.automl.v1.DeleteOperationMetadata) details_); } if (detailsCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(13, progressPercent_); } if (detailsCase_ == 15) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_); } if (detailsCase_ == 16) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_); } if (detailsCase_ == 21) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_); } if (detailsCase_ == 22) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_); } if (detailsCase_ == 24) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 24, (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_); } if (detailsCase_ == 25) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 25, (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_); } if (detailsCase_ == 30) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 30, (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1192,52 +986,64 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.OperationMetadata other = - (com.google.cloud.automl.v1.OperationMetadata) obj; + com.google.cloud.automl.v1.OperationMetadata other = (com.google.cloud.automl.v1.OperationMetadata) obj; - if (getProgressPercent() != other.getProgressPercent()) return false; - if (!getPartialFailuresList().equals(other.getPartialFailuresList())) return false; + 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 (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + 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; + if (!getDeleteDetails() + .equals(other.getDeleteDetails())) return false; break; case 24: - if (!getDeployModelDetails().equals(other.getDeployModelDetails())) return false; + if (!getDeployModelDetails() + .equals(other.getDeployModelDetails())) return false; break; case 25: - if (!getUndeployModelDetails().equals(other.getUndeployModelDetails())) return false; + if (!getUndeployModelDetails() + .equals(other.getUndeployModelDetails())) return false; break; case 10: - if (!getCreateModelDetails().equals(other.getCreateModelDetails())) return false; + if (!getCreateModelDetails() + .equals(other.getCreateModelDetails())) return false; break; case 30: - if (!getCreateDatasetDetails().equals(other.getCreateDatasetDetails())) return false; + if (!getCreateDatasetDetails() + .equals(other.getCreateDatasetDetails())) return false; break; case 15: - if (!getImportDataDetails().equals(other.getImportDataDetails())) return false; + if (!getImportDataDetails() + .equals(other.getImportDataDetails())) return false; break; case 16: - if (!getBatchPredictDetails().equals(other.getBatchPredictDetails())) return false; + if (!getBatchPredictDetails() + .equals(other.getBatchPredictDetails())) return false; break; case 21: - if (!getExportDataDetails().equals(other.getExportDataDetails())) return false; + if (!getExportDataDetails() + .equals(other.getExportDataDetails())) return false; break; case 22: - if (!getExportModelDetails().equals(other.getExportModelDetails())) return false; + if (!getExportModelDetails() + .equals(other.getExportModelDetails())) return false; break; case 0: default: @@ -1312,127 +1118,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.OperationMetadata) com.google.cloud.automl.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.OperationMetadata.class, - com.google.cloud.automl.v1.OperationMetadata.Builder.class); + com.google.cloud.automl.v1.OperationMetadata.class, com.google.cloud.automl.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.OperationMetadata.newBuilder() @@ -1440,17 +1237,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPartialFailuresFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1480,9 +1277,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -1501,8 +1298,7 @@ public com.google.cloud.automl.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.OperationMetadata buildPartial() { - com.google.cloud.automl.v1.OperationMetadata result = - new com.google.cloud.automl.v1.OperationMetadata(this); + com.google.cloud.automl.v1.OperationMetadata result = new com.google.cloud.automl.v1.OperationMetadata(this); int from_bitField0_ = bitField0_; if (detailsCase_ == 8) { if (deleteDetailsBuilder_ == null) { @@ -1596,39 +1392,38 @@ public com.google.cloud.automl.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1658,10 +1453,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1.OperationMetadata other) { partialFailuresBuilder_ = null; partialFailures_ = other.partialFailures_; bitField0_ = (bitField0_ & ~0x00000001); - partialFailuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialFailuresFieldBuilder() - : null; + partialFailuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialFailuresFieldBuilder() : null; } else { partialFailuresBuilder_.addAllMessages(other.partialFailures_); } @@ -1674,55 +1468,45 @@ public Builder mergeFrom(com.google.cloud.automl.v1.OperationMetadata other) { 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 CREATE_DATASET_DETAILS: - { - mergeCreateDatasetDetails(other.getCreateDatasetDetails()); - 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 DETAILS_NOT_SET: - { - break; - } + 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 CREATE_DATASET_DETAILS: { + mergeCreateDatasetDetails(other.getCreateDatasetDetails()); + 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 DETAILS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1752,12 +1536,12 @@ public Builder mergeFrom( } return this; } - private int detailsCase_ = 0; private java.lang.Object details_; - - public DetailsCase getDetailsCase() { - return DetailsCase.forNumber(detailsCase_); + public DetailsCase + getDetailsCase() { + return DetailsCase.forNumber( + detailsCase_); } public Builder clearDetails() { @@ -1770,19 +1554,13 @@ public Builder clearDetails() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeleteOperationMetadata, - com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, - com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder> - deleteDetailsBuilder_; + com.google.cloud.automl.v1.DeleteOperationMetadata, com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder> deleteDetailsBuilder_; /** - * - * *
      * Details of a Delete operation.
      * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; - * * @return Whether the deleteDetails field is set. */ @java.lang.Override @@ -1790,14 +1568,11 @@ public boolean hasDeleteDetails() { return detailsCase_ == 8; } /** - * - * *
      * Details of a Delete operation.
      * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; - * * @return The deleteDetails. */ @java.lang.Override @@ -1815,8 +1590,6 @@ public com.google.cloud.automl.v1.DeleteOperationMetadata getDeleteDetails() { } } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1837,8 +1610,6 @@ public Builder setDeleteDetails(com.google.cloud.automl.v1.DeleteOperationMetada return this; } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1857,8 +1628,6 @@ public Builder setDeleteDetails( return this; } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1867,14 +1636,10 @@ public Builder setDeleteDetails( */ public Builder mergeDeleteDetails(com.google.cloud.automl.v1.DeleteOperationMetadata value) { if (deleteDetailsBuilder_ == null) { - if (detailsCase_ == 8 - && details_ - != com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance()) { - details_ = - com.google.cloud.automl.v1.DeleteOperationMetadata.newBuilder( - (com.google.cloud.automl.v1.DeleteOperationMetadata) details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 8 && + details_ != com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.automl.v1.DeleteOperationMetadata.newBuilder((com.google.cloud.automl.v1.DeleteOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -1889,8 +1654,6 @@ public Builder mergeDeleteDetails(com.google.cloud.automl.v1.DeleteOperationMeta return this; } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1914,8 +1677,6 @@ public Builder clearDeleteDetails() { return this; } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1926,8 +1687,6 @@ public com.google.cloud.automl.v1.DeleteOperationMetadata.Builder getDeleteDetai return getDeleteDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1946,8 +1705,6 @@ public com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder getDeleteDeta } } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1955,44 +1712,32 @@ public com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder getDeleteDeta * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeleteOperationMetadata, - com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, - com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder> + com.google.cloud.automl.v1.DeleteOperationMetadata, com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder> getDeleteDetailsFieldBuilder() { if (deleteDetailsBuilder_ == null) { if (!(detailsCase_ == 8)) { details_ = com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance(); } - deleteDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeleteOperationMetadata, - com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, - com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder>( + deleteDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.DeleteOperationMetadata, com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.DeleteOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 8; - onChanged(); - ; + onChanged();; return deleteDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeployModelOperationMetadata, - com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, - com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder> - deployModelDetailsBuilder_; + com.google.cloud.automl.v1.DeployModelOperationMetadata, com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder> deployModelDetailsBuilder_; /** - * - * *
      * Details of a DeployModel operation.
      * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; - * * @return Whether the deployModelDetails field is set. */ @java.lang.Override @@ -2000,14 +1745,11 @@ public boolean hasDeployModelDetails() { return detailsCase_ == 24; } /** - * - * *
      * Details of a DeployModel operation.
      * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; - * * @return The deployModelDetails. */ @java.lang.Override @@ -2025,16 +1767,13 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadata getDeployModelDet } } /** - * - * *
      * Details of a DeployModel operation.
      * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ - public Builder setDeployModelDetails( - com.google.cloud.automl.v1.DeployModelOperationMetadata value) { + public Builder setDeployModelDetails(com.google.cloud.automl.v1.DeployModelOperationMetadata value) { if (deployModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2048,8 +1787,6 @@ public Builder setDeployModelDetails( return this; } /** - * - * *
      * Details of a DeployModel operation.
      * 
@@ -2068,25 +1805,18 @@ public Builder setDeployModelDetails( return this; } /** - * - * *
      * Details of a DeployModel operation.
      * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ - public Builder mergeDeployModelDetails( - com.google.cloud.automl.v1.DeployModelOperationMetadata value) { + public Builder mergeDeployModelDetails(com.google.cloud.automl.v1.DeployModelOperationMetadata value) { if (deployModelDetailsBuilder_ == null) { - if (detailsCase_ == 24 - && details_ - != com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance()) { - details_ = - com.google.cloud.automl.v1.DeployModelOperationMetadata.newBuilder( - (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 24 && + details_ != com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.automl.v1.DeployModelOperationMetadata.newBuilder((com.google.cloud.automl.v1.DeployModelOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -2101,8 +1831,6 @@ public Builder mergeDeployModelDetails( return this; } /** - * - * *
      * Details of a DeployModel operation.
      * 
@@ -2126,21 +1854,16 @@ public Builder clearDeployModelDetails() { return this; } /** - * - * *
      * Details of a DeployModel operation.
      * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ - public com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder - getDeployModelDetailsBuilder() { + public com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder getDeployModelDetailsBuilder() { return getDeployModelDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of a DeployModel operation.
      * 
@@ -2148,8 +1871,7 @@ public Builder clearDeployModelDetails() { * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ @java.lang.Override - public com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder - getDeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder() { if ((detailsCase_ == 24) && (deployModelDetailsBuilder_ != null)) { return deployModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2160,8 +1882,6 @@ public Builder clearDeployModelDetails() { } } /** - * - * *
      * Details of a DeployModel operation.
      * 
@@ -2169,45 +1889,32 @@ public Builder clearDeployModelDetails() { * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeployModelOperationMetadata, - com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, - com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder> + com.google.cloud.automl.v1.DeployModelOperationMetadata, com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder> getDeployModelDetailsFieldBuilder() { if (deployModelDetailsBuilder_ == null) { if (!(detailsCase_ == 24)) { details_ = com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance(); } - deployModelDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeployModelOperationMetadata, - com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, - com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder>( + deployModelDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.DeployModelOperationMetadata, com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 24; - onChanged(); - ; + onChanged();; return deployModelDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.UndeployModelOperationMetadata, - com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, - com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder> - undeployModelDetailsBuilder_; + com.google.cloud.automl.v1.UndeployModelOperationMetadata, com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder> undeployModelDetailsBuilder_; /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return Whether the undeployModelDetails field is set. */ @java.lang.Override @@ -2215,15 +1922,11 @@ public boolean hasUndeployModelDetails() { return detailsCase_ == 25; } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return The undeployModelDetails. */ @java.lang.Override @@ -2241,17 +1944,13 @@ public com.google.cloud.automl.v1.UndeployModelOperationMetadata getUndeployMode } } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; */ - public Builder setUndeployModelDetails( - com.google.cloud.automl.v1.UndeployModelOperationMetadata value) { + public Builder setUndeployModelDetails(com.google.cloud.automl.v1.UndeployModelOperationMetadata value) { if (undeployModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2265,14 +1964,11 @@ public Builder setUndeployModelDetails( return this; } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; */ public Builder setUndeployModelDetails( com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder builderForValue) { @@ -2286,26 +1982,18 @@ public Builder setUndeployModelDetails( return this; } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; */ - public Builder mergeUndeployModelDetails( - com.google.cloud.automl.v1.UndeployModelOperationMetadata value) { + public Builder mergeUndeployModelDetails(com.google.cloud.automl.v1.UndeployModelOperationMetadata value) { if (undeployModelDetailsBuilder_ == null) { - if (detailsCase_ == 25 - && details_ - != com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance()) { - details_ = - com.google.cloud.automl.v1.UndeployModelOperationMetadata.newBuilder( - (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 25 && + details_ != com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.automl.v1.UndeployModelOperationMetadata.newBuilder((com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -2320,14 +2008,11 @@ public Builder mergeUndeployModelDetails( return this; } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; */ public Builder clearUndeployModelDetails() { if (undeployModelDetailsBuilder_ == null) { @@ -2346,32 +2031,24 @@ public Builder clearUndeployModelDetails() { return this; } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; */ - public com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder - getUndeployModelDetailsBuilder() { + public com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder getUndeployModelDetailsBuilder() { return getUndeployModelDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; */ @java.lang.Override - public com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder - getUndeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder() { if ((detailsCase_ == 25) && (undeployModelDetailsBuilder_ != null)) { return undeployModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2382,54 +2059,39 @@ public Builder clearUndeployModelDetails() { } } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.UndeployModelOperationMetadata, - com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, - com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder> + com.google.cloud.automl.v1.UndeployModelOperationMetadata, com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder> getUndeployModelDetailsFieldBuilder() { if (undeployModelDetailsBuilder_ == null) { if (!(detailsCase_ == 25)) { details_ = com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance(); } - undeployModelDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.UndeployModelOperationMetadata, - com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, - com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder>( + undeployModelDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.UndeployModelOperationMetadata, com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 25; - onChanged(); - ; + onChanged();; return undeployModelDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateModelOperationMetadata, - com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, - com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder> - createModelDetailsBuilder_; + com.google.cloud.automl.v1.CreateModelOperationMetadata, com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder> createModelDetailsBuilder_; /** - * - * *
      * Details of CreateModel operation.
      * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; - * * @return Whether the createModelDetails field is set. */ @java.lang.Override @@ -2437,14 +2099,11 @@ public boolean hasCreateModelDetails() { return detailsCase_ == 10; } /** - * - * *
      * Details of CreateModel operation.
      * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; - * * @return The createModelDetails. */ @java.lang.Override @@ -2462,16 +2121,13 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadata getCreateModelDet } } /** - * - * *
      * Details of CreateModel operation.
      * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ - public Builder setCreateModelDetails( - com.google.cloud.automl.v1.CreateModelOperationMetadata value) { + public Builder setCreateModelDetails(com.google.cloud.automl.v1.CreateModelOperationMetadata value) { if (createModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2485,8 +2141,6 @@ public Builder setCreateModelDetails( return this; } /** - * - * *
      * Details of CreateModel operation.
      * 
@@ -2505,25 +2159,18 @@ public Builder setCreateModelDetails( return this; } /** - * - * *
      * Details of CreateModel operation.
      * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ - public Builder mergeCreateModelDetails( - com.google.cloud.automl.v1.CreateModelOperationMetadata value) { + public Builder mergeCreateModelDetails(com.google.cloud.automl.v1.CreateModelOperationMetadata value) { if (createModelDetailsBuilder_ == null) { - if (detailsCase_ == 10 - && details_ - != com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance()) { - details_ = - com.google.cloud.automl.v1.CreateModelOperationMetadata.newBuilder( - (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 10 && + details_ != com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.automl.v1.CreateModelOperationMetadata.newBuilder((com.google.cloud.automl.v1.CreateModelOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -2538,8 +2185,6 @@ public Builder mergeCreateModelDetails( return this; } /** - * - * *
      * Details of CreateModel operation.
      * 
@@ -2563,21 +2208,16 @@ public Builder clearCreateModelDetails() { return this; } /** - * - * *
      * Details of CreateModel operation.
      * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ - public com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder - getCreateModelDetailsBuilder() { + public com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder getCreateModelDetailsBuilder() { return getCreateModelDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of CreateModel operation.
      * 
@@ -2585,8 +2225,7 @@ public Builder clearCreateModelDetails() { * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ @java.lang.Override - public com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder - getCreateModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder() { if ((detailsCase_ == 10) && (createModelDetailsBuilder_ != null)) { return createModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2597,8 +2236,6 @@ public Builder clearCreateModelDetails() { } } /** - * - * *
      * Details of CreateModel operation.
      * 
@@ -2606,45 +2243,32 @@ public Builder clearCreateModelDetails() { * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateModelOperationMetadata, - com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, - com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder> + com.google.cloud.automl.v1.CreateModelOperationMetadata, com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder> getCreateModelDetailsFieldBuilder() { if (createModelDetailsBuilder_ == null) { if (!(detailsCase_ == 10)) { details_ = com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance(); } - createModelDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateModelOperationMetadata, - com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, - com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder>( + createModelDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.CreateModelOperationMetadata, com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 10; - onChanged(); - ; + onChanged();; return createModelDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateDatasetOperationMetadata, - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, - com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder> - createDatasetDetailsBuilder_; + com.google.cloud.automl.v1.CreateDatasetOperationMetadata, com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder> createDatasetDetailsBuilder_; /** - * - * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; * @return Whether the createDatasetDetails field is set. */ @java.lang.Override @@ -2652,15 +2276,11 @@ public boolean hasCreateDatasetDetails() { return detailsCase_ == 30; } /** - * - * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; * @return The createDatasetDetails. */ @java.lang.Override @@ -2678,17 +2298,13 @@ public com.google.cloud.automl.v1.CreateDatasetOperationMetadata getCreateDatase } } /** - * - * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; */ - public Builder setCreateDatasetDetails( - com.google.cloud.automl.v1.CreateDatasetOperationMetadata value) { + public Builder setCreateDatasetDetails(com.google.cloud.automl.v1.CreateDatasetOperationMetadata value) { if (createDatasetDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2702,14 +2318,11 @@ public Builder setCreateDatasetDetails( return this; } /** - * - * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; */ public Builder setCreateDatasetDetails( com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder builderForValue) { @@ -2723,26 +2336,18 @@ public Builder setCreateDatasetDetails( return this; } /** - * - * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; */ - public Builder mergeCreateDatasetDetails( - com.google.cloud.automl.v1.CreateDatasetOperationMetadata value) { + public Builder mergeCreateDatasetDetails(com.google.cloud.automl.v1.CreateDatasetOperationMetadata value) { if (createDatasetDetailsBuilder_ == null) { - if (detailsCase_ == 30 - && details_ - != com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance()) { - details_ = - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.newBuilder( - (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 30 && + details_ != com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.automl.v1.CreateDatasetOperationMetadata.newBuilder((com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -2757,14 +2362,11 @@ public Builder mergeCreateDatasetDetails( return this; } /** - * - * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; */ public Builder clearCreateDatasetDetails() { if (createDatasetDetailsBuilder_ == null) { @@ -2783,32 +2385,24 @@ public Builder clearCreateDatasetDetails() { return this; } /** - * - * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; */ - public com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder - getCreateDatasetDetailsBuilder() { + public com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder getCreateDatasetDetailsBuilder() { return getCreateDatasetDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; */ @java.lang.Override - public com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder - getCreateDatasetDetailsOrBuilder() { + public com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder getCreateDatasetDetailsOrBuilder() { if ((detailsCase_ == 30) && (createDatasetDetailsBuilder_ != null)) { return createDatasetDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2819,54 +2413,39 @@ public Builder clearCreateDatasetDetails() { } } /** - * - * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateDatasetOperationMetadata, - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, - com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder> + com.google.cloud.automl.v1.CreateDatasetOperationMetadata, com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder> getCreateDatasetDetailsFieldBuilder() { if (createDatasetDetailsBuilder_ == null) { if (!(detailsCase_ == 30)) { details_ = com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance(); } - createDatasetDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateDatasetOperationMetadata, - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, - com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder>( + createDatasetDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.CreateDatasetOperationMetadata, com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 30; - onChanged(); - ; + onChanged();; return createDatasetDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImportDataOperationMetadata, - com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, - com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder> - importDataDetailsBuilder_; + com.google.cloud.automl.v1.ImportDataOperationMetadata, com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder> importDataDetailsBuilder_; /** - * - * *
      * Details of ImportData operation.
      * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; - * * @return Whether the importDataDetails field is set. */ @java.lang.Override @@ -2874,14 +2453,11 @@ public boolean hasImportDataDetails() { return detailsCase_ == 15; } /** - * - * *
      * Details of ImportData operation.
      * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; - * * @return The importDataDetails. */ @java.lang.Override @@ -2899,16 +2475,13 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadata getImportDataDetai } } /** - * - * *
      * Details of ImportData operation.
      * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ - public Builder setImportDataDetails( - com.google.cloud.automl.v1.ImportDataOperationMetadata value) { + public Builder setImportDataDetails(com.google.cloud.automl.v1.ImportDataOperationMetadata value) { if (importDataDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2922,8 +2495,6 @@ public Builder setImportDataDetails( return this; } /** - * - * *
      * Details of ImportData operation.
      * 
@@ -2942,25 +2513,18 @@ public Builder setImportDataDetails( return this; } /** - * - * *
      * Details of ImportData operation.
      * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ - public Builder mergeImportDataDetails( - com.google.cloud.automl.v1.ImportDataOperationMetadata value) { + public Builder mergeImportDataDetails(com.google.cloud.automl.v1.ImportDataOperationMetadata value) { if (importDataDetailsBuilder_ == null) { - if (detailsCase_ == 15 - && details_ - != com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance()) { - details_ = - com.google.cloud.automl.v1.ImportDataOperationMetadata.newBuilder( - (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 15 && + details_ != com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.automl.v1.ImportDataOperationMetadata.newBuilder((com.google.cloud.automl.v1.ImportDataOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -2975,8 +2539,6 @@ public Builder mergeImportDataDetails( return this; } /** - * - * *
      * Details of ImportData operation.
      * 
@@ -3000,21 +2562,16 @@ public Builder clearImportDataDetails() { return this; } /** - * - * *
      * Details of ImportData operation.
      * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ - public com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder - getImportDataDetailsBuilder() { + public com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder getImportDataDetailsBuilder() { return getImportDataDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of ImportData operation.
      * 
@@ -3022,8 +2579,7 @@ public Builder clearImportDataDetails() { * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ @java.lang.Override - public com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder - getImportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder getImportDataDetailsOrBuilder() { if ((detailsCase_ == 15) && (importDataDetailsBuilder_ != null)) { return importDataDetailsBuilder_.getMessageOrBuilder(); } else { @@ -3034,8 +2590,6 @@ public Builder clearImportDataDetails() { } } /** - * - * *
      * Details of ImportData operation.
      * 
@@ -3043,45 +2597,32 @@ public Builder clearImportDataDetails() { * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImportDataOperationMetadata, - com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, - com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder> + com.google.cloud.automl.v1.ImportDataOperationMetadata, com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder> getImportDataDetailsFieldBuilder() { if (importDataDetailsBuilder_ == null) { if (!(detailsCase_ == 15)) { details_ = com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance(); } - importDataDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImportDataOperationMetadata, - com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, - com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder>( + importDataDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImportDataOperationMetadata, com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 15; - onChanged(); - ; + onChanged();; return importDataDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOperationMetadata, - com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, - com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder> - batchPredictDetailsBuilder_; + com.google.cloud.automl.v1.BatchPredictOperationMetadata, com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder> batchPredictDetailsBuilder_; /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; * @return Whether the batchPredictDetails field is set. */ @java.lang.Override @@ -3089,15 +2630,11 @@ public boolean hasBatchPredictDetails() { return detailsCase_ == 16; } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; * @return The batchPredictDetails. */ @java.lang.Override @@ -3115,17 +2652,13 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadata getBatchPredictD } } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ - public Builder setBatchPredictDetails( - com.google.cloud.automl.v1.BatchPredictOperationMetadata value) { + public Builder setBatchPredictDetails(com.google.cloud.automl.v1.BatchPredictOperationMetadata value) { if (batchPredictDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3139,14 +2672,11 @@ public Builder setBatchPredictDetails( return this; } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ public Builder setBatchPredictDetails( com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder builderForValue) { @@ -3160,26 +2690,18 @@ public Builder setBatchPredictDetails( return this; } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ - public Builder mergeBatchPredictDetails( - com.google.cloud.automl.v1.BatchPredictOperationMetadata value) { + public Builder mergeBatchPredictDetails(com.google.cloud.automl.v1.BatchPredictOperationMetadata value) { if (batchPredictDetailsBuilder_ == null) { - if (detailsCase_ == 16 - && details_ - != com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance()) { - details_ = - com.google.cloud.automl.v1.BatchPredictOperationMetadata.newBuilder( - (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 16 && + details_ != com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.automl.v1.BatchPredictOperationMetadata.newBuilder((com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -3194,14 +2716,11 @@ public Builder mergeBatchPredictDetails( return this; } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ public Builder clearBatchPredictDetails() { if (batchPredictDetailsBuilder_ == null) { @@ -3220,32 +2739,24 @@ public Builder clearBatchPredictDetails() { return this; } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder - getBatchPredictDetailsBuilder() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder getBatchPredictDetailsBuilder() { return getBatchPredictDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder - getBatchPredictDetailsOrBuilder() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder() { if ((detailsCase_ == 16) && (batchPredictDetailsBuilder_ != null)) { return batchPredictDetailsBuilder_.getMessageOrBuilder(); } else { @@ -3256,54 +2767,39 @@ public Builder clearBatchPredictDetails() { } } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOperationMetadata, - com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, - com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder> + com.google.cloud.automl.v1.BatchPredictOperationMetadata, com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder> getBatchPredictDetailsFieldBuilder() { if (batchPredictDetailsBuilder_ == null) { if (!(detailsCase_ == 16)) { details_ = com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance(); } - batchPredictDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOperationMetadata, - com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, - com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder>( + batchPredictDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.BatchPredictOperationMetadata, com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 16; - onChanged(); - ; + onChanged();; return batchPredictDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata, - com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, - com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder> - exportDataDetailsBuilder_; + com.google.cloud.automl.v1.ExportDataOperationMetadata, com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder> exportDataDetailsBuilder_; /** - * - * *
      * Details of ExportData operation.
      * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; - * * @return Whether the exportDataDetails field is set. */ @java.lang.Override @@ -3311,14 +2807,11 @@ public boolean hasExportDataDetails() { return detailsCase_ == 21; } /** - * - * *
      * Details of ExportData operation.
      * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; - * * @return The exportDataDetails. */ @java.lang.Override @@ -3336,16 +2829,13 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata getExportDataDetai } } /** - * - * *
      * Details of ExportData operation.
      * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ - public Builder setExportDataDetails( - com.google.cloud.automl.v1.ExportDataOperationMetadata value) { + public Builder setExportDataDetails(com.google.cloud.automl.v1.ExportDataOperationMetadata value) { if (exportDataDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3359,8 +2849,6 @@ public Builder setExportDataDetails( return this; } /** - * - * *
      * Details of ExportData operation.
      * 
@@ -3379,25 +2867,18 @@ public Builder setExportDataDetails( return this; } /** - * - * *
      * Details of ExportData operation.
      * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ - public Builder mergeExportDataDetails( - com.google.cloud.automl.v1.ExportDataOperationMetadata value) { + public Builder mergeExportDataDetails(com.google.cloud.automl.v1.ExportDataOperationMetadata value) { if (exportDataDetailsBuilder_ == null) { - if (detailsCase_ == 21 - && details_ - != com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance()) { - details_ = - com.google.cloud.automl.v1.ExportDataOperationMetadata.newBuilder( - (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 21 && + details_ != com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.automl.v1.ExportDataOperationMetadata.newBuilder((com.google.cloud.automl.v1.ExportDataOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -3412,8 +2893,6 @@ public Builder mergeExportDataDetails( return this; } /** - * - * *
      * Details of ExportData operation.
      * 
@@ -3437,21 +2916,16 @@ public Builder clearExportDataDetails() { return this; } /** - * - * *
      * Details of ExportData operation.
      * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ - public com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder - getExportDataDetailsBuilder() { + public com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder getExportDataDetailsBuilder() { return getExportDataDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of ExportData operation.
      * 
@@ -3459,8 +2933,7 @@ public Builder clearExportDataDetails() { * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ @java.lang.Override - public com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder - getExportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder getExportDataDetailsOrBuilder() { if ((detailsCase_ == 21) && (exportDataDetailsBuilder_ != null)) { return exportDataDetailsBuilder_.getMessageOrBuilder(); } else { @@ -3471,8 +2944,6 @@ public Builder clearExportDataDetails() { } } /** - * - * *
      * Details of ExportData operation.
      * 
@@ -3480,44 +2951,32 @@ public Builder clearExportDataDetails() { * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata, - com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, - com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder> + com.google.cloud.automl.v1.ExportDataOperationMetadata, com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder> getExportDataDetailsFieldBuilder() { if (exportDataDetailsBuilder_ == null) { if (!(detailsCase_ == 21)) { details_ = com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance(); } - exportDataDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata, - com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, - com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder>( + exportDataDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ExportDataOperationMetadata, com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 21; - onChanged(); - ; + onChanged();; return exportDataDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata, - com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, - com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder> - exportModelDetailsBuilder_; + com.google.cloud.automl.v1.ExportModelOperationMetadata, com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder> exportModelDetailsBuilder_; /** - * - * *
      * Details of ExportModel operation.
      * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; - * * @return Whether the exportModelDetails field is set. */ @java.lang.Override @@ -3525,14 +2984,11 @@ public boolean hasExportModelDetails() { return detailsCase_ == 22; } /** - * - * *
      * Details of ExportModel operation.
      * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; - * * @return The exportModelDetails. */ @java.lang.Override @@ -3550,16 +3006,13 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata getExportModelDet } } /** - * - * *
      * Details of ExportModel operation.
      * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ - public Builder setExportModelDetails( - com.google.cloud.automl.v1.ExportModelOperationMetadata value) { + public Builder setExportModelDetails(com.google.cloud.automl.v1.ExportModelOperationMetadata value) { if (exportModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3573,8 +3026,6 @@ public Builder setExportModelDetails( return this; } /** - * - * *
      * Details of ExportModel operation.
      * 
@@ -3593,25 +3044,18 @@ public Builder setExportModelDetails( return this; } /** - * - * *
      * Details of ExportModel operation.
      * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ - public Builder mergeExportModelDetails( - com.google.cloud.automl.v1.ExportModelOperationMetadata value) { + public Builder mergeExportModelDetails(com.google.cloud.automl.v1.ExportModelOperationMetadata value) { if (exportModelDetailsBuilder_ == null) { - if (detailsCase_ == 22 - && details_ - != com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance()) { - details_ = - com.google.cloud.automl.v1.ExportModelOperationMetadata.newBuilder( - (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 22 && + details_ != com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.automl.v1.ExportModelOperationMetadata.newBuilder((com.google.cloud.automl.v1.ExportModelOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -3626,8 +3070,6 @@ public Builder mergeExportModelDetails( return this; } /** - * - * *
      * Details of ExportModel operation.
      * 
@@ -3651,21 +3093,16 @@ public Builder clearExportModelDetails() { return this; } /** - * - * *
      * Details of ExportModel operation.
      * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ - public com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder - getExportModelDetailsBuilder() { + public com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder getExportModelDetailsBuilder() { return getExportModelDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of ExportModel operation.
      * 
@@ -3673,8 +3110,7 @@ public Builder clearExportModelDetails() { * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder - getExportModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder() { if ((detailsCase_ == 22) && (exportModelDetailsBuilder_ != null)) { return exportModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -3685,8 +3121,6 @@ public Builder clearExportModelDetails() { } } /** - * - * *
      * Details of ExportModel operation.
      * 
@@ -3694,41 +3128,32 @@ public Builder clearExportModelDetails() { * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata, - com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, - com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder> + com.google.cloud.automl.v1.ExportModelOperationMetadata, com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder> getExportModelDetailsFieldBuilder() { if (exportModelDetailsBuilder_ == null) { if (!(detailsCase_ == 22)) { details_ = com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance(); } - exportModelDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata, - com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, - com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder>( + exportModelDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ExportModelOperationMetadata, com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 22; - onChanged(); - ; + onChanged();; return exportModelDetailsBuilder_; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; - * * @return The progressPercent. */ @java.lang.Override @@ -3736,60 +3161,50 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; } private java.util.List partialFailures_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePartialFailuresIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { partialFailures_ = new java.util.ArrayList(partialFailures_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - partialFailuresBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailuresBuilder_; /** - * - * *
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3807,8 +3222,6 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3826,8 +3239,6 @@ public int getPartialFailuresCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3845,8 +3256,6 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3856,7 +3265,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder setPartialFailures(int index, com.google.rpc.Status value) {
+    public Builder setPartialFailures(
+        int index, com.google.rpc.Status value) {
       if (partialFailuresBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3870,8 +3280,6 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3881,7 +3289,8 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder setPartialFailures(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setPartialFailures(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.set(index, builderForValue.build());
@@ -3892,8 +3301,6 @@ public Builder setPartialFailures(int index, com.google.rpc.Status.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3917,8 +3324,6 @@ public Builder addPartialFailures(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3928,7 +3333,8 @@ public Builder addPartialFailures(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(int index, com.google.rpc.Status value) {
+    public Builder addPartialFailures(
+        int index, com.google.rpc.Status value) {
       if (partialFailuresBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3942,8 +3348,6 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3953,7 +3357,8 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialFailures(
+        com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.add(builderForValue.build());
@@ -3964,8 +3369,6 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3975,7 +3378,8 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue)
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialFailures(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.add(index, builderForValue.build());
@@ -3986,8 +3390,6 @@ public Builder addPartialFailures(int index, com.google.rpc.Status.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4001,7 +3403,8 @@ public Builder addAllPartialFailures(
         java.lang.Iterable values) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialFailures_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, partialFailures_);
         onChanged();
       } else {
         partialFailuresBuilder_.addAllMessages(values);
@@ -4009,8 +3412,6 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4031,8 +3432,6 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4053,8 +3452,6 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4064,12 +3461,11 @@ public Builder removePartialFailures(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) {
+    public com.google.rpc.Status.Builder getPartialFailuresBuilder(
+        int index) {
       return getPartialFailuresFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4079,16 +3475,14 @@ public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
+    public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
+        int index) {
       if (partialFailuresBuilder_ == null) {
-        return partialFailures_.get(index);
-      } else {
+        return partialFailures_.get(index);  } else {
         return partialFailuresBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4098,8 +3492,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public java.util.List
-        getPartialFailuresOrBuilderList() {
+    public java.util.List 
+         getPartialFailuresOrBuilderList() {
       if (partialFailuresBuilder_ != null) {
         return partialFailuresBuilder_.getMessageOrBuilderList();
       } else {
@@ -4107,8 +3501,6 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4119,12 +3511,10 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
      * repeated .google.rpc.Status partial_failures = 2;
      */
     public com.google.rpc.Status.Builder addPartialFailuresBuilder() {
-      return getPartialFailuresFieldBuilder()
-          .addBuilder(com.google.rpc.Status.getDefaultInstance());
+      return getPartialFailuresFieldBuilder().addBuilder(
+          com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4134,13 +3524,12 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder() {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.Status.Builder addPartialFailuresBuilder(int index) {
-      return getPartialFailuresFieldBuilder()
-          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addPartialFailuresBuilder(
+        int index) {
+      return getPartialFailuresFieldBuilder().addBuilder(
+          index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4150,19 +3539,16 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public java.util.List getPartialFailuresBuilderList() {
+    public java.util.List 
+         getPartialFailuresBuilderList() {
       return getPartialFailuresFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getPartialFailuresFieldBuilder() {
       if (partialFailuresBuilder_ == null) {
-        partialFailuresBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
+        partialFailuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
                 partialFailures_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -4174,47 +3560,34 @@ public java.util.List getPartialFailuresBuilderLi
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4235,15 +3608,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -4254,8 +3626,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4266,7 +3636,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4278,8 +3648,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4298,8 +3666,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4307,13 +3673,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4324,14 +3688,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4339,17 +3700,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4357,47 +3715,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4418,15 +3763,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -4437,8 +3781,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4449,7 +3791,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -4461,8 +3803,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4481,8 +3821,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4490,13 +3828,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 4; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4507,14 +3843,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4522,24 +3855,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4549,12 +3879,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.OperationMetadata) private static final com.google.cloud.automl.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.OperationMetadata(); } @@ -4563,16 +3893,16 @@ public static com.google.cloud.automl.v1.OperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4587,4 +3917,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java similarity index 85% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java index 5ae3599b9..e01f70e9c 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; - * * @return Whether the deleteDetails field is set. */ boolean hasDeleteDetails(); /** - * - * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; - * * @return The deleteDetails. */ com.google.cloud.automl.v1.DeleteOperationMetadata getDeleteDetails(); /** - * - * *
    * Details of a Delete operation.
    * 
@@ -59,32 +35,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder getDeleteDetailsOrBuilder(); /** - * - * *
    * Details of a DeployModel operation.
    * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; - * * @return Whether the deployModelDetails field is set. */ boolean hasDeployModelDetails(); /** - * - * *
    * Details of a DeployModel operation.
    * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; - * * @return The deployModelDetails. */ com.google.cloud.automl.v1.DeployModelOperationMetadata getDeployModelDetails(); /** - * - * *
    * Details of a DeployModel operation.
    * 
@@ -94,71 +62,51 @@ public interface OperationMetadataOrBuilder com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder(); /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return Whether the undeployModelDetails field is set. */ boolean hasUndeployModelDetails(); /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return The undeployModelDetails. */ com.google.cloud.automl.v1.UndeployModelOperationMetadata getUndeployModelDetails(); /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; */ - com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder - getUndeployModelDetailsOrBuilder(); + com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder(); /** - * - * *
    * Details of CreateModel operation.
    * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; - * * @return Whether the createModelDetails field is set. */ boolean hasCreateModelDetails(); /** - * - * *
    * Details of CreateModel operation.
    * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; - * * @return The createModelDetails. */ com.google.cloud.automl.v1.CreateModelOperationMetadata getCreateModelDetails(); /** - * - * *
    * Details of CreateModel operation.
    * 
@@ -168,71 +116,51 @@ public interface OperationMetadataOrBuilder com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder(); /** - * - * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; * @return Whether the createDatasetDetails field is set. */ boolean hasCreateDatasetDetails(); /** - * - * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; * @return The createDatasetDetails. */ com.google.cloud.automl.v1.CreateDatasetOperationMetadata getCreateDatasetDetails(); /** - * - * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; */ - com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder - getCreateDatasetDetailsOrBuilder(); + com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder getCreateDatasetDetailsOrBuilder(); /** - * - * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; - * * @return Whether the importDataDetails field is set. */ boolean hasImportDataDetails(); /** - * - * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; - * * @return The importDataDetails. */ com.google.cloud.automl.v1.ImportDataOperationMetadata getImportDataDetails(); /** - * - * *
    * Details of ImportData operation.
    * 
@@ -242,68 +170,51 @@ public interface OperationMetadataOrBuilder com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder getImportDataDetailsOrBuilder(); /** - * - * *
    * Details of BatchPredict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * * @return Whether the batchPredictDetails field is set. */ boolean hasBatchPredictDetails(); /** - * - * *
    * Details of BatchPredict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * * @return The batchPredictDetails. */ com.google.cloud.automl.v1.BatchPredictOperationMetadata getBatchPredictDetails(); /** - * - * *
    * Details of BatchPredict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ - com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder - getBatchPredictDetailsOrBuilder(); + com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder(); /** - * - * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; - * * @return Whether the exportDataDetails field is set. */ boolean hasExportDataDetails(); /** - * - * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; - * * @return The exportDataDetails. */ com.google.cloud.automl.v1.ExportDataOperationMetadata getExportDataDetails(); /** - * - * *
    * Details of ExportData operation.
    * 
@@ -313,32 +224,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder getExportDataDetailsOrBuilder(); /** - * - * *
    * Details of ExportModel operation.
    * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; - * * @return Whether the exportModelDetails field is set. */ boolean hasExportModelDetails(); /** - * - * *
    * Details of ExportModel operation.
    * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; - * * @return The exportModelDetails. */ com.google.cloud.automl.v1.ExportModelOperationMetadata getExportModelDetails(); /** - * - * *
    * Details of ExportModel operation.
    * 
@@ -348,22 +251,17 @@ public interface OperationMetadataOrBuilder com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder(); /** - * - * *
    * Output only. Progress of operation. Range: [0, 100].
    * Not used currently.
    * 
* * int32 progress_percent = 13; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -373,10 +271,9 @@ public interface OperationMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List getPartialFailuresList();
+  java.util.List 
+      getPartialFailuresList();
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -388,8 +285,6 @@ public interface OperationMetadataOrBuilder
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -401,8 +296,6 @@ public interface OperationMetadataOrBuilder
    */
   int getPartialFailuresCount();
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -412,10 +305,9 @@ public interface OperationMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List getPartialFailuresOrBuilderList();
+  java.util.List 
+      getPartialFailuresOrBuilderList();
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -425,35 +317,28 @@ public interface OperationMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
@@ -463,32 +348,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when the operation was updated for the last time.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java new file mode 100644 index 000000000..5f32d8835 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java @@ -0,0 +1,243 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public final class Operations { + private Operations() {} + 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_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_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/v1/operations.prot" + + "o\022\026google.cloud.automl.v1\032$google/cloud/" + + "automl/v1/dataset.proto\032\037google/cloud/au" + + "toml/v1/io.proto\032\037google/protobuf/timest" + + "amp.proto\032\027google/rpc/status.proto\032\034goog" + + "le/api/annotations.proto\"\311\007\n\021OperationMe" + + "tadata\022I\n\016delete_details\030\010 \001(\0132/.google." + + "cloud.automl.v1.DeleteOperationMetadataH" + + "\000\022T\n\024deploy_model_details\030\030 \001(\01324.google" + + ".cloud.automl.v1.DeployModelOperationMet" + + "adataH\000\022X\n\026undeploy_model_details\030\031 \001(\0132" + + "6.google.cloud.automl.v1.UndeployModelOp" + + "erationMetadataH\000\022T\n\024create_model_detail" + + "s\030\n \001(\01324.google.cloud.automl.v1.CreateM" + + "odelOperationMetadataH\000\022X\n\026create_datase" + + "t_details\030\036 \001(\01326.google.cloud.automl.v1" + + ".CreateDatasetOperationMetadataH\000\022R\n\023imp" + + "ort_data_details\030\017 \001(\01323.google.cloud.au" + + "toml.v1.ImportDataOperationMetadataH\000\022V\n" + + "\025batch_predict_details\030\020 \001(\01325.google.cl" + + "oud.automl.v1.BatchPredictOperationMetad" + + "ataH\000\022R\n\023export_data_details\030\025 \001(\01323.goo" + + "gle.cloud.automl.v1.ExportDataOperationM" + + "etadataH\000\022T\n\024export_model_details\030\026 \001(\0132" + + "4.google.cloud.automl.v1.ExportModelOper" + + "ationMetadataH\000\022\030\n\020progress_percent\030\r \001(" + + "\005\022,\n\020partial_failures\030\002 \003(\0132\022.google.rpc" + + ".Status\022/\n\013create_time\030\003 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032." + + "google.protobuf.TimestampB\t\n\007details\"\031\n\027" + + "DeleteOperationMetadata\"\036\n\034DeployModelOp" + + "erationMetadata\" \n\036UndeployModelOperatio" + + "nMetadata\" \n\036CreateDatasetOperationMetad" + + "ata\"\036\n\034CreateModelOperationMetadata\"\035\n\033I" + + "mportDataOperationMetadata\"\307\001\n\033ExportDat" + + "aOperationMetadata\022]\n\013output_info\030\001 \001(\0132" + + "H.google.cloud.automl.v1.ExportDataOpera" + + "tionMetadata.ExportDataOutputInfo\032I\n\024Exp" + + "ortDataOutputInfo\022\036\n\024gcs_output_director" + + "y\030\001 \001(\tH\000B\021\n\017output_location\"\226\002\n\035BatchPr" + + "edictOperationMetadata\022E\n\014input_config\030\001" + + " \001(\0132/.google.cloud.automl.v1.BatchPredi" + + "ctInputConfig\022a\n\013output_info\030\002 \001(\0132L.goo" + + "gle.cloud.automl.v1.BatchPredictOperatio" + + "nMetadata.BatchPredictOutputInfo\032K\n\026Batc" + + "hPredictOutputInfo\022\036\n\024gcs_output_directo" + + "ry\030\001 \001(\tH\000B\021\n\017output_location\"\266\001\n\034Export" + + "ModelOperationMetadata\022_\n\013output_info\030\002 " + + "\001(\0132J.google.cloud.automl.v1.ExportModel" + + "OperationMetadata.ExportModelOutputInfo\032" + + "5\n\025ExportModelOutputInfo\022\034\n\024gcs_output_d" + + "irectory\030\001 \001(\tB\252\001\n\032com.google.cloud.auto" + + "ml.v1P\001Z * * For Translation: * CSV file `translation.csv`, with each line in format: @@ -53,29 +36,30 @@ * * Protobuf type {@code google.cloud.automl.v1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -94,67 +78,60 @@ private OutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage(com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinationCase_ = 1; + 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); + 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.v1.Io - .internal_static_google_cloud_automl_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io - .internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.OutputConfig.class, - com.google.cloud.automl.v1.OutputConfig.Builder.class); + com.google.cloud.automl.v1.OutputConfig.class, com.google.cloud.automl.v1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -170,28 +147,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -201,10 +174,7 @@ public DestinationCase getDestinationCase() {
    * output will be written into that directory.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -212,8 +182,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -223,22 +191,17 @@ public boolean hasGcsDestination() {
    * output will be written into that directory.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -248,20 +211,17 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
    * output will be written into that directory.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1.GcsDestination) destination_); } @@ -287,9 +248,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.automl.v1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.automl.v1.GcsDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,7 +259,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.OutputConfig)) { return super.equals(obj); @@ -309,7 +269,8 @@ public boolean equals(final java.lang.Object obj) { if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -338,104 +299,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.OutputConfig 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.v1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * *  For Translation:
    *         CSV file `translation.csv`, with each line in format:
@@ -468,23 +422,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1.OutputConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.OutputConfig)
       com.google.cloud.automl.v1.OutputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_OutputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_OutputConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.OutputConfig.class,
-              com.google.cloud.automl.v1.OutputConfig.Builder.class);
+              com.google.cloud.automl.v1.OutputConfig.class, com.google.cloud.automl.v1.OutputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.OutputConfig.newBuilder()
@@ -492,15 +444,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -510,9 +463,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1.Io
-          .internal_static_google_cloud_automl_v1_OutputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_OutputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -531,8 +484,7 @@ public com.google.cloud.automl.v1.OutputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.OutputConfig buildPartial() {
-      com.google.cloud.automl.v1.OutputConfig result =
-          new com.google.cloud.automl.v1.OutputConfig(this);
+      com.google.cloud.automl.v1.OutputConfig result = new com.google.cloud.automl.v1.OutputConfig(this);
       if (destinationCase_ == 1) {
         if (gcsDestinationBuilder_ == null) {
           result.destination_ = destination_;
@@ -549,39 +501,38 @@ public com.google.cloud.automl.v1.OutputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.OutputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1.OutputConfig) other);
+        return mergeFrom((com.google.cloud.automl.v1.OutputConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -591,15 +542,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.automl.v1.OutputConfig other) {
       if (other == com.google.cloud.automl.v1.OutputConfig.getDefaultInstance()) return this;
       switch (other.getDestinationCase()) {
-        case GCS_DESTINATION:
-          {
-            mergeGcsDestination(other.getGcsDestination());
-            break;
-          }
-        case DESTINATION_NOT_SET:
-          {
-            break;
-          }
+        case GCS_DESTINATION: {
+          mergeGcsDestination(other.getGcsDestination());
+          break;
+        }
+        case DESTINATION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -629,12 +578,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-
-    public DestinationCase getDestinationCase() {
-      return DestinationCase.forNumber(destinationCase_);
+    public DestinationCase
+        getDestinationCase() {
+      return DestinationCase.forNumber(
+          destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -644,14 +593,10 @@ public Builder clearDestination() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.GcsDestination,
-            com.google.cloud.automl.v1.GcsDestination.Builder,
-            com.google.cloud.automl.v1.GcsDestinationOrBuilder>
-        gcsDestinationBuilder_;
+        com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_;
     /**
-     *
-     *
      * 
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -661,10 +606,7 @@ public Builder clearDestination() {
      * output will be written into that directory.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -672,8 +614,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -683,10 +623,7 @@ public boolean hasGcsDestination() {
      * output will be written into that directory.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsDestination. */ @java.lang.Override @@ -704,8 +641,6 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -715,9 +650,7 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
      * output will be written into that directory.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -733,8 +666,6 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value return this; } /** - * - * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -744,9 +675,7 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value
      * output will be written into that directory.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGcsDestination( com.google.cloud.automl.v1.GcsDestination.Builder builderForValue) { @@ -760,8 +689,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -771,19 +698,14 @@ public Builder setGcsDestination(
      * output will be written into that directory.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.automl.v1.GcsDestination.newBuilder( - (com.google.cloud.automl.v1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.automl.v1.GcsDestination.newBuilder((com.google.cloud.automl.v1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -798,8 +720,6 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val return this; } /** - * - * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -809,9 +729,7 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val
      * output will be written into that directory.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -830,8 +748,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -841,16 +757,12 @@ public Builder clearGcsDestination() {
      * output will be written into that directory.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -860,9 +772,7 @@ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilde
      * output will be written into that directory.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -876,8 +786,6 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui } } /** - * - * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -887,37 +795,29 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
      * output will be written into that directory.
      * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, - com.google.cloud.automl.v1.GcsDestination.Builder, - com.google.cloud.automl.v1.GcsDestinationOrBuilder> + com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, - com.google.cloud.automl.v1.GcsDestination.Builder, - com.google.cloud.automl.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder>( (com.google.cloud.automl.v1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -927,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.OutputConfig) private static final com.google.cloud.automl.v1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.OutputConfig(); } @@ -941,16 +841,16 @@ public static com.google.cloud.automl.v1.OutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java index 6d767e844..d7491fc67 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -35,16 +17,11 @@ public interface OutputConfigOrBuilder
    * output will be written into that directory.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -54,16 +31,11 @@ public interface OutputConfigOrBuilder
    * output will be written into that directory.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The gcsDestination. */ com.google.cloud.automl.v1.GcsDestination getGcsDestination(); /** - * - * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -73,9 +45,7 @@ public interface OutputConfigOrBuilder
    * output will be written into that directory.
    * 
* - * - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java similarity index 69% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java index 96b2e0216..ce6889132 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/prediction_service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
  * 
* * Protobuf type {@code google.cloud.automl.v1.PredictRequest} */ -public final class PredictRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PredictRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.PredictRequest) PredictRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PredictRequest.newBuilder() to construct. private PredictRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PredictRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PredictRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PredictRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,100 +54,90 @@ private PredictRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.automl.v1.ExamplePayload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); } - case 18: - { - com.google.cloud.automl.v1.ExamplePayload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.automl.v1.ExamplePayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); - } - - break; + payload_ = input.readMessage(com.google.cloud.automl.v1.ExamplePayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = - com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put(params__.getKey(), params__.getValue()); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.PredictRequest.class, - com.google.cloud.automl.v1.PredictRequest.Builder.class); + com.google.cloud.automl.v1.PredictRequest.class, com.google.cloud.automl.v1.PredictRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -173,31 +146,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -208,17 +179,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.cloud.automl.v1.ExamplePayload payload_; /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the payload field is set. */ @java.lang.Override @@ -226,36 +192,25 @@ public boolean hasPayload() { return payload_ != null; } /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The payload. */ @java.lang.Override public com.google.cloud.automl.v1.ExamplePayload getPayload() { - return payload_ == null - ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() - : payload_; + return payload_ == null ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : payload_; } /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPayloadOrBuilder() { @@ -263,23 +218,24 @@ public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPayloadOrBuilder() } public static final int PARAMS_FIELD_NUMBER = 3; - private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_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() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -288,8 +244,6 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -318,22 +272,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 3;
    */
+
   @java.lang.Override
-  public boolean containsParams(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsParams(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetParams().getMap().containsKey(key);
   }
-  /** Use {@link #getParamsMap()} instead. */
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getParams() {
     return getParamsMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -363,12 +317,11 @@ public java.util.Map getParams() {
    * map<string, string> params = 3;
    */
   @java.lang.Override
+
   public java.util.Map getParamsMap() {
     return internalGetParams().getMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -398,16 +351,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 3;
    */
   @java.lang.Override
-  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();
+
+  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, any string must be up to 25000
    * characters long.
@@ -437,11 +390,12 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> params = 3;
    */
   @java.lang.Override
-  public java.lang.String getParamsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetParams().getMap();
+
+  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();
     }
@@ -449,7 +403,6 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -461,15 +414,20 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     if (payload_ != null) {
       output.writeMessage(2, getPayload());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 3);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        3);
     unknownFields.writeTo(output);
   }
 
@@ -483,17 +441,18 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (payload_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload());
-    }
-    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(3, params__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getPayload());
+    }
+    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(3, params__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -503,20 +462,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.PredictRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.PredictRequest other =
-        (com.google.cloud.automl.v1.PredictRequest) obj;
+    com.google.cloud.automl.v1.PredictRequest other = (com.google.cloud.automl.v1.PredictRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasPayload() != other.hasPayload()) return false;
     if (hasPayload()) {
-      if (!getPayload().equals(other.getPayload())) return false;
+      if (!getPayload()
+          .equals(other.getPayload())) return false;
     }
-    if (!internalGetParams().equals(other.internalGetParams())) return false;
+    if (!internalGetParams().equals(
+        other.internalGetParams())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -543,147 +504,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.PredictRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.PredictRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.PredictRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.PredictRequest 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.v1.PredictRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.automl.v1.PredictRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.automl.v1.PredictRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.PredictRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1.PredictRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
    * 
* * Protobuf type {@code google.cloud.automl.v1.PredictRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.PredictRequest) com.google.cloud.automl.v1.PredictRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.PredictRequest.class, - com.google.cloud.automl.v1.PredictRequest.Builder.class); + com.google.cloud.automl.v1.PredictRequest.class, com.google.cloud.automl.v1.PredictRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.PredictRequest.newBuilder() @@ -691,15 +645,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -716,9 +671,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_descriptor; } @java.lang.Override @@ -737,8 +692,7 @@ public com.google.cloud.automl.v1.PredictRequest build() { @java.lang.Override public com.google.cloud.automl.v1.PredictRequest buildPartial() { - com.google.cloud.automl.v1.PredictRequest result = - new com.google.cloud.automl.v1.PredictRequest(this); + com.google.cloud.automl.v1.PredictRequest result = new com.google.cloud.automl.v1.PredictRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (payloadBuilder_ == null) { @@ -756,39 +710,38 @@ public com.google.cloud.automl.v1.PredictRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.PredictRequest) { - return mergeFrom((com.google.cloud.automl.v1.PredictRequest) other); + return mergeFrom((com.google.cloud.automl.v1.PredictRequest)other); } else { super.mergeFrom(other); return this; @@ -804,7 +757,8 @@ public Builder mergeFrom(com.google.cloud.automl.v1.PredictRequest other) { if (other.hasPayload()) { mergePayload(other.getPayload()); } - internalGetMutableParams().mergeFrom(other.internalGetParams()); + internalGetMutableParams().mergeFrom( + other.internalGetParams()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -833,27 +787,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -862,23 +811,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -886,67 +832,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -954,61 +887,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1.ExamplePayload payload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExamplePayload, - com.google.cloud.automl.v1.ExamplePayload.Builder, - com.google.cloud.automl.v1.ExamplePayloadOrBuilder> - payloadBuilder_; + com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder> payloadBuilder_; /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The payload. */ public com.google.cloud.automl.v1.ExamplePayload getPayload() { if (payloadBuilder_ == null) { - return payload_ == null - ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() - : payload_; + return payload_ == null ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : payload_; } else { return payloadBuilder_.getMessage(); } } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPayload(com.google.cloud.automl.v1.ExamplePayload value) { if (payloadBuilder_ == null) { @@ -1024,18 +938,15 @@ public Builder setPayload(com.google.cloud.automl.v1.ExamplePayload value) { return this; } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPayload(com.google.cloud.automl.v1.ExamplePayload.Builder builderForValue) { + public Builder setPayload( + com.google.cloud.automl.v1.ExamplePayload.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -1046,24 +957,18 @@ public Builder setPayload(com.google.cloud.automl.v1.ExamplePayload.Builder buil return this; } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePayload(com.google.cloud.automl.v1.ExamplePayload value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = - com.google.cloud.automl.v1.ExamplePayload.newBuilder(payload_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.ExamplePayload.newBuilder(payload_).mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1075,16 +980,12 @@ public Builder mergePayload(com.google.cloud.automl.v1.ExamplePayload value) { return this; } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -1098,87 +999,72 @@ public Builder clearPayload() { return this; } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.ExamplePayload.Builder getPayloadBuilder() { - + onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { - return payload_ == null - ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() - : payload_; + return payload_ == null ? + com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : payload_; } } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExamplePayload, - com.google.cloud.automl.v1.ExamplePayload.Builder, - com.google.cloud.automl.v1.ExamplePayloadOrBuilder> + com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { - payloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExamplePayload, - com.google.cloud.automl.v1.ExamplePayload.Builder, - com.google.cloud.automl.v1.ExamplePayloadOrBuilder>( - getPayload(), getParentForChildren(), isClean()); + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder>( + getPayload(), + getParentForChildren(), + isClean()); payload_ = null; } return payloadBuilder_; } - private com.google.protobuf.MapField params_; - - private com.google.protobuf.MapField internalGetParams() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } - private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged(); - ; + internalGetMutableParams() { + onChanged();; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1190,8 +1076,6 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1220,22 +1104,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 3;
      */
+
     @java.lang.Override
-    public boolean containsParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsParams(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetParams().getMap().containsKey(key);
     }
-    /** Use {@link #getParamsMap()} instead. */
+    /**
+     * Use {@link #getParamsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getParams() {
       return getParamsMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1265,12 +1149,11 @@ public java.util.Map getParams() {
      * map<string, string> params = 3;
      */
     @java.lang.Override
+
     public java.util.Map getParamsMap() {
       return internalGetParams().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1300,17 +1183,16 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 3;
      */
     @java.lang.Override
+
     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();
+        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, any string must be up to 25000
      * characters long.
@@ -1340,11 +1222,12 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 3;
      */
     @java.lang.Override
-    public java.lang.String getParamsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetParams().getMap();
+
+    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();
       }
@@ -1352,12 +1235,11 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap().clear();
+      internalGetMutableParams().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1386,21 +1268,23 @@ public Builder clearParams() {
      *
      * map<string, string> params = 3;
      */
-    public Builder removeParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableParams().getMutableMap().remove(key);
+
+    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. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableParams() {
+    public java.util.Map
+    getMutableParams() {
       return internalGetMutableParams().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1429,19 +1313,16 @@ public java.util.Map getMutableParams() {
      *
      * map<string, string> params = 3;
      */
-    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);
+    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, any string must be up to 25000
      * characters long.
@@ -1470,13 +1351,16 @@ public Builder putParams(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> params = 3;
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+
+    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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1486,12 +1370,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.PredictRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.PredictRequest)
   private static final com.google.cloud.automl.v1.PredictRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.PredictRequest();
   }
@@ -1500,16 +1384,16 @@ public static com.google.cloud.automl.v1.PredictRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public PredictRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new PredictRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public PredictRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new PredictRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1524,4 +1408,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.PredictRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java
similarity index 80%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java
index 258596683..7d03187b3 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java
@@ -1,104 +1,63 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
-public interface PredictRequestOrBuilder
-    extends
+public interface PredictRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.PredictRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Name of the model requested to serve the prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the payload field is set. */ boolean hasPayload(); /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The payload. */ com.google.cloud.automl.v1.ExamplePayload getPayload(); /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPayloadOrBuilder(); /** - * - * *
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -129,8 +88,6 @@ public interface PredictRequestOrBuilder
    */
   int getParamsCount();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -159,13 +116,15 @@ public interface PredictRequestOrBuilder
    *
    * map<string, string> params = 3;
    */
-  boolean containsParams(java.lang.String key);
-  /** Use {@link #getParamsMap()} instead. */
+  boolean containsParams(
+      java.lang.String key);
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getParams();
+  java.util.Map
+  getParams();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -194,10 +153,9 @@ public interface PredictRequestOrBuilder
    *
    * map<string, string> params = 3;
    */
-  java.util.Map getParamsMap();
+  java.util.Map
+  getParamsMap();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -226,10 +184,11 @@ public interface PredictRequestOrBuilder
    *
    * map<string, string> params = 3;
    */
-  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getParamsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -258,5 +217,7 @@ public interface PredictRequestOrBuilder
    *
    * map<string, string> params = 3;
    */
-  java.lang.String getParamsOrThrow(java.lang.String key);
+
+  java.lang.String getParamsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java
similarity index 75%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java
index 2b6a2630f..9999792bb 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
 /**
- *
- *
  * 
  * Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
  * 
* * Protobuf type {@code google.cloud.automl.v1.PredictResponse} */ -public final class PredictResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PredictResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.PredictResponse) PredictResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PredictResponse.newBuilder() to construct. private PredictResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PredictResponse() { payload_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PredictResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PredictResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,61 +54,55 @@ private PredictResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - payload_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - payload_.add( - input.readMessage( - com.google.cloud.automl.v1.AnnotationPayload.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + payload_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + payload_.add( + input.readMessage(com.google.cloud.automl.v1.AnnotationPayload.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 26: { + com.google.cloud.automl.v1.ExamplePayload.Builder subBuilder = null; + if (preprocessedInput_ != null) { + subBuilder = preprocessedInput_.toBuilder(); } - case 26: - { - com.google.cloud.automl.v1.ExamplePayload.Builder subBuilder = null; - if (preprocessedInput_ != null) { - subBuilder = preprocessedInput_.toBuilder(); - } - preprocessedInput_ = - input.readMessage( - com.google.cloud.automl.v1.ExamplePayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(preprocessedInput_); - preprocessedInput_ = subBuilder.buildPartial(); - } - - break; + preprocessedInput_ = input.readMessage(com.google.cloud.automl.v1.ExamplePayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(preprocessedInput_); + preprocessedInput_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { payload_ = java.util.Collections.unmodifiableList(payload_); @@ -134,38 +111,34 @@ private PredictResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictResponse_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.PredictResponse.class, - com.google.cloud.automl.v1.PredictResponse.Builder.class); + com.google.cloud.automl.v1.PredictResponse.class, com.google.cloud.automl.v1.PredictResponse.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private java.util.List payload_; /** - * - * *
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -179,8 +152,6 @@ public java.util.List getPayloadLi
     return payload_;
   }
   /**
-   *
-   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -190,13 +161,11 @@ public java.util.List getPayloadLi
    * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPayloadOrBuilderList() {
     return payload_;
   }
   /**
-   *
-   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -210,8 +179,6 @@ public int getPayloadCount() {
     return payload_.size();
   }
   /**
-   *
-   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -225,8 +192,6 @@ public com.google.cloud.automl.v1.AnnotationPayload getPayload(int index) {
     return payload_.get(index);
   }
   /**
-   *
-   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -236,15 +201,14 @@ public com.google.cloud.automl.v1.AnnotationPayload getPayload(int index) {
    * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(int index) {
+  public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
+      int index) {
     return payload_.get(index);
   }
 
   public static final int PREPROCESSED_INPUT_FIELD_NUMBER = 3;
   private com.google.cloud.automl.v1.ExamplePayload preprocessedInput_;
   /**
-   *
-   *
    * 
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -256,7 +220,6 @@ public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder
    * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; - * * @return Whether the preprocessedInput field is set. */ @java.lang.Override @@ -264,8 +227,6 @@ public boolean hasPreprocessedInput() { return preprocessedInput_ != null; } /** - * - * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -277,18 +238,13 @@ public boolean hasPreprocessedInput() {
    * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; - * * @return The preprocessedInput. */ @java.lang.Override public com.google.cloud.automl.v1.ExamplePayload getPreprocessedInput() { - return preprocessedInput_ == null - ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() - : preprocessedInput_; + return preprocessedInput_ == null ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : preprocessedInput_; } /** - * - * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -307,23 +263,24 @@ public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPreprocessedInputOr
   }
 
   public static final int METADATA_FIELD_NUMBER = 2;
-
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.automl.v1.PredictionServiceProto
-                .internal_static_google_cloud_automl_v1_PredictResponse_MetadataEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_MetadataEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
-  private com.google.protobuf.MapField metadata_;
-
-  private com.google.protobuf.MapField internalGetMetadata() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> metadata_;
+  private com.google.protobuf.MapField
+  internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
@@ -332,8 +289,6 @@ public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -353,22 +308,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 2;
    */
+
   @java.lang.Override
-  public boolean containsMetadata(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsMetadata(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /** Use {@link #getMetadataMap()} instead. */
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -389,12 +344,11 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
+
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -415,17 +369,16 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
+
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -446,11 +399,12 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
-  public java.lang.String getMetadataOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+
+  public java.lang.String getMetadataOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -458,7 +412,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -470,12 +423,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < payload_.size(); i++) {
       output.writeMessage(1, payload_.get(i));
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetMetadata(),
+        MetadataDefaultEntryHolder.defaultEntry,
+        2);
     if (preprocessedInput_ != null) {
       output.writeMessage(3, getPreprocessedInput());
     }
@@ -489,20 +447,22 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < payload_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, payload_.get(i));
-    }
-    for (java.util.Map.Entry entry :
-        internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry metadata__ =
-          MetadataDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metadata__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, payload_.get(i));
+    }
+    for (java.util.Map.Entry entry
+         : internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, metadata__);
     }
     if (preprocessedInput_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPreprocessedInput());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getPreprocessedInput());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -512,20 +472,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.PredictResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.PredictResponse other =
-        (com.google.cloud.automl.v1.PredictResponse) obj;
+    com.google.cloud.automl.v1.PredictResponse other = (com.google.cloud.automl.v1.PredictResponse) obj;
 
-    if (!getPayloadList().equals(other.getPayloadList())) return false;
+    if (!getPayloadList()
+        .equals(other.getPayloadList())) return false;
     if (hasPreprocessedInput() != other.hasPreprocessedInput()) return false;
     if (hasPreprocessedInput()) {
-      if (!getPreprocessedInput().equals(other.getPreprocessedInput())) return false;
+      if (!getPreprocessedInput()
+          .equals(other.getPreprocessedInput())) return false;
     }
-    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
+    if (!internalGetMetadata().equals(
+        other.internalGetMetadata())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -554,147 +516,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.PredictResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.PredictResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.PredictResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.PredictResponse 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.v1.PredictResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.automl.v1.PredictResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.automl.v1.PredictResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.PredictResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1.PredictResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
    * 
* * Protobuf type {@code google.cloud.automl.v1.PredictResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.PredictResponse) com.google.cloud.automl.v1.PredictResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictResponse_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.PredictResponse.class, - com.google.cloud.automl.v1.PredictResponse.Builder.class); + com.google.cloud.automl.v1.PredictResponse.class, com.google.cloud.automl.v1.PredictResponse.Builder.class); } // Construct using com.google.cloud.automl.v1.PredictResponse.newBuilder() @@ -702,17 +657,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPayloadFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -733,9 +688,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.PredictionServiceProto - .internal_static_google_cloud_automl_v1_PredictResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_descriptor; } @java.lang.Override @@ -754,8 +709,7 @@ public com.google.cloud.automl.v1.PredictResponse build() { @java.lang.Override public com.google.cloud.automl.v1.PredictResponse buildPartial() { - com.google.cloud.automl.v1.PredictResponse result = - new com.google.cloud.automl.v1.PredictResponse(this); + com.google.cloud.automl.v1.PredictResponse result = new com.google.cloud.automl.v1.PredictResponse(this); int from_bitField0_ = bitField0_; if (payloadBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -781,39 +735,38 @@ public com.google.cloud.automl.v1.PredictResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.PredictResponse) { - return mergeFrom((com.google.cloud.automl.v1.PredictResponse) other); + return mergeFrom((com.google.cloud.automl.v1.PredictResponse)other); } else { super.mergeFrom(other); return this; @@ -840,10 +793,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1.PredictResponse other) { payloadBuilder_ = null; payload_ = other.payload_; bitField0_ = (bitField0_ & ~0x00000001); - payloadBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPayloadFieldBuilder() - : null; + payloadBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPayloadFieldBuilder() : null; } else { payloadBuilder_.addAllMessages(other.payload_); } @@ -852,7 +804,8 @@ public Builder mergeFrom(com.google.cloud.automl.v1.PredictResponse other) { if (other.hasPreprocessedInput()) { mergePreprocessedInput(other.getPreprocessedInput()); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -881,28 +834,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List payload_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePayloadIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { payload_ = new java.util.ArrayList(payload_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.AnnotationPayload, - com.google.cloud.automl.v1.AnnotationPayload.Builder, - com.google.cloud.automl.v1.AnnotationPayloadOrBuilder> - payloadBuilder_; + com.google.cloud.automl.v1.AnnotationPayload, com.google.cloud.automl.v1.AnnotationPayload.Builder, com.google.cloud.automl.v1.AnnotationPayloadOrBuilder> payloadBuilder_; /** - * - * *
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -919,8 +865,6 @@ public java.util.List getPayloadLi
       }
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -937,8 +881,6 @@ public int getPayloadCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -955,8 +897,6 @@ public com.google.cloud.automl.v1.AnnotationPayload getPayload(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -965,7 +905,8 @@ public com.google.cloud.automl.v1.AnnotationPayload getPayload(int index) {
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public Builder setPayload(int index, com.google.cloud.automl.v1.AnnotationPayload value) {
+    public Builder setPayload(
+        int index, com.google.cloud.automl.v1.AnnotationPayload value) {
       if (payloadBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -979,8 +920,6 @@ public Builder setPayload(int index, com.google.cloud.automl.v1.AnnotationPayloa
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1001,8 +940,6 @@ public Builder setPayload(
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1025,8 +962,6 @@ public Builder addPayload(com.google.cloud.automl.v1.AnnotationPayload value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1035,7 +970,8 @@ public Builder addPayload(com.google.cloud.automl.v1.AnnotationPayload value) {
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public Builder addPayload(int index, com.google.cloud.automl.v1.AnnotationPayload value) {
+    public Builder addPayload(
+        int index, com.google.cloud.automl.v1.AnnotationPayload value) {
       if (payloadBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1049,8 +985,6 @@ public Builder addPayload(int index, com.google.cloud.automl.v1.AnnotationPayloa
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1071,8 +1005,6 @@ public Builder addPayload(
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1093,8 +1025,6 @@ public Builder addPayload(
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1107,7 +1037,8 @@ public Builder addAllPayload(
         java.lang.Iterable values) {
       if (payloadBuilder_ == null) {
         ensurePayloadIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, payload_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, payload_);
         onChanged();
       } else {
         payloadBuilder_.addAllMessages(values);
@@ -1115,8 +1046,6 @@ public Builder addAllPayload(
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1136,8 +1065,6 @@ public Builder clearPayload() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1157,8 +1084,6 @@ public Builder removePayload(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1167,12 +1092,11 @@ public Builder removePayload(int index) {
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public com.google.cloud.automl.v1.AnnotationPayload.Builder getPayloadBuilder(int index) {
+    public com.google.cloud.automl.v1.AnnotationPayload.Builder getPayloadBuilder(
+        int index) {
       return getPayloadFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1181,16 +1105,14 @@ public com.google.cloud.automl.v1.AnnotationPayload.Builder getPayloadBuilder(in
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(int index) {
+    public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
+        int index) {
       if (payloadBuilder_ == null) {
-        return payload_.get(index);
-      } else {
+        return payload_.get(index);  } else {
         return payloadBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1199,8 +1121,8 @@ public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public java.util.List
-        getPayloadOrBuilderList() {
+    public java.util.List 
+         getPayloadOrBuilderList() {
       if (payloadBuilder_ != null) {
         return payloadBuilder_.getMessageOrBuilderList();
       } else {
@@ -1208,8 +1130,6 @@ public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder
       }
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1219,12 +1139,10 @@ public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
     public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder() {
-      return getPayloadFieldBuilder()
-          .addBuilder(com.google.cloud.automl.v1.AnnotationPayload.getDefaultInstance());
+      return getPayloadFieldBuilder().addBuilder(
+          com.google.cloud.automl.v1.AnnotationPayload.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1233,13 +1151,12 @@ public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder()
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder(int index) {
-      return getPayloadFieldBuilder()
-          .addBuilder(index, com.google.cloud.automl.v1.AnnotationPayload.getDefaultInstance());
+    public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder(
+        int index) {
+      return getPayloadFieldBuilder().addBuilder(
+          index, com.google.cloud.automl.v1.AnnotationPayload.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1248,23 +1165,20 @@ public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder(in
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public java.util.List
-        getPayloadBuilderList() {
+    public java.util.List 
+         getPayloadBuilderList() {
       return getPayloadFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.automl.v1.AnnotationPayload,
-            com.google.cloud.automl.v1.AnnotationPayload.Builder,
-            com.google.cloud.automl.v1.AnnotationPayloadOrBuilder>
+        com.google.cloud.automl.v1.AnnotationPayload, com.google.cloud.automl.v1.AnnotationPayload.Builder, com.google.cloud.automl.v1.AnnotationPayloadOrBuilder> 
         getPayloadFieldBuilder() {
       if (payloadBuilder_ == null) {
-        payloadBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.automl.v1.AnnotationPayload,
-                com.google.cloud.automl.v1.AnnotationPayload.Builder,
-                com.google.cloud.automl.v1.AnnotationPayloadOrBuilder>(
-                payload_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        payloadBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.automl.v1.AnnotationPayload, com.google.cloud.automl.v1.AnnotationPayload.Builder, com.google.cloud.automl.v1.AnnotationPayloadOrBuilder>(
+                payload_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         payload_ = null;
       }
       return payloadBuilder_;
@@ -1272,13 +1186,8 @@ public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder(in
 
     private com.google.cloud.automl.v1.ExamplePayload preprocessedInput_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.ExamplePayload,
-            com.google.cloud.automl.v1.ExamplePayload.Builder,
-            com.google.cloud.automl.v1.ExamplePayloadOrBuilder>
-        preprocessedInputBuilder_;
+        com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder> preprocessedInputBuilder_;
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1290,15 +1199,12 @@ public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder(in
      * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; - * * @return Whether the preprocessedInput field is set. */ public boolean hasPreprocessedInput() { return preprocessedInputBuilder_ != null || preprocessedInput_ != null; } /** - * - * *
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1310,21 +1216,16 @@ public boolean hasPreprocessedInput() {
      * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; - * * @return The preprocessedInput. */ public com.google.cloud.automl.v1.ExamplePayload getPreprocessedInput() { if (preprocessedInputBuilder_ == null) { - return preprocessedInput_ == null - ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() - : preprocessedInput_; + return preprocessedInput_ == null ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : preprocessedInput_; } else { return preprocessedInputBuilder_.getMessage(); } } /** - * - * *
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1351,8 +1252,6 @@ public Builder setPreprocessedInput(com.google.cloud.automl.v1.ExamplePayload va
       return this;
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1377,8 +1276,6 @@ public Builder setPreprocessedInput(
       return this;
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1395,9 +1292,7 @@ public Builder mergePreprocessedInput(com.google.cloud.automl.v1.ExamplePayload
       if (preprocessedInputBuilder_ == null) {
         if (preprocessedInput_ != null) {
           preprocessedInput_ =
-              com.google.cloud.automl.v1.ExamplePayload.newBuilder(preprocessedInput_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.automl.v1.ExamplePayload.newBuilder(preprocessedInput_).mergeFrom(value).buildPartial();
         } else {
           preprocessedInput_ = value;
         }
@@ -1409,8 +1304,6 @@ public Builder mergePreprocessedInput(com.google.cloud.automl.v1.ExamplePayload
       return this;
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1435,8 +1328,6 @@ public Builder clearPreprocessedInput() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1450,13 +1341,11 @@ public Builder clearPreprocessedInput() {
      * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
      */
     public com.google.cloud.automl.v1.ExamplePayload.Builder getPreprocessedInputBuilder() {
-
+      
       onChanged();
       return getPreprocessedInputFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1473,14 +1362,11 @@ public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPreprocessedInputOr
       if (preprocessedInputBuilder_ != null) {
         return preprocessedInputBuilder_.getMessageOrBuilder();
       } else {
-        return preprocessedInput_ == null
-            ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance()
-            : preprocessedInput_;
+        return preprocessedInput_ == null ?
+            com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : preprocessedInput_;
       }
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1494,38 +1380,35 @@ public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPreprocessedInputOr
      * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.ExamplePayload,
-            com.google.cloud.automl.v1.ExamplePayload.Builder,
-            com.google.cloud.automl.v1.ExamplePayloadOrBuilder>
+        com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder> 
         getPreprocessedInputFieldBuilder() {
       if (preprocessedInputBuilder_ == null) {
-        preprocessedInputBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.automl.v1.ExamplePayload,
-                com.google.cloud.automl.v1.ExamplePayload.Builder,
-                com.google.cloud.automl.v1.ExamplePayloadOrBuilder>(
-                getPreprocessedInput(), getParentForChildren(), isClean());
+        preprocessedInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder>(
+                getPreprocessedInput(),
+                getParentForChildren(),
+                isClean());
         preprocessedInput_ = null;
       }
       return preprocessedInputBuilder_;
     }
 
-    private com.google.protobuf.MapField metadata_;
-
-    private com.google.protobuf.MapField internalGetMetadata() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> metadata_;
+    private com.google.protobuf.MapField
+    internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableMetadata() {
-      onChanged();
-      ;
+    internalGetMutableMetadata() {
+      onChanged();;
       if (metadata_ == null) {
-        metadata_ =
-            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ = com.google.protobuf.MapField.newMapField(
+            MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -1537,8 +1420,6 @@ public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1558,22 +1439,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 2;
      */
+
     @java.lang.Override
-    public boolean containsMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /** Use {@link #getMetadataMap()} instead. */
+    /**
+     * Use {@link #getMetadataMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1594,12 +1475,11 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
+
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1620,17 +1500,16 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
+
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1651,11 +1530,12 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
-    public java.lang.String getMetadataOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+
+    public java.lang.String getMetadataOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1663,12 +1543,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap().clear();
+      internalGetMutableMetadata().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1688,21 +1567,23 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 2;
      */
-    public Builder removeMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().remove(key);
+
+    public Builder removeMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMetadata() {
+    public java.util.Map
+    getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1722,19 +1603,16 @@ public java.util.Map getMutableMetadata() {
      *
      * map<string, string> metadata = 2;
      */
-    public Builder putMetadata(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().put(key, value);
+    public Builder putMetadata(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1754,13 +1632,16 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> metadata = 2;
      */
-    public Builder putAllMetadata(java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap().putAll(values);
+
+    public Builder putAllMetadata(
+        java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1770,12 +1651,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.PredictResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.PredictResponse)
   private static final com.google.cloud.automl.v1.PredictResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.PredictResponse();
   }
@@ -1784,16 +1665,16 @@ public static com.google.cloud.automl.v1.PredictResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public PredictResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new PredictResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public PredictResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new PredictResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1808,4 +1689,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.PredictResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java
similarity index 86%
rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java
index b45c3eca1..2a2a55984 100644
--- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
-public interface PredictResponseOrBuilder
-    extends
+public interface PredictResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.PredictResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -34,10 +16,9 @@ public interface PredictResponseOrBuilder
    *
    * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
    */
-  java.util.List getPayloadList();
+  java.util.List 
+      getPayloadList();
   /**
-   *
-   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -48,8 +29,6 @@ public interface PredictResponseOrBuilder
    */
   com.google.cloud.automl.v1.AnnotationPayload getPayload(int index);
   /**
-   *
-   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -60,8 +39,6 @@ public interface PredictResponseOrBuilder
    */
   int getPayloadCount();
   /**
-   *
-   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -70,11 +47,9 @@ public interface PredictResponseOrBuilder
    *
    * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
    */
-  java.util.List
+  java.util.List 
       getPayloadOrBuilderList();
   /**
-   *
-   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -83,11 +58,10 @@ public interface PredictResponseOrBuilder
    *
    * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
    */
-  com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(int index);
+  com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -99,13 +73,10 @@ public interface PredictResponseOrBuilder
    * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; - * * @return Whether the preprocessedInput field is set. */ boolean hasPreprocessedInput(); /** - * - * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -117,13 +88,10 @@ public interface PredictResponseOrBuilder
    * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; - * * @return The preprocessedInput. */ com.google.cloud.automl.v1.ExamplePayload getPreprocessedInput(); /** - * - * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -139,8 +107,6 @@ public interface PredictResponseOrBuilder
   com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPreprocessedInputOrBuilder();
 
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -162,8 +128,6 @@ public interface PredictResponseOrBuilder
    */
   int getMetadataCount();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -183,13 +147,15 @@ public interface PredictResponseOrBuilder
    *
    * map<string, string> metadata = 2;
    */
-  boolean containsMetadata(java.lang.String key);
-  /** Use {@link #getMetadataMap()} instead. */
+  boolean containsMetadata(
+      java.lang.String key);
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMetadata();
+  java.util.Map
+  getMetadata();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -209,10 +175,9 @@ public interface PredictResponseOrBuilder
    *
    * map<string, string> metadata = 2;
    */
-  java.util.Map getMetadataMap();
+  java.util.Map
+  getMetadataMap();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -232,10 +197,11 @@ public interface PredictResponseOrBuilder
    *
    * map<string, string> metadata = 2;
    */
-  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getMetadataOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -255,5 +221,7 @@ public interface PredictResponseOrBuilder
    *
    * map<string, string> metadata = 2;
    */
-  java.lang.String getMetadataOrThrow(java.lang.String key);
+
+  java.lang.String getMetadataOrThrow(
+      java.lang.String key);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceProto.java
new file mode 100644
index 000000000..2792b1ce6
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceProto.java
@@ -0,0 +1,205 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1/prediction_service.proto
+
+package com.google.cloud.automl.v1;
+
+public final class PredictionServiceProto {
+  private PredictionServiceProto() {}
+  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_v1_PredictRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_PredictRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_PredictRequest_ParamsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_PredictRequest_ParamsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_PredictResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_PredictResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_PredictResponse_MetadataEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_PredictResponse_MetadataEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_BatchPredictRequest_ParamsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictRequest_ParamsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1_BatchPredictResult_MetadataEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictResult_MetadataEntry_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/v1/prediction_serv" +
+      "ice.proto\022\026google.cloud.automl.v1\032\034googl" +
+      "e/api/annotations.proto\032\027google/api/clie" +
+      "nt.proto\032\037google/api/field_behavior.prot" +
+      "o\032\031google/api/resource.proto\032/google/clo" +
+      "ud/automl/v1/annotation_payload.proto\032\'g" +
+      "oogle/cloud/automl/v1/data_items.proto\032\037" +
+      "google/cloud/automl/v1/io.proto\032\'google/" +
+      "cloud/automl/v1/operations.proto\032#google" +
+      "/longrunning/operations.proto\"\364\001\n\016Predic" +
+      "tRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.g" +
+      "oogleapis.com/Model\022<\n\007payload\030\002 \001(\0132&.g" +
+      "oogle.cloud.automl.v1.ExamplePayloadB\003\340A" +
+      "\002\022B\n\006params\030\003 \003(\01322.google.cloud.automl." +
+      "v1.PredictRequest.ParamsEntry\032-\n\013ParamsE" +
+      "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\213\002\n" +
+      "\017PredictResponse\022:\n\007payload\030\001 \003(\0132).goog" +
+      "le.cloud.automl.v1.AnnotationPayload\022B\n\022" +
+      "preprocessed_input\030\003 \001(\0132&.google.cloud." +
+      "automl.v1.ExamplePayload\022G\n\010metadata\030\002 \003" +
+      "(\01325.google.cloud.automl.v1.PredictRespo" +
+      "nse.MetadataEntry\032/\n\rMetadataEntry\022\013\n\003ke" +
+      "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\332\002\n\023BatchPred" +
+      "ictRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl" +
+      ".googleapis.com/Model\022J\n\014input_config\030\003 " +
+      "\001(\0132/.google.cloud.automl.v1.BatchPredic" +
+      "tInputConfigB\003\340A\002\022L\n\routput_config\030\004 \001(\013" +
+      "20.google.cloud.automl.v1.BatchPredictOu" +
+      "tputConfigB\003\340A\002\022G\n\006params\030\005 \003(\01327.google" +
+      ".cloud.automl.v1.BatchPredictRequest.Par" +
+      "amsEntry\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" +
+      "value\030\002 \001(\t:\0028\001\"\221\001\n\022BatchPredictResult\022J" +
+      "\n\010metadata\030\001 \003(\01328.google.cloud.automl.v" +
+      "1.BatchPredictResult.MetadataEntry\032/\n\rMe" +
+      "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" +
+      "\0028\0012\205\004\n\021PredictionService\022\257\001\n\007Predict\022&." +
+      "google.cloud.automl.v1.PredictRequest\032\'." +
+      "google.cloud.automl.v1.PredictResponse\"S" +
+      "\202\323\344\223\0027\"2/v1/{name=projects/*/locations/*" +
+      "/models/*}:predict:\001*\332A\023name,payload,par" +
+      "ams\022\362\001\n\014BatchPredict\022+.google.cloud.auto" +
+      "ml.v1.BatchPredictRequest\032\035.google.longr" +
+      "unning.Operation\"\225\001\202\323\344\223\002<\"7/v1/{name=pro" +
+      "jects/*/locations/*/models/*}:batchPredi" +
+      "ct:\001*\332A&name,input_config,output_config," +
+      "params\312A\'\n\022BatchPredictResult\022\021Operation" +
+      "Metadata\032I\312A\025automl.googleapis.com\322A.htt" +
+      "ps://www.googleapis.com/auth/cloud-platf" +
+      "ormB\302\001\n\032com.google.cloud.automl.v1B\026Pred" +
+      "ictionServiceProtoP\001Z
  * Dataset metadata for classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextClassificationDatasetMetadata} */ -public final class TextClassificationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextClassificationDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextClassificationDatasetMetadata) TextClassificationDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextClassificationDatasetMetadata.newBuilder() to construct. - private TextClassificationDatasetMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextClassificationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextClassificationDatasetMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextClassificationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextClassificationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,85 +53,72 @@ private TextClassificationDatasetMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + classificationType_ = rawValue; + 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); + 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.v1.TextProto - .internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.class, - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.class, com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 1; private int classificationType_; /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The classificationType. */ - @java.lang.Override - public com.google.cloud.automl.v1.ClassificationType getClassificationType() { + @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = - com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,10 +130,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (classificationType_ - != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, classificationType_); } unknownFields.writeTo(output); @@ -176,10 +144,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ - != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, classificationType_); + if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -189,13 +156,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextClassificationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextClassificationDatasetMetadata other = - (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) obj; + com.google.cloud.automl.v1.TextClassificationDatasetMetadata other = (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -217,127 +183,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextClassificationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata 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.v1.TextClassificationDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TextClassificationDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.TextClassificationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Dataset metadata for classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TextClassificationDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextClassificationDatasetMetadata) com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.class, - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.class, com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextClassificationDatasetMetadata.newBuilder() @@ -345,15 +301,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -363,14 +320,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance(); } @@ -385,8 +341,7 @@ public com.google.cloud.automl.v1.TextClassificationDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextClassificationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.TextClassificationDatasetMetadata result = - new com.google.cloud.automl.v1.TextClassificationDatasetMetadata(this); + com.google.cloud.automl.v1.TextClassificationDatasetMetadata result = new com.google.cloud.automl.v1.TextClassificationDatasetMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -396,39 +351,38 @@ public com.google.cloud.automl.v1.TextClassificationDatasetMetadata buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextClassificationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextClassificationDatasetMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.TextClassificationDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -436,9 +390,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextClassificationDatasetMetadata other) { - if (other - == com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance()) return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -461,8 +413,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -474,65 +425,51 @@ public Builder mergeFrom( private int classificationType_ = 0; /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The classificationType. */ @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = - com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @param value The classificationType to set. * @return This builder for chaining. */ @@ -540,31 +477,28 @@ public Builder setClassificationType(com.google.cloud.automl.v1.ClassificationTy if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -574,13 +508,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextClassificationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextClassificationDatasetMetadata) - private static final com.google.cloud.automl.v1.TextClassificationDatasetMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.TextClassificationDatasetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextClassificationDatasetMetadata(); } @@ -589,16 +522,16 @@ public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -613,4 +546,6 @@ public com.google.protobuf.Parser getParserFo public com.google.cloud.automl.v1.TextClassificationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java similarity index 55% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java index 81f67298d..d3c6235b8 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; -public interface TextClassificationDatasetMetadataOrBuilder - extends +public interface TextClassificationDatasetMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextClassificationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; - * * @return The classificationType. */ com.google.cloud.automl.v1.ClassificationType getClassificationType(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java similarity index 67% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java index b68b57f29..21e0bc7d4 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model metadata that is specific to text classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextClassificationModelMetadata} */ -public final class TextClassificationModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextClassificationModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextClassificationModelMetadata) TextClassificationModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextClassificationModelMetadata.newBuilder() to construct. - private TextClassificationModelMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextClassificationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextClassificationModelMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextClassificationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextClassificationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,85 +53,72 @@ private TextClassificationModelMetadata( case 0: done = true; break; - case 24: - { - int rawValue = input.readEnum(); + case 24: { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + classificationType_ = rawValue; + 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); + 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.v1.TextProto - .internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextClassificationModelMetadata.class, - com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextClassificationModelMetadata.class, com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 3; private int classificationType_; /** - * - * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; - * * @return The classificationType. */ - @java.lang.Override - public com.google.cloud.automl.v1.ClassificationType getClassificationType() { + @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = - com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,10 +130,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (classificationType_ - != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, classificationType_); } unknownFields.writeTo(output); @@ -176,10 +144,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ - != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, classificationType_); + if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -189,13 +156,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextClassificationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextClassificationModelMetadata other = - (com.google.cloud.automl.v1.TextClassificationModelMetadata) obj; + com.google.cloud.automl.v1.TextClassificationModelMetadata other = (com.google.cloud.automl.v1.TextClassificationModelMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -217,127 +183,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextClassificationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextClassificationModelMetadata 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.v1.TextClassificationModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TextClassificationModelMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.TextClassificationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextClassificationModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextClassificationModelMetadata) com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextClassificationModelMetadata.class, - com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextClassificationModelMetadata.class, com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextClassificationModelMetadata.newBuilder() @@ -345,15 +301,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -363,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; } @java.lang.Override @@ -384,8 +341,7 @@ public com.google.cloud.automl.v1.TextClassificationModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextClassificationModelMetadata buildPartial() { - com.google.cloud.automl.v1.TextClassificationModelMetadata result = - new com.google.cloud.automl.v1.TextClassificationModelMetadata(this); + com.google.cloud.automl.v1.TextClassificationModelMetadata result = new com.google.cloud.automl.v1.TextClassificationModelMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -395,39 +351,38 @@ public com.google.cloud.automl.v1.TextClassificationModelMetadata buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextClassificationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextClassificationModelMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.TextClassificationModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -435,8 +390,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextClassificationModelMetadata other) { - if (other == com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance()) return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -459,8 +413,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextClassificationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextClassificationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -472,65 +425,51 @@ public Builder mergeFrom( private int classificationType_ = 0; /** - * - * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; - * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; - * * @return The classificationType. */ @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = - com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; - * * @param value The classificationType to set. * @return This builder for chaining. */ @@ -538,31 +477,28 @@ public Builder setClassificationType(com.google.cloud.automl.v1.ClassificationTy if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; - * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -572,12 +508,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextClassificationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextClassificationModelMetadata) private static final com.google.cloud.automl.v1.TextClassificationModelMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextClassificationModelMetadata(); } @@ -586,16 +522,16 @@ public static com.google.cloud.automl.v1.TextClassificationModelMetadata getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -610,4 +546,6 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.automl.v1.TextClassificationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java similarity index 57% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java index 92b8b26c7..639ed939b 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; -public interface TextClassificationModelMetadataOrBuilder - extends +public interface TextClassificationModelMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextClassificationModelMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; - * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** - * - * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; - * * @return The classificationType. */ com.google.cloud.automl.v1.ClassificationType getClassificationType(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtraction.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtraction.java new file mode 100644 index 000000000..780e95071 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtraction.java @@ -0,0 +1,89 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text_extraction.proto + +package com.google.cloud.automl.v1; + +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_v1_TextExtractionAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextExtractionAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_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 = { + "\n,google/cloud/automl/v1/text_extraction" + + ".proto\022\026google.cloud.automl.v1\032)google/c" + + "loud/automl/v1/text_segment.proto\032\034googl" + + "e/api/annotations.proto\"t\n\030TextExtractio" + + "nAnnotation\022;\n\014text_segment\030\003 \001(\0132#.goog" + + "le.cloud.automl.v1.TextSegmentH\000\022\r\n\005scor" + + "e\030\001 \001(\002B\014\n\nannotation\"\222\002\n\037TextExtraction" + + "EvaluationMetrics\022\016\n\006au_prc\030\001 \001(\002\022r\n\032con" + + "fidence_metrics_entries\030\002 \003(\0132N.google.c" + + "loud.automl.v1.TextExtractionEvaluationM" + + "etrics.ConfidenceMetricsEntry\032k\n\026Confide" + + "nceMetricsEntry\022\034\n\024confidence_threshold\030" + + "\001 \001(\002\022\016\n\006recall\030\003 \001(\002\022\021\n\tprecision\030\004 \001(\002" + + "\022\020\n\010f1_score\030\005 \001(\002B\252\001\n\032com.google.cloud." + + "automl.v1P\001Z * Annotation for identifying spans of text. *
* * Protobuf type {@code google.cloud.automl.v1.TextExtractionAnnotation} */ -public final class TextExtractionAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextExtractionAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextExtractionAnnotation) TextExtractionAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextExtractionAnnotation.newBuilder() to construct. private TextExtractionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextExtractionAnnotation() {} + private TextExtractionAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextExtractionAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextExtractionAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,72 +52,65 @@ private TextExtractionAnnotation( case 0: done = true; break; - case 13: - { - score_ = input.readFloat(); - break; + case 13: { + + score_ = input.readFloat(); + break; + } + case 26: { + com.google.cloud.automl.v1.TextSegment.Builder subBuilder = null; + if (annotationCase_ == 3) { + subBuilder = ((com.google.cloud.automl.v1.TextSegment) annotation_).toBuilder(); } - case 26: - { - com.google.cloud.automl.v1.TextSegment.Builder subBuilder = null; - if (annotationCase_ == 3) { - subBuilder = ((com.google.cloud.automl.v1.TextSegment) annotation_).toBuilder(); - } - annotation_ = - input.readMessage( - com.google.cloud.automl.v1.TextSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSegment) annotation_); - annotation_ = subBuilder.buildPartial(); - } - annotationCase_ = 3; - break; + annotation_ = + input.readMessage(com.google.cloud.automl.v1.TextSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSegment) annotation_); + annotation_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + annotationCase_ = 3; + 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); + 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.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionAnnotation.class, - com.google.cloud.automl.v1.TextExtractionAnnotation.Builder.class); + com.google.cloud.automl.v1.TextExtractionAnnotation.class, com.google.cloud.automl.v1.TextExtractionAnnotation.Builder.class); } private int annotationCase_ = 0; private java.lang.Object annotation_; - public enum AnnotationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT_SEGMENT(3), ANNOTATION_NOT_SET(0); private final int value; - private AnnotationCase(int value) { this.value = value; } @@ -149,35 +126,30 @@ public static AnnotationCase valueOf(int value) { public static AnnotationCase forNumber(int value) { switch (value) { - case 3: - return TEXT_SEGMENT; - case 0: - return ANNOTATION_NOT_SET; - default: - return null; + case 3: return TEXT_SEGMENT; + case 0: return ANNOTATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AnnotationCase getAnnotationCase() { - return AnnotationCase.forNumber(annotationCase_); + public AnnotationCase + getAnnotationCase() { + return AnnotationCase.forNumber( + annotationCase_); } public static final int TEXT_SEGMENT_FIELD_NUMBER = 3; /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; - * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -185,27 +157,22 @@ public boolean hasTextSegment() { return annotationCase_ == 3; } /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; - * * @return The textSegment. */ @java.lang.Override public com.google.cloud.automl.v1.TextSegment getTextSegment() { if (annotationCase_ == 3) { - return (com.google.cloud.automl.v1.TextSegment) annotation_; + return (com.google.cloud.automl.v1.TextSegment) annotation_; } return com.google.cloud.automl.v1.TextSegment.getDefaultInstance(); } /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
@@ -216,7 +183,7 @@ public com.google.cloud.automl.v1.TextSegment getTextSegment() {
   @java.lang.Override
   public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder() {
     if (annotationCase_ == 3) {
-      return (com.google.cloud.automl.v1.TextSegment) annotation_;
+       return (com.google.cloud.automl.v1.TextSegment) annotation_;
     }
     return com.google.cloud.automl.v1.TextSegment.getDefaultInstance();
   }
@@ -224,15 +191,12 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
   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; - * * @return The score. */ @java.lang.Override @@ -241,7 +205,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (score_ != 0F) { output.writeFloat(1, score_); } @@ -270,12 +234,12 @@ public int getSerializedSize() { size = 0; if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, score_); } if (annotationCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.automl.v1.TextSegment) annotation_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.automl.v1.TextSegment) annotation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -285,20 +249,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextExtractionAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextExtractionAnnotation other = - (com.google.cloud.automl.v1.TextExtractionAnnotation) obj; + com.google.cloud.automl.v1.TextExtractionAnnotation other = (com.google.cloud.automl.v1.TextExtractionAnnotation) obj; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!getAnnotationCase().equals(other.getAnnotationCase())) return false; switch (annotationCase_) { case 3: - if (!getTextSegment().equals(other.getTextSegment())) return false; + if (!getTextSegment() + .equals(other.getTextSegment())) return false; break; case 0: default: @@ -315,7 +280,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); switch (annotationCase_) { case 3: hash = (37 * hash) + TEXT_SEGMENT_FIELD_NUMBER; @@ -330,126 +296,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextExtractionAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.TextExtractionAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextExtractionAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextExtractionAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextExtractionAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextExtractionAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextExtractionAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextExtractionAnnotation) com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionAnnotation.class, - com.google.cloud.automl.v1.TextExtractionAnnotation.Builder.class); + com.google.cloud.automl.v1.TextExtractionAnnotation.class, com.google.cloud.automl.v1.TextExtractionAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1.TextExtractionAnnotation.newBuilder() @@ -457,15 +414,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; } @java.lang.Override @@ -498,8 +456,7 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1.TextExtractionAnnotation buildPartial() { - com.google.cloud.automl.v1.TextExtractionAnnotation result = - new com.google.cloud.automl.v1.TextExtractionAnnotation(this); + com.google.cloud.automl.v1.TextExtractionAnnotation result = new com.google.cloud.automl.v1.TextExtractionAnnotation(this); if (annotationCase_ == 3) { if (textSegmentBuilder_ == null) { result.annotation_ = annotation_; @@ -517,39 +474,38 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextExtractionAnnotation) { - return mergeFrom((com.google.cloud.automl.v1.TextExtractionAnnotation) other); + return mergeFrom((com.google.cloud.automl.v1.TextExtractionAnnotation)other); } else { super.mergeFrom(other); return this; @@ -557,21 +513,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionAnnotation other) { - if (other == com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance()) return this; if (other.getScore() != 0F) { setScore(other.getScore()); } switch (other.getAnnotationCase()) { - case TEXT_SEGMENT: - { - mergeTextSegment(other.getTextSegment()); - break; - } - case ANNOTATION_NOT_SET: - { - break; - } + case TEXT_SEGMENT: { + mergeTextSegment(other.getTextSegment()); + break; + } + case ANNOTATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -592,8 +545,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextExtractionAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextExtractionAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,12 +554,12 @@ public Builder mergeFrom( } return this; } - private int annotationCase_ = 0; private java.lang.Object annotation_; - - public AnnotationCase getAnnotationCase() { - return AnnotationCase.forNumber(annotationCase_); + public AnnotationCase + getAnnotationCase() { + return AnnotationCase.forNumber( + annotationCase_); } public Builder clearAnnotation() { @@ -617,21 +569,16 @@ public Builder clearAnnotation() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSegment, - com.google.cloud.automl.v1.TextSegment.Builder, - com.google.cloud.automl.v1.TextSegmentOrBuilder> - textSegmentBuilder_; + com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder> textSegmentBuilder_; /** - * - * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; - * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -639,15 +586,12 @@ public boolean hasTextSegment() { return annotationCase_ == 3; } /** - * - * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; - * * @return The textSegment. */ @java.lang.Override @@ -665,8 +609,6 @@ public com.google.cloud.automl.v1.TextSegment getTextSegment() { } } /** - * - * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -688,8 +630,6 @@ public Builder setTextSegment(com.google.cloud.automl.v1.TextSegment value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -697,7 +637,8 @@ public Builder setTextSegment(com.google.cloud.automl.v1.TextSegment value) {
      *
      * .google.cloud.automl.v1.TextSegment text_segment = 3;
      */
-    public Builder setTextSegment(com.google.cloud.automl.v1.TextSegment.Builder builderForValue) {
+    public Builder setTextSegment(
+        com.google.cloud.automl.v1.TextSegment.Builder builderForValue) {
       if (textSegmentBuilder_ == null) {
         annotation_ = builderForValue.build();
         onChanged();
@@ -708,8 +649,6 @@ public Builder setTextSegment(com.google.cloud.automl.v1.TextSegment.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -719,13 +658,10 @@ public Builder setTextSegment(com.google.cloud.automl.v1.TextSegment.Builder bui
      */
     public Builder mergeTextSegment(com.google.cloud.automl.v1.TextSegment value) {
       if (textSegmentBuilder_ == null) {
-        if (annotationCase_ == 3
-            && annotation_ != com.google.cloud.automl.v1.TextSegment.getDefaultInstance()) {
-          annotation_ =
-              com.google.cloud.automl.v1.TextSegment.newBuilder(
-                      (com.google.cloud.automl.v1.TextSegment) annotation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (annotationCase_ == 3 &&
+            annotation_ != com.google.cloud.automl.v1.TextSegment.getDefaultInstance()) {
+          annotation_ = com.google.cloud.automl.v1.TextSegment.newBuilder((com.google.cloud.automl.v1.TextSegment) annotation_)
+              .mergeFrom(value).buildPartial();
         } else {
           annotation_ = value;
         }
@@ -740,8 +676,6 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1.TextSegment value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -766,8 +700,6 @@ public Builder clearTextSegment() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -779,8 +711,6 @@ public com.google.cloud.automl.v1.TextSegment.Builder getTextSegmentBuilder() {
       return getTextSegmentFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -800,8 +730,6 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -810,41 +738,32 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
      * .google.cloud.automl.v1.TextSegment text_segment = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.TextSegment,
-            com.google.cloud.automl.v1.TextSegment.Builder,
-            com.google.cloud.automl.v1.TextSegmentOrBuilder>
+        com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder> 
         getTextSegmentFieldBuilder() {
       if (textSegmentBuilder_ == null) {
         if (!(annotationCase_ == 3)) {
           annotation_ = com.google.cloud.automl.v1.TextSegment.getDefaultInstance();
         }
-        textSegmentBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.automl.v1.TextSegment,
-                com.google.cloud.automl.v1.TextSegment.Builder,
-                com.google.cloud.automl.v1.TextSegmentOrBuilder>(
+        textSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder>(
                 (com.google.cloud.automl.v1.TextSegment) annotation_,
                 getParentForChildren(),
                 isClean());
         annotation_ = null;
       }
       annotationCase_ = 3;
-      onChanged();
-      ;
+      onChanged();;
       return textSegmentBuilder_;
     }
 
-    private float score_;
+    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; - * * @return The score. */ @java.lang.Override @@ -852,45 +771,39 @@ 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; - * * @param value The score to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -900,12 +813,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextExtractionAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextExtractionAnnotation) private static final com.google.cloud.automl.v1.TextExtractionAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextExtractionAnnotation(); } @@ -914,16 +827,16 @@ public static com.google.cloud.automl.v1.TextExtractionAnnotation getDefaultInst 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); - } - }; + 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; @@ -938,4 +851,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TextExtractionAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java similarity index 69% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java index 779187206..85f6b2844 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_extraction.proto package com.google.cloud.automl.v1; -public interface TextExtractionAnnotationOrBuilder - extends +public interface TextExtractionAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextExtractionAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; - * * @return Whether the textSegment field is set. */ boolean hasTextSegment(); /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; - * * @return The textSegment. */ com.google.cloud.automl.v1.TextSegment getTextSegment(); /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
@@ -62,15 +38,12 @@ public interface TextExtractionAnnotationOrBuilder
   com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder();
 
   /**
-   *
-   *
    * 
    * 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; - * * @return The score. */ float getScore(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java index 79b698c3f..5bee475a2 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; /** - * - * *
  * Dataset metadata that is specific to text extraction
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextExtractionDatasetMetadata} */ -public final class TextExtractionDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextExtractionDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextExtractionDatasetMetadata) TextExtractionDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextExtractionDatasetMetadata.newBuilder() to construct. private TextExtractionDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextExtractionDatasetMetadata() {} + private TextExtractionDatasetMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextExtractionDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextExtractionDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private TextExtractionDatasetMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.TextProto - .internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.class, - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.class, com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextExtractionDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextExtractionDatasetMetadata other = - (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) obj; + com.google.cloud.automl.v1.TextExtractionDatasetMetadata other = (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextExtractionDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.TextExtractionDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TextExtractionDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.TextExtractionDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextExtractionDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextExtractionDatasetMetadata) com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.class, - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.class, com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextExtractionDatasetMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; } @java.lang.Override @@ -323,8 +295,7 @@ public com.google.cloud.automl.v1.TextExtractionDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextExtractionDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.TextExtractionDatasetMetadata result = - new com.google.cloud.automl.v1.TextExtractionDatasetMetadata(this); + com.google.cloud.automl.v1.TextExtractionDatasetMetadata result = new com.google.cloud.automl.v1.TextExtractionDatasetMetadata(this); onBuilt(); return result; } @@ -333,39 +304,38 @@ public com.google.cloud.automl.v1.TextExtractionDatasetMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextExtractionDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextExtractionDatasetMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.TextExtractionDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -373,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionDatasetMetadata other) { - if (other == com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -394,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -404,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -416,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextExtractionDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextExtractionDatasetMetadata) private static final com.google.cloud.automl.v1.TextExtractionDatasetMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextExtractionDatasetMetadata(); } @@ -430,16 +398,16 @@ public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata getDefaul 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); - } - }; + 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; @@ -454,4 +422,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.automl.v1.TextExtractionDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadataOrBuilder.java new file mode 100644 index 000000000..597ddeeb3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text.proto + +package com.google.cloud.automl.v1; + +public interface TextExtractionDatasetMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextExtractionDatasetMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java similarity index 62% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java index 0abc7644f..571c4ad60 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_extraction.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model evaluation metrics for text extraction problems.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextExtractionEvaluationMetrics} */ -public final class TextExtractionEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextExtractionEvaluationMetrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextExtractionEvaluationMetrics) TextExtractionEvaluationMetricsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextExtractionEvaluationMetrics.newBuilder() to construct. - private TextExtractionEvaluationMetrics( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextExtractionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextExtractionEvaluationMetrics() { confidenceMetricsEntries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextExtractionEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextExtractionEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,73 +54,60 @@ private TextExtractionEvaluationMetrics( case 0: done = true; break; - case 13: - { - auPrc_ = input.readFloat(); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - new java.util.ArrayList< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntry>(); - mutable_bitField0_ |= 0x00000001; - } - confidenceMetricsEntries_.add( - input.readMessage( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntry.parser(), - extensionRegistry)); - break; + case 13: { + + auPrc_ = input.readFloat(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + confidenceMetricsEntries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + confidenceMetricsEntries_.add( + input.readMessage(com.google.cloud.automl.v1.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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + 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.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.class, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.class, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder.class); } - public interface ConfidenceMetricsEntryOrBuilder - extends + public interface ConfidenceMetricsEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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
@@ -146,83 +115,71 @@ public interface ConfidenceMetricsEntryOrBuilder
      * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** - * - * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 3; - * * @return The recall. */ float getRecall(); /** - * - * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 4; - * * @return The precision. */ float getPrecision(); /** - * - * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 5; - * * @return The f1Score. */ float getF1Score(); } /** - * - * *
    * Metrics for a single confidence threshold.
    * 
* - * Protobuf type {@code - * google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConfidenceMetricsEntry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) ConfidenceMetricsEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConfidenceMetricsEntry() {} + private ConfidenceMetricsEntry() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -241,67 +198,61 @@ private ConfidenceMetricsEntry( 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; + 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); + 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.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .class, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .Builder.class); + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.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
@@ -309,7 +260,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -320,14 +270,11 @@ public float getConfidenceThreshold() { public static final int RECALL_FIELD_NUMBER = 3; private float recall_; /** - * - * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 3; - * * @return The recall. */ @java.lang.Override @@ -338,14 +285,11 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 4; private float precision_; /** - * - * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 4; - * * @return The precision. */ @java.lang.Override @@ -356,14 +300,11 @@ public float getPrecision() { 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; - * * @return The f1Score. */ @java.lang.Override @@ -372,7 +313,6 @@ public float getF1Score() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,7 +324,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -407,16 +348,20 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, recall_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, precision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, f1Score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, f1Score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -426,24 +371,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry)) { + if (!(obj instanceof com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other = - (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) obj; + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other = (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) - != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidenceThreshold())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits(other.getRecall())) return false; + != java.lang.Float.floatToIntBits( + other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + != java.lang.Float.floatToIntBits( + other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + != java.lang.Float.floatToIntBits( + other.getF1Score())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -456,114 +402,104 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidenceThreshold()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPrecision()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getF1Score()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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); + public static com.google.cloud.automl.v1.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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -573,52 +509,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metrics for a single confidence threshold.
      * 
* - * Protobuf type {@code - * google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .class, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .Builder.class); + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); } - // Construct using - // com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() + // Construct using com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -634,23 +562,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - getDefaultInstanceForType() { - return com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .getDefaultInstance(); + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { + return com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - build() { - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry result = - buildPartial(); + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry build() { + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -658,11 +582,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - buildPartial() { - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry result = - new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry( - this); + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry buildPartial() { + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry result = new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry(this); result.confidenceThreshold_ = confidenceThreshold_; result.recall_ = recall_; result.precision_ = precision_; @@ -675,56 +596,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) { - return mergeFrom( - (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) - other); + if (other instanceof com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) { + return mergeFrom((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other) { - if (other - == com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other) { + if (other == com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()) return this; if (other.getConfidenceThreshold() != 0F) { setConfidenceThreshold(other.getConfidenceThreshold()); } @@ -752,14 +663,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - parsedMessage = null; + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -769,10 +677,8 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_; + 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
@@ -780,7 +686,6 @@ public Builder mergeFrom(
        * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -788,8 +693,6 @@ 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
@@ -797,19 +700,16 @@ public float getConfidenceThreshold() {
        * 
* * float confidence_threshold = 1; - * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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
@@ -817,26 +717,22 @@ public Builder setConfidenceThreshold(float value) {
        * 
* * float confidence_threshold = 1; - * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private float recall_; + private float recall_ ; /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; - * * @return The recall. */ @java.lang.Override @@ -844,51 +740,42 @@ public float getRecall() { return recall_; } /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; - * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; - * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_; + private float precision_ ; /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; - * * @return The precision. */ @java.lang.Override @@ -896,51 +783,42 @@ public float getPrecision() { return precision_; } /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; - * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float f1Score_; + private float f1Score_ ; /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; - * * @return The f1Score. */ @java.lang.Override @@ -948,41 +826,34 @@ public float getF1Score() { return f1Score_; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; - * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; - * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -995,34 +866,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) - private static final com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntry - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -1034,23 +901,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - getDefaultInstanceForType() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } 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; - * * @return The auPrc. */ @java.lang.Override @@ -1059,100 +923,71 @@ public float getAuPrc() { } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> - confidenceMetricsEntries_; + private java.util.List confidenceMetricsEntries_; /** - * - * *
    * Output only. Metrics that have confidence thresholds.
    * Precision-recall curve can be derived from it.
    * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ @java.lang.Override - public java.util.List< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> - getConfidenceMetricsEntriesList() { + public java.util.List getConfidenceMetricsEntriesList() { return confidenceMetricsEntries_; } /** - * - * *
    * Output only. Metrics that have confidence thresholds.
    * Precision-recall curve can be derived from it.
    * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> + public java.util.List getConfidenceMetricsEntriesOrBuilderList() { return confidenceMetricsEntries_; } /** - * - * *
    * Output only. Metrics that have confidence thresholds.
    * Precision-recall curve can be derived from it.
    * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ @java.lang.Override 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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index) { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index) { return confidenceMetricsEntries_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1164,7 +999,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (auPrc_ != 0F) { output.writeFloat(1, auPrc_); } @@ -1181,12 +1017,12 @@ public int getSerializedSize() { size = 0; if (auPrc_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, auPrc_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, confidenceMetricsEntries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1196,18 +1032,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextExtractionEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics other = - (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) obj; + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics other = (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) obj; if (java.lang.Float.floatToIntBits(getAuPrc()) - != java.lang.Float.floatToIntBits(other.getAuPrc())) return false; - if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList())) - return false; + != java.lang.Float.floatToIntBits( + other.getAuPrc())) return false; + if (!getConfidenceMetricsEntriesList() + .equals(other.getConfidenceMetricsEntriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1220,7 +1056,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AU_PRC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuPrc()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getAuPrc()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); @@ -1231,127 +1068,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextExtractionEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextExtractionEvaluationMetrics} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextExtractionEvaluationMetrics) com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.class, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.class, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder.class); } // Construct using com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.newBuilder() @@ -1359,17 +1186,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getConfidenceMetricsEntriesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1385,9 +1212,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextExtraction - .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; } @java.lang.Override @@ -1406,14 +1233,12 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics build() { @java.lang.Override public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics buildPartial() { - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics result = - new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics(this); + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics result = new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics(this); int from_bitField0_ = bitField0_; result.auPrc_ = auPrc_; if (confidenceMetricsEntriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_); bitField0_ = (bitField0_ & ~0x00000001); } result.confidenceMetricsEntries_ = confidenceMetricsEntries_; @@ -1428,39 +1253,38 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextExtractionEvaluationMetrics) { - return mergeFrom((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) other); + return mergeFrom((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics)other); } else { super.mergeFrom(other); return this; @@ -1468,8 +1292,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics other) { - if (other == com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance()) return this; if (other.getAuPrc() != 0F) { setAuPrc(other.getAuPrc()); } @@ -1491,10 +1314,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionEvaluationMetr confidenceMetricsEntriesBuilder_ = null; confidenceMetricsEntries_ = other.confidenceMetricsEntries_; bitField0_ = (bitField0_ & ~0x00000001); - confidenceMetricsEntriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConfidenceMetricsEntriesFieldBuilder() - : null; + confidenceMetricsEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfidenceMetricsEntriesFieldBuilder() : null; } else { confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_); } @@ -1519,8 +1341,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1529,19 +1350,15 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private float auPrc_; + private float auPrc_ ; /** - * - * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; - * * @return The auPrc. */ @java.lang.Override @@ -1549,78 +1366,56 @@ public float getAuPrc() { return auPrc_; } /** - * - * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; - * * @param value The auPrc to set. * @return This builder for chaining. */ public Builder setAuPrc(float value) { - + auPrc_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; - * * @return This builder for chaining. */ public Builder clearAuPrc() { - + auPrc_ = 0F; onChanged(); return this; } - private java.util.List< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> - confidenceMetricsEntries_ = java.util.Collections.emptyList(); - + private java.util.List confidenceMetricsEntries_ = + java.util.Collections.emptyList(); private void ensureConfidenceMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - new java.util.ArrayList< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry>( - confidenceMetricsEntries_); + confidenceMetricsEntries_ = new java.util.ArrayList(confidenceMetricsEntries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .Builder, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> - confidenceMetricsEntriesBuilder_; + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> confidenceMetricsEntriesBuilder_; /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public java.util.List< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> - getConfidenceMetricsEntriesList() { + public java.util.List getConfidenceMetricsEntriesList() { if (confidenceMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } else { @@ -1628,16 +1423,12 @@ private void ensureConfidenceMetricsEntriesIsMutable() { } } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1647,19 +1438,14 @@ public int getConfidenceMetricsEntriesCount() { } } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { @@ -1667,20 +1453,15 @@ public int getConfidenceMetricsEntriesCount() { } } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder setConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1694,21 +1475,15 @@ public Builder setConfidenceMetricsEntries( return this; } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder setConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder - builderForValue) { + int index, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); @@ -1719,19 +1494,14 @@ public Builder setConfidenceMetricsEntries( return this; } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1745,20 +1515,15 @@ public Builder addConfidenceMetricsEntries( return this; } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder addConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1772,20 +1537,15 @@ public Builder addConfidenceMetricsEntries( return this; } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder - builderForValue) { + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); @@ -1796,21 +1556,15 @@ public Builder addConfidenceMetricsEntries( return this; } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder addConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder - builderForValue) { + int index, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); @@ -1821,26 +1575,19 @@ public Builder addConfidenceMetricsEntries( return this; } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder addAllConfidenceMetricsEntries( - java.lang.Iterable< - ? extends - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntry> - values) { + java.lang.Iterable values) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, confidenceMetricsEntries_); onChanged(); } else { confidenceMetricsEntriesBuilder_.addAllMessages(values); @@ -1848,16 +1595,12 @@ public Builder addAllConfidenceMetricsEntries( return this; } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1870,16 +1613,12 @@ public Builder clearConfidenceMetricsEntries() { return this; } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1892,59 +1631,42 @@ public Builder removeConfidenceMetricsEntries(int index) { return this; } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder - getConfidenceMetricsEntriesBuilder(int index) { + public com.google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index) { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index) { if (confidenceMetricsEntriesBuilder_ == null) { - return confidenceMetricsEntries_.get(index); - } else { + 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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public java.util.List< - ? extends - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> - getConfidenceMetricsEntriesOrBuilderList() { + public java.util.List + getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1952,78 +1674,48 @@ public Builder removeConfidenceMetricsEntries(int index) { } } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder - addConfidenceMetricsEntriesBuilder() { - return getConfidenceMetricsEntriesFieldBuilder() - .addBuilder( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .getDefaultInstance()); + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder() { + return getConfidenceMetricsEntriesFieldBuilder().addBuilder( + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder - addConfidenceMetricsEntriesBuilder(int index) { - return getConfidenceMetricsEntriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .getDefaultInstance()); + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder( + int index) { + return getConfidenceMetricsEntriesFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); } /** - * - * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public java.util.List< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .Builder> - getConfidenceMetricsEntriesBuilderList() { + public java.util.List + getConfidenceMetricsEntriesBuilderList() { return getConfidenceMetricsEntriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .Builder, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesFieldBuilder() { if (confidenceMetricsEntriesBuilder_ == null) { - confidenceMetricsEntriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .Builder, - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2032,9 +1724,9 @@ public Builder removeConfidenceMetricsEntries(int index) { } return confidenceMetricsEntriesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2044,12 +1736,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextExtractionEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextExtractionEvaluationMetrics) private static final com.google.cloud.automl.v1.TextExtractionEvaluationMetrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics(); } @@ -2058,16 +1750,16 @@ public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getDefa 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); - } - }; + 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; @@ -2082,4 +1774,6 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetricsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000..601008a05 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetricsOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text_extraction.proto + +package com.google.cloud.automl.v1; + +public interface TextExtractionEvaluationMetricsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextExtractionEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The Area under precision recall curve metric.
+   * 
+ * + * float au_prc = 1; + * @return The auPrc. + */ + float getAuPrc(); + + /** + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + */ + java.util.List + getConfidenceMetricsEntriesList(); + /** + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + */ + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index); + /** + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * repeated .google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + */ + java.util.List + getConfidenceMetricsEntriesOrBuilderList(); + /** + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + */ + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java index 46347be0e..ca153b30c 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model metadata that is specific to text extraction.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextExtractionModelMetadata} */ -public final class TextExtractionModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextExtractionModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextExtractionModelMetadata) TextExtractionModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextExtractionModelMetadata.newBuilder() to construct. private TextExtractionModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextExtractionModelMetadata() {} + private TextExtractionModelMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextExtractionModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextExtractionModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private TextExtractionModelMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.TextProto - .internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionModelMetadata.class, - com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextExtractionModelMetadata.class, com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextExtractionModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextExtractionModelMetadata other = - (com.google.cloud.automl.v1.TextExtractionModelMetadata) obj; + com.google.cloud.automl.v1.TextExtractionModelMetadata other = (com.google.cloud.automl.v1.TextExtractionModelMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextExtractionModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.TextExtractionModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TextExtractionModelMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.TextExtractionModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextExtractionModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextExtractionModelMetadata) com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionModelMetadata.class, - com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextExtractionModelMetadata.class, com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextExtractionModelMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; } @java.lang.Override @@ -323,8 +295,7 @@ public com.google.cloud.automl.v1.TextExtractionModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextExtractionModelMetadata buildPartial() { - com.google.cloud.automl.v1.TextExtractionModelMetadata result = - new com.google.cloud.automl.v1.TextExtractionModelMetadata(this); + com.google.cloud.automl.v1.TextExtractionModelMetadata result = new com.google.cloud.automl.v1.TextExtractionModelMetadata(this); onBuilt(); return result; } @@ -333,39 +304,38 @@ public com.google.cloud.automl.v1.TextExtractionModelMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextExtractionModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextExtractionModelMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.TextExtractionModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -373,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionModelMetadata other) { - if (other == com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -394,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextExtractionModelMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextExtractionModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -404,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -416,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextExtractionModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextExtractionModelMetadata) private static final com.google.cloud.automl.v1.TextExtractionModelMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextExtractionModelMetadata(); } @@ -430,16 +398,16 @@ public static com.google.cloud.automl.v1.TextExtractionModelMetadata getDefaultI 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); - } - }; + 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; @@ -454,4 +422,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1.TextExtractionModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java new file mode 100644 index 000000000..637e69a7c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text.proto + +package com.google.cloud.automl.v1; + +public interface TextExtractionModelMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextExtractionModelMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java new file mode 100644 index 000000000..769871987 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text.proto + +package com.google.cloud.automl.v1; + +public final class TextProto { + private TextProto() {} + 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_v1_TextClassificationDatasetMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_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/v1/text.proto\022\026goo" + + "gle.cloud.automl.v1\032+google/cloud/automl" + + "/v1/classification.proto\032\034google/api/ann" + + "otations.proto\"l\n!TextClassificationData" + + "setMetadata\022G\n\023classification_type\030\001 \001(\016" + + "2*.google.cloud.automl.v1.Classification" + + "Type\"j\n\037TextClassificationModelMetadata\022" + + "G\n\023classification_type\030\003 \001(\0162*.google.cl" + + "oud.automl.v1.ClassificationType\"\037\n\035Text" + + "ExtractionDatasetMetadata\"\035\n\033TextExtract" + + "ionModelMetadata\"5\n\034TextSentimentDataset" + + "Metadata\022\025\n\rsentiment_max\030\001 \001(\005\"\034\n\032TextS" + + "entimentModelMetadataB\265\001\n\032com.google.clo" + + "ud.automl.v1B\tTextProtoP\001Z * A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding. *
* * Protobuf type {@code google.cloud.automl.v1.TextSegment} */ -public final class TextSegment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextSegment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSegment) TextSegmentOrBuilder { - private static final long serialVersionUID = 0L; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSegment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSegment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,68 +53,62 @@ private TextSegment( 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(); + case 8: { - content_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.TextSegmentProto - .internal_static_google_cloud_automl_v1_TextSegment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextSegmentProto.internal_static_google_cloud_automl_v1_TextSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSegmentProto - .internal_static_google_cloud_automl_v1_TextSegment_fieldAccessorTable + return com.google.cloud.automl.v1.TextSegmentProto.internal_static_google_cloud_automl_v1_TextSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSegment.class, - com.google.cloud.automl.v1.TextSegment.Builder.class); + com.google.cloud.automl.v1.TextSegment.class, com.google.cloud.automl.v1.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; - * * @return The content. */ @java.lang.Override @@ -140,29 +117,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -173,15 +150,12 @@ public com.google.protobuf.ByteString getContentBytes() { 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; - * * @return The startOffset. */ @java.lang.Override @@ -192,8 +166,6 @@ public long getStartOffset() { 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).
@@ -201,7 +173,6 @@ public long getStartOffset() {
    * 
* * int64 end_offset = 2; - * * @return The endOffset. */ @java.lang.Override @@ -210,7 +181,6 @@ public long getEndOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +192,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startOffset_ != 0L) { output.writeInt64(1, startOffset_); } @@ -242,10 +213,12 @@ public int getSerializedSize() { size = 0; if (startOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, startOffset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, startOffset_); } if (endOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, endOffset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, endOffset_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); @@ -258,16 +231,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSegment)) { return super.equals(obj); } com.google.cloud.automl.v1.TextSegment other = (com.google.cloud.automl.v1.TextSegment) obj; - if (!getContent().equals(other.getContent())) return false; - if (getStartOffset() != other.getStartOffset()) return false; - if (getEndOffset() != other.getEndOffset()) return false; + 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; } @@ -282,135 +258,128 @@ public int 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 = (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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEndOffset()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.TextSegment parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.TextSegment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSegment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSegment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.TextSegment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSegment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSegment parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSegment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSegment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSegment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSegment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextSegment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextSegment} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSegment) com.google.cloud.automl.v1.TextSegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextSegmentProto - .internal_static_google_cloud_automl_v1_TextSegment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextSegmentProto.internal_static_google_cloud_automl_v1_TextSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSegmentProto - .internal_static_google_cloud_automl_v1_TextSegment_fieldAccessorTable + return com.google.cloud.automl.v1.TextSegmentProto.internal_static_google_cloud_automl_v1_TextSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSegment.class, - com.google.cloud.automl.v1.TextSegment.Builder.class); + com.google.cloud.automl.v1.TextSegment.class, com.google.cloud.automl.v1.TextSegment.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSegment.newBuilder() @@ -418,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextSegmentProto - .internal_static_google_cloud_automl_v1_TextSegment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextSegmentProto.internal_static_google_cloud_automl_v1_TextSegment_descriptor; } @java.lang.Override @@ -461,8 +431,7 @@ public com.google.cloud.automl.v1.TextSegment build() { @java.lang.Override public com.google.cloud.automl.v1.TextSegment buildPartial() { - com.google.cloud.automl.v1.TextSegment result = - new com.google.cloud.automl.v1.TextSegment(this); + com.google.cloud.automl.v1.TextSegment result = new com.google.cloud.automl.v1.TextSegment(this); result.content_ = content_; result.startOffset_ = startOffset_; result.endOffset_ = endOffset_; @@ -474,39 +443,38 @@ public com.google.cloud.automl.v1.TextSegment buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSegment) { - return mergeFrom((com.google.cloud.automl.v1.TextSegment) other); + return mergeFrom((com.google.cloud.automl.v1.TextSegment)other); } else { super.mergeFrom(other); return this; @@ -556,20 +524,18 @@ public Builder mergeFrom( private java.lang.Object content_ = ""; /** - * - * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; - * * @return The content. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -578,21 +544,20 @@ public java.lang.String getContent() { } } /** - * - * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -600,77 +565,67 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { + public Builder setContent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** - * - * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { + public Builder setContentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; onChanged(); return this; } - private long startOffset_; + 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; - * * @return The startOffset. */ @java.lang.Override @@ -678,47 +633,39 @@ 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; - * * @param value The startOffset to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearStartOffset() { - + startOffset_ = 0L; onChanged(); return this; } - private long endOffset_; + 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).
@@ -726,7 +673,6 @@ public Builder clearStartOffset() {
      * 
* * int64 end_offset = 2; - * * @return The endOffset. */ @java.lang.Override @@ -734,8 +680,6 @@ 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).
@@ -743,19 +687,16 @@ public long getEndOffset() {
      * 
* * int64 end_offset = 2; - * * @param value The endOffset to set. * @return This builder for chaining. */ 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).
@@ -763,18 +704,17 @@ public Builder setEndOffset(long value) {
      * 
* * int64 end_offset = 2; - * * @return This builder for chaining. */ public Builder clearEndOffset() { - + endOffset_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -784,12 +724,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSegment) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSegment) private static final com.google.cloud.automl.v1.TextSegment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSegment(); } @@ -798,16 +738,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -822,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TextSegment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java similarity index 62% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java index cfff94cf0..5ea830914 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java @@ -1,70 +1,44 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_segment.proto package com.google.cloud.automl.v1; -public interface TextSegmentOrBuilder - extends +public interface TextSegmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSegment) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The content of the TextSegment.
    * 
* * string content = 3; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
    * Output only. The content of the TextSegment.
    * 
* * string content = 3; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + 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; - * * @return The startOffset. */ 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).
@@ -72,7 +46,6 @@ public interface TextSegmentOrBuilder
    * 
* * int64 end_offset = 2; - * * @return The endOffset. */ long getEndOffset(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentProto.java new file mode 100644 index 000000000..cfb485db4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentProto.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text_segment.proto + +package com.google.cloud.automl.v1; + +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_v1_TextSegment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_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/v1/text_segment.pr" + + "oto\022\026google.cloud.automl.v1\032\034google/api/" + + "annotations.proto\"H\n\013TextSegment\022\017\n\007cont" + + "ent\030\003 \001(\t\022\024\n\014start_offset\030\001 \001(\003\022\022\n\nend_o" + + "ffset\030\002 \001(\003B\274\001\n\032com.google.cloud.automl." + + "v1B\020TextSegmentProtoP\001Z * Contains annotation details specific to text sentiment. *
* * Protobuf type {@code google.cloud.automl.v1.TextSentimentAnnotation} */ -public final class TextSentimentAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextSentimentAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSentimentAnnotation) TextSentimentAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextSentimentAnnotation.newBuilder() to construct. private TextSentimentAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextSentimentAnnotation() {} + private TextSentimentAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSentimentAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSentimentAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,50 +52,46 @@ private TextSentimentAnnotation( case 0: done = true; break; - case 8: - { - sentiment_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.TextSentimentProto - .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSentimentProto - .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentAnnotation.class, - com.google.cloud.automl.v1.TextSentimentAnnotation.Builder.class); + com.google.cloud.automl.v1.TextSentimentAnnotation.class, com.google.cloud.automl.v1.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.v1.AutoMl.ImportData] when populating the dataset from which the model used
@@ -128,7 +108,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 sentiment = 1; - * * @return The sentiment. */ @java.lang.Override @@ -137,7 +116,6 @@ public int getSentiment() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +127,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sentiment_ != 0) { output.writeInt32(1, sentiment_); } @@ -163,7 +142,8 @@ public int getSerializedSize() { size = 0; if (sentiment_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentiment_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sentiment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,15 +153,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSentimentAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextSentimentAnnotation other = - (com.google.cloud.automl.v1.TextSentimentAnnotation) obj; + com.google.cloud.automl.v1.TextSentimentAnnotation other = (com.google.cloud.automl.v1.TextSentimentAnnotation) obj; - if (getSentiment() != other.getSentiment()) return false; + if (getSentiment() + != other.getSentiment()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,126 +181,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSentimentAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.TextSentimentAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextSentimentAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextSentimentAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSentimentAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextSentimentAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextSentimentAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSentimentAnnotation) com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextSentimentProto - .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSentimentProto - .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentAnnotation.class, - com.google.cloud.automl.v1.TextSentimentAnnotation.Builder.class); + com.google.cloud.automl.v1.TextSentimentAnnotation.class, com.google.cloud.automl.v1.TextSentimentAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSentimentAnnotation.newBuilder() @@ -328,15 +299,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -346,9 +318,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextSentimentProto - .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; } @java.lang.Override @@ -367,8 +339,7 @@ public com.google.cloud.automl.v1.TextSentimentAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1.TextSentimentAnnotation buildPartial() { - com.google.cloud.automl.v1.TextSentimentAnnotation result = - new com.google.cloud.automl.v1.TextSentimentAnnotation(this); + com.google.cloud.automl.v1.TextSentimentAnnotation result = new com.google.cloud.automl.v1.TextSentimentAnnotation(this); result.sentiment_ = sentiment_; onBuilt(); return result; @@ -378,39 +349,38 @@ public com.google.cloud.automl.v1.TextSentimentAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSentimentAnnotation) { - return mergeFrom((com.google.cloud.automl.v1.TextSentimentAnnotation) other); + return mergeFrom((com.google.cloud.automl.v1.TextSentimentAnnotation)other); } else { super.mergeFrom(other); return this; @@ -418,8 +388,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextSentimentAnnotation other) { - if (other == com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance()) return this; if (other.getSentiment() != 0) { setSentiment(other.getSentiment()); } @@ -442,8 +411,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextSentimentAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextSentimentAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -453,10 +421,8 @@ public Builder mergeFrom( return this; } - private int sentiment_; + private int sentiment_ ; /** - * - * *
      * Output only. The sentiment with the semantic, as given to the
      * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used
@@ -473,7 +439,6 @@ public Builder mergeFrom(
      * 
* * int32 sentiment = 1; - * * @return The sentiment. */ @java.lang.Override @@ -481,8 +446,6 @@ public int getSentiment() { return sentiment_; } /** - * - * *
      * Output only. The sentiment with the semantic, as given to the
      * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used
@@ -499,19 +462,16 @@ public int getSentiment() {
      * 
* * int32 sentiment = 1; - * * @param value The sentiment to set. * @return This builder for chaining. */ 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.v1.AutoMl.ImportData] when populating the dataset from which the model used
@@ -528,18 +488,17 @@ public Builder setSentiment(int value) {
      * 
* * int32 sentiment = 1; - * * @return This builder for chaining. */ public Builder clearSentiment() { - + sentiment_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -549,12 +508,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSentimentAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentAnnotation) private static final com.google.cloud.automl.v1.TextSentimentAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSentimentAnnotation(); } @@ -563,16 +522,16 @@ public static com.google.cloud.automl.v1.TextSentimentAnnotation getDefaultInsta 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); - } - }; + 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; @@ -587,4 +546,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TextSentimentAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java index 3ee6f26fe..2838f7d86 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_sentiment.proto package com.google.cloud.automl.v1; -public interface TextSentimentAnnotationOrBuilder - extends +public interface TextSentimentAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSentimentAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The sentiment with the semantic, as given to the
    * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used
@@ -42,7 +24,6 @@ public interface TextSentimentAnnotationOrBuilder
    * 
* * int32 sentiment = 1; - * * @return The sentiment. */ int getSentiment(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java similarity index 69% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java index 3d9ca71d1..b001d9063 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; /** - * - * *
  * Dataset metadata for text sentiment.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextSentimentDatasetMetadata} */ -public final class TextSentimentDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextSentimentDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSentimentDatasetMetadata) TextSentimentDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextSentimentDatasetMetadata.newBuilder() to construct. private TextSentimentDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextSentimentDatasetMetadata() {} + private TextSentimentDatasetMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSentimentDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSentimentDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,50 +52,46 @@ private TextSentimentDatasetMetadata( case 0: done = true; break; - case 8: - { - sentimentMax_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.TextProto - .internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.class, - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.class, com.google.cloud.automl.v1.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
@@ -122,7 +102,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 sentiment_max = 1; - * * @return The sentimentMax. */ @java.lang.Override @@ -131,7 +110,6 @@ public int getSentimentMax() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sentimentMax_ != 0) { output.writeInt32(1, sentimentMax_); } @@ -157,7 +136,8 @@ public int getSerializedSize() { size = 0; if (sentimentMax_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentimentMax_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sentimentMax_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -167,15 +147,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSentimentDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextSentimentDatasetMetadata other = - (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) obj; + com.google.cloud.automl.v1.TextSentimentDatasetMetadata other = (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) obj; - if (getSentimentMax() != other.getSentimentMax()) return false; + if (getSentimentMax() + != other.getSentimentMax()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -195,127 +175,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSentimentDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.TextSentimentDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TextSentimentDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.TextSentimentDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextSentimentDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSentimentDatasetMetadata) com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.class, - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.class, com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSentimentDatasetMetadata.newBuilder() @@ -323,15 +293,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +312,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; } @java.lang.Override @@ -362,8 +333,7 @@ public com.google.cloud.automl.v1.TextSentimentDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextSentimentDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.TextSentimentDatasetMetadata result = - new com.google.cloud.automl.v1.TextSentimentDatasetMetadata(this); + com.google.cloud.automl.v1.TextSentimentDatasetMetadata result = new com.google.cloud.automl.v1.TextSentimentDatasetMetadata(this); result.sentimentMax_ = sentimentMax_; onBuilt(); return result; @@ -373,39 +343,38 @@ public com.google.cloud.automl.v1.TextSentimentDatasetMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSentimentDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextSentimentDatasetMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.TextSentimentDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -413,8 +382,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextSentimentDatasetMetadata other) { - if (other == com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance()) return this; if (other.getSentimentMax() != 0) { setSentimentMax(other.getSentimentMax()); } @@ -437,8 +405,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -448,10 +415,8 @@ public Builder mergeFrom( return this; } - private int sentimentMax_; + 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
@@ -462,7 +427,6 @@ public Builder mergeFrom(
      * 
* * int32 sentiment_max = 1; - * * @return The sentimentMax. */ @java.lang.Override @@ -470,8 +434,6 @@ 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
@@ -482,19 +444,16 @@ public int getSentimentMax() {
      * 
* * int32 sentiment_max = 1; - * * @param value The sentimentMax to set. * @return This builder for chaining. */ 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
@@ -505,18 +464,17 @@ public Builder setSentimentMax(int value) {
      * 
* * int32 sentiment_max = 1; - * * @return This builder for chaining. */ public Builder clearSentimentMax() { - + sentimentMax_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +484,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSentimentDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentDatasetMetadata) private static final com.google.cloud.automl.v1.TextSentimentDatasetMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSentimentDatasetMetadata(); } @@ -540,16 +498,16 @@ public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata getDefault 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); - } - }; + 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; @@ -564,4 +522,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.TextSentimentDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java similarity index 54% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java index a48f848ce..80456f70d 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; -public interface TextSentimentDatasetMetadataOrBuilder - extends +public interface TextSentimentDatasetMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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
@@ -36,7 +18,6 @@ public interface TextSentimentDatasetMetadataOrBuilder
    * 
* * int32 sentiment_max = 1; - * * @return The sentimentMax. */ int getSentimentMax(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java similarity index 68% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java index 9c10bafd0..baf96b66b 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java @@ -1,56 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_sentiment.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model evaluation metrics for text sentiment problems.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextSentimentEvaluationMetrics} */ -public final class TextSentimentEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextSentimentEvaluationMetrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSentimentEvaluationMetrics) TextSentimentEvaluationMetricsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextSentimentEvaluationMetrics.newBuilder() to construct. - private TextSentimentEvaluationMetrics( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextSentimentEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextSentimentEvaluationMetrics() {} + private TextSentimentEvaluationMetrics() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSentimentEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSentimentEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,105 +52,94 @@ private TextSentimentEvaluationMetrics( 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 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder subBuilder = null; + if (confusionMatrix_ != null) { + subBuilder = confusionMatrix_.toBuilder(); } - case 66: - { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder - subBuilder = null; - if (confusionMatrix_ != null) { - subBuilder = confusionMatrix_.toBuilder(); - } - confusionMatrix_ = - input.readMessage( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confusionMatrix_); - confusionMatrix_ = subBuilder.buildPartial(); - } - - break; + confusionMatrix_ = input.readMessage(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(confusionMatrix_); + confusionMatrix_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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.v1.TextSentimentProto - .internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSentimentProto - .internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.class, - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.class, com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder.class); } public static final int PRECISION_FIELD_NUMBER = 1; private float precision_; /** - * - * *
    * Output only. Precision.
    * 
* * float precision = 1; - * * @return The precision. */ @java.lang.Override @@ -178,14 +150,11 @@ public float getPrecision() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** - * - * *
    * Output only. Recall.
    * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -196,14 +165,11 @@ public float getRecall() { 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; - * * @return The f1Score. */ @java.lang.Override @@ -214,15 +180,12 @@ public float getF1Score() { 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; - * * @return The meanAbsoluteError. */ @java.lang.Override @@ -233,15 +196,12 @@ public float getMeanAbsoluteError() { 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; - * * @return The meanSquaredError. */ @java.lang.Override @@ -252,15 +212,12 @@ public float getMeanSquaredError() { 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; - * * @return The linearKappa. */ @java.lang.Override @@ -271,15 +228,12 @@ public float getLinearKappa() { 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; - * * @return The quadraticKappa. */ @java.lang.Override @@ -288,21 +242,15 @@ public float getQuadraticKappa() { } public static final int CONFUSION_MATRIX_FIELD_NUMBER = 8; - private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - confusionMatrix_; + private com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return Whether the confusionMatrix field is set. */ @java.lang.Override @@ -310,49 +258,34 @@ 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return The confusionMatrix. */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - getConfusionMatrix() { - return confusionMatrix_ == null - ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .getDefaultInstance() - : confusionMatrix_; + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { + return confusionMatrix_ == null ? com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { return getConfusionMatrix(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -364,7 +297,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (precision_ != 0F) { output.writeFloat(1, precision_); } @@ -399,28 +333,36 @@ public int getSerializedSize() { size = 0; if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, precision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, precision_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, recall_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, f1Score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, f1Score_); } if (meanAbsoluteError_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, meanAbsoluteError_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, meanAbsoluteError_); } if (meanSquaredError_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, meanSquaredError_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, meanSquaredError_); } if (linearKappa_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, linearKappa_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, linearKappa_); } if (quadraticKappa_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, quadraticKappa_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, quadraticKappa_); } if (confusionMatrix_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConfusionMatrix()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getConfusionMatrix()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -430,31 +372,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSentimentEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics other = - (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) obj; + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics other = (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) obj; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + != java.lang.Float.floatToIntBits( + other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits(other.getRecall())) return false; + != java.lang.Float.floatToIntBits( + other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + != java.lang.Float.floatToIntBits( + other.getF1Score())) return false; if (java.lang.Float.floatToIntBits(getMeanAbsoluteError()) - != java.lang.Float.floatToIntBits(other.getMeanAbsoluteError())) return false; + != java.lang.Float.floatToIntBits( + other.getMeanAbsoluteError())) return false; if (java.lang.Float.floatToIntBits(getMeanSquaredError()) - != java.lang.Float.floatToIntBits(other.getMeanSquaredError())) return false; + != java.lang.Float.floatToIntBits( + other.getMeanSquaredError())) return false; if (java.lang.Float.floatToIntBits(getLinearKappa()) - != java.lang.Float.floatToIntBits(other.getLinearKappa())) return false; + != java.lang.Float.floatToIntBits( + other.getLinearKappa())) return false; if (java.lang.Float.floatToIntBits(getQuadraticKappa()) - != java.lang.Float.floatToIntBits(other.getQuadraticKappa())) return false; + != java.lang.Float.floatToIntBits( + other.getQuadraticKappa())) return false; if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; if (hasConfusionMatrix()) { - if (!getConfusionMatrix().equals(other.getConfusionMatrix())) return false; + if (!getConfusionMatrix() + .equals(other.getConfusionMatrix())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -468,19 +417,26 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPrecision()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRecall()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getMeanAbsoluteError()); hash = (37 * hash) + MEAN_SQUARED_ERROR_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanSquaredError()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMeanSquaredError()); hash = (37 * hash) + LINEAR_KAPPA_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLinearKappa()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getLinearKappa()); hash = (37 * hash) + QUADRATIC_KAPPA_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getQuadraticKappa()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getQuadraticKappa()); if (hasConfusionMatrix()) { hash = (37 * hash) + CONFUSION_MATRIX_FIELD_NUMBER; hash = (53 * hash) + getConfusionMatrix().hashCode(); @@ -491,127 +447,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSentimentEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.TextSentimentEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.TextSentimentEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextSentimentEvaluationMetrics} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSentimentEvaluationMetrics) com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextSentimentProto - .internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSentimentProto - .internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.class, - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.class, com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.newBuilder() @@ -619,15 +565,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -655,9 +602,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextSentimentProto - .internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; } @java.lang.Override @@ -676,8 +623,7 @@ public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics build() { @java.lang.Override public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics buildPartial() { - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics result = - new com.google.cloud.automl.v1.TextSentimentEvaluationMetrics(this); + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics result = new com.google.cloud.automl.v1.TextSentimentEvaluationMetrics(this); result.precision_ = precision_; result.recall_ = recall_; result.f1Score_ = f1Score_; @@ -698,39 +644,38 @@ public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSentimentEvaluationMetrics) { - return mergeFrom((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) other); + return mergeFrom((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics)other); } else { super.mergeFrom(other); return this; @@ -738,8 +683,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextSentimentEvaluationMetrics other) { - if (other == com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance()) return this; if (other.getPrecision() != 0F) { setPrecision(other.getPrecision()); } @@ -783,8 +727,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -794,16 +737,13 @@ public Builder mergeFrom( return this; } - private float precision_; + private float precision_ ; /** - * - * *
      * Output only. Precision.
      * 
* * float precision = 1; - * * @return The precision. */ @java.lang.Override @@ -811,51 +751,42 @@ public float getPrecision() { return precision_; } /** - * - * *
      * Output only. Precision.
      * 
* * float precision = 1; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Precision.
      * 
* * float precision = 1; - * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float recall_; + private float recall_ ; /** - * - * *
      * Output only. Recall.
      * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -863,51 +794,42 @@ public float getRecall() { return recall_; } /** - * - * *
      * Output only. Recall.
      * 
* * float recall = 2; - * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Recall.
      * 
* * float recall = 2; - * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float f1Score_; + private float f1Score_ ; /** - * - * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 3; - * * @return The f1Score. */ @java.lang.Override @@ -915,52 +837,43 @@ public float getF1Score() { return f1Score_; } /** - * - * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 3; - * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 3; - * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - private float meanAbsoluteError_; + 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; - * * @return The meanAbsoluteError. */ @java.lang.Override @@ -968,54 +881,45 @@ 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; - * * @param value The meanAbsoluteError to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearMeanAbsoluteError() { - + meanAbsoluteError_ = 0F; onChanged(); return this; } - private float meanSquaredError_; + 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; - * * @return The meanSquaredError. */ @java.lang.Override @@ -1023,54 +927,45 @@ 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; - * * @param value The meanSquaredError to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearMeanSquaredError() { - + meanSquaredError_ = 0F; onChanged(); return this; } - private float linearKappa_; + 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; - * * @return The linearKappa. */ @java.lang.Override @@ -1078,54 +973,45 @@ 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; - * * @param value The linearKappa to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearLinearKappa() { - + linearKappa_ = 0F; onChanged(); return this; } - private float quadraticKappa_; + 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; - * * @return The quadraticKappa. */ @java.lang.Override @@ -1133,109 +1019,80 @@ 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; - * * @param value The quadraticKappa to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearQuadraticKappa() { - + quadraticKappa_ = 0F; onChanged(); return this; } - private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - confusionMatrix_; + private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> - confusionMatrixBuilder_; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return Whether the confusionMatrix field is set. */ 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return The confusionMatrix. */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - getConfusionMatrix() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { if (confusionMatrixBuilder_ == null) { - return confusionMatrix_ == null - ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .getDefaultInstance() - : confusionMatrix_; + return confusionMatrix_ == null ? com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ - public Builder setConfusionMatrix( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { + public Builder setConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1249,21 +1106,16 @@ public Builder setConfusionMatrix( 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ public Builder setConfusionMatrix( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder - builderForValue) { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue) { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = builderForValue.build(); onChanged(); @@ -1274,27 +1126,19 @@ public Builder setConfusionMatrix( 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ - public Builder mergeConfusionMatrix( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { + public Builder mergeConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (confusionMatrix_ != null) { confusionMatrix_ = - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder( - confusionMatrix_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder(confusionMatrix_).mergeFrom(value).buildPartial(); } else { confusionMatrix_ = value; } @@ -1306,17 +1150,13 @@ public Builder mergeConfusionMatrix( 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ public Builder clearConfusionMatrix() { if (confusionMatrixBuilder_ == null) { @@ -1330,81 +1170,61 @@ public Builder clearConfusionMatrix() { 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder - getConfusionMatrixBuilder() { - + public com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { if (confusionMatrixBuilder_ != null) { return confusionMatrixBuilder_.getMessageOrBuilder(); } else { - return confusionMatrix_ == null - ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - .getDefaultInstance() - : confusionMatrix_; + return confusionMatrix_ == null ? + com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> getConfusionMatrixFieldBuilder() { if (confusionMatrixBuilder_ == null) { - confusionMatrixBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, - com.google.cloud.automl.v1.ClassificationEvaluationMetrics - .ConfusionMatrixOrBuilder>( - getConfusionMatrix(), getParentForChildren(), isClean()); + confusionMatrixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder>( + getConfusionMatrix(), + getParentForChildren(), + isClean()); confusionMatrix_ = null; } return confusionMatrixBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1414,12 +1234,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSentimentEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentEvaluationMetrics) private static final com.google.cloud.automl.v1.TextSentimentEvaluationMetrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSentimentEvaluationMetrics(); } @@ -1428,16 +1248,16 @@ public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getDefau 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); - } - }; + 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; @@ -1452,4 +1272,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java similarity index 69% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java index 0c4bfa820..3a5a68318 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java @@ -1,168 +1,116 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_sentiment.proto package com.google.cloud.automl.v1; -public interface TextSentimentEvaluationMetricsOrBuilder - extends +public interface TextSentimentEvaluationMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSentimentEvaluationMetrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Precision.
    * 
* * float precision = 1; - * * @return The precision. */ float getPrecision(); /** - * - * *
    * Output only. Recall.
    * 
* * float recall = 2; - * * @return The recall. */ float getRecall(); /** - * - * *
    * Output only. The harmonic mean of recall and precision.
    * 
* * float f1_score = 3; - * * @return The f1Score. */ 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; - * * @return The meanAbsoluteError. */ 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; - * * @return The meanSquaredError. */ 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; - * * @return The linearKappa. */ 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; - * * @return The quadraticKappa. */ 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return Whether the confusionMatrix field is set. */ 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return The confusionMatrix. */ com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder(); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java index 0b7578153..b04f4b571 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model metadata that is specific to text sentiment.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextSentimentModelMetadata} */ -public final class TextSentimentModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextSentimentModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSentimentModelMetadata) TextSentimentModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextSentimentModelMetadata.newBuilder() to construct. private TextSentimentModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextSentimentModelMetadata() {} + private TextSentimentModelMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSentimentModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSentimentModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private TextSentimentModelMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.TextProto - .internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentModelMetadata.class, - com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextSentimentModelMetadata.class, com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSentimentModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextSentimentModelMetadata other = - (com.google.cloud.automl.v1.TextSentimentModelMetadata) obj; + com.google.cloud.automl.v1.TextSentimentModelMetadata other = (com.google.cloud.automl.v1.TextSentimentModelMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSentimentModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.TextSentimentModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TextSentimentModelMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.TextSentimentModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model metadata that is specific to text sentiment.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TextSentimentModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSentimentModelMetadata) com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentModelMetadata.class, - com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextSentimentModelMetadata.class, com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSentimentModelMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto - .internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; } @java.lang.Override @@ -323,8 +295,7 @@ public com.google.cloud.automl.v1.TextSentimentModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextSentimentModelMetadata buildPartial() { - com.google.cloud.automl.v1.TextSentimentModelMetadata result = - new com.google.cloud.automl.v1.TextSentimentModelMetadata(this); + com.google.cloud.automl.v1.TextSentimentModelMetadata result = new com.google.cloud.automl.v1.TextSentimentModelMetadata(this); onBuilt(); return result; } @@ -333,39 +304,38 @@ public com.google.cloud.automl.v1.TextSentimentModelMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSentimentModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextSentimentModelMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.TextSentimentModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -373,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextSentimentModelMetadata other) { - if (other == com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -394,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TextSentimentModelMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TextSentimentModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -404,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -416,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSentimentModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentModelMetadata) private static final com.google.cloud.automl.v1.TextSentimentModelMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSentimentModelMetadata(); } @@ -430,16 +398,16 @@ public static com.google.cloud.automl.v1.TextSentimentModelMetadata getDefaultIn 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); - } - }; + 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; @@ -454,4 +422,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1.TextSentimentModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadataOrBuilder.java new file mode 100644 index 000000000..5d8ad0e39 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text.proto + +package com.google.cloud.automl.v1; + +public interface TextSentimentModelMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSentimentModelMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentProto.java new file mode 100644 index 000000000..591d4bce3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentProto.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text_sentiment.proto + +package com.google.cloud.automl.v1; + +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); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_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 = { + "\n+google/cloud/automl/v1/text_sentiment." + + "proto\022\026google.cloud.automl.v1\032+google/cl" + + "oud/automl/v1/classification.proto\032\034goog" + + "le/api/annotations.proto\",\n\027TextSentimen" + + "tAnnotation\022\021\n\tsentiment\030\001 \001(\005\"\240\002\n\036TextS" + + "entimentEvaluationMetrics\022\021\n\tprecision\030\001" + + " \001(\002\022\016\n\006recall\030\002 \001(\002\022\020\n\010f1_score\030\003 \001(\002\022\033" + + "\n\023mean_absolute_error\030\004 \001(\002\022\032\n\022mean_squa" + + "red_error\030\005 \001(\002\022\024\n\014linear_kappa\030\006 \001(\002\022\027\n" + + "\017quadratic_kappa\030\007 \001(\002\022a\n\020confusion_matr" + + "ix\030\010 \001(\0132G.google.cloud.automl.v1.Classi" + + "ficationEvaluationMetrics.ConfusionMatri" + + "xB\276\001\n\032com.google.cloud.automl.v1B\022TextSe" + + "ntimentProtoP\001Z * A representation of a text snippet. *
* * Protobuf type {@code google.cloud.automl.v1.TextSnippet} */ -public final class TextSnippet extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextSnippet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSnippet) TextSnippetOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextSnippet.newBuilder() to construct. private TextSnippet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextSnippet() { content_ = ""; mimeType_ = ""; @@ -45,15 +27,16 @@ private TextSnippet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSnippet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSnippet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,73 +55,65 @@ private TextSnippet( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - content_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + content_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - contentUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + contentUri_ = 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); + 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.v1.DataItems - .internal_static_google_cloud_automl_v1_TextSnippet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_TextSnippet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_TextSnippet_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_TextSnippet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSnippet.class, - com.google.cloud.automl.v1.TextSnippet.Builder.class); + com.google.cloud.automl.v1.TextSnippet.class, com.google.cloud.automl.v1.TextSnippet.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private volatile java.lang.Object content_; /** - * - * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; - * * @return The content. */ @java.lang.Override @@ -147,30 +122,30 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** - * - * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -181,8 +156,6 @@ public com.google.protobuf.ByteString getContentBytes() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -190,7 +163,6 @@ public com.google.protobuf.ByteString getContentBytes() {
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -199,15 +171,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -215,15 +186,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -234,14 +206,11 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int CONTENT_URI_FIELD_NUMBER = 4; private volatile java.lang.Object contentUri_; /** - * - * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; - * * @return The contentUri. */ @java.lang.Override @@ -250,29 +219,29 @@ public java.lang.String getContentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentUri_ = s; return s; } } /** - * - * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; - * * @return The bytes for contentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getContentUriBytes() { + public com.google.protobuf.ByteString + getContentUriBytes() { java.lang.Object ref = contentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentUri_ = b; return b; } else { @@ -281,7 +250,6 @@ public com.google.protobuf.ByteString getContentUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -329,16 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSnippet)) { return super.equals(obj); } com.google.cloud.automl.v1.TextSnippet other = (com.google.cloud.automl.v1.TextSnippet) obj; - if (!getContent().equals(other.getContent())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getContentUri().equals(other.getContentUri())) return false; + if (!getContent() + .equals(other.getContent())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getContentUri() + .equals(other.getContentUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -361,127 +333,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.TextSnippet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.TextSnippet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSnippet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSnippet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSnippet 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.v1.TextSnippet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextSnippet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSnippet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSnippet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSnippet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSnippet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSnippet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TextSnippet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextSnippet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A representation of a text snippet.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TextSnippet} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSnippet) com.google.cloud.automl.v1.TextSnippetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_TextSnippet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_TextSnippet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_TextSnippet_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_TextSnippet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSnippet.class, - com.google.cloud.automl.v1.TextSnippet.Builder.class); + com.google.cloud.automl.v1.TextSnippet.class, com.google.cloud.automl.v1.TextSnippet.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSnippet.newBuilder() @@ -489,15 +452,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -511,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.DataItems - .internal_static_google_cloud_automl_v1_TextSnippet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_TextSnippet_descriptor; } @java.lang.Override @@ -532,8 +496,7 @@ public com.google.cloud.automl.v1.TextSnippet build() { @java.lang.Override public com.google.cloud.automl.v1.TextSnippet buildPartial() { - com.google.cloud.automl.v1.TextSnippet result = - new com.google.cloud.automl.v1.TextSnippet(this); + com.google.cloud.automl.v1.TextSnippet result = new com.google.cloud.automl.v1.TextSnippet(this); result.content_ = content_; result.mimeType_ = mimeType_; result.contentUri_ = contentUri_; @@ -545,39 +508,38 @@ public com.google.cloud.automl.v1.TextSnippet buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSnippet) { - return mergeFrom((com.google.cloud.automl.v1.TextSnippet) other); + return mergeFrom((com.google.cloud.automl.v1.TextSnippet)other); } else { super.mergeFrom(other); return this; @@ -629,21 +591,19 @@ public Builder mergeFrom( private java.lang.Object content_ = ""; /** - * - * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; - * * @return The content. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -652,22 +612,21 @@ public java.lang.String getContent() { } } /** - * - * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -675,64 +634,57 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { + public Builder setContent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** - * - * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { + public Builder setContentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; onChanged(); return this; @@ -740,8 +692,6 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -749,13 +699,13 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) {
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -764,8 +714,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -773,14 +721,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -788,8 +737,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -797,22 +744,20 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -820,18 +765,15 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -839,16 +781,16 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -856,20 +798,18 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object contentUri_ = ""; /** - * - * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; - * * @return The contentUri. */ public java.lang.String getContentUri() { java.lang.Object ref = contentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentUri_ = s; return s; @@ -878,21 +818,20 @@ public java.lang.String getContentUri() { } } /** - * - * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; - * * @return The bytes for contentUri. */ - public com.google.protobuf.ByteString getContentUriBytes() { + public com.google.protobuf.ByteString + getContentUriBytes() { java.lang.Object ref = contentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentUri_ = b; return b; } else { @@ -900,68 +839,61 @@ public com.google.protobuf.ByteString getContentUriBytes() { } } /** - * - * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; - * * @param value The contentUri to set. * @return This builder for chaining. */ - public Builder setContentUri(java.lang.String value) { + public Builder setContentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentUri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; - * * @return This builder for chaining. */ public Builder clearContentUri() { - + contentUri_ = getDefaultInstance().getContentUri(); onChanged(); return this; } /** - * - * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; - * * @param value The bytes for contentUri to set. * @return This builder for chaining. */ - public Builder setContentUriBytes(com.google.protobuf.ByteString value) { + public Builder setContentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -971,12 +903,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSnippet) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSnippet) private static final com.google.cloud.automl.v1.TextSnippet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSnippet(); } @@ -985,16 +917,16 @@ public static com.google.cloud.automl.v1.TextSnippet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextSnippet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextSnippet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSnippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSnippet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1009,4 +941,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TextSnippet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java similarity index 68% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java index 023aa5b39..eca6c83cf 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; -public interface TextSnippetOrBuilder - extends +public interface TextSnippetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSnippet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
    * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -60,13 +37,10 @@ public interface TextSnippetOrBuilder
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -74,33 +48,28 @@ public interface TextSnippetOrBuilder
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; - * * @return The contentUri. */ java.lang.String getContentUri(); /** - * - * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; - * * @return The bytes for contentUri. */ - com.google.protobuf.ByteString getContentUriBytes(); + com.google.protobuf.ByteString + getContentUriBytes(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java similarity index 68% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java index b2ddf4ee3..cf125351d 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; /** - * - * *
  * Annotation details specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationAnnotation} */ -public final class TranslationAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslationAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TranslationAnnotation) TranslationAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslationAnnotation.newBuilder() to construct. private TranslationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TranslationAnnotation() {} + private TranslationAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,67 +52,59 @@ private TranslationAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; - if (translatedContent_ != null) { - subBuilder = translatedContent_.toBuilder(); - } - translatedContent_ = - input.readMessage( - com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(translatedContent_); - translatedContent_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; + if (translatedContent_ != null) { + subBuilder = translatedContent_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + translatedContent_ = input.readMessage(com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(translatedContent_); + translatedContent_ = 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); + 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.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationAnnotation.class, - com.google.cloud.automl.v1.TranslationAnnotation.Builder.class); + com.google.cloud.automl.v1.TranslationAnnotation.class, com.google.cloud.automl.v1.TranslationAnnotation.Builder.class); } public static final int TRANSLATED_CONTENT_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.TextSnippet translatedContent_; /** - * - * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; - * * @return Whether the translatedContent field is set. */ @java.lang.Override @@ -136,25 +112,18 @@ public boolean hasTranslatedContent() { return translatedContent_ != null; } /** - * - * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; - * * @return The translatedContent. */ @java.lang.Override public com.google.cloud.automl.v1.TextSnippet getTranslatedContent() { - return translatedContent_ == null - ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() - : translatedContent_; + return translatedContent_ == null ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : translatedContent_; } /** - * - * *
    * Output only . The translated content.
    * 
@@ -167,7 +136,6 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getTranslatedContentOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +147,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (translatedContent_ != null) { output.writeMessage(1, getTranslatedContent()); } @@ -193,7 +162,8 @@ public int getSerializedSize() { size = 0; if (translatedContent_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTranslatedContent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTranslatedContent()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -203,17 +173,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TranslationAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1.TranslationAnnotation other = - (com.google.cloud.automl.v1.TranslationAnnotation) obj; + com.google.cloud.automl.v1.TranslationAnnotation other = (com.google.cloud.automl.v1.TranslationAnnotation) obj; if (hasTranslatedContent() != other.hasTranslatedContent()) return false; if (hasTranslatedContent()) { - if (!getTranslatedContent().equals(other.getTranslatedContent())) return false; + if (!getTranslatedContent() + .equals(other.getTranslatedContent())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -235,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TranslationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationAnnotation 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.v1.TranslationAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TranslationAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TranslationAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TranslationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Annotation details specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TranslationAnnotation) com.google.cloud.automl.v1.TranslationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationAnnotation.class, - com.google.cloud.automl.v1.TranslationAnnotation.Builder.class); + com.google.cloud.automl.v1.TranslationAnnotation.class, com.google.cloud.automl.v1.TranslationAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1.TranslationAnnotation.newBuilder() @@ -363,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; } @java.lang.Override @@ -406,8 +368,7 @@ public com.google.cloud.automl.v1.TranslationAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1.TranslationAnnotation buildPartial() { - com.google.cloud.automl.v1.TranslationAnnotation result = - new com.google.cloud.automl.v1.TranslationAnnotation(this); + com.google.cloud.automl.v1.TranslationAnnotation result = new com.google.cloud.automl.v1.TranslationAnnotation(this); if (translatedContentBuilder_ == null) { result.translatedContent_ = translatedContent_; } else { @@ -421,39 +382,38 @@ public com.google.cloud.automl.v1.TranslationAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TranslationAnnotation) { - return mergeFrom((com.google.cloud.automl.v1.TranslationAnnotation) other); + return mergeFrom((com.google.cloud.automl.v1.TranslationAnnotation)other); } else { super.mergeFrom(other); return this; @@ -461,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TranslationAnnotation other) { - if (other == com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance()) return this; if (other.hasTranslatedContent()) { mergeTranslatedContent(other.getTranslatedContent()); } @@ -497,47 +456,34 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.TextSnippet translatedContent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, - com.google.cloud.automl.v1.TextSnippet.Builder, - com.google.cloud.automl.v1.TextSnippetOrBuilder> - translatedContentBuilder_; + com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> translatedContentBuilder_; /** - * - * *
      * Output only . The translated content.
      * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; - * * @return Whether the translatedContent field is set. */ public boolean hasTranslatedContent() { return translatedContentBuilder_ != null || translatedContent_ != null; } /** - * - * *
      * Output only . The translated content.
      * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; - * * @return The translatedContent. */ public com.google.cloud.automl.v1.TextSnippet getTranslatedContent() { if (translatedContentBuilder_ == null) { - return translatedContent_ == null - ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() - : translatedContent_; + return translatedContent_ == null ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : translatedContent_; } else { return translatedContentBuilder_.getMessage(); } } /** - * - * *
      * Output only . The translated content.
      * 
@@ -558,8 +504,6 @@ public Builder setTranslatedContent(com.google.cloud.automl.v1.TextSnippet value return this; } /** - * - * *
      * Output only . The translated content.
      * 
@@ -578,8 +522,6 @@ public Builder setTranslatedContent( return this; } /** - * - * *
      * Output only . The translated content.
      * 
@@ -590,9 +532,7 @@ public Builder mergeTranslatedContent(com.google.cloud.automl.v1.TextSnippet val if (translatedContentBuilder_ == null) { if (translatedContent_ != null) { translatedContent_ = - com.google.cloud.automl.v1.TextSnippet.newBuilder(translatedContent_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.TextSnippet.newBuilder(translatedContent_).mergeFrom(value).buildPartial(); } else { translatedContent_ = value; } @@ -604,8 +544,6 @@ public Builder mergeTranslatedContent(com.google.cloud.automl.v1.TextSnippet val return this; } /** - * - * *
      * Output only . The translated content.
      * 
@@ -624,8 +562,6 @@ public Builder clearTranslatedContent() { return this; } /** - * - * *
      * Output only . The translated content.
      * 
@@ -633,13 +569,11 @@ public Builder clearTranslatedContent() { * .google.cloud.automl.v1.TextSnippet translated_content = 1; */ public com.google.cloud.automl.v1.TextSnippet.Builder getTranslatedContentBuilder() { - + onChanged(); return getTranslatedContentFieldBuilder().getBuilder(); } /** - * - * *
      * Output only . The translated content.
      * 
@@ -650,14 +584,11 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getTranslatedContentOrBui if (translatedContentBuilder_ != null) { return translatedContentBuilder_.getMessageOrBuilder(); } else { - return translatedContent_ == null - ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() - : translatedContent_; + return translatedContent_ == null ? + com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : translatedContent_; } } /** - * - * *
      * Output only . The translated content.
      * 
@@ -665,24 +596,21 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getTranslatedContentOrBui * .google.cloud.automl.v1.TextSnippet translated_content = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, - com.google.cloud.automl.v1.TextSnippet.Builder, - com.google.cloud.automl.v1.TextSnippetOrBuilder> + com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> getTranslatedContentFieldBuilder() { if (translatedContentBuilder_ == null) { - translatedContentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, - com.google.cloud.automl.v1.TextSnippet.Builder, - com.google.cloud.automl.v1.TextSnippetOrBuilder>( - getTranslatedContent(), getParentForChildren(), isClean()); + translatedContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder>( + getTranslatedContent(), + getParentForChildren(), + isClean()); translatedContent_ = null; } return translatedContentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +620,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TranslationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TranslationAnnotation) private static final com.google.cloud.automl.v1.TranslationAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TranslationAnnotation(); } @@ -706,16 +634,16 @@ public static com.google.cloud.automl.v1.TranslationAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,4 +658,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TranslationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java similarity index 60% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java index 6d5b47db8..a35582cd8 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; -public interface TranslationAnnotationOrBuilder - extends +public interface TranslationAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TranslationAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; - * * @return Whether the translatedContent field is set. */ boolean hasTranslatedContent(); /** - * - * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; - * * @return The translatedContent. */ com.google.cloud.automl.v1.TextSnippet getTranslatedContent(); /** - * - * *
    * Output only . The translated content.
    * 
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java similarity index 70% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java index 905947903..f69a22b39 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; /** - * - * *
  * Dataset metadata that is specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationDatasetMetadata} */ -public final class TranslationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslationDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TranslationDatasetMetadata) TranslationDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslationDatasetMetadata.newBuilder() to construct. private TranslationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslationDatasetMetadata() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -44,15 +26,16 @@ private TranslationDatasetMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,65 +54,58 @@ private TranslationDatasetMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetLanguageCode_ = 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); + 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.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationDatasetMetadata.class, - com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TranslationDatasetMetadata.class, com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -138,29 +114,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -171,14 +147,11 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object targetLanguageCode_; /** - * - * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -187,29 +160,29 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -218,7 +191,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -260,16 +233,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TranslationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TranslationDatasetMetadata other = - (com.google.cloud.automl.v1.TranslationDatasetMetadata) obj; + com.google.cloud.automl.v1.TranslationDatasetMetadata other = (com.google.cloud.automl.v1.TranslationDatasetMetadata) obj; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,127 +265,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TranslationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationDatasetMetadata 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.v1.TranslationDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TranslationDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.TranslationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Dataset metadata that is specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TranslationDatasetMetadata) com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationDatasetMetadata.class, - com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TranslationDatasetMetadata.class, com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TranslationDatasetMetadata.newBuilder() @@ -419,15 +383,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +404,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; } @java.lang.Override @@ -460,8 +425,7 @@ public com.google.cloud.automl.v1.TranslationDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TranslationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.TranslationDatasetMetadata result = - new com.google.cloud.automl.v1.TranslationDatasetMetadata(this); + com.google.cloud.automl.v1.TranslationDatasetMetadata result = new com.google.cloud.automl.v1.TranslationDatasetMetadata(this); result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; onBuilt(); @@ -472,39 +436,38 @@ public com.google.cloud.automl.v1.TranslationDatasetMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TranslationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TranslationDatasetMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.TranslationDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -512,8 +475,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TranslationDatasetMetadata other) { - if (other == com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance()) return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; onChanged(); @@ -541,8 +503,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TranslationDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TranslationDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,20 +515,18 @@ public Builder mergeFrom( private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -576,21 +535,20 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -598,61 +556,54 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -660,20 +611,18 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -682,21 +631,20 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -704,68 +652,61 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { + public Builder setTargetLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -775,12 +716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TranslationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TranslationDatasetMetadata) private static final com.google.cloud.automl.v1.TranslationDatasetMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TranslationDatasetMetadata(); } @@ -789,16 +730,16 @@ public static com.google.cloud.automl.v1.TranslationDatasetMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,4 +754,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1.TranslationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java similarity index 61% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java index 89f8e39db..0d83cbcfc 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; -public interface TranslationDatasetMetadataOrBuilder - extends +public interface TranslationDatasetMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TranslationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java similarity index 67% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java index 71148b638..638555082 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; /** - * - * *
  * Evaluation metrics for the dataset.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationEvaluationMetrics} */ -public final class TranslationEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslationEvaluationMetrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TranslationEvaluationMetrics) TranslationEvaluationMetricsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslationEvaluationMetrics.newBuilder() to construct. private TranslationEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TranslationEvaluationMetrics() {} + private TranslationEvaluationMetrics() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslationEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslationEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,61 +52,56 @@ private TranslationEvaluationMetrics( case 0: done = true; break; - case 9: - { - bleuScore_ = input.readDouble(); - break; - } - case 17: - { - baseBleuScore_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 9: { + + bleuScore_ = input.readDouble(); + break; + } + case 17: { + + baseBleuScore_ = 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); + 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.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationEvaluationMetrics.class, - com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TranslationEvaluationMetrics.class, com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder.class); } public static final int BLEU_SCORE_FIELD_NUMBER = 1; private double bleuScore_; /** - * - * *
    * Output only. BLEU score.
    * 
* * double bleu_score = 1; - * * @return The bleuScore. */ @java.lang.Override @@ -133,14 +112,11 @@ public double getBleuScore() { public static final int BASE_BLEU_SCORE_FIELD_NUMBER = 2; private double baseBleuScore_; /** - * - * *
    * Output only. BLEU score for base model.
    * 
* * double base_bleu_score = 2; - * * @return The baseBleuScore. */ @java.lang.Override @@ -149,7 +125,6 @@ public double getBaseBleuScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,7 +136,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (bleuScore_ != 0D) { output.writeDouble(1, bleuScore_); } @@ -178,10 +154,12 @@ public int getSerializedSize() { size = 0; if (bleuScore_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, bleuScore_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, bleuScore_); } if (baseBleuScore_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, baseBleuScore_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, baseBleuScore_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -191,18 +169,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TranslationEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1.TranslationEvaluationMetrics other = - (com.google.cloud.automl.v1.TranslationEvaluationMetrics) obj; + com.google.cloud.automl.v1.TranslationEvaluationMetrics other = (com.google.cloud.automl.v1.TranslationEvaluationMetrics) obj; if (java.lang.Double.doubleToLongBits(getBleuScore()) - != java.lang.Double.doubleToLongBits(other.getBleuScore())) return false; + != java.lang.Double.doubleToLongBits( + other.getBleuScore())) return false; if (java.lang.Double.doubleToLongBits(getBaseBleuScore()) - != java.lang.Double.doubleToLongBits(other.getBaseBleuScore())) return false; + != java.lang.Double.doubleToLongBits( + other.getBaseBleuScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -215,142 +194,128 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLEU_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBleuScore())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBleuScore())); hash = (37 * hash) + BASE_BLEU_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBaseBleuScore())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBaseBleuScore())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TranslationEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics 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.v1.TranslationEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.TranslationEvaluationMetrics prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.TranslationEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Evaluation metrics for the dataset.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationEvaluationMetrics} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TranslationEvaluationMetrics) com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationEvaluationMetrics.class, - com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TranslationEvaluationMetrics.class, com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder.class); } // Construct using com.google.cloud.automl.v1.TranslationEvaluationMetrics.newBuilder() @@ -358,15 +323,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +344,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override @@ -399,8 +365,7 @@ public com.google.cloud.automl.v1.TranslationEvaluationMetrics build() { @java.lang.Override public com.google.cloud.automl.v1.TranslationEvaluationMetrics buildPartial() { - com.google.cloud.automl.v1.TranslationEvaluationMetrics result = - new com.google.cloud.automl.v1.TranslationEvaluationMetrics(this); + com.google.cloud.automl.v1.TranslationEvaluationMetrics result = new com.google.cloud.automl.v1.TranslationEvaluationMetrics(this); result.bleuScore_ = bleuScore_; result.baseBleuScore_ = baseBleuScore_; onBuilt(); @@ -411,39 +376,38 @@ public com.google.cloud.automl.v1.TranslationEvaluationMetrics buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TranslationEvaluationMetrics) { - return mergeFrom((com.google.cloud.automl.v1.TranslationEvaluationMetrics) other); + return mergeFrom((com.google.cloud.automl.v1.TranslationEvaluationMetrics)other); } else { super.mergeFrom(other); return this; @@ -451,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TranslationEvaluationMetrics other) { - if (other == com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance()) return this; if (other.getBleuScore() != 0D) { setBleuScore(other.getBleuScore()); } @@ -478,8 +441,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TranslationEvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TranslationEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,16 +451,13 @@ public Builder mergeFrom( return this; } - private double bleuScore_; + private double bleuScore_ ; /** - * - * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; - * * @return The bleuScore. */ @java.lang.Override @@ -506,51 +465,42 @@ public double getBleuScore() { return bleuScore_; } /** - * - * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; - * * @param value The bleuScore to set. * @return This builder for chaining. */ public Builder setBleuScore(double value) { - + bleuScore_ = value; onChanged(); return this; } /** - * - * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; - * * @return This builder for chaining. */ public Builder clearBleuScore() { - + bleuScore_ = 0D; onChanged(); return this; } - private double baseBleuScore_; + private double baseBleuScore_ ; /** - * - * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; - * * @return The baseBleuScore. */ @java.lang.Override @@ -558,43 +508,37 @@ public double getBaseBleuScore() { return baseBleuScore_; } /** - * - * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; - * * @param value The baseBleuScore to set. * @return This builder for chaining. */ public Builder setBaseBleuScore(double value) { - + baseBleuScore_ = value; onChanged(); return this; } /** - * - * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; - * * @return This builder for chaining. */ public Builder clearBaseBleuScore() { - + baseBleuScore_ = 0D; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -604,12 +548,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TranslationEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TranslationEvaluationMetrics) private static final com.google.cloud.automl.v1.TranslationEvaluationMetrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TranslationEvaluationMetrics(); } @@ -618,16 +562,16 @@ public static com.google.cloud.automl.v1.TranslationEvaluationMetrics getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationEvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationEvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationEvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,4 +586,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.TranslationEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetricsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000..9ca3ef53b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetricsOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/translation.proto + +package com.google.cloud.automl.v1; + +public interface TranslationEvaluationMetricsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TranslationEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. BLEU score.
+   * 
+ * + * double bleu_score = 1; + * @return The bleuScore. + */ + double getBleuScore(); + + /** + *
+   * Output only. BLEU score for base model.
+   * 
+ * + * double base_bleu_score = 2; + * @return The baseBleuScore. + */ + double getBaseBleuScore(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java similarity index 72% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java index cf6af7fcd..b8e9073f9 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; /** - * - * *
  * Model metadata that is specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationModelMetadata} */ -public final class TranslationModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslationModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TranslationModelMetadata) TranslationModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslationModelMetadata.newBuilder() to construct. private TranslationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslationModelMetadata() { baseModel_ = ""; sourceLanguageCode_ = ""; @@ -45,15 +27,16 @@ private TranslationModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,66 +55,59 @@ private TranslationModelMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - baseModel_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + baseModel_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetLanguageCode_ = 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); + 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.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationModelMetadata.class, - com.google.cloud.automl.v1.TranslationModelMetadata.Builder.class); + com.google.cloud.automl.v1.TranslationModelMetadata.class, com.google.cloud.automl.v1.TranslationModelMetadata.Builder.class); } public static final int BASE_MODEL_FIELD_NUMBER = 1; private volatile java.lang.Object baseModel_; /** - * - * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -140,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string base_model = 1; - * * @return The baseModel. */ @java.lang.Override @@ -149,15 +124,14 @@ public java.lang.String getBaseModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModel_ = s; return s; } } /** - * - * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -166,15 +140,16 @@ public java.lang.String getBaseModel() {
    * 
* * string base_model = 1; - * * @return The bytes for baseModel. */ @java.lang.Override - public com.google.protobuf.ByteString getBaseModelBytes() { + public com.google.protobuf.ByteString + getBaseModelBytes() { java.lang.Object ref = baseModel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseModel_ = b; return b; } else { @@ -185,15 +160,12 @@ public com.google.protobuf.ByteString getBaseModelBytes() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Output only. Inferred from the dataset.
    * The source language (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -202,30 +174,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Output only. Inferred from the dataset.
    * The source language (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -236,15 +208,12 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object targetLanguageCode_; /** - * - * *
    * Output only. The target language (The BCP-47 language code) that is used
    * for training.
    * 
* * string target_language_code = 3; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -253,30 +222,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Output only. The target language (The BCP-47 language code) that is used
    * for training.
    * 
* * string target_language_code = 3; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -285,7 +254,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseModel_); } @@ -333,17 +302,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TranslationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TranslationModelMetadata other = - (com.google.cloud.automl.v1.TranslationModelMetadata) obj; + com.google.cloud.automl.v1.TranslationModelMetadata other = (com.google.cloud.automl.v1.TranslationModelMetadata) obj; - if (!getBaseModel().equals(other.getBaseModel())) return false; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getBaseModel() + .equals(other.getBaseModel())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -367,126 +338,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TranslationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationModelMetadata 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.v1.TranslationModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.TranslationModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.TranslationModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TranslationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model metadata that is specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TranslationModelMetadata) com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationModelMetadata.class, - com.google.cloud.automl.v1.TranslationModelMetadata.Builder.class); + com.google.cloud.automl.v1.TranslationModelMetadata.class, com.google.cloud.automl.v1.TranslationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TranslationModelMetadata.newBuilder() @@ -494,15 +456,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -516,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.TranslationProto - .internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; } @java.lang.Override @@ -537,8 +500,7 @@ public com.google.cloud.automl.v1.TranslationModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TranslationModelMetadata buildPartial() { - com.google.cloud.automl.v1.TranslationModelMetadata result = - new com.google.cloud.automl.v1.TranslationModelMetadata(this); + com.google.cloud.automl.v1.TranslationModelMetadata result = new com.google.cloud.automl.v1.TranslationModelMetadata(this); result.baseModel_ = baseModel_; result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; @@ -550,39 +512,38 @@ public com.google.cloud.automl.v1.TranslationModelMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TranslationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TranslationModelMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.TranslationModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -590,8 +551,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TranslationModelMetadata other) { - if (other == com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance()) return this; if (!other.getBaseModel().isEmpty()) { baseModel_ = other.baseModel_; onChanged(); @@ -623,8 +583,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.TranslationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.TranslationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,8 +595,6 @@ public Builder mergeFrom( private java.lang.Object baseModel_ = ""; /** - * - * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -646,13 +603,13 @@ public Builder mergeFrom(
      * 
* * string base_model = 1; - * * @return The baseModel. */ public java.lang.String getBaseModel() { java.lang.Object ref = baseModel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModel_ = s; return s; @@ -661,8 +618,6 @@ public java.lang.String getBaseModel() { } } /** - * - * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -671,14 +626,15 @@ public java.lang.String getBaseModel() {
      * 
* * string base_model = 1; - * * @return The bytes for baseModel. */ - public com.google.protobuf.ByteString getBaseModelBytes() { + public com.google.protobuf.ByteString + getBaseModelBytes() { java.lang.Object ref = baseModel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseModel_ = b; return b; } else { @@ -686,8 +642,6 @@ public com.google.protobuf.ByteString getBaseModelBytes() { } } /** - * - * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -696,22 +650,20 @@ public com.google.protobuf.ByteString getBaseModelBytes() {
      * 
* * string base_model = 1; - * * @param value The baseModel to set. * @return This builder for chaining. */ - public Builder setBaseModel(java.lang.String value) { + public Builder setBaseModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + baseModel_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -720,18 +672,15 @@ public Builder setBaseModel(java.lang.String value) {
      * 
* * string base_model = 1; - * * @return This builder for chaining. */ public Builder clearBaseModel() { - + baseModel_ = getDefaultInstance().getBaseModel(); onChanged(); return this; } /** - * - * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -740,16 +689,16 @@ public Builder clearBaseModel() {
      * 
* * string base_model = 1; - * * @param value The bytes for baseModel to set. * @return This builder for chaining. */ - public Builder setBaseModelBytes(com.google.protobuf.ByteString value) { + public Builder setBaseModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseModel_ = value; onChanged(); return this; @@ -757,21 +706,19 @@ public Builder setBaseModelBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Output only. Inferred from the dataset.
      * The source language (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -780,22 +727,21 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Output only. Inferred from the dataset.
      * The source language (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -803,64 +749,57 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Output only. Inferred from the dataset.
      * The source language (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Inferred from the dataset.
      * The source language (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. Inferred from the dataset.
      * The source language (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -868,21 +807,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Output only. The target language (The BCP-47 language code) that is used
      * for training.
      * 
* * string target_language_code = 3; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -891,22 +828,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Output only. The target language (The BCP-47 language code) that is used
      * for training.
      * 
* * string target_language_code = 3; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -914,71 +850,64 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Output only. The target language (The BCP-47 language code) that is used
      * for training.
      * 
* * string target_language_code = 3; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { + public Builder setTargetLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The target language (The BCP-47 language code) that is used
      * for training.
      * 
* * string target_language_code = 3; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. The target language (The BCP-47 language code) that is used
      * for training.
      * 
* * string target_language_code = 3; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -988,12 +917,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TranslationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TranslationModelMetadata) private static final com.google.cloud.automl.v1.TranslationModelMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TranslationModelMetadata(); } @@ -1002,16 +931,16 @@ public static com.google.cloud.automl.v1.TranslationModelMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,4 +955,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TranslationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java similarity index 69% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java index 099eb4b56..308999a28 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; -public interface TranslationModelMetadataOrBuilder - extends +public interface TranslationModelMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TranslationModelMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -34,13 +16,10 @@ public interface TranslationModelMetadataOrBuilder
    * 
* * string base_model = 1; - * * @return The baseModel. */ java.lang.String getBaseModel(); /** - * - * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -49,62 +28,52 @@ public interface TranslationModelMetadataOrBuilder
    * 
* * string base_model = 1; - * * @return The bytes for baseModel. */ - com.google.protobuf.ByteString getBaseModelBytes(); + com.google.protobuf.ByteString + getBaseModelBytes(); /** - * - * *
    * Output only. Inferred from the dataset.
    * The source language (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Output only. Inferred from the dataset.
    * The source language (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Output only. The target language (The BCP-47 language code) that is used
    * for training.
    * 
* * string target_language_code = 3; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Output only. The target language (The BCP-47 language code) that is used
    * for training.
    * 
* * string target_language_code = 3; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java new file mode 100644 index 000000000..2d2b51f94 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java @@ -0,0 +1,108 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/translation.proto + +package com.google.cloud.automl.v1; + +public final class TranslationProto { + private TranslationProto() {} + 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_v1_TranslationDatasetMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TranslationAnnotation_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/v1/translation.pro" + + "to\022\026google.cloud.automl.v1\032\037google/api/f" + + "ield_behavior.proto\032\'google/cloud/automl" + + "/v1/data_items.proto\032\034google/api/annotat" + + "ions.proto\"b\n\032TranslationDatasetMetadata" + + "\022!\n\024source_language_code\030\001 \001(\tB\003\340A\002\022!\n\024t" + + "arget_language_code\030\002 \001(\tB\003\340A\002\"K\n\034Transl" + + "ationEvaluationMetrics\022\022\n\nbleu_score\030\001 \001" + + "(\001\022\027\n\017base_bleu_score\030\002 \001(\001\"j\n\030Translati" + + "onModelMetadata\022\022\n\nbase_model\030\001 \001(\t\022\034\n\024s" + + "ource_language_code\030\002 \001(\t\022\034\n\024target_lang" + + "uage_code\030\003 \001(\t\"X\n\025TranslationAnnotation" + + "\022?\n\022translated_content\030\001 \001(\0132#.google.cl" + + "oud.automl.v1.TextSnippetB\274\001\n\032com.google" + + ".cloud.automl.v1B\020TranslationProtoP\001Z * Details of UndeployModel operation. *
* * Protobuf type {@code google.cloud.automl.v1.UndeployModelOperationMetadata} */ -public final class UndeployModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UndeployModelOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.UndeployModelOperationMetadata) UndeployModelOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UndeployModelOperationMetadata.newBuilder() to construct. - private UndeployModelOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UndeployModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UndeployModelOperationMetadata() {} + private UndeployModelOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UndeployModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UndeployModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,42 +52,39 @@ private UndeployModelOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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.v1.Operations - .internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UndeployModelOperationMetadata.class, - com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.UndeployModelOperationMetadata.class, com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -134,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.UndeployModelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.UndeployModelOperationMetadata other = - (com.google.cloud.automl.v1.UndeployModelOperationMetadata) obj; + com.google.cloud.automl.v1.UndeployModelOperationMetadata other = (com.google.cloud.automl.v1.UndeployModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -159,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.UndeployModelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.UndeployModelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1.UndeployModelOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1.UndeployModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.UndeployModelOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.UndeployModelOperationMetadata) com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UndeployModelOperationMetadata.class, - com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.UndeployModelOperationMetadata.class, com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.UndeployModelOperationMetadata.newBuilder() @@ -287,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -303,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.Operations - .internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; } @java.lang.Override @@ -324,8 +295,7 @@ public com.google.cloud.automl.v1.UndeployModelOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.UndeployModelOperationMetadata buildPartial() { - com.google.cloud.automl.v1.UndeployModelOperationMetadata result = - new com.google.cloud.automl.v1.UndeployModelOperationMetadata(this); + com.google.cloud.automl.v1.UndeployModelOperationMetadata result = new com.google.cloud.automl.v1.UndeployModelOperationMetadata(this); onBuilt(); return result; } @@ -334,39 +304,38 @@ public com.google.cloud.automl.v1.UndeployModelOperationMetadata buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.UndeployModelOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.UndeployModelOperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1.UndeployModelOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -374,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.UndeployModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -395,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1.UndeployModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1.UndeployModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -405,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -417,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.UndeployModelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.UndeployModelOperationMetadata) private static final com.google.cloud.automl.v1.UndeployModelOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.UndeployModelOperationMetadata(); } @@ -431,16 +398,16 @@ public static com.google.cloud.automl.v1.UndeployModelOperationMetadata getDefau 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); - } - }; + 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; @@ -455,4 +422,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.automl.v1.UndeployModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..88a2e7e07 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface UndeployModelOperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.UndeployModelOperationMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java similarity index 65% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java index 4e2b37380..7b686f2a7 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.UndeployModel][google.cloud.automl.v1.AutoMl.UndeployModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1.UndeployModelRequest} */ -public final class UndeployModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UndeployModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.UndeployModelRequest) UndeployModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UndeployModelRequest.newBuilder() to construct. private UndeployModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UndeployModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UndeployModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UndeployModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private UndeployModelRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UndeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UndeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UndeployModelRequest.class, - com.google.cloud.automl.v1.UndeployModelRequest.Builder.class); + com.google.cloud.automl.v1.UndeployModelRequest.class, com.google.cloud.automl.v1.UndeployModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the model to undeploy.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the model to undeploy.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.UndeployModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.UndeployModelRequest other = - (com.google.cloud.automl.v1.UndeployModelRequest) obj; + com.google.cloud.automl.v1.UndeployModelRequest other = (com.google.cloud.automl.v1.UndeployModelRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.UndeployModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.UndeployModelRequest 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.v1.UndeployModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.UndeployModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.UndeployModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.UndeployModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.UndeployModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.UndeployModel][google.cloud.automl.v1.AutoMl.UndeployModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1.UndeployModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.UndeployModelRequest) com.google.cloud.automl.v1.UndeployModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UndeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UndeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UndeployModelRequest.class, - com.google.cloud.automl.v1.UndeployModelRequest.Builder.class); + com.google.cloud.automl.v1.UndeployModelRequest.class, com.google.cloud.automl.v1.UndeployModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.UndeployModelRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1.UndeployModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.UndeployModelRequest buildPartial() { - com.google.cloud.automl.v1.UndeployModelRequest result = - new com.google.cloud.automl.v1.UndeployModelRequest(this); + com.google.cloud.automl.v1.UndeployModelRequest result = new com.google.cloud.automl.v1.UndeployModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1.UndeployModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.UndeployModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.UndeployModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1.UndeployModelRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.UndeployModelRequest other) { - if (other == com.google.cloud.automl.v1.UndeployModelRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.UndeployModelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the model to undeploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -507,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the model to undeploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -531,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the model to undeploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to undeploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to undeploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.UndeployModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.UndeployModelRequest) private static final com.google.cloud.automl.v1.UndeployModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.UndeployModelRequest(); } @@ -622,16 +564,16 @@ public static com.google.cloud.automl.v1.UndeployModelRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeployModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UndeployModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeployModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeployModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.UndeployModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequestOrBuilder.java new file mode 100644 index 000000000..ae86bb534 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface UndeployModelRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.UndeployModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the model to undeploy.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the model to undeploy.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java similarity index 67% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java index a3d47a549..59a53d846 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1.AutoMl.UpdateDataset]
  * 
* * Protobuf type {@code google.cloud.automl.v1.UpdateDatasetRequest} */ -public final class UpdateDatasetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.UpdateDatasetRequest) UpdateDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDatasetRequest.newBuilder() to construct. private UpdateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateDatasetRequest() {} + private UpdateDatasetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,82 +52,72 @@ private UpdateDatasetRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.Dataset.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = - input.readMessage(com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.automl.v1.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); } - 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; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UpdateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UpdateDatasetRequest.class, - com.google.cloud.automl.v1.UpdateDatasetRequest.Builder.class); + com.google.cloud.automl.v1.UpdateDatasetRequest.class, com.google.cloud.automl.v1.UpdateDatasetRequest.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.Dataset dataset_; /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ @java.lang.Override @@ -151,15 +125,11 @@ public boolean hasDataset() { return dataset_ != null; } /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ @java.lang.Override @@ -167,14 +137,11 @@ public com.google.cloud.automl.v1.Dataset getDataset() { return dataset_ == null ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; } /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { @@ -184,15 +151,11 @@ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -200,15 +163,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -216,14 +175,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -231,7 +187,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dataset_ != null) { output.writeMessage(1, getDataset()); } @@ -260,10 +216,12 @@ public int getSerializedSize() { size = 0; if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -273,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.UpdateDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.UpdateDatasetRequest other = - (com.google.cloud.automl.v1.UpdateDatasetRequest) obj; + com.google.cloud.automl.v1.UpdateDatasetRequest other = (com.google.cloud.automl.v1.UpdateDatasetRequest) obj; if (hasDataset() != other.hasDataset()) return false; if (hasDataset()) { - if (!getDataset().equals(other.getDataset())) return false; + if (!getDataset() + .equals(other.getDataset())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -313,127 +272,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.UpdateDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.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.v1.UpdateDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.UpdateDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.UpdateDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.UpdateDatasetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.UpdateDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1.AutoMl.UpdateDataset]
    * 
* * Protobuf type {@code google.cloud.automl.v1.UpdateDatasetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.UpdateDatasetRequest) com.google.cloud.automl.v1.UpdateDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UpdateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UpdateDatasetRequest.class, - com.google.cloud.automl.v1.UpdateDatasetRequest.Builder.class); + com.google.cloud.automl.v1.UpdateDatasetRequest.class, com.google.cloud.automl.v1.UpdateDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.UpdateDatasetRequest.newBuilder() @@ -441,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; } @java.lang.Override @@ -490,8 +441,7 @@ public com.google.cloud.automl.v1.UpdateDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1.UpdateDatasetRequest buildPartial() { - com.google.cloud.automl.v1.UpdateDatasetRequest result = - new com.google.cloud.automl.v1.UpdateDatasetRequest(this); + com.google.cloud.automl.v1.UpdateDatasetRequest result = new com.google.cloud.automl.v1.UpdateDatasetRequest(this); if (datasetBuilder_ == null) { result.dataset_ = dataset_; } else { @@ -510,39 +460,38 @@ public com.google.cloud.automl.v1.UpdateDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.UpdateDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1.UpdateDatasetRequest) other); + return mergeFrom((com.google.cloud.automl.v1.UpdateDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -550,8 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.UpdateDatasetRequest other) { - if (other == com.google.cloud.automl.v1.UpdateDatasetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1.UpdateDatasetRequest.getDefaultInstance()) return this; if (other.hasDataset()) { mergeDataset(other.getDataset()); } @@ -589,55 +537,39 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.Dataset dataset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, - com.google.cloud.automl.v1.Dataset.Builder, - com.google.cloud.automl.v1.DatasetOrBuilder> - datasetBuilder_; + com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> datasetBuilder_; /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ public boolean hasDataset() { return datasetBuilder_ != null || dataset_ != null; } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ public com.google.cloud.automl.v1.Dataset getDataset() { if (datasetBuilder_ == null) { - return dataset_ == null - ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; } else { return datasetBuilder_.getMessage(); } } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDataset(com.google.cloud.automl.v1.Dataset value) { if (datasetBuilder_ == null) { @@ -653,16 +585,14 @@ public Builder setDataset(com.google.cloud.automl.v1.Dataset value) { return this; } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDataset(com.google.cloud.automl.v1.Dataset.Builder builderForValue) { + public Builder setDataset( + com.google.cloud.automl.v1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); onChanged(); @@ -673,22 +603,17 @@ public Builder setDataset(com.google.cloud.automl.v1.Dataset.Builder builderForV return this; } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDataset(com.google.cloud.automl.v1.Dataset value) { if (datasetBuilder_ == null) { if (dataset_ != null) { dataset_ = - com.google.cloud.automl.v1.Dataset.newBuilder(dataset_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); } else { dataset_ = value; } @@ -700,14 +625,11 @@ public Builder mergeDataset(com.google.cloud.automl.v1.Dataset value) { return this; } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -721,61 +643,48 @@ public Builder clearDataset() { return this; } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.Dataset.Builder getDatasetBuilder() { - + onChanged(); return getDatasetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { if (datasetBuilder_ != null) { return datasetBuilder_.getMessageOrBuilder(); } else { - return dataset_ == null - ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? + com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; } } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, - com.google.cloud.automl.v1.Dataset.Builder, - com.google.cloud.automl.v1.DatasetOrBuilder> + com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> getDatasetFieldBuilder() { if (datasetBuilder_ == null) { - datasetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, - com.google.cloud.automl.v1.Dataset.Builder, - com.google.cloud.automl.v1.DatasetOrBuilder>( - getDataset(), getParentForChildren(), isClean()); + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); dataset_ = null; } return datasetBuilder_; @@ -783,55 +692,39 @@ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -847,16 +740,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -867,20 +758,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -892,14 +780,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -913,68 +798,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +856,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.UpdateDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.UpdateDatasetRequest) private static final com.google.cloud.automl.v1.UpdateDatasetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.UpdateDatasetRequest(); } @@ -998,16 +870,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -1022,4 +894,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.UpdateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java index 67c962eb7..e040d5944 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java @@ -1,101 +1,63 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface UpdateDatasetRequestOrBuilder - extends +public interface UpdateDatasetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.UpdateDatasetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ boolean hasDataset(); /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ com.google.cloud.automl.v1.Dataset getDataset(); /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder(); /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java similarity index 69% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java index 009a4feff..b57a77d9f 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** - * - * *
  * Request message for [AutoMl.UpdateModel][google.cloud.automl.v1.AutoMl.UpdateModel]
  * 
* * Protobuf type {@code google.cloud.automl.v1.UpdateModelRequest} */ -public final class UpdateModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.UpdateModelRequest) UpdateModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateModelRequest.newBuilder() to construct. private UpdateModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateModelRequest() {} + private UpdateModelRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,81 +52,72 @@ private UpdateModelRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1.Model.Builder subBuilder = null; - if (model_ != null) { - subBuilder = model_.toBuilder(); - } - model_ = - input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(model_); - model_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.automl.v1.Model.Builder subBuilder = null; + if (model_ != null) { + subBuilder = model_.toBuilder(); + } + model_ = input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(model_); + model_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - 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; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UpdateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UpdateModelRequest.class, - com.google.cloud.automl.v1.UpdateModelRequest.Builder.class); + com.google.cloud.automl.v1.UpdateModelRequest.class, com.google.cloud.automl.v1.UpdateModelRequest.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.Model model_; /** - * - * *
    * Required. The model which replaces the resource on the server.
    * 
* * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the model field is set. */ @java.lang.Override @@ -150,14 +125,11 @@ public boolean hasModel() { return model_ != null; } /** - * - * *
    * Required. The model which replaces the resource on the server.
    * 
* * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The model. */ @java.lang.Override @@ -165,8 +137,6 @@ public com.google.cloud.automl.v1.Model getModel() { return model_ == null ? com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; } /** - * - * *
    * Required. The model which replaces the resource on the server.
    * 
@@ -181,15 +151,11 @@ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -197,15 +163,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -213,14 +175,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -228,7 +187,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (model_ != null) { output.writeMessage(1, getModel()); } @@ -257,10 +216,12 @@ public int getSerializedSize() { size = 0; if (model_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getModel()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getModel()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.UpdateModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.UpdateModelRequest other = - (com.google.cloud.automl.v1.UpdateModelRequest) obj; + com.google.cloud.automl.v1.UpdateModelRequest other = (com.google.cloud.automl.v1.UpdateModelRequest) obj; if (hasModel() != other.hasModel()) return false; if (hasModel()) { - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -310,127 +272,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.UpdateModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.UpdateModelRequest 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.v1.UpdateModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1.UpdateModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1.UpdateModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.UpdateModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.UpdateModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.UpdateModel][google.cloud.automl.v1.AutoMl.UpdateModel]
    * 
* * Protobuf type {@code google.cloud.automl.v1.UpdateModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.UpdateModelRequest) com.google.cloud.automl.v1.UpdateModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UpdateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UpdateModelRequest.class, - com.google.cloud.automl.v1.UpdateModelRequest.Builder.class); + com.google.cloud.automl.v1.UpdateModelRequest.class, com.google.cloud.automl.v1.UpdateModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.UpdateModelRequest.newBuilder() @@ -438,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto - .internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; } @java.lang.Override @@ -487,8 +441,7 @@ public com.google.cloud.automl.v1.UpdateModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.UpdateModelRequest buildPartial() { - com.google.cloud.automl.v1.UpdateModelRequest result = - new com.google.cloud.automl.v1.UpdateModelRequest(this); + com.google.cloud.automl.v1.UpdateModelRequest result = new com.google.cloud.automl.v1.UpdateModelRequest(this); if (modelBuilder_ == null) { result.model_ = model_; } else { @@ -507,39 +460,38 @@ public com.google.cloud.automl.v1.UpdateModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.UpdateModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.UpdateModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1.UpdateModelRequest)other); } else { super.mergeFrom(other); return this; @@ -585,35 +537,24 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.Model model_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, - com.google.cloud.automl.v1.Model.Builder, - com.google.cloud.automl.v1.ModelOrBuilder> - modelBuilder_; + com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> modelBuilder_; /** - * - * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** - * - * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The model. */ public com.google.cloud.automl.v1.Model getModel() { @@ -624,14 +565,11 @@ public com.google.cloud.automl.v1.Model getModel() { } } /** - * - * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setModel(com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { @@ -647,16 +585,14 @@ public Builder setModel(com.google.cloud.automl.v1.Model value) { return this; } /** - * - * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setModel(com.google.cloud.automl.v1.Model.Builder builderForValue) { + public Builder setModel( + com.google.cloud.automl.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); @@ -667,20 +603,17 @@ public Builder setModel(com.google.cloud.automl.v1.Model.Builder builderForValue return this; } /** - * - * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeModel(com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = - com.google.cloud.automl.v1.Model.newBuilder(model_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } @@ -692,14 +625,11 @@ public Builder mergeModel(com.google.cloud.automl.v1.Model value) { return this; } /** - * - * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearModel() { if (modelBuilder_ == null) { @@ -713,59 +643,48 @@ public Builder clearModel() { return this; } /** - * - * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.Model.Builder getModelBuilder() { - + onChanged(); return getModelFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { - return model_ == null ? com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; + return model_ == null ? + com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; } } /** - * - * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, - com.google.cloud.automl.v1.Model.Builder, - com.google.cloud.automl.v1.ModelOrBuilder> + com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, - com.google.cloud.automl.v1.Model.Builder, - com.google.cloud.automl.v1.ModelOrBuilder>( - getModel(), getParentForChildren(), isClean()); + modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder>( + getModel(), + getParentForChildren(), + isClean()); model_ = null; } return modelBuilder_; @@ -773,55 +692,39 @@ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder() { 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -837,16 +740,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -857,20 +758,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -882,14 +780,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -903,68 +798,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,12 +856,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.UpdateModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.UpdateModelRequest) private static final com.google.cloud.automl.v1.UpdateModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.UpdateModelRequest(); } @@ -988,16 +870,16 @@ public static com.google.cloud.automl.v1.UpdateModelRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1012,4 +894,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.UpdateModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java index 0cd3a2cfb..73a2b5492 100644 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface UpdateModelRequestOrBuilder - extends +public interface UpdateModelRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.UpdateModelRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The model which replaces the resource on the server.
    * 
* * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the model field is set. */ boolean hasModel(); /** - * - * *
    * Required. The model which replaces the resource on the server.
    * 
* * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The model. */ com.google.cloud.automl.v1.Model getModel(); /** - * - * *
    * Required. The model which replaces the resource on the server.
    * 
@@ -59,40 +35,29 @@ public interface UpdateModelRequestOrBuilder com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder(); /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_payload.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_payload.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_payload.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_payload.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_spec.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_spec.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_spec.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_spec.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/classification.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/classification.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/classification.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/classification.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/data_items.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/data_items.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/data_items.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/data_items.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/dataset.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/dataset.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/dataset.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/dataset.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/detection.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/detection.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/detection.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/detection.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/geometry.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/geometry.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/geometry.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/geometry.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/image.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/image.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/image.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/image.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model_evaluation.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model_evaluation.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model_evaluation.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model_evaluation.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/operations.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/operations.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/operations.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/operations.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/prediction_service.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/prediction_service.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/prediction_service.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/prediction_service.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/service.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/service.proto similarity index 98% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/service.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/service.proto index 7c73243cc..683f6402e 100644 --- a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/service.proto +++ b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/service.proto @@ -330,10 +330,11 @@ message ListDatasetsRequest { // An expression for filtering the results of the request. // // * `dataset_metadata` - for existence of the case (e.g. - // image_classification_dataset_metadata:*). Some examples of using the filter are: + // `image_classification_dataset_metadata:*`). Some examples of + // using the filter are: // // * `translation_dataset_metadata:*` --> The dataset has - // translation_dataset_metadata. + // `translation_dataset_metadata`. string filter = 3; // Requested page size. Server may return fewer results than requested. @@ -456,11 +457,11 @@ message ListModelsRequest { // An expression for filtering the results of the request. // // * `model_metadata` - for existence of the case (e.g. - // video_classification_model_metadata:*). + // `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. + // `image_classification_model_metadata`. // * `dataset_id=5` --> The model was created from a dataset with ID 5. string filter = 3; diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_extraction.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_extraction.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_extraction.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_extraction.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_segment.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_segment.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_segment.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_segment.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_sentiment.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_sentiment.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_sentiment.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_sentiment.proto diff --git a/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/translation.proto b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/translation.proto similarity index 100% rename from proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/translation.proto rename to owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/translation.proto diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java similarity index 98% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java index 61d73c4bf..6b531369c 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java @@ -72,13 +72,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -696,7 +696,7 @@ public final UnaryCallable deleteDatasetCallabl *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter + *
  • 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. *
@@ -734,7 +734,7 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter + *
  • 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. *
@@ -769,7 +769,7 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter + *
  • 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. *
@@ -802,7 +802,7 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter + *
  • 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. *
@@ -835,7 +835,7 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter + *
  • 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. *
@@ -3126,10 +3126,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListDatasetsPagedResponse extends AbstractPagedListResponse< - ListDatasetsRequest, - ListDatasetsResponse, - Dataset, - ListDatasetsPage, + ListDatasetsRequest, ListDatasetsResponse, Dataset, ListDatasetsPage, ListDatasetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3178,10 +3175,7 @@ public ApiFuture createPageAsync( public static class ListDatasetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListDatasetsRequest, - ListDatasetsResponse, - Dataset, - ListDatasetsPage, + ListDatasetsRequest, ListDatasetsResponse, Dataset, ListDatasetsPage, ListDatasetsFixedSizeCollection> { private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { @@ -3201,10 +3195,7 @@ protected ListDatasetsFixedSizeCollection createCollection( public static class ListTableSpecsPagedResponse extends AbstractPagedListResponse< - ListTableSpecsRequest, - ListTableSpecsResponse, - TableSpec, - ListTableSpecsPage, + ListTableSpecsRequest, ListTableSpecsResponse, TableSpec, ListTableSpecsPage, ListTableSpecsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3254,10 +3245,7 @@ public ApiFuture createPageAsync( public static class ListTableSpecsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTableSpecsRequest, - ListTableSpecsResponse, - TableSpec, - ListTableSpecsPage, + ListTableSpecsRequest, ListTableSpecsResponse, TableSpec, ListTableSpecsPage, ListTableSpecsFixedSizeCollection> { private ListTableSpecsFixedSizeCollection(List pages, int collectionSize) { @@ -3277,10 +3265,7 @@ protected ListTableSpecsFixedSizeCollection createCollection( public static class ListColumnSpecsPagedResponse extends AbstractPagedListResponse< - ListColumnSpecsRequest, - ListColumnSpecsResponse, - ColumnSpec, - ListColumnSpecsPage, + ListColumnSpecsRequest, ListColumnSpecsResponse, ColumnSpec, ListColumnSpecsPage, ListColumnSpecsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3330,10 +3315,7 @@ public ApiFuture createPageAsync( public static class ListColumnSpecsFixedSizeCollection extends AbstractFixedSizeCollection< - ListColumnSpecsRequest, - ListColumnSpecsResponse, - ColumnSpec, - ListColumnSpecsPage, + ListColumnSpecsRequest, ListColumnSpecsResponse, ColumnSpec, ListColumnSpecsPage, ListColumnSpecsFixedSizeCollection> { private ListColumnSpecsFixedSizeCollection( @@ -3354,10 +3336,7 @@ protected ListColumnSpecsFixedSizeCollection createCollection( public static class ListModelsPagedResponse extends AbstractPagedListResponse< - ListModelsRequest, - ListModelsResponse, - Model, - ListModelsPage, + ListModelsRequest, ListModelsResponse, Model, ListModelsPage, ListModelsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3404,10 +3383,7 @@ public ApiFuture createPageAsync( public static class ListModelsFixedSizeCollection extends AbstractFixedSizeCollection< - ListModelsRequest, - ListModelsResponse, - Model, - ListModelsPage, + ListModelsRequest, ListModelsResponse, Model, ListModelsPage, ListModelsFixedSizeCollection> { private ListModelsFixedSizeCollection(List pages, int collectionSize) { @@ -3427,11 +3403,8 @@ protected ListModelsFixedSizeCollection createCollection( public static class ListModelEvaluationsPagedResponse extends AbstractPagedListResponse< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, - ModelEvaluation, - ListModelEvaluationsPage, - ListModelEvaluationsFixedSizeCollection> { + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, + ListModelEvaluationsPage, ListModelEvaluationsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3452,9 +3425,7 @@ private ListModelEvaluationsPagedResponse(ListModelEvaluationsPage page) { public static class ListModelEvaluationsPage extends AbstractPage< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, - ModelEvaluation, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, ListModelEvaluationsPage> { private ListModelEvaluationsPage( @@ -3487,11 +3458,8 @@ public ApiFuture createPageAsync( public static class ListModelEvaluationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, - ModelEvaluation, - ListModelEvaluationsPage, - ListModelEvaluationsFixedSizeCollection> { + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, + ListModelEvaluationsPage, ListModelEvaluationsFixedSizeCollection> { private ListModelEvaluationsFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java similarity index 98% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java index fc9e3171c..a7196e8d3 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +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.stub.AutoMlStubSettings; @@ -48,9 +49,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -255,8 +256,7 @@ public UnaryCallSettings exportModelSettings() { /** Returns the object with the settings used for calls to listModelEvaluations. */ public PagedCallSettings< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return ((AutoMlStubSettings) getStubSettings()).listModelEvaluationsSettings(); @@ -540,8 +540,7 @@ public UnaryCallSettings.Builder exportModelSetti /** Returns the builder for the settings used for calls to listModelEvaluations. */ public PagedCallSettings.Builder< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return getStubSettingsBuilder().listModelEvaluationsSettings(); diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java similarity index 87% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java index 50a36a753..c2ab7c2ff 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java @@ -57,13 +57,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -169,19 +169,19 @@ public final OperationsClient getOperationsClient() { * 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 60,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. Not + *
  • 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 60,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. Not * available for FORECASTING *
* *

[prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]. * *

    - *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. + *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. *
* *

Sample code: @@ -201,7 +201,7 @@ public final OperationsClient getOperationsClient() { * @param params Additional domain-specific parameters, any string must be up to 25000 characters * long. *

    - *
  • For Image Classification: + *
  • 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. The @@ -212,7 +212,7 @@ public final OperationsClient getOperationsClient() { * than this number of bounding boxes will be returned in the response. Default is 100, the * requested value may be limited by server. *

    - *
  • For Tables: feature_imp<span>ortan</span>ce - (boolean) Whether feature + *
  • For Tables: feature_imp<span>ortan</span>ce - (boolean) Whether feature * importance should be populated in the returned TablesAnnotation. The default is * false. *
@@ -236,19 +236,19 @@ public final PredictResponse predict( * 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 60,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. Not + *
  • 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 60,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. Not * available for FORECASTING *
* *

[prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]. * *

    - *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. + *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. *
* *

Sample code: @@ -268,7 +268,7 @@ public final PredictResponse predict( * @param params Additional domain-specific parameters, any string must be up to 25000 characters * long. *

    - *
  • For Image Classification: + *
  • 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. The @@ -279,7 +279,7 @@ public final PredictResponse predict( * than this number of bounding boxes will be returned in the response. Default is 100, the * requested value may be limited by server. *

    - *
  • For Tables: feature_imp<span>ortan</span>ce - (boolean) Whether feature + *
  • For Tables: feature_imp<span>ortan</span>ce - (boolean) Whether feature * importance should be populated in the returned TablesAnnotation. The default is * false. *
@@ -299,19 +299,19 @@ public final PredictResponse predict( * 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 60,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. Not + *
  • 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 60,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. Not * available for FORECASTING *
* *

[prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]. * *

    - *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. + *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. *
* *

Sample code: @@ -341,19 +341,19 @@ public final PredictResponse predict(PredictRequest request) { * 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 60,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. Not + *
  • 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 60,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. Not * available for FORECASTING *
* *

[prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]. * *

    - *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. + *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. *
* *

Sample code: @@ -388,11 +388,11 @@ public final UnaryCallable predictCallable() { * [response][google.longrunning.Operation.response] field. Available for following ML problems: * *

    - *
  • Image Classification - *
  • Image Object Detection - *
  • Video Classification - *
  • Video Object Tracking * Text Extraction - *
  • Tables + *
  • Image Classification + *
  • Image Object Detection + *
  • Video Classification + *
  • Video Object Tracking * Text Extraction + *
  • Tables *
* *

Sample code: @@ -415,19 +415,19 @@ public final UnaryCallable predictCallable() { * @param params Required. Additional domain-specific parameters for the predictions, any string * must be up to 25000 characters long. *

    - *
  • For Text Classification: + *
  • For Text Classification: *
*

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

    - *
  • For Image Classification: + *
  • 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. The * default is 0.5. *

    - *
  • For Image Object Detection: + *
  • 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, @@ -435,7 +435,7 @@ public final UnaryCallable predictCallable() { * boxes will be produced per image. Default is 100, the requested value may be limited by * server. *

    - *
  • For Video Classification : + *
  • 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 @@ -456,12 +456,12 @@ public final UnaryCallable predictCallable() { * the quality of it depends on training data, but there are no metrics provided to describe * that quality. The default is "false". *

    - *
  • For Tables: + *
  • For Tables: *
*

feature_imp<span>ortan</span>ce - (boolean) Whether feature importance * should be populated in the returned TablesAnnotations. The default is false. *

    - *
  • For Video Object Tracking: + *
  • For Video Object Tracking: *
*

`score_threshold` - (float) When Model detects objects on video frames, it will only * produce bounding boxes which have at least this confidence score. Value in 0 to 1 range, @@ -498,11 +498,11 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML problems: * *

    - *
  • Image Classification - *
  • Image Object Detection - *
  • Video Classification - *
  • Video Object Tracking * Text Extraction - *
  • Tables + *
  • Image Classification + *
  • Image Object Detection + *
  • Video Classification + *
  • Video Object Tracking * Text Extraction + *
  • Tables *
* *

Sample code: @@ -525,19 +525,19 @@ public final OperationFuture batchPredict * @param params Required. Additional domain-specific parameters for the predictions, any string * must be up to 25000 characters long. *

    - *
  • For Text Classification: + *
  • For Text Classification: *
*

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

    - *
  • For Image Classification: + *
  • 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. The * default is 0.5. *

    - *
  • For Image Object Detection: + *
  • 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, @@ -545,7 +545,7 @@ public final OperationFuture batchPredict * boxes will be produced per image. Default is 100, the requested value may be limited by * server. *

    - *
  • For Video Classification : + *
  • 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 @@ -566,12 +566,12 @@ public final OperationFuture batchPredict * the quality of it depends on training data, but there are no metrics provided to describe * that quality. The default is "false". *

    - *
  • For Tables: + *
  • For Tables: *
*

feature_imp<span>ortan</span>ce - (boolean) Whether feature importance * should be populated in the returned TablesAnnotations. The default is false. *

    - *
  • For Video Object Tracking: + *
  • For Video Object Tracking: *
*

`score_threshold` - (float) When Model detects objects on video frames, it will only * produce bounding boxes which have at least this confidence score. Value in 0 to 1 range, @@ -608,11 +608,11 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML problems: * *

    - *
  • Image Classification - *
  • Image Object Detection - *
  • Video Classification - *
  • Video Object Tracking * Text Extraction - *
  • Tables + *
  • Image Classification + *
  • Image Object Detection + *
  • Video Classification + *
  • Video Object Tracking * Text Extraction + *
  • Tables *
* *

Sample code: @@ -649,11 +649,11 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML problems: * *

    - *
  • Image Classification - *
  • Image Object Detection - *
  • Video Classification - *
  • Video Object Tracking * Text Extraction - *
  • Tables + *
  • Image Classification + *
  • Image Object Detection + *
  • Video Classification + *
  • Video Object Tracking * Text Extraction + *
  • Tables *
* *

Sample code: @@ -690,11 +690,11 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML problems: * *

    - *
  • Image Classification - *
  • Image Object Detection - *
  • Video Classification - *
  • Video Object Tracking * Text Extraction - *
  • Tables + *
  • Image Classification + *
  • Image Object Detection + *
  • Video Classification + *
  • Video Object Tracking * Text Extraction + *
  • Tables *
* *

Sample code: diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java similarity index 96% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java index 09bb14ee0..0daee0e9d 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; +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.stub.PredictionServiceStubSettings; @@ -40,9 +41,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/gapic_metadata.json diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java similarity index 98% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java index 3a36971b2..bf29aa00d 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java @@ -102,9 +102,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -185,8 +185,7 @@ public class AutoMlStubSettings extends StubSettings { private final UnaryCallSettings getModelEvaluationSettings; private final PagedCallSettings< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings; @@ -448,13 +447,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> LIST_MODEL_EVALUATIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -650,8 +647,7 @@ public UnaryCallSettings exportModelSettings() { /** Returns the object with the settings used for calls to listModelEvaluations. */ public PagedCallSettings< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return listModelEvaluationsSettings; @@ -827,8 +823,7 @@ public static class Builder extends StubSettings.Builder getModelEvaluationSettings; private final PagedCallSettings.Builder< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings; private static final ImmutableMap> @@ -1573,8 +1568,7 @@ public UnaryCallSettings.Builder exportModelSetti /** Returns the builder for the settings used for calls to listModelEvaluations. */ public PagedCallSettings.Builder< - ListModelEvaluationsRequest, - ListModelEvaluationsResponse, + ListModelEvaluationsRequest, ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return listModelEvaluationsSettings; diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlCallableFactory.java similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlCallableFactory.java diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java similarity index 99% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java index c5e37f35c..5e59973a0 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java @@ -73,6 +73,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceCallableFactory.java similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceCallableFactory.java diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java similarity index 99% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java index c4d6358a0..d5f139a71 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java @@ -35,6 +35,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java similarity index 100% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java diff --git a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java similarity index 98% rename from google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java index 4560df840..72f878455 100644 --- a/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java @@ -57,9 +57,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMl.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMl.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMl.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMl.java diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionService.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionService.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionService.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionService.java diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java diff --git a/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/PredictionServiceClientTest.java b/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/PredictionServiceClientTest.java similarity index 100% rename from google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/PredictionServiceClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/PredictionServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java new file mode 100644 index 000000000..c5f2fd1bb --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java @@ -0,0 +1,2518 @@ +package com.google.cloud.automl.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * AutoML Server API.
+ * The resource names are assigned by the server.
+ * The server never reuses names that it has created after the resources with
+ * those names are deleted.
+ * 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( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/automl/v1beta1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AutoMlGrpc { + + private AutoMlGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.automl.v1beta1.AutoMl"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataset", + requestType = com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, + responseType = com.google.cloud.automl.v1beta1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDatasetMethod() { + io.grpc.MethodDescriptor getCreateDatasetMethod; + if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { + AutoMlGrpc.getCreateDatasetMethod = getCreateDatasetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.CreateDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateDataset")) + .build(); + } + } + } + return getCreateDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataset", + requestType = com.google.cloud.automl.v1beta1.GetDatasetRequest.class, + responseType = com.google.cloud.automl.v1beta1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDatasetMethod() { + io.grpc.MethodDescriptor getGetDatasetMethod; + if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { + AutoMlGrpc.getGetDatasetMethod = getGetDatasetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.GetDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetDataset")) + .build(); + } + } + } + return getGetDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDatasetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDatasets", + requestType = com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, + responseType = com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDatasetsMethod() { + io.grpc.MethodDescriptor getListDatasetsMethod; + if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { + AutoMlGrpc.getListDatasetsMethod = getListDatasetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatasets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListDatasetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListDatasetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListDatasets")) + .build(); + } + } + } + return getListDatasetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", + requestType = com.google.cloud.automl.v1beta1.UpdateDatasetRequest.class, + responseType = com.google.cloud.automl.v1beta1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDatasetMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", + requestType = com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDatasetMethod() { + io.grpc.MethodDescriptor getDeleteDatasetMethod; + if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { + AutoMlGrpc.getDeleteDatasetMethod = getDeleteDatasetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.DeleteDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteDataset")) + .build(); + } + } + } + return getDeleteDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getImportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportData", + requestType = com.google.cloud.automl.v1beta1.ImportDataRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportDataMethod() { + io.grpc.MethodDescriptor getImportDataMethod; + if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { + AutoMlGrpc.getImportDataMethod = getImportDataMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ImportDataRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ImportData")) + .build(); + } + } + } + return getImportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor getExportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportData", + requestType = com.google.cloud.automl.v1beta1.ExportDataRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getExportDataMethod() { + io.grpc.MethodDescriptor getExportDataMethod; + if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { + AutoMlGrpc.getExportDataMethod = getExportDataMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ExportDataRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportData")) + .build(); + } + } + } + return getExportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAnnotationSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpec", + requestType = com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.class, + responseType = com.google.cloud.automl.v1beta1.AnnotationSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAnnotationSpecMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor getGetTableSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTableSpec", + requestType = com.google.cloud.automl.v1beta1.GetTableSpecRequest.class, + responseType = com.google.cloud.automl.v1beta1.TableSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTableSpecMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor getListTableSpecsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTableSpecs", + requestType = com.google.cloud.automl.v1beta1.ListTableSpecsRequest.class, + responseType = com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTableSpecsMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor getUpdateTableSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTableSpec", + requestType = com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.class, + responseType = com.google.cloud.automl.v1beta1.TableSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateTableSpecMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor getGetColumnSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetColumnSpec", + requestType = com.google.cloud.automl.v1beta1.GetColumnSpecRequest.class, + responseType = com.google.cloud.automl.v1beta1.ColumnSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetColumnSpecMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor getListColumnSpecsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListColumnSpecs", + requestType = com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.class, + responseType = com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListColumnSpecsMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor getUpdateColumnSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateColumnSpec", + requestType = com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.class, + responseType = com.google.cloud.automl.v1beta1.ColumnSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateColumnSpecMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor getCreateModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateModel", + requestType = com.google.cloud.automl.v1beta1.CreateModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateModelMethod() { + io.grpc.MethodDescriptor getCreateModelMethod; + if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { + AutoMlGrpc.getCreateModelMethod = getCreateModelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.CreateModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateModel")) + .build(); + } + } + } + return getCreateModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetModel", + requestType = com.google.cloud.automl.v1beta1.GetModelRequest.class, + responseType = com.google.cloud.automl.v1beta1.Model.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetModelMethod() { + io.grpc.MethodDescriptor getGetModelMethod; + if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { + AutoMlGrpc.getGetModelMethod = getGetModelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.GetModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.Model.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModel")) + .build(); + } + } + } + return getGetModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getListModelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModels", + requestType = com.google.cloud.automl.v1beta1.ListModelsRequest.class, + responseType = com.google.cloud.automl.v1beta1.ListModelsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListModelsMethod() { + io.grpc.MethodDescriptor getListModelsMethod; + if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { + AutoMlGrpc.getListModelsMethod = getListModelsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListModelsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListModelsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModels")) + .build(); + } + } + } + return getListModelsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteModel", + requestType = com.google.cloud.automl.v1beta1.DeleteModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteModelMethod() { + io.grpc.MethodDescriptor getDeleteModelMethod; + if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { + AutoMlGrpc.getDeleteModelMethod = getDeleteModelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.DeleteModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteModel")) + .build(); + } + } + } + return getDeleteModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeployModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeployModel", + requestType = com.google.cloud.automl.v1beta1.DeployModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeployModelMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor getUndeployModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeployModel", + requestType = com.google.cloud.automl.v1beta1.UndeployModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUndeployModelMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor getExportModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportModel", + requestType = com.google.cloud.automl.v1beta1.ExportModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getExportModelMethod() { + io.grpc.MethodDescriptor getExportModelMethod; + if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { + AutoMlGrpc.getExportModelMethod = getExportModelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ExportModelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) + .build(); + } + } + } + return getExportModelMethod; + } + + private static volatile io.grpc.MethodDescriptor getExportEvaluatedExamplesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportEvaluatedExamples", + requestType = com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getExportEvaluatedExamplesMethod() { + io.grpc.MethodDescriptor getExportEvaluatedExamplesMethod; + if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) == null) { + AutoMlGrpc.getExportEvaluatedExamplesMethod = getExportEvaluatedExamplesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportEvaluatedExamples")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportEvaluatedExamples")) + .build(); + } + } + } + return getExportEvaluatedExamplesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetModelEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", + requestType = com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, + responseType = com.google.cloud.automl.v1beta1.ModelEvaluation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetModelEvaluationMethod() { + io.grpc.MethodDescriptor getGetModelEvaluationMethod; + if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { + AutoMlGrpc.getGetModelEvaluationMethod = getGetModelEvaluationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModelEvaluation")) + .build(); + } + } + } + return getGetModelEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListModelEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", + requestType = com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, + responseType = com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListModelEvaluationsMethod() { + io.grpc.MethodDescriptor getListModelEvaluationsMethod; + if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { + AutoMlGrpc.getListModelEvaluationsMethod = getListModelEvaluationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModelEvaluations")) + .build(); + } + } + } + return getListModelEvaluationsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AutoMlStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlStub(channel, callOptions); + } + }; + return AutoMlStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AutoMlBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlBlockingStub(channel, callOptions); + } + }; + return AutoMlBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AutoMlFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlFutureStub(channel, callOptions); + } + }; + return AutoMlFutureStub.newStub(factory, channel); + } + + /** + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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 abstract class AutoMlImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a dataset.
+     * 
+ */ + public void createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDatasetMethod(), responseObserver); + } + + /** + *
+     * Gets a dataset.
+     * 
+ */ + public void getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); + } + + /** + *
+     * Lists datasets in a project.
+     * 
+ */ + public void listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDatasetsMethod(), responseObserver); + } + + /** + *
+     * Updates a dataset.
+     * 
+ */ + public void updateDataset(com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDatasetMethod(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDatasetMethod(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void importData(com.google.cloud.automl.v1beta1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); + } + + /** + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); + } + + /** + *
+     * Gets an annotation spec.
+     * 
+ */ + public void getAnnotationSpec(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAnnotationSpecMethod(), responseObserver); + } + + /** + *
+     * Gets a table spec.
+     * 
+ */ + public void getTableSpec(com.google.cloud.automl.v1beta1.GetTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTableSpecMethod(), responseObserver); + } + + /** + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public void listTableSpecs(com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTableSpecsMethod(), responseObserver); + } + + /** + *
+     * Updates a table spec.
+     * 
+ */ + public void updateTableSpec(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTableSpecMethod(), responseObserver); + } + + /** + *
+     * Gets a column spec.
+     * 
+ */ + public void getColumnSpec(com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetColumnSpecMethod(), responseObserver); + } + + /** + *
+     * Lists column specs in a table spec.
+     * 
+ */ + public void listColumnSpecs(com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListColumnSpecsMethod(), responseObserver); + } + + /** + *
+     * Updates a column spec.
+     * 
+ */ + public void updateColumnSpec(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateColumnSpecMethod(), responseObserver); + } + + /** + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public void createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateModelMethod(), responseObserver); + } + + /** + *
+     * Gets a model.
+     * 
+ */ + public void getModel(com.google.cloud.automl.v1beta1.GetModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); + } + + /** + *
+     * Lists models.
+     * 
+ */ + public void listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteModelMethod(), responseObserver); + } + + /** + *
+     * 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 reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeployModelMethod(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeployModelMethod(), 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) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportModelMethod(), 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) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportEvaluatedExamplesMethod(), responseObserver); + } + + /** + *
+     * Gets a model evaluation.
+     * 
+ */ + public void getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelEvaluationMethod(), responseObserver); + } + + /** + *
+     * Lists model evaluations.
+     * 
+ */ + public void listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelEvaluationsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.CreateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset>( + this, METHODID_CREATE_DATASET))) + .addMethod( + getGetDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset>( + this, METHODID_GET_DATASET))) + .addMethod( + getListDatasetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListDatasetsRequest, + com.google.cloud.automl.v1beta1.ListDatasetsResponse>( + this, METHODID_LIST_DATASETS))) + .addMethod( + getUpdateDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UpdateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset>( + this, METHODID_UPDATE_DATASET))) + .addMethod( + getDeleteDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.DeleteDatasetRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_DATASET))) + .addMethod( + getImportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ImportDataRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_DATA))) + .addMethod( + getExportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ExportDataRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_DATA))) + .addMethod( + getGetAnnotationSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1beta1.AnnotationSpec>( + this, METHODID_GET_ANNOTATION_SPEC))) + .addMethod( + getGetTableSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec>( + this, METHODID_GET_TABLE_SPEC))) + .addMethod( + getListTableSpecsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListTableSpecsRequest, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse>( + this, METHODID_LIST_TABLE_SPECS))) + .addMethod( + getUpdateTableSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec>( + this, METHODID_UPDATE_TABLE_SPEC))) + .addMethod( + getGetColumnSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec>( + this, METHODID_GET_COLUMN_SPEC))) + .addMethod( + getListColumnSpecsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse>( + this, METHODID_LIST_COLUMN_SPECS))) + .addMethod( + getUpdateColumnSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec>( + this, METHODID_UPDATE_COLUMN_SPEC))) + .addMethod( + getCreateModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.CreateModelRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_MODEL))) + .addMethod( + getGetModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetModelRequest, + com.google.cloud.automl.v1beta1.Model>( + this, METHODID_GET_MODEL))) + .addMethod( + getListModelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListModelsRequest, + com.google.cloud.automl.v1beta1.ListModelsResponse>( + this, METHODID_LIST_MODELS))) + .addMethod( + getDeleteModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.DeleteModelRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_MODEL))) + .addMethod( + getDeployModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.DeployModelRequest, + com.google.longrunning.Operation>( + this, METHODID_DEPLOY_MODEL))) + .addMethod( + getUndeployModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UndeployModelRequest, + com.google.longrunning.Operation>( + this, METHODID_UNDEPLOY_MODEL))) + .addMethod( + getExportModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ExportModelRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_MODEL))) + .addMethod( + getExportEvaluatedExamplesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_EVALUATED_EXAMPLES))) + .addMethod( + getGetModelEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, + com.google.cloud.automl.v1beta1.ModelEvaluation>( + this, METHODID_GET_MODEL_EVALUATION))) + .addMethod( + getListModelEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse>( + this, METHODID_LIST_MODEL_EVALUATIONS))) + .build(); + } + } + + /** + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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.AbstractAsyncStub { + private AutoMlStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlStub(channel, callOptions); + } + + /** + *
+     * Creates a dataset.
+     * 
+ */ + public void createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a dataset.
+     * 
+ */ + public void getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists datasets in a project.
+     * 
+ */ + public void listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a dataset.
+     * 
+ */ + public void updateDataset(com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void importData(com.google.cloud.automl.v1beta1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an annotation spec.
+     * 
+ */ + public void getAnnotationSpec(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a table spec.
+     * 
+ */ + public void getTableSpec(com.google.cloud.automl.v1beta1.GetTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTableSpecMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public void listTableSpecs(com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTableSpecsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a table spec.
+     * 
+ */ + public void updateTableSpec(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTableSpecMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a column spec.
+     * 
+ */ + public void getColumnSpec(com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetColumnSpecMethod(), 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListColumnSpecsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a column spec.
+     * 
+ */ + public void updateColumnSpec(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public void createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a model.
+     * 
+ */ + public void getModel(com.google.cloud.automl.v1beta1.GetModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists models.
+     * 
+ */ + public void listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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 reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeployModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request, 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportModelMethod(), 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a model evaluation.
+     * 
+ */ + public void getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists model evaluations.
+     * 
+ */ + public void listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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 extends io.grpc.stub.AbstractBlockingStub { + private AutoMlBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.Dataset createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.Dataset getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists datasets in a project.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ListDatasetsResponse listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.Dataset updateDataset(com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation importData(com.google.cloud.automl.v1beta1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDataMethod(), getCallOptions(), request); + } + + /** + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an annotation spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.AnnotationSpec getAnnotationSpec(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a table spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.TableSpec getTableSpec(com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTableSpecMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ListTableSpecsResponse listTableSpecs(com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTableSpecsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a table spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.TableSpec updateTableSpec(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTableSpecMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a column spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec(com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetColumnSpecMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListColumnSpecsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a column spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ColumnSpec updateColumnSpec(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateColumnSpecMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public com.google.longrunning.Operation createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateModelMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a model.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.Model getModel(com.google.cloud.automl.v1beta1.GetModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists models.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ListModelsResponse listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelsMethod(), getCallOptions(), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelMethod(), getCallOptions(), request); + } + + /** + *
+     * 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 reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployModelMethod(), getCallOptions(), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeployModelMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportModelMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportEvaluatedExamplesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a model evaluation.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists model evaluations.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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.AbstractFutureStub { + private AutoMlFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDataset( + com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDataset( + com.google.cloud.automl.v1beta1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists datasets in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDatasets( + com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDataset( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDataset( + com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture importData( + com.google.cloud.automl.v1beta1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request); + } + + /** + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture exportData( + com.google.cloud.automl.v1beta1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an annotation spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAnnotationSpec( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a table spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTableSpec( + com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTableSpecMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTableSpecs( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTableSpecsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a table spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateTableSpec( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTableSpecMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a column spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getColumnSpec( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetColumnSpecMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists column specs in a table spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listColumnSpecs( + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListColumnSpecsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a column spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateColumnSpec( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createModel( + com.google.cloud.automl.v1beta1.CreateModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a model.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getModel( + com.google.cloud.automl.v1beta1.GetModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists models.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listModels( + com.google.cloud.automl.v1beta1.ListModelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelsMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteModel( + com.google.cloud.automl.v1beta1.DeleteModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); + } + + /** + *
+     * 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 reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deployModel( + com.google.cloud.automl.v1beta1.DeployModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture undeployModel( + com.google.cloud.automl.v1beta1.UndeployModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeployModelMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportModelMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a model evaluation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getModelEvaluation( + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists model evaluations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listModelEvaluations( + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); + } + } + + 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_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, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AutoMlImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AutoMlImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_DATASET: + serviceImpl.createDataset((com.google.cloud.automl.v1beta1.CreateDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATASET: + serviceImpl.getDataset((com.google.cloud.automl.v1beta1.GetDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DATASETS: + serviceImpl.listDatasets((com.google.cloud.automl.v1beta1.ListDatasetsRequest) request, + (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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_DATA: + serviceImpl.importData((com.google.cloud.automl.v1beta1.ImportDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_DATA: + serviceImpl.exportData((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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MODEL: + serviceImpl.getModel((com.google.cloud.automl.v1beta1.GetModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MODELS: + serviceImpl.listModels((com.google.cloud.automl.v1beta1.ListModelsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MODEL: + serviceImpl.deleteModel((com.google.cloud.automl.v1beta1.DeleteModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DEPLOY_MODEL: + serviceImpl.deployModel((com.google.cloud.automl.v1beta1.DeployModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDEPLOY_MODEL: + serviceImpl.undeployModel((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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MODEL_EVALUATIONS: + serviceImpl.listModelEvaluations((com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AutoMlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AutoMlBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AutoMl"); + } + } + + private static final class AutoMlFileDescriptorSupplier + extends AutoMlBaseDescriptorSupplier { + AutoMlFileDescriptorSupplier() {} + } + + private static final class AutoMlMethodDescriptorSupplier + extends AutoMlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AutoMlMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AutoMlGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AutoMlFileDescriptorSupplier()) + .addMethod(getCreateDatasetMethod()) + .addMethod(getGetDatasetMethod()) + .addMethod(getListDatasetsMethod()) + .addMethod(getUpdateDatasetMethod()) + .addMethod(getDeleteDatasetMethod()) + .addMethod(getImportDataMethod()) + .addMethod(getExportDataMethod()) + .addMethod(getGetAnnotationSpecMethod()) + .addMethod(getGetTableSpecMethod()) + .addMethod(getListTableSpecsMethod()) + .addMethod(getUpdateTableSpecMethod()) + .addMethod(getGetColumnSpecMethod()) + .addMethod(getListColumnSpecsMethod()) + .addMethod(getUpdateColumnSpecMethod()) + .addMethod(getCreateModelMethod()) + .addMethod(getGetModelMethod()) + .addMethod(getListModelsMethod()) + .addMethod(getDeleteModelMethod()) + .addMethod(getDeployModelMethod()) + .addMethod(getUndeployModelMethod()) + .addMethod(getExportModelMethod()) + .addMethod(getExportEvaluatedExamplesMethod()) + .addMethod(getGetModelEvaluationMethod()) + .addMethod(getListModelEvaluationsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java similarity index 64% rename from grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java rename to owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java index 28305076f..23f59c420 100644 --- a/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ package com.google.cloud.automl.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * AutoML Prediction API.
  * On any input that is documented to expect a string parameter in
@@ -29,6 +12,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/cloud/automl/v1beta1/prediction_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class PredictionServiceGrpc {
 
   private PredictionServiceGrpc() {}
@@ -36,148 +20,122 @@ private PredictionServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.automl.v1beta1.PredictionService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.automl.v1beta1.PredictRequest,
-          com.google.cloud.automl.v1beta1.PredictResponse>
-      getPredictMethod;
+  private static volatile io.grpc.MethodDescriptor getPredictMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Predict",
       requestType = com.google.cloud.automl.v1beta1.PredictRequest.class,
       responseType = com.google.cloud.automl.v1beta1.PredictResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.automl.v1beta1.PredictRequest,
-          com.google.cloud.automl.v1beta1.PredictResponse>
-      getPredictMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.automl.v1beta1.PredictRequest,
-            com.google.cloud.automl.v1beta1.PredictResponse>
-        getPredictMethod;
+  public static io.grpc.MethodDescriptor getPredictMethod() {
+    io.grpc.MethodDescriptor getPredictMethod;
     if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) {
       synchronized (PredictionServiceGrpc.class) {
         if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) {
-          PredictionServiceGrpc.getPredictMethod =
-              getPredictMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.automl.v1beta1.PredictRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.automl.v1beta1.PredictResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict"))
-                      .build();
+          PredictionServiceGrpc.getPredictMethod = getPredictMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.automl.v1beta1.PredictRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.automl.v1beta1.PredictResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict"))
+              .build();
         }
       }
     }
     return getPredictMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation>
-      getBatchPredictMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchPredictMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchPredict",
       requestType = com.google.cloud.automl.v1beta1.BatchPredictRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation>
-      getBatchPredictMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation>
-        getBatchPredictMethod;
+  public static io.grpc.MethodDescriptor getBatchPredictMethod() {
+    io.grpc.MethodDescriptor 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(SERVICE_NAME, "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();
+          PredictionServiceGrpc.getBatchPredictMethod = getBatchPredictMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "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 */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static PredictionServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PredictionServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PredictionServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PredictionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PredictionServiceStub(channel, callOptions);
+        }
+      };
     return PredictionServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PredictionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static PredictionServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PredictionServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PredictionServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PredictionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PredictionServiceBlockingStub(channel, callOptions);
+        }
+      };
     return PredictionServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static PredictionServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static PredictionServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PredictionServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PredictionServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PredictionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PredictionServiceFutureStub(channel, callOptions);
+        }
+      };
     return PredictionServiceFutureStub.newStub(factory, 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 { + public static abstract class PredictionServiceImplBase implements io.grpc.BindableService { /** - * - * *
      * Perform an online prediction. The prediction result will be directly
      * returned in the response.
@@ -199,16 +157,12 @@ public abstract static class PredictionServiceImplBase implements io.grpc.Bindab
      *                     encoded.
      * 
*/ - public void predict( - com.google.cloud.automl.v1beta1.PredictRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void predict(com.google.cloud.automl.v1beta1.PredictRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), 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,
@@ -224,44 +178,41 @@ public void predict(
      * * Tables
      * 
*/ - public void batchPredict( - com.google.cloud.automl.v1beta1.BatchPredictRequest request, + public void batchPredict(com.google.cloud.automl.v1beta1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchPredictMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchPredictMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.PredictRequest, - com.google.cloud.automl.v1beta1.PredictResponse>(this, METHODID_PREDICT))) + getPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.PredictRequest, + com.google.cloud.automl.v1beta1.PredictResponse>( + this, METHODID_PREDICT))) .addMethod( - getBatchPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.BatchPredictRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_PREDICT))) + getBatchPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.BatchPredictRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_PREDICT))) .build(); } } /** - * - * *
    * 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 - extends io.grpc.stub.AbstractAsyncStub { - private PredictionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceStub extends io.grpc.stub.AbstractAsyncStub { + private PredictionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -272,8 +223,6 @@ protected PredictionServiceStub build( } /** - * - * *
      * Perform an online prediction. The prediction result will be directly
      * returned in the response.
@@ -295,17 +244,13 @@ protected PredictionServiceStub build(
      *                     encoded.
      * 
*/ - public void predict( - com.google.cloud.automl.v1beta1.PredictRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void predict(com.google.cloud.automl.v1beta1.PredictRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), 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,
@@ -321,27 +266,21 @@ public void predict(
      * * Tables
      * 
*/ - public void batchPredict( - com.google.cloud.automl.v1beta1.BatchPredictRequest request, + public void batchPredict(com.google.cloud.automl.v1beta1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchPredictMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * 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 - extends io.grpc.stub.AbstractBlockingStub { + public static final class PredictionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PredictionServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -354,8 +293,6 @@ protected PredictionServiceBlockingStub build( } /** - * - * *
      * Perform an online prediction. The prediction result will be directly
      * returned in the response.
@@ -377,15 +314,12 @@ protected PredictionServiceBlockingStub build(
      *                     encoded.
      * 
*/ - public com.google.cloud.automl.v1beta1.PredictResponse predict( - com.google.cloud.automl.v1beta1.PredictRequest request) { + public com.google.cloud.automl.v1beta1.PredictResponse predict(com.google.cloud.automl.v1beta1.PredictRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPredictMethod(), 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,
@@ -401,25 +335,22 @@ public com.google.cloud.automl.v1beta1.PredictResponse predict(
      * * Tables
      * 
*/ - public com.google.longrunning.Operation batchPredict( - com.google.cloud.automl.v1beta1.BatchPredictRequest request) { + public com.google.longrunning.Operation batchPredict(com.google.cloud.automl.v1beta1.BatchPredictRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchPredictMethod(), getCallOptions(), request); } } /** - * - * *
    * 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 - extends io.grpc.stub.AbstractFutureStub { - private PredictionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private PredictionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -430,8 +361,6 @@ protected PredictionServiceFutureStub build( } /** - * - * *
      * Perform an online prediction. The prediction result will be directly
      * returned in the response.
@@ -453,16 +382,13 @@ protected PredictionServiceFutureStub build(
      *                     encoded.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.automl.v1beta1.PredictResponse> - predict(com.google.cloud.automl.v1beta1.PredictRequest request) { + public com.google.common.util.concurrent.ListenableFuture predict( + com.google.cloud.automl.v1beta1.PredictRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPredictMethod(), 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,
@@ -478,8 +404,8 @@ protected PredictionServiceFutureStub build(
      * * Tables
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchPredict(com.google.cloud.automl.v1beta1.BatchPredictRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchPredict( + com.google.cloud.automl.v1beta1.BatchPredictRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request); } @@ -488,11 +414,11 @@ protected PredictionServiceFutureStub build( 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, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final PredictionServiceImplBase serviceImpl; private final int methodId; @@ -506,14 +432,11 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PREDICT: - serviceImpl.predict( - (com.google.cloud.automl.v1beta1.PredictRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.predict((com.google.cloud.automl.v1beta1.PredictRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_PREDICT: - serviceImpl.batchPredict( - (com.google.cloud.automl.v1beta1.BatchPredictRequest) request, + serviceImpl.batchPredict((com.google.cloud.automl.v1beta1.BatchPredictRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -532,9 +455,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class PredictionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class PredictionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PredictionServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -576,13 +498,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PredictionServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier()) - .addMethod(getPredictMethod()) - .addMethod(getBatchPredictMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier()) + .addMethod(getPredictMethod()) + .addMethod(getBatchPredictMethod()) + .build(); } } } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java index 312438037..47088f055 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/annotation_payload.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Contains annotation information that is relevant to AutoML.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.AnnotationPayload} */ -public final class AnnotationPayload extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotationPayload extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.AnnotationPayload) AnnotationPayloadOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotationPayload.newBuilder() to construct. private AnnotationPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotationPayload() { annotationSpecId_ = ""; displayName_ = ""; @@ -44,15 +26,16 @@ private AnnotationPayload() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotationPayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotationPayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,233 +54,166 @@ private AnnotationPayload( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecId_ = s; - break; + annotationSpecId_ = s; + break; + } + case 18: { + com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder subBuilder = null; + if (detailCase_ == 2) { + subBuilder = ((com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_).toBuilder(); } - case 18: - { - com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder subBuilder = null; - if (detailCase_ == 2) { - subBuilder = - ((com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_).toBuilder(); - } - detail_ = - input.readMessage( - com.google.cloud.automl.v1beta1.TranslationAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 2; - break; + detail_ = + input.readMessage(com.google.cloud.automl.v1beta1.TranslationAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_); + detail_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder - subBuilder = null; - if (detailCase_ == 3) { - subBuilder = - ((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) - detail_) - .toBuilder(); - } - detail_ = - input.readMessage( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) - detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 3; - break; + detailCase_ = 2; + break; + } + case 26: { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder subBuilder = null; + if (detailCase_ == 3) { + subBuilder = ((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_).toBuilder(); } - 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; + detail_ = + input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_); + detail_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + 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(); - displayName_ = s; - break; + 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(); } - 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; + 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(); } - 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; + 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(); } - case 66: - { - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder subBuilder = - null; - if (detailCase_ == 8) { - subBuilder = - ((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_) - .toBuilder(); - } - detail_ = - input.readMessage( - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 8; - break; + detailCase_ = 7; + break; + } + case 66: { + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder subBuilder = null; + if (detailCase_ == 8) { + subBuilder = ((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_).toBuilder(); } - 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; + detail_ = + input.readMessage(com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); + detail_ = subBuilder.buildPartial(); } - 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; + detailCase_ = 8; + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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)) { + 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); + 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.AnnotationPayloadOuterClass - .internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass - .internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.AnnotationPayload.class, - com.google.cloud.automl.v1beta1.AnnotationPayload.Builder.class); + com.google.cloud.automl.v1beta1.AnnotationPayload.class, com.google.cloud.automl.v1beta1.AnnotationPayload.Builder.class); } private int detailCase_ = 0; private java.lang.Object detail_; - public enum DetailCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION(2), CLASSIFICATION(3), @@ -309,7 +225,6 @@ public enum DetailCase TABLES(10), DETAIL_NOT_SET(0); private final int value; - private DetailCase(int value) { this.value = value; } @@ -325,48 +240,36 @@ public static DetailCase valueOf(int value) { public static DetailCase forNumber(int value) { switch (value) { - case 2: - return TRANSLATION; - case 3: - return CLASSIFICATION; - case 4: - return IMAGE_OBJECT_DETECTION; - case 9: - return VIDEO_CLASSIFICATION; - case 8: - return VIDEO_OBJECT_TRACKING; - case 6: - return TEXT_EXTRACTION; - case 7: - return TEXT_SENTIMENT; - case 10: - return TABLES; - case 0: - return DETAIL_NOT_SET; - default: - return null; + case 2: return TRANSLATION; + case 3: return CLASSIFICATION; + case 4: return IMAGE_OBJECT_DETECTION; + case 9: return VIDEO_CLASSIFICATION; + case 8: return VIDEO_OBJECT_TRACKING; + case 6: return TEXT_EXTRACTION; + case 7: return TEXT_SENTIMENT; + case 10: return TABLES; + case 0: return DETAIL_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DetailCase getDetailCase() { - return DetailCase.forNumber(detailCase_); + public DetailCase + getDetailCase() { + return DetailCase.forNumber( + detailCase_); } public static final int TRANSLATION_FIELD_NUMBER = 2; /** - * - * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; - * * @return Whether the translation field is set. */ @java.lang.Override @@ -374,26 +277,21 @@ public boolean hasTranslation() { return detailCase_ == 2; } /** - * - * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; - * * @return The translation. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationAnnotation getTranslation() { if (detailCase_ == 2) { - return (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_; } return com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for translation.
    * 
@@ -403,21 +301,18 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation getTranslation() { @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder getTranslationOrBuilder() { if (detailCase_ == 2) { - return (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_; } return com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance(); } public static final int CLASSIFICATION_FIELD_NUMBER = 3; /** - * - * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; - * * @return Whether the classification field is set. */ @java.lang.Override @@ -425,28 +320,21 @@ public boolean hasClassification() { return detailCase_ == 3; } /** - * - * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; - * * @return The classification. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - getClassification() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassification() { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for content or image classification.
    * 
@@ -454,26 +342,20 @@ public boolean hasClassification() { * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder - getClassificationOrBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationOrBuilder() { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; * @return Whether the imageObjectDetection field is set. */ @java.lang.Override @@ -481,55 +363,43 @@ public boolean hasImageObjectDetection() { return detailCase_ == 4; } /** - * - * *
    * Annotation details for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; * @return The imageObjectDetection. */ @java.lang.Override 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) detail_; } return com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder - getImageObjectDetectionOrBuilder() { + 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) 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; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; * @return Whether the videoClassification field is set. */ @java.lang.Override @@ -537,61 +407,44 @@ public boolean hasVideoClassification() { return detailCase_ == 9; } /** - * - * *
    * Annotation details for video classification.
    * Returned for Video Classification predictions.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; * @return The videoClassification. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation - getVideoClassification() { + 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) detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotationOrBuilder - getVideoClassificationOrBuilder() { + 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) detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_FIELD_NUMBER = 8; /** - * - * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; * @return Whether the videoObjectTracking field is set. */ @java.lang.Override @@ -599,53 +452,42 @@ public boolean hasVideoObjectTracking() { return detailCase_ == 8; } /** - * - * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; * @return The videoObjectTracking. */ @java.lang.Override public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getVideoObjectTracking() { if (detailCase_ == 8) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder - getVideoObjectTrackingOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingOrBuilder() { if (detailCase_ == 8) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } public static final int TEXT_EXTRACTION_FIELD_NUMBER = 6; /** - * - * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; - * * @return Whether the textExtraction field is set. */ @java.lang.Override @@ -653,26 +495,21 @@ public boolean hasTextExtraction() { return detailCase_ == 6; } /** - * - * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; - * * @return The textExtraction. */ @java.lang.Override 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) detail_; } return com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for text extraction.
    * 
@@ -680,24 +517,20 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotation getTextExtractio * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder - getTextExtractionOrBuilder() { + 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) 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; - * * @return Whether the textSentiment field is set. */ @java.lang.Override @@ -705,28 +538,21 @@ public boolean hasTextSentiment() { return detailCase_ == 7; } /** - * - * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; - * * @return The textSentiment. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation - getTextSentiment() { + 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) detail_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for text sentiment.
    * 
@@ -734,25 +560,20 @@ public boolean hasTextSentiment() { * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder - getTextSentimentOrBuilder() { + 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) detail_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation - .getDefaultInstance(); + 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; - * * @return Whether the tables field is set. */ @java.lang.Override @@ -760,26 +581,21 @@ public boolean hasTables() { return detailCase_ == 10; } /** - * - * *
    * Annotation details for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; - * * @return The tables. */ @java.lang.Override 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) detail_; } return com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation details for Tables.
    * 
@@ -789,7 +605,7 @@ public com.google.cloud.automl.v1beta1.TablesAnnotation getTables() { @java.lang.Override 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) detail_; } return com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); } @@ -797,8 +613,6 @@ public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuil public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecId_; /** - * - * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -806,7 +620,6 @@ public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuil
    * 
* * string annotation_spec_id = 1; - * * @return The annotationSpecId. */ @java.lang.Override @@ -815,15 +628,14 @@ public java.lang.String getAnnotationSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; } } /** - * - * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -831,15 +643,16 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string annotation_spec_id = 1; - * * @return The bytes for annotationSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -850,8 +663,6 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** - * - * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -862,7 +673,6 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
    * 
* * string display_name = 5; - * * @return The displayName. */ @java.lang.Override @@ -871,15 +681,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -890,15 +699,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -907,7 +717,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -919,7 +728,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecId_); } @@ -927,13 +737,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_); } if (detailCase_ == 3) { - output.writeMessage( - 3, - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_); + output.writeMessage(3, (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_); } if (detailCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_); + output.writeMessage(4, (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); @@ -942,18 +749,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(6, (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_); } if (detailCase_ == 7) { - output.writeMessage( - 7, (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) detail_); + output.writeMessage(7, (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) detail_); } if (detailCase_ == 8) { - output.writeMessage( - 8, (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); + output.writeMessage(8, (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); } if (detailCase_ == 9) { - output.writeMessage( - 9, - (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) - detail_); + output.writeMessage(9, (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) detail_); } if (detailCase_ == 10) { output.writeMessage(10, (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_); @@ -971,52 +773,39 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, annotationSpecId_); } if (detailCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_); } if (detailCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) - detail_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (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_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 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_); + 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_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) detail_); } if (detailCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); } if (detailCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, - (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) - detail_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1026,41 +815,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.AnnotationPayload)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.AnnotationPayload other = - (com.google.cloud.automl.v1beta1.AnnotationPayload) obj; + com.google.cloud.automl.v1beta1.AnnotationPayload other = (com.google.cloud.automl.v1beta1.AnnotationPayload) obj; - if (!getAnnotationSpecId().equals(other.getAnnotationSpecId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getAnnotationSpecId() + .equals(other.getAnnotationSpecId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getDetailCase().equals(other.getDetailCase())) return false; switch (detailCase_) { case 2: - if (!getTranslation().equals(other.getTranslation())) return false; + if (!getTranslation() + .equals(other.getTranslation())) return false; break; case 3: - if (!getClassification().equals(other.getClassification())) return false; + if (!getClassification() + .equals(other.getClassification())) return false; break; case 4: - if (!getImageObjectDetection().equals(other.getImageObjectDetection())) return false; + if (!getImageObjectDetection() + .equals(other.getImageObjectDetection())) return false; break; case 9: - if (!getVideoClassification().equals(other.getVideoClassification())) return false; + if (!getVideoClassification() + .equals(other.getVideoClassification())) return false; break; case 8: - if (!getVideoObjectTracking().equals(other.getVideoObjectTracking())) return false; + if (!getVideoObjectTracking() + .equals(other.getVideoObjectTracking())) return false; break; case 6: - if (!getTextExtraction().equals(other.getTextExtraction())) return false; + if (!getTextExtraction() + .equals(other.getTextExtraction())) return false; break; case 7: - if (!getTextSentiment().equals(other.getTextSentiment())) return false; + if (!getTextSentiment() + .equals(other.getTextSentiment())) return false; break; case 10: - if (!getTables().equals(other.getTables())) return false; + if (!getTables() + .equals(other.getTables())) return false; break; case 0: default: @@ -1122,126 +920,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.AnnotationPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.AnnotationPayload 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.AnnotationPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.AnnotationPayload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.AnnotationPayload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.AnnotationPayload parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.AnnotationPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains annotation information that is relevant to AutoML.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.AnnotationPayload} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.AnnotationPayload) com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass - .internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass - .internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.AnnotationPayload.class, - com.google.cloud.automl.v1beta1.AnnotationPayload.Builder.class); + com.google.cloud.automl.v1beta1.AnnotationPayload.class, com.google.cloud.automl.v1beta1.AnnotationPayload.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.AnnotationPayload.newBuilder() @@ -1249,15 +1038,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1271,9 +1061,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass - .internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; } @java.lang.Override @@ -1292,8 +1082,7 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload build() { @java.lang.Override public com.google.cloud.automl.v1beta1.AnnotationPayload buildPartial() { - com.google.cloud.automl.v1beta1.AnnotationPayload result = - new com.google.cloud.automl.v1beta1.AnnotationPayload(this); + com.google.cloud.automl.v1beta1.AnnotationPayload result = new com.google.cloud.automl.v1beta1.AnnotationPayload(this); if (detailCase_ == 2) { if (translationBuilder_ == null) { result.detail_ = detail_; @@ -1361,39 +1150,38 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.AnnotationPayload) { - return mergeFrom((com.google.cloud.automl.v1beta1.AnnotationPayload) other); + return mergeFrom((com.google.cloud.automl.v1beta1.AnnotationPayload)other); } else { super.mergeFrom(other); return this; @@ -1401,8 +1189,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.AnnotationPayload other) { - if (other == com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance()) return this; if (!other.getAnnotationSpecId().isEmpty()) { annotationSpecId_ = other.annotationSpecId_; onChanged(); @@ -1412,50 +1199,41 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.AnnotationPayload other onChanged(); } switch (other.getDetailCase()) { - case TRANSLATION: - { - mergeTranslation(other.getTranslation()); - break; - } - case CLASSIFICATION: - { - mergeClassification(other.getClassification()); - break; - } - case IMAGE_OBJECT_DETECTION: - { - mergeImageObjectDetection(other.getImageObjectDetection()); - break; - } - case VIDEO_CLASSIFICATION: - { - mergeVideoClassification(other.getVideoClassification()); - break; - } - case VIDEO_OBJECT_TRACKING: - { - mergeVideoObjectTracking(other.getVideoObjectTracking()); - 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; - } + case TRANSLATION: { + mergeTranslation(other.getTranslation()); + break; + } + case CLASSIFICATION: { + mergeClassification(other.getClassification()); + break; + } + case IMAGE_OBJECT_DETECTION: { + mergeImageObjectDetection(other.getImageObjectDetection()); + break; + } + case VIDEO_CLASSIFICATION: { + mergeVideoClassification(other.getVideoClassification()); + break; + } + case VIDEO_OBJECT_TRACKING: { + mergeVideoObjectTracking(other.getVideoObjectTracking()); + 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; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1476,8 +1254,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.AnnotationPayload) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.AnnotationPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1486,12 +1263,12 @@ public Builder mergeFrom( } return this; } - private int detailCase_ = 0; private java.lang.Object detail_; - - public DetailCase getDetailCase() { - return DetailCase.forNumber(detailCase_); + public DetailCase + getDetailCase() { + return DetailCase.forNumber( + detailCase_); } public Builder clearDetail() { @@ -1501,20 +1278,15 @@ public Builder clearDetail() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationAnnotation, - com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, - com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder> - translationBuilder_; + com.google.cloud.automl.v1beta1.TranslationAnnotation, com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder> translationBuilder_; /** - * - * *
      * Annotation details for translation.
      * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; - * * @return Whether the translation field is set. */ @java.lang.Override @@ -1522,14 +1294,11 @@ public boolean hasTranslation() { return detailCase_ == 2; } /** - * - * *
      * Annotation details for translation.
      * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; - * * @return The translation. */ @java.lang.Override @@ -1547,8 +1316,6 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation getTranslation() { } } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1569,8 +1336,6 @@ public Builder setTranslation(com.google.cloud.automl.v1beta1.TranslationAnnotat return this; } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1589,8 +1354,6 @@ public Builder setTranslation( return this; } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1599,14 +1362,10 @@ public Builder setTranslation( */ public Builder mergeTranslation(com.google.cloud.automl.v1beta1.TranslationAnnotation value) { if (translationBuilder_ == null) { - if (detailCase_ == 2 - && detail_ - != com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance()) { - detail_ = - com.google.cloud.automl.v1beta1.TranslationAnnotation.newBuilder( - (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_) - .mergeFrom(value) - .buildPartial(); + if (detailCase_ == 2 && + detail_ != com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance()) { + detail_ = com.google.cloud.automl.v1beta1.TranslationAnnotation.newBuilder((com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_) + .mergeFrom(value).buildPartial(); } else { detail_ = value; } @@ -1621,8 +1380,6 @@ public Builder mergeTranslation(com.google.cloud.automl.v1beta1.TranslationAnnot return this; } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1646,8 +1403,6 @@ public Builder clearTranslation() { return this; } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1658,8 +1413,6 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder getTranslat return getTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1667,8 +1420,7 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder getTranslat * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder - getTranslationOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder getTranslationOrBuilder() { if ((detailCase_ == 2) && (translationBuilder_ != null)) { return translationBuilder_.getMessageOrBuilder(); } else { @@ -1679,8 +1431,6 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder getTranslat } } /** - * - * *
      * Annotation details for translation.
      * 
@@ -1688,44 +1438,32 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder getTranslat * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationAnnotation, - com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, - com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder> + com.google.cloud.automl.v1beta1.TranslationAnnotation, com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder> getTranslationFieldBuilder() { if (translationBuilder_ == null) { if (!(detailCase_ == 2)) { detail_ = com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance(); } - translationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationAnnotation, - com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, - com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder>( + translationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TranslationAnnotation, com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder>( (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 2; - onChanged(); - ; + onChanged();; return translationBuilder_; } 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> - classificationBuilder_; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder> classificationBuilder_; /** - * - * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; - * * @return Whether the classification field is set. */ @java.lang.Override @@ -1733,45 +1471,35 @@ public boolean hasClassification() { return detailCase_ == 3; } /** - * - * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; - * * @return The classification. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - getClassification() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassification() { if (classificationBuilder_ == null) { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) - detail_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); } else { if (detailCase_ == 3) { return classificationBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ - public Builder setClassification( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { + public Builder setClassification(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { if (classificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1785,8 +1513,6 @@ public Builder setClassification( return this; } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1794,8 +1520,7 @@ public Builder setClassification( * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ public Builder setClassification( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder builderForValue) { if (classificationBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); @@ -1806,28 +1531,18 @@ public Builder setClassification( return this; } /** - * - * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ - public Builder mergeClassification( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { + public Builder mergeClassification(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { if (classificationBuilder_ == null) { - if (detailCase_ == 3 - && detail_ - != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance()) { - detail_ = - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .newBuilder( - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) - detail_) - .mergeFrom(value) - .buildPartial(); + if (detailCase_ == 3 && + detail_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance()) { + detail_ = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.newBuilder((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_) + .mergeFrom(value).buildPartial(); } else { detail_ = value; } @@ -1842,8 +1557,6 @@ public Builder mergeClassification( return this; } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1867,21 +1580,16 @@ public Builder clearClassification() { return this; } /** - * - * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder - getClassificationBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder getClassificationBuilder() { return getClassificationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1889,22 +1597,17 @@ public Builder clearClassification() { * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder - getClassificationOrBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationOrBuilder() { if ((detailCase_ == 3) && (classificationBuilder_ != null)) { return classificationBuilder_.getMessageOrBuilder(); } else { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) - detail_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation details for content or image classification.
      * 
@@ -1912,50 +1615,32 @@ public Builder clearClassification() { * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ 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> + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder> getClassificationFieldBuilder() { if (classificationBuilder_ == null) { if (!(detailCase_ == 3)) { - detail_ = - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance(); - } - classificationBuilder_ = - 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>( - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) - detail_, + detail_ = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); + } + classificationBuilder_ = 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>( + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 3; - onChanged(); - ; + onChanged();; 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; * @return Whether the imageObjectDetection field is set. */ @java.lang.Override @@ -1963,20 +1648,15 @@ public boolean hasImageObjectDetection() { return detailCase_ == 4; } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; * @return The imageObjectDetection. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation - getImageObjectDetection() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation getImageObjectDetection() { if (imageObjectDetectionBuilder_ == null) { if (detailCase_ == 4) { return (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_; @@ -1990,17 +1670,13 @@ public boolean hasImageObjectDetection() { } } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; */ - public Builder setImageObjectDetection( - com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation value) { + public Builder setImageObjectDetection(com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation value) { if (imageObjectDetectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2014,14 +1690,11 @@ public Builder setImageObjectDetection( return this; } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; */ public Builder setImageObjectDetection( com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder builderForValue) { @@ -2035,27 +1708,18 @@ public Builder setImageObjectDetection( return this; } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; */ - public Builder mergeImageObjectDetection( - com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation value) { + 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(); + 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; } @@ -2070,14 +1734,11 @@ public Builder mergeImageObjectDetection( return this; } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; */ public Builder clearImageObjectDetection() { if (imageObjectDetectionBuilder_ == null) { @@ -2096,32 +1757,24 @@ public Builder clearImageObjectDetection() { return this; } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; */ - public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder - getImageObjectDetectionBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder - getImageObjectDetectionOrBuilder() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder() { if ((detailCase_ == 4) && (imageObjectDetectionBuilder_ != null)) { return imageObjectDetectionBuilder_.getMessageOrBuilder(); } else { @@ -2132,59 +1785,40 @@ public Builder clearImageObjectDetection() { } } /** - * - * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .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> + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; * @return Whether the videoClassification field is set. */ @java.lang.Override @@ -2192,49 +1826,37 @@ public boolean hasVideoClassification() { return detailCase_ == 9; } /** - * - * *
      * Annotation details for video classification.
      * Returned for Video Classification predictions.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; * @return The videoClassification. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation - getVideoClassification() { + 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) detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation - .getDefaultInstance(); + 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(); + 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; - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; */ - public Builder setVideoClassification( - com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation value) { + public Builder setVideoClassification(com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation value) { if (videoClassificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2248,19 +1870,15 @@ public Builder setVideoClassification( return this; } /** - * - * *
      * Annotation details for video classification.
      * Returned for Video Classification predictions.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; */ public Builder setVideoClassification( - com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.Builder builderForValue) { if (videoClassificationBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); @@ -2271,31 +1889,19 @@ public Builder setVideoClassification( return this; } /** - * - * *
      * Annotation details for video classification.
      * Returned for Video Classification predictions.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; */ - public Builder mergeVideoClassification( - com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation value) { + 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(); + 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; } @@ -2310,15 +1916,12 @@ public Builder mergeVideoClassification( return this; } /** - * - * *
      * Annotation details for video classification.
      * Returned for Video Classification predictions.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; */ public Builder clearVideoClassification() { if (videoClassificationBuilder_ == null) { @@ -2337,104 +1940,70 @@ public Builder clearVideoClassification() { return this; } /** - * - * *
      * Annotation details for video classification.
      * Returned for Video Classification predictions.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.Builder - getVideoClassificationBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto - .VideoClassificationAnnotationOrBuilder - getVideoClassificationOrBuilder() { + 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) detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation - .getDefaultInstance(); + 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; - * + * .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> + 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_, + 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(); - ; + onChanged();; return videoClassificationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder> - videoObjectTrackingBuilder_; + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder> videoObjectTrackingBuilder_; /** - * - * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; * @return Whether the videoObjectTracking field is set. */ @java.lang.Override @@ -2442,15 +2011,11 @@ public boolean hasVideoObjectTracking() { return detailCase_ == 8; } /** - * - * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; * @return The videoObjectTracking. */ @java.lang.Override @@ -2468,17 +2033,13 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getVideoObj } } /** - * - * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; */ - public Builder setVideoObjectTracking( - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation value) { + public Builder setVideoObjectTracking(com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation value) { if (videoObjectTrackingBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2492,14 +2053,11 @@ public Builder setVideoObjectTracking( return this; } /** - * - * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; */ public Builder setVideoObjectTracking( com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder builderForValue) { @@ -2513,27 +2071,18 @@ public Builder setVideoObjectTracking( return this; } /** - * - * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; */ - public Builder mergeVideoObjectTracking( - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation value) { + public Builder mergeVideoObjectTracking(com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation value) { if (videoObjectTrackingBuilder_ == null) { - if (detailCase_ == 8 - && detail_ - != com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation - .getDefaultInstance()) { - detail_ = - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.newBuilder( - (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_) - .mergeFrom(value) - .buildPartial(); + if (detailCase_ == 8 && + detail_ != com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance()) { + detail_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.newBuilder((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_) + .mergeFrom(value).buildPartial(); } else { detail_ = value; } @@ -2548,14 +2097,11 @@ public Builder mergeVideoObjectTracking( return this; } /** - * - * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; */ public Builder clearVideoObjectTracking() { if (videoObjectTrackingBuilder_ == null) { @@ -2574,32 +2120,24 @@ public Builder clearVideoObjectTracking() { return this; } /** - * - * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; */ - public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder - getVideoObjectTrackingBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder getVideoObjectTrackingBuilder() { return getVideoObjectTrackingFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder - getVideoObjectTrackingOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingOrBuilder() { if ((detailCase_ == 8) && (videoObjectTrackingBuilder_ != null)) { return videoObjectTrackingBuilder_.getMessageOrBuilder(); } else { @@ -2610,55 +2148,39 @@ public Builder clearVideoObjectTracking() { } } /** - * - * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder> + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder> getVideoObjectTrackingFieldBuilder() { if (videoObjectTrackingBuilder_ == null) { if (!(detailCase_ == 8)) { - detail_ = - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); - } - videoObjectTrackingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder>( + detail_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); + } + videoObjectTrackingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder>( (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 8; - onChanged(); - ; + onChanged();; return videoObjectTrackingBuilder_; } 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_; + 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; - * * @return Whether the textExtraction field is set. */ @java.lang.Override @@ -2666,14 +2188,11 @@ public boolean hasTextExtraction() { return detailCase_ == 6; } /** - * - * *
      * Annotation details for text extraction.
      * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; - * * @return The textExtraction. */ @java.lang.Override @@ -2691,16 +2210,13 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotation getTextExtractio } } /** - * - * *
      * Annotation details for text extraction.
      * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; */ - public Builder setTextExtraction( - com.google.cloud.automl.v1beta1.TextExtractionAnnotation value) { + public Builder setTextExtraction(com.google.cloud.automl.v1beta1.TextExtractionAnnotation value) { if (textExtractionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2714,8 +2230,6 @@ public Builder setTextExtraction( return this; } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -2734,25 +2248,18 @@ public Builder setTextExtraction( 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) { + 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(); + 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; } @@ -2767,8 +2274,6 @@ public Builder mergeTextExtraction( return this; } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -2792,21 +2297,16 @@ public Builder clearTextExtraction() { return this; } /** - * - * *
      * Annotation details for text extraction.
      * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; */ - public com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder - getTextExtractionBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder getTextExtractionBuilder() { return getTextExtractionFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -2814,8 +2314,7 @@ public Builder clearTextExtraction() { * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder - getTextExtractionOrBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder() { if ((detailCase_ == 6) && (textExtractionBuilder_ != null)) { return textExtractionBuilder_.getMessageOrBuilder(); } else { @@ -2826,8 +2325,6 @@ public Builder clearTextExtraction() { } } /** - * - * *
      * Annotation details for text extraction.
      * 
@@ -2835,44 +2332,32 @@ public Builder clearTextExtraction() { * .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> + 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>( + 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(); - ; + 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_; + 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; - * * @return Whether the textSentiment field is set. */ @java.lang.Override @@ -2880,45 +2365,35 @@ public boolean hasTextSentiment() { return detailCase_ == 7; } /** - * - * *
      * Annotation details for text sentiment.
      * 
* * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; - * * @return The textSentiment. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation - getTextSentiment() { + 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) detail_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation - .getDefaultInstance(); + 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(); + 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) { + public Builder setTextSentiment(com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation value) { if (textSentimentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2932,8 +2407,6 @@ public Builder setTextSentiment( return this; } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -2941,8 +2414,7 @@ public Builder setTextSentiment( * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; */ public Builder setTextSentiment( - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder builderForValue) { if (textSentimentBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); @@ -2953,27 +2425,18 @@ public Builder setTextSentiment( 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) { + 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(); + 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; } @@ -2988,8 +2451,6 @@ public Builder mergeTextSentiment( return this; } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -3013,21 +2474,16 @@ public Builder clearTextSentiment() { 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() { + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder getTextSentimentBuilder() { return getTextSentimentFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -3035,22 +2491,17 @@ public Builder clearTextSentiment() { * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder - getTextSentimentOrBuilder() { + 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) detail_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation details for text sentiment.
      * 
@@ -3058,48 +2509,32 @@ public Builder clearTextSentiment() { * .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> + 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_, + 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(); - ; + 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_; + 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; - * * @return Whether the tables field is set. */ @java.lang.Override @@ -3107,14 +2542,11 @@ public boolean hasTables() { return detailCase_ == 10; } /** - * - * *
      * Annotation details for Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; - * * @return The tables. */ @java.lang.Override @@ -3132,8 +2564,6 @@ public com.google.cloud.automl.v1beta1.TablesAnnotation getTables() { } } /** - * - * *
      * Annotation details for Tables.
      * 
@@ -3154,8 +2584,6 @@ public Builder setTables(com.google.cloud.automl.v1beta1.TablesAnnotation value) return this; } /** - * - * *
      * Annotation details for Tables.
      * 
@@ -3174,8 +2602,6 @@ public Builder setTables( return this; } /** - * - * *
      * Annotation details for Tables.
      * 
@@ -3184,13 +2610,10 @@ public Builder setTables( */ 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(); + 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; } @@ -3205,8 +2628,6 @@ public Builder mergeTables(com.google.cloud.automl.v1beta1.TablesAnnotation valu return this; } /** - * - * *
      * Annotation details for Tables.
      * 
@@ -3230,8 +2651,6 @@ public Builder clearTables() { return this; } /** - * - * *
      * Annotation details for Tables.
      * 
@@ -3242,8 +2661,6 @@ public com.google.cloud.automl.v1beta1.TablesAnnotation.Builder getTablesBuilder return getTablesFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation details for Tables.
      * 
@@ -3262,8 +2679,6 @@ public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuil } } /** - * - * *
      * Annotation details for Tables.
      * 
@@ -3271,34 +2686,26 @@ public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuil * .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> + 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>( + 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(); - ; + onChanged();; return tablesBuilder_; } private java.lang.Object annotationSpecId_ = ""; /** - * - * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -3306,13 +2713,13 @@ public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuil
      * 
* * string annotation_spec_id = 1; - * * @return The annotationSpecId. */ public java.lang.String getAnnotationSpecId() { java.lang.Object ref = annotationSpecId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; @@ -3321,8 +2728,6 @@ public java.lang.String getAnnotationSpecId() { } } /** - * - * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -3330,14 +2735,15 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 1; - * * @return The bytes for annotationSpecId. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -3345,8 +2751,6 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { } } /** - * - * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -3354,22 +2758,20 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
      * 
* * string annotation_spec_id = 1; - * * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId(java.lang.String value) { + public Builder setAnnotationSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecId_ = value; onChanged(); return this; } /** - * - * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -3377,18 +2779,15 @@ public Builder setAnnotationSpecId(java.lang.String value) {
      * 
* * string annotation_spec_id = 1; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { - + annotationSpecId_ = getDefaultInstance().getAnnotationSpecId(); onChanged(); return this; } /** - * - * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -3396,16 +2795,16 @@ public Builder clearAnnotationSpecId() {
      * 
* * string annotation_spec_id = 1; - * * @param value The bytes for annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecId_ = value; onChanged(); return this; @@ -3413,8 +2812,6 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -3425,13 +2822,13 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 5; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3440,8 +2837,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -3452,14 +2847,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -3467,8 +2863,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -3479,22 +2873,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 5; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -3505,18 +2897,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 5; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -3527,23 +2916,23 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 5; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3553,12 +2942,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.AnnotationPayload) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.AnnotationPayload) private static final com.google.cloud.automl.v1beta1.AnnotationPayload DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.AnnotationPayload(); } @@ -3567,16 +2956,16 @@ public static com.google.cloud.automl.v1beta1.AnnotationPayload getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationPayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationPayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationPayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3591,4 +2980,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.AnnotationPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java similarity index 81% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java index f22edd3d4..70c9c1eae 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/annotation_payload.proto package com.google.cloud.automl.v1beta1; -public interface AnnotationPayloadOrBuilder - extends +public interface AnnotationPayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.AnnotationPayload) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; - * * @return Whether the translation field is set. */ boolean hasTranslation(); /** - * - * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; - * * @return The translation. */ com.google.cloud.automl.v1beta1.TranslationAnnotation getTranslation(); /** - * - * *
    * Annotation details for translation.
    * 
@@ -59,189 +35,135 @@ public interface AnnotationPayloadOrBuilder com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder getTranslationOrBuilder(); /** - * - * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; - * * @return Whether the classification field is set. */ boolean hasClassification(); /** - * - * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; - * * @return The classification. */ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassification(); /** - * - * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder - getClassificationOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationOrBuilder(); /** - * - * *
    * Annotation details for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; * @return Whether the imageObjectDetection field is set. */ boolean hasImageObjectDetection(); /** - * - * *
    * Annotation details for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; * @return The imageObjectDetection. */ com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation getImageObjectDetection(); /** - * - * *
    * Annotation details for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder - getImageObjectDetectionOrBuilder(); + 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; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; * @return Whether the videoClassification field is set. */ boolean hasVideoClassification(); /** - * - * *
    * Annotation details for video classification.
    * Returned for Video Classification predictions.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; * @return The videoClassification. */ - com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation - getVideoClassification(); + 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; - * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; */ - com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotationOrBuilder - getVideoClassificationOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotationOrBuilder getVideoClassificationOrBuilder(); /** - * - * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; * @return Whether the videoObjectTracking field is set. */ boolean hasVideoObjectTracking(); /** - * - * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; * @return The videoObjectTracking. */ com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getVideoObjectTracking(); /** - * - * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder - getVideoObjectTrackingOrBuilder(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingOrBuilder(); /** - * - * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; - * * @return Whether the textExtraction field is set. */ boolean hasTextExtraction(); /** - * - * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; - * * @return The textExtraction. */ com.google.cloud.automl.v1beta1.TextExtractionAnnotation getTextExtraction(); /** - * - * *
    * Annotation details for text extraction.
    * 
@@ -251,68 +173,51 @@ public interface AnnotationPayloadOrBuilder com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder(); /** - * - * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; - * * @return Whether the textSentiment field is set. */ boolean hasTextSentiment(); /** - * - * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; - * * @return The textSentiment. */ 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(); + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder(); /** - * - * *
    * Annotation details for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; - * * @return Whether the tables field is set. */ boolean hasTables(); /** - * - * *
    * Annotation details for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; - * * @return The tables. */ com.google.cloud.automl.v1beta1.TablesAnnotation getTables(); /** - * - * *
    * Annotation details for Tables.
    * 
@@ -322,8 +227,6 @@ public interface AnnotationPayloadOrBuilder com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuilder(); /** - * - * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -331,13 +234,10 @@ public interface AnnotationPayloadOrBuilder
    * 
* * string annotation_spec_id = 1; - * * @return The annotationSpecId. */ java.lang.String getAnnotationSpecId(); /** - * - * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -345,14 +245,12 @@ public interface AnnotationPayloadOrBuilder
    * 
* * string annotation_spec_id = 1; - * * @return The bytes for annotationSpecId. */ - com.google.protobuf.ByteString getAnnotationSpecIdBytes(); + com.google.protobuf.ByteString + getAnnotationSpecIdBytes(); /** - * - * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -363,13 +261,10 @@ public interface AnnotationPayloadOrBuilder
    * 
* * string display_name = 5; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -380,10 +275,10 @@ public interface AnnotationPayloadOrBuilder
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); public com.google.cloud.automl.v1beta1.AnnotationPayload.DetailCase getDetailCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java new file mode 100644 index 000000000..860ab03bc --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/annotation_payload.proto + +package com.google.cloud.automl.v1beta1; + +public final class AnnotationPayloadOuterClass { + private AnnotationPayloadOuterClass() {} + 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_AnnotationPayload_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/automl/v1beta1/annotation" + + "_payload.proto\022\033google.cloud.automl.v1be" + + "ta1\0320google/cloud/automl/v1beta1/classif" + + "ication.proto\032+google/cloud/automl/v1bet" + + "a1/detection.proto\032(google/cloud/automl/" + + "v1beta1/tables.proto\0321google/cloud/autom" + + "l/v1beta1/text_extraction.proto\0320google/" + + "cloud/automl/v1beta1/text_sentiment.prot" + + "o\032-google/cloud/automl/v1beta1/translati" + + "on.proto\032\031google/protobuf/any.proto\032\034goo" + + "gle/api/annotations.proto\"\346\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\022[\n\025video_" + + "object_tracking\030\010 \001(\0132:.google.cloud.aut" + + "oml.v1beta1.VideoObjectTrackingAnnotatio" + + "nH\000\022P\n\017text_extraction\030\006 \001(\01325.google.cl" + + "oud.automl.v1beta1.TextExtractionAnnotat" + + "ionH\000\022N\n\016text_sentiment\030\007 \001(\01324.google.c" + + "loud.automl.v1beta1.TextSentimentAnnotat" + + "ionH\000\022?\n\006tables\030\n \001(\0132-.google.cloud.aut" + + "oml.v1beta1.TablesAnnotationH\000\022\032\n\022annota" + + "tion_spec_id\030\001 \001(\t\022\024\n\014display_name\030\005 \001(\t" + + "B\010\n\006detailB\245\001\n\037com.google.cloud.automl.v" + + "1beta1P\001ZAgoogle.golang.org/genproto/goo" + + "gleapis/cloud/automl/v1beta1;automl\312\002\033Go" + + "ogle\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Clou" + + "d::AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + 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(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor, + new java.lang.String[] { "Translation", "Classification", "ImageObjectDetection", "VideoClassification", "VideoObjectTracking", "TextExtraction", "TextSentiment", "Tables", "AnnotationSpecId", "DisplayName", "Detail", }); + 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(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java index 96c46d347..2242b8881 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/annotation_spec.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * A definition of an annotation spec.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.AnnotationSpec} */ -public final class AnnotationSpec extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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_ = ""; @@ -44,15 +26,16 @@ private AnnotationSpec() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotationSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotationSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,64 +54,58 @@ private AnnotationSpec( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - 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; + 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); + 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.AnnotationSpecOuterClass - .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass - .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.AnnotationSpec.class, - com.google.cloud.automl.v1beta1.AnnotationSpec.Builder.class); + 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:
@@ -136,7 +113,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -145,15 +121,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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:
@@ -161,15 +136,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -180,15 +156,12 @@ public com.google.protobuf.ByteString getNameBytes() { 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -197,30 +170,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -231,15 +204,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { 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; - * * @return The exampleCount. */ @java.lang.Override @@ -248,7 +218,6 @@ public int getExampleCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -286,7 +256,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (exampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, exampleCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, exampleCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -296,17 +267,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; } @@ -329,127 +302,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A definition of an annotation spec.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.AnnotationSpec} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + 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.AnnotationSpecOuterClass - .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass - .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.AnnotationSpec.class, - com.google.cloud.automl.v1beta1.AnnotationSpec.Builder.class); + com.google.cloud.automl.v1beta1.AnnotationSpec.class, com.google.cloud.automl.v1beta1.AnnotationSpec.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.AnnotationSpec.newBuilder() @@ -457,15 +421,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass - .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; } @java.lang.Override @@ -500,8 +465,7 @@ public com.google.cloud.automl.v1beta1.AnnotationSpec build() { @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); + com.google.cloud.automl.v1beta1.AnnotationSpec result = new com.google.cloud.automl.v1beta1.AnnotationSpec(this); result.name_ = name_; result.displayName_ = displayName_; result.exampleCount_ = exampleCount_; @@ -513,39 +477,38 @@ public com.google.cloud.automl.v1beta1.AnnotationSpec buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.AnnotationSpec)other); } else { super.mergeFrom(other); return this; @@ -596,8 +559,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -605,13 +566,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -620,8 +581,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -629,14 +588,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -644,8 +604,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -653,22 +611,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -676,18 +632,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -695,16 +648,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -712,21 +665,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -735,22 +686,21 @@ public 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -758,80 +708,70 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The name of the annotation spec to show in the interface. The name can be
      * up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int exampleCount_; + private int exampleCount_ ; /** - * - * *
      * Output only. The number of examples in the parent dataset
      * labeled by the annotation spec.
      * 
* * int32 example_count = 9; - * * @return The exampleCount. */ @java.lang.Override @@ -839,45 +779,39 @@ public int getExampleCount() { return exampleCount_; } /** - * - * *
      * Output only. The number of examples in the parent dataset
      * labeled by the annotation spec.
      * 
* * int32 example_count = 9; - * * @param value The exampleCount to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +821,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -901,16 +835,16 @@ 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); - } - }; + 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; @@ -925,4 +859,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.AnnotationSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java index 439b1e004..c68f39581 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/annotation_spec.proto package com.google.cloud.automl.v1beta1; -public interface AnnotationSpecOrBuilder - extends +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:
@@ -33,13 +15,10 @@ public interface AnnotationSpecOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the annotation spec.
    * Form:
@@ -47,48 +26,40 @@ public interface AnnotationSpecOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; - * * @return The displayName. */ 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The number of examples in the parent dataset
    * labeled by the annotation spec.
    * 
* * int32 example_count = 9; - * * @return The exampleCount. */ int getExampleCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java new file mode 100644 index 000000000..221ed2a92 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/annotation_spec.proto + +package com.google.cloud.automl.v1beta1; + +public final class AnnotationSpecOuterClass { + private AnnotationSpecOuterClass() {} + 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_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; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/automl/v1beta1/annotation" + + "_spec.proto\022\033google.cloud.automl.v1beta1" + + "\032\031google/api/resource.proto\032\034google/api/" + + "annotations.proto\"\326\001\n\016AnnotationSpec\022\014\n\004" + + "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\025\n\rexam" + + "ple_count\030\t \001(\005:\210\001\352A\204\001\n$automl.googleapi" + + "s.com/AnnotationSpec\022\\projects/{project}" + + "/locations/{location}/datasets/{dataset}" + + "/annotationSpecs/{annotation_spec}B\245\001\n\037c" + + "om.google.cloud.automl.v1beta1P\001ZAgoogle" + + ".golang.org/genproto/googleapis/cloud/au" + + "toml/v1beta1;automl\312\002\033Google\\Cloud\\AutoM" + + "l\\V1beta1\352\002\036Google::Cloud::AutoML::V1bet" + + "a1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + 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.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java similarity index 70% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java index 8ed24969e..fe718839c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use ArrayStats.newBuilder() to construct. private ArrayStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ArrayStats() {} + private ArrayStats() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ArrayStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ArrayStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,68 +52,60 @@ private ArrayStats( 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; + case 18: { + com.google.cloud.automl.v1beta1.DataStats.Builder subBuilder = null; + if (memberStats_ != null) { + subBuilder = memberStats_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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; - * * @return Whether the memberStats field is set. */ @java.lang.Override @@ -137,26 +113,19 @@ 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; - * * @return The memberStats. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DataStats getMemberStats() { - return memberStats_ == null - ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() - : memberStats_; + 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.
@@ -170,7 +139,6 @@ public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getMemberStatsOrBuilde
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -182,7 +150,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (memberStats_ != null) {
       output.writeMessage(2, getMemberStats());
     }
@@ -196,7 +165,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (memberStats_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMemberStats());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getMemberStats());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -206,17 +176,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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;
+    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 (!getMemberStats()
+          .equals(other.getMemberStats())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -238,127 +208,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom(java.nio.ByteBuffer data)
+  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)
+      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)
+      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);
+    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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ArrayStats.class, com.google.cloud.automl.v1beta1.ArrayStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ArrayStats.newBuilder() @@ -366,15 +327,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +350,9 @@ public Builder clear() { } @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; + 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 @@ -409,8 +371,7 @@ public com.google.cloud.automl.v1beta1.ArrayStats build() { @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); + com.google.cloud.automl.v1beta1.ArrayStats result = new com.google.cloud.automl.v1beta1.ArrayStats(this); if (memberStatsBuilder_ == null) { result.memberStats_ = memberStats_; } else { @@ -424,39 +385,38 @@ public com.google.cloud.automl.v1beta1.ArrayStats buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ArrayStats)other); } else { super.mergeFrom(other); return this; @@ -499,49 +459,36 @@ public Builder mergeFrom( 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_; + 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; - * * @return Whether the memberStats field is set. */ 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; - * * @return The memberStats. */ public com.google.cloud.automl.v1beta1.DataStats getMemberStats() { if (memberStatsBuilder_ == null) { - return memberStats_ == null - ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() - : memberStats_; + 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.
@@ -563,8 +510,6 @@ public Builder setMemberStats(com.google.cloud.automl.v1beta1.DataStats 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.
@@ -584,8 +529,6 @@ public Builder setMemberStats(
       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.
@@ -597,9 +540,7 @@ 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();
+            com.google.cloud.automl.v1beta1.DataStats.newBuilder(memberStats_).mergeFrom(value).buildPartial();
         } else {
           memberStats_ = value;
         }
@@ -611,8 +552,6 @@ public Builder mergeMemberStats(com.google.cloud.automl.v1beta1.DataStats 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.
@@ -632,8 +571,6 @@ public Builder clearMemberStats() {
       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.
@@ -642,13 +579,11 @@ public Builder clearMemberStats() {
      * .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.
@@ -660,14 +595,11 @@ public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getMemberStatsOrBuilde
       if (memberStatsBuilder_ != null) {
         return memberStatsBuilder_.getMessageOrBuilder();
       } else {
-        return memberStats_ == null
-            ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance()
-            : memberStats_;
+        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.
@@ -676,24 +608,21 @@ public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getMemberStatsOrBuilde
      * .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>
+        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());
+        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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -703,12 +632,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -717,16 +646,16 @@ 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);
-        }
-      };
+  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;
@@ -741,4 +670,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.ArrayStats getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java
similarity index 66%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java
index 62b72935c..84e5aefa6 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+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; - * * @return Whether the memberStats field is set. */ 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; - * * @return The memberStats. */ 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.
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java
new file mode 100644
index 000000000..bfb37a4f5
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java
@@ -0,0 +1,643 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1beta1/service.proto
+
+package com.google.cloud.automl.v1beta1;
+
+public final class AutoMlProto {
+  private AutoMlProto() {}
+  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_CreateDatasetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    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
+      internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    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
+      internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    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
+      internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_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/service.pr" +
+      "oto\022\033google.cloud.automl.v1beta1\032\034google" +
+      "/api/annotations.proto\032\027google/api/clien" +
+      "t.proto\032\037google/api/field_behavior.proto" +
+      "\032\031google/api/resource.proto\0324google/clou" +
+      "d/automl/v1beta1/annotation_payload.prot" +
+      "o\0321google/cloud/automl/v1beta1/annotatio" +
+      "n_spec.proto\032-google/cloud/automl/v1beta" +
+      "1/column_spec.proto\032)google/cloud/automl" +
+      "/v1beta1/dataset.proto\032\'google/cloud/aut" +
+      "oml/v1beta1/image.proto\032$google/cloud/au" +
+      "toml/v1beta1/io.proto\032\'google/cloud/auto" +
+      "ml/v1beta1/model.proto\0322google/cloud/aut" +
+      "oml/v1beta1/model_evaluation.proto\032,goog" +
+      "le/cloud/automl/v1beta1/operations.proto" +
+      "\032,google/cloud/automl/v1beta1/table_spec" +
+      ".proto\032#google/longrunning/operations.pr" +
+      "oto\032 google/protobuf/field_mask.proto\"\215\001" +
+      "\n\024CreateDatasetRequest\0229\n\006parent\030\001 \001(\tB)" +
+      "\340A\002\372A#\n!locations.googleapis.com/Locatio" +
+      "n\022:\n\007dataset\030\002 \001(\0132$.google.cloud.automl" +
+      ".v1beta1.DatasetB\003\340A\002\"H\n\021GetDatasetReque" +
+      "st\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googlea" +
+      "pis.com/Dataset\"\207\001\n\023ListDatasetsRequest\022" +
+      "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" +
+      "eapis.com/Location\022\016\n\006filter\030\003 \001(\t\022\021\n\tpa" +
+      "ge_size\030\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"g\n\024Lis" +
+      "tDatasetsResponse\0226\n\010datasets\030\001 \003(\0132$.go" +
+      "ogle.cloud.automl.v1beta1.Dataset\022\027\n\017nex" +
+      "t_page_token\030\002 \001(\t\"\203\001\n\024UpdateDatasetRequ" +
+      "est\022:\n\007dataset\030\001 \001(\0132$.google.cloud.auto" +
+      "ml.v1beta1.DatasetB\003\340A\002\022/\n\013update_mask\030\002" +
+      " \001(\0132\032.google.protobuf.FieldMask\"K\n\024Dele" +
+      "teDatasetRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035" +
+      "automl.googleapis.com/Dataset\"\215\001\n\021Import" +
+      "DataRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035autom" +
+      "l.googleapis.com/Dataset\022C\n\014input_config" +
+      "\030\003 \001(\0132(.google.cloud.automl.v1beta1.Inp" +
+      "utConfigB\003\340A\002\"\217\001\n\021ExportDataRequest\0223\n\004n" +
+      "ame\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleapis.com" +
+      "/Dataset\022E\n\routput_config\030\003 \001(\0132).google" +
+      ".cloud.automl.v1beta1.OutputConfigB\003\340A\002\"" +
+      "V\n\030GetAnnotationSpecRequest\022:\n\004name\030\001 \001(" +
+      "\tB,\340A\002\372A&\n$automl.googleapis.com/Annotat" +
+      "ionSpec\"|\n\023GetTableSpecRequest\0225\n\004name\030\001" +
+      " \001(\tB\'\340A\002\372A!\n\037automl.googleapis.com/Tabl" +
+      "eSpec\022.\n\nfield_mask\030\002 \001(\0132\032.google.proto" +
+      "buf.FieldMask\"\265\001\n\025ListTableSpecsRequest\022" +
+      "5\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleap" +
+      "is.com/Dataset\022.\n\nfield_mask\030\002 \001(\0132\032.goo" +
+      "gle.protobuf.FieldMask\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\"n\n" +
+      "\026ListTableSpecsResponse\022;\n\013table_specs\030\001" +
+      " \003(\0132&.google.cloud.automl.v1beta1.Table" +
+      "Spec\022\027\n\017next_page_token\030\002 \001(\t\"\212\001\n\026Update" +
+      "TableSpecRequest\022?\n\ntable_spec\030\001 \001(\0132&.g" +
+      "oogle.cloud.automl.v1beta1.TableSpecB\003\340A" +
+      "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" +
+      ".FieldMask\"~\n\024GetColumnSpecRequest\0226\n\004na" +
+      "me\030\001 \001(\tB(\340A\002\372A\"\n automl.googleapis.com/" +
+      "ColumnSpec\022.\n\nfield_mask\030\002 \001(\0132\032.google." +
+      "protobuf.FieldMask\"\270\001\n\026ListColumnSpecsRe" +
+      "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037automl.go" +
+      "ogleapis.com/TableSpec\022.\n\nfield_mask\030\002 \001" +
+      "(\0132\032.google.protobuf.FieldMask\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\"q\n\027ListColumnSpecsResponse\022=\n\014colu" +
+      "mn_specs\030\001 \003(\0132\'.google.cloud.automl.v1b" +
+      "eta1.ColumnSpec\022\027\n\017next_page_token\030\002 \001(\t" +
+      "\"\215\001\n\027UpdateColumnSpecRequest\022A\n\013column_s" +
+      "pec\030\001 \001(\0132\'.google.cloud.automl.v1beta1." +
+      "ColumnSpecB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" +
+      "oogle.protobuf.FieldMask\"\207\001\n\022CreateModel" +
+      "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locatio" +
+      "ns.googleapis.com/Location\0226\n\005model\030\004 \001(" +
+      "\0132\".google.cloud.automl.v1beta1.ModelB\003\340" +
+      "A\002\"D\n\017GetModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002" +
+      "\372A\035\n\033automl.googleapis.com/Model\"\205\001\n\021Lis" +
+      "tModelsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" +
+      "locations.googleapis.com/Location\022\016\n\006fil" +
+      "ter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_tok" +
+      "en\030\006 \001(\t\"`\n\022ListModelsResponse\0221\n\005model\030" +
+      "\001 \003(\0132\".google.cloud.automl.v1beta1.Mode" +
+      "l\022\027\n\017next_page_token\030\002 \001(\t\"G\n\022DeleteMode" +
+      "lRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.g" +
+      "oogleapis.com/Model\"\357\002\n\022DeployModelReque" +
+      "st\022\204\001\n0image_object_detection_model_depl" +
+      "oyment_metadata\030\002 \001(\0132H.google.cloud.aut" +
+      "oml.v1beta1.ImageObjectDetectionModelDep" +
+      "loymentMetadataH\000\022\201\001\n.image_classificati" +
+      "on_model_deployment_metadata\030\004 \001(\0132G.goo" +
+      "gle.cloud.automl.v1beta1.ImageClassifica" +
+      "tionModelDeploymentMetadataH\000\0221\n\004name\030\001 " +
+      "\001(\tB#\340A\002\372A\035\n\033automl.googleapis.com/Model" +
+      "B\033\n\031model_deployment_metadata\"I\n\024Undeplo" +
+      "yModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033aut" +
+      "oml.googleapis.com/Model\"\231\001\n\022ExportModel" +
+      "Request\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.go" +
+      "ogleapis.com/Model\022P\n\routput_config\030\003 \001(" +
+      "\01324.google.cloud.automl.v1beta1.ModelExp" +
+      "ortOutputConfigB\003\340A\002\"\261\001\n\036ExportEvaluated" +
+      "ExamplesRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033a" +
+      "utoml.googleapis.com/Model\022\\\n\routput_con" +
+      "fig\030\003 \001(\0132@.google.cloud.automl.v1beta1." +
+      "ExportEvaluatedExamplesOutputConfigB\003\340A\002" +
+      "\"X\n\031GetModelEvaluationRequest\022;\n\004name\030\001 " +
+      "\001(\tB-\340A\002\372A\'\n%automl.googleapis.com/Model" +
+      "Evaluation\"\211\001\n\033ListModelEvaluationsReque" +
+      "st\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googl" +
+      "eapis.com/Model\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\034ListMo" +
+      "delEvaluationsResponse\022F\n\020model_evaluati" +
+      "on\030\001 \003(\0132,.google.cloud.automl.v1beta1.M" +
+      "odelEvaluation\022\027\n\017next_page_token\030\002 \001(\t2" +
+      "\355\'\n\006AutoMl\022\275\001\n\rCreateDataset\0221.google.cl" +
+      "oud.automl.v1beta1.CreateDatasetRequest\032" +
+      "$.google.cloud.automl.v1beta1.Dataset\"S\202" +
+      "\323\344\223\002<\"1/v1beta1/{parent=projects/*/locat" +
+      "ions/*}/datasets:\007dataset\332A\016parent,datas" +
+      "et\022\244\001\n\nGetDataset\022..google.cloud.automl." +
+      "v1beta1.GetDatasetRequest\032$.google.cloud" +
+      ".automl.v1beta1.Dataset\"@\202\323\344\223\0023\0221/v1beta" +
+      "1/{name=projects/*/locations/*/datasets/" +
+      "*}\332A\004name\022\267\001\n\014ListDatasets\0220.google.clou" +
+      "d.automl.v1beta1.ListDatasetsRequest\0321.g" +
+      "oogle.cloud.automl.v1beta1.ListDatasetsR" +
+      "esponse\"B\202\323\344\223\0023\0221/v1beta1/{parent=projec" +
+      "ts/*/locations/*}/datasets\332A\006parent\022\276\001\n\r" +
+      "UpdateDataset\0221.google.cloud.automl.v1be" +
+      "ta1.UpdateDatasetRequest\032$.google.cloud." +
+      "automl.v1beta1.Dataset\"T\202\323\344\223\002D29/v1beta1" +
+      "/{dataset.name=projects/*/locations/*/da" +
+      "tasets/*}:\007dataset\332A\007dataset\022\320\001\n\rDeleteD" +
+      "ataset\0221.google.cloud.automl.v1beta1.Del" +
+      "eteDatasetRequest\032\035.google.longrunning.O" +
+      "peration\"m\202\323\344\223\0023*1/v1beta1/{name=project" +
+      "s/*/locations/*/datasets/*}\332A\004name\312A*\n\025g" +
+      "oogle.protobuf.Empty\022\021OperationMetadata\022" +
+      "\346\001\n\nImportData\022..google.cloud.automl.v1b" +
+      "eta1.ImportDataRequest\032\035.google.longrunn" +
+      "ing.Operation\"\210\001\202\323\344\223\002A\"/v1beta1/{n" +
+      "ame=projects/*/locations/*/datasets/*/ta" +
+      "bleSpecs/*}\332A\004name\022\312\001\n\016ListTableSpecs\0222." +
+      "google.cloud.automl.v1beta1.ListTableSpe" +
+      "csRequest\0323.google.cloud.automl.v1beta1." +
+      "ListTableSpecsResponse\"O\202\323\344\223\002@\022>/v1beta1" +
+      "/{parent=projects/*/locations/*/datasets" +
+      "/*}/tableSpecs\332A\006parent\022\332\001\n\017UpdateTableS" +
+      "pec\0223.google.cloud.automl.v1beta1.Update" +
+      "TableSpecRequest\032&.google.cloud.automl.v" +
+      "1beta1.TableSpec\"j\202\323\344\223\002W2I/v1beta1/{tabl" +
+      "e_spec.name=projects/*/locations/*/datas" +
+      "ets/*/tableSpecs/*}:\ntable_spec\332A\ntable_" +
+      "spec\022\310\001\n\rGetColumnSpec\0221.google.cloud.au" +
+      "toml.v1beta1.GetColumnSpecRequest\032\'.goog" +
+      "le.cloud.automl.v1beta1.ColumnSpec\"[\202\323\344\223" +
+      "\002N\022L/v1beta1/{name=projects/*/locations/" +
+      "*/datasets/*/tableSpecs/*/columnSpecs/*}" +
+      "\332A\004name\022\333\001\n\017ListColumnSpecs\0223.google.clo" +
+      "ud.automl.v1beta1.ListColumnSpecsRequest" +
+      "\0324.google.cloud.automl.v1beta1.ListColum" +
+      "nSpecsResponse\"]\202\323\344\223\002N\022L/v1beta1/{parent" +
+      "=projects/*/locations/*/datasets/*/table" +
+      "Specs/*}/columnSpecs\332A\006parent\022\356\001\n\020Update" +
+      "ColumnSpec\0224.google.cloud.automl.v1beta1" +
+      ".UpdateColumnSpecRequest\032\'.google.cloud." +
+      "automl.v1beta1.ColumnSpec\"{\202\323\344\223\002g2X/v1be" +
+      "ta1/{column_spec.name=projects/*/locatio" +
+      "ns/*/datasets/*/tableSpecs/*/columnSpecs" +
+      "/*}:\013column_spec\332A\013column_spec\022\311\001\n\013Creat" +
+      "eModel\022/.google.cloud.automl.v1beta1.Cre" +
+      "ateModelRequest\032\035.google.longrunning.Ope" +
+      "ration\"j\202\323\344\223\0028\"//v1beta1/{parent=project" +
+      "s/*/locations/*}/models:\005model\332A\014parent," +
+      "model\312A\032\n\005Model\022\021OperationMetadata\022\234\001\n\010G" +
+      "etModel\022,.google.cloud.automl.v1beta1.Ge" +
+      "tModelRequest\032\".google.cloud.automl.v1be" +
+      "ta1.Model\">\202\323\344\223\0021\022//v1beta1/{name=projec" +
+      "ts/*/locations/*/models/*}\332A\004name\022\257\001\n\nLi" +
+      "stModels\022..google.cloud.automl.v1beta1.L" +
+      "istModelsRequest\032/.google.cloud.automl.v" +
+      "1beta1.ListModelsResponse\"@\202\323\344\223\0021\022//v1be" +
+      "ta1/{parent=projects/*/locations/*}/mode" +
+      "ls\332A\006parent\022\312\001\n\013DeleteModel\022/.google.clo" +
+      "ud.automl.v1beta1.DeleteModelRequest\032\035.g" +
+      "oogle.longrunning.Operation\"k\202\323\344\223\0021*//v1" +
+      "beta1/{name=projects/*/locations/*/model" +
+      "s/*}\332A\004name\312A*\n\025google.protobuf.Empty\022\021O" +
+      "perationMetadata\022\324\001\n\013DeployModel\022/.googl" +
+      "e.cloud.automl.v1beta1.DeployModelReques" +
+      "t\032\035.google.longrunning.Operation\"u\202\323\344\223\002;" +
+      "\"6/v1beta1/{name=projects/*/locations/*/" +
+      "models/*}:deploy:\001*\332A\004name\312A*\n\025google.pr" +
+      "otobuf.Empty\022\021OperationMetadata\022\332\001\n\rUnde" +
+      "ployModel\0221.google.cloud.automl.v1beta1." +
+      "UndeployModelRequest\032\035.google.longrunnin" +
+      "g.Operation\"w\202\323\344\223\002=\"8/v1beta1/{name=proj" +
+      "ects/*/locations/*/models/*}:undeploy:\001*" +
+      "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" +
+      "tionMetadata\022\343\001\n\013ExportModel\022/.google.cl" +
+      "oud.automl.v1beta1.ExportModelRequest\032\035." +
+      "google.longrunning.Operation\"\203\001\202\323\344\223\002;\"6/" +
+      "v1beta1/{name=projects/*/locations/*/mod" +
+      "els/*}:export:\001*\332A\022name,output_config\312A*" +
+      "\n\025google.protobuf.Empty\022\021OperationMetada" +
+      "ta\022\214\002\n\027ExportEvaluatedExamples\022;.google." +
+      "cloud.automl.v1beta1.ExportEvaluatedExam" +
+      "plesRequest\032\035.google.longrunning.Operati" +
+      "on\"\224\001\202\323\344\223\002L\"G/v1beta1/{name=projects/*/l" +
+      "ocations/*/models/*}:exportEvaluatedExam" +
+      "ples:\001*\332A\022name,output_config\312A*\n\025google." +
+      "protobuf.Empty\022\021OperationMetadata\022\315\001\n\022Ge" +
+      "tModelEvaluation\0226.google.cloud.automl.v" +
+      "1beta1.GetModelEvaluationRequest\032,.googl" +
+      "e.cloud.automl.v1beta1.ModelEvaluation\"Q" +
+      "\202\323\344\223\002D\022B/v1beta1/{name=projects/*/locati" +
+      "ons/*/models/*/modelEvaluations/*}\332A\004nam" +
+      "e\022\340\001\n\024ListModelEvaluations\0228.google.clou" +
+      "d.automl.v1beta1.ListModelEvaluationsReq" +
+      "uest\0329.google.cloud.automl.v1beta1.ListM" +
+      "odelEvaluationsResponse\"S\202\323\344\223\002D\022B/v1beta" +
+      "1/{parent=projects/*/locations/*/models/" +
+      "*}/modelEvaluations\332A\006parent\032I\312A\025automl." +
+      "googleapis.com\322A.https://www.googleapis." +
+      "com/auth/cloud-platformB\262\001\n\037com.google.c" +
+      "loud.automl.v1beta1B\013AutoMlProtoP\001ZAgoog" +
+      "le.golang.org/genproto/googleapis/cloud/" +
+      "automl/v1beta1;automl\312\002\033Google\\Cloud\\Aut" +
+      "oMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1b" +
+      "eta1b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor(),
+          com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.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(),
+        });
+    internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor,
+        new java.lang.String[] { "Parent", "Dataset", });
+    internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor,
+        new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", });
+    internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor,
+        new java.lang.String[] { "Datasets", "NextPageToken", });
+    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,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor =
+      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,
+        new java.lang.String[] { "Name", "InputConfig", });
+    internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor =
+      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(17);
+    internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor,
+        new java.lang.String[] { "Parent", "Model", });
+    internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor =
+      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,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor =
+      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,
+        new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", });
+    internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor =
+      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,
+        new java.lang.String[] { "Model", "NextPageToken", });
+    internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor =
+      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,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor =
+      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[] { "ImageObjectDetectionModelDeploymentMetadata", "ImageClassificationModelDeploymentMetadata", "Name", "ModelDeploymentMetadata", });
+    internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor =
+      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(26);
+    internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor =
+      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,
+        new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", });
+    internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor =
+      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,
+        new java.lang.String[] { "ModelEvaluation", "NextPageToken", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    registry.add(com.google.longrunning.OperationsProto.operationInfo);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor();
+    com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.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();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java
similarity index 80%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java
index 5f2b25df2..02ddc883c 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
@@ -217,29 +200,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictInputConfig}
  */
-public final class BatchPredictInputConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+private static final long serialVersionUID = 0L;
   // Use BatchPredictInputConfig.newBuilder() to construct.
   private BatchPredictInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchPredictInputConfig() {}
+  private BatchPredictInputConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchPredictInputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchPredictInputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -258,84 +242,75 @@ private BatchPredictInputConfig(
           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 10: {
+            com.google.cloud.automl.v1beta1.GcsSource.Builder subBuilder = null;
+            if (sourceCase_ == 1) {
+              subBuilder = ((com.google.cloud.automl.v1beta1.GcsSource) source_).toBuilder();
             }
-          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;
+            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();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      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;
+  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
+    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);
+            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,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_SOURCE(1),
     BIGQUERY_SOURCE(2),
     SOURCE_NOT_SET(0);
     private final int value;
-
     private SourceCase(int value) {
       this.value = value;
     }
@@ -351,36 +326,30 @@ public static SourceCase valueOf(int 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;
+        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 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; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -388,26 +357,21 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override 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) source_; } return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * 
@@ -417,21 +381,18 @@ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { @java.lang.Override 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) 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; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -439,26 +400,21 @@ public boolean hasBigquerySource() { return sourceCase_ == 2; } /** - * - * *
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; - * * @return The bigquerySource. */ @java.lang.Override 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) source_; } return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); } /** - * - * *
    * The BigQuery location for the input content.
    * 
@@ -468,13 +424,12 @@ public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { @java.lang.Override 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) source_; } return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -486,7 +441,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -503,14 +459,12 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.automl.v1beta1.GcsSource) source_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.automl.v1beta1.BigQuerySource) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -520,21 +474,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 2: - if (!getBigquerySource().equals(other.getBigquerySource())) return false; + if (!getBigquerySource() + .equals(other.getBigquerySource())) return false; break; case 0: default: @@ -568,104 +523,96 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.BatchPredictInputConfig prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -862,23 +809,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictInputConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.BatchPredictInputConfig.class, com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder()
@@ -886,15 +831,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -904,9 +850,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -925,8 +871,7 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.BatchPredictInputConfig result = new com.google.cloud.automl.v1beta1.BatchPredictInputConfig(this);
       if (sourceCase_ == 1) {
         if (gcsSourceBuilder_ == null) {
           result.source_ = source_;
@@ -950,39 +895,38 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictInputConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -990,23 +934,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictInputConfig other) {
-      if (other == com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance())
-        return this;
+      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;
-          }
+        case GCS_SOURCE: {
+          mergeGcsSource(other.getGcsSource());
+          break;
+        }
+        case BIGQUERY_SOURCE: {
+          mergeBigquerySource(other.getBigquerySource());
+          break;
+        }
+        case SOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1027,8 +967,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1beta1.BatchPredictInputConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictInputConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1037,12 +976,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-
-    public SourceCase getSourceCase() {
-      return SourceCase.forNumber(sourceCase_);
+    public SourceCase
+        getSourceCase() {
+      return SourceCase.forNumber(
+          sourceCase_);
     }
 
     public Builder clearSource() {
@@ -1052,20 +991,15 @@ public Builder clearSource() {
       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_;
+        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; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1073,14 +1007,11 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -1098,8 +1029,6 @@ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { } } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1120,15 +1049,14 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) { 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) { + public Builder setGcsSource( + com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1139,8 +1067,6 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder bu return this; } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1149,13 +1075,10 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder bu */ 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(); + 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; } @@ -1170,8 +1093,6 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) { return this; } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1195,8 +1116,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1207,8 +1126,6 @@ public com.google.cloud.automl.v1beta1.GcsSource.Builder getGcsSourceBuilder() { return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1227,8 +1144,6 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder( } } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1236,44 +1151,32 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder( * .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> + 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>( + 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(); - ; + 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_; + 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; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -1281,14 +1184,11 @@ public boolean hasBigquerySource() { return sourceCase_ == 2; } /** - * - * *
      * The BigQuery location for the input content.
      * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; - * * @return The bigquerySource. */ @java.lang.Override @@ -1306,8 +1206,6 @@ public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { } } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1328,8 +1226,6 @@ public Builder setBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySource return this; } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1348,8 +1244,6 @@ public Builder setBigquerySource( return this; } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1358,13 +1252,10 @@ public Builder setBigquerySource( */ 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(); + 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; } @@ -1379,8 +1270,6 @@ public Builder mergeBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySourc return this; } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1404,8 +1293,6 @@ public Builder clearBigquerySource() { return this; } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1416,8 +1303,6 @@ public com.google.cloud.automl.v1beta1.BigQuerySource.Builder getBigquerySourceB return getBigquerySourceFieldBuilder().getBuilder(); } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1436,8 +1321,6 @@ public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySource } } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1445,32 +1328,26 @@ public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySource * .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> + 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>( + 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(); - ; + onChanged();; return bigquerySourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1480,12 +1357,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1494,16 +1371,16 @@ public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig getDefault 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); - } - }; + 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; @@ -1518,4 +1395,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java similarity index 72% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java index 3ef53c40c..8a747a326 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location for the input content.
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.automl.v1beta1.GcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location for the input content.
    * 
@@ -59,32 +35,24 @@ public interface BatchPredictInputConfigOrBuilder com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; - * * @return Whether the bigquerySource field is set. */ boolean hasBigquerySource(); /** - * - * *
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; - * * @return The bigquerySource. */ com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource(); /** - * - * *
    * The BigQuery location for the input content.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java index 3a3e3bc25..4c545479a 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use BatchPredictOperationMetadata.newBuilder() to construct. private BatchPredictOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchPredictOperationMetadata() {} + private BatchPredictOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchPredictOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchPredictOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,201 +52,167 @@ private BatchPredictOperationMetadata( 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 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(); } - 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; + break; + } + case 18: { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.class, com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder.class); } - public interface BatchPredictOutputInfoOrBuilder - extends + 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; - * * @return Whether the gcsOutputDirectory field is set. */ boolean hasGcsOutputDirectory(); /** - * - * *
      * The full path of the Google Cloud Storage directory created, into which
      * the prediction output is written.
      * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ 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; - * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + 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; - * * @return Whether the bigqueryOutputDataset field is set. */ boolean hasBigqueryOutputDataset(); /** - * - * *
      * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
      * format, into which the prediction output is written.
      * 
* * string bigquery_output_dataset = 2; - * * @return The bigqueryOutputDataset. */ 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; - * * @return The bytes for bigqueryOutputDataset. */ - com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); + com.google.protobuf.ByteString + getBigqueryOutputDatasetBytes(); - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .OutputLocationCase - getOutputLocationCase(); + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.OutputLocationCase getOutputLocationCase(); } /** - * - * *
    * Further describes this batch predict's output.
    * Supplements
    * [BatchPredictOutputConfig][google.cloud.automl.v1beta1.BatchPredictOutputConfig].
    * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo} + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo} */ - public static final class BatchPredictOutputInfo extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + private static final long serialVersionUID = 0L; // Use BatchPredictOutputInfo.newBuilder() to construct. private BatchPredictOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchPredictOutputInfo() {} + private BatchPredictOutputInfo() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchPredictOutputInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchPredictOutputInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -281,68 +231,59 @@ private BatchPredictOutputInfo( 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; + 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); + 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; + 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 + 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); + 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, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_OUTPUT_DIRECTORY(1), BIGQUERY_OUTPUT_DATASET(2), OUTPUTLOCATION_NOT_SET(0); private final int value; - private OutputLocationCase(int value) { this.value = value; } @@ -358,52 +299,43 @@ public static OutputLocationCase valueOf(int 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; + 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 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; - * * @return Whether the gcsOutputDirectory field is set. */ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** - * - * *
      * The full path of the Google Cloud Storage directory created, into which
      * the prediction output is written.
      * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ public java.lang.String getGcsOutputDirectory() { @@ -414,7 +346,8 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -423,25 +356,24 @@ public 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; - * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -453,30 +385,24 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { 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; - * * @return Whether the bigqueryOutputDataset field is set. */ public boolean hasBigqueryOutputDataset() { return outputLocationCase_ == 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; - * * @return The bigqueryOutputDataset. */ public java.lang.String getBigqueryOutputDataset() { @@ -487,7 +413,8 @@ public java.lang.String getBigqueryOutputDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 2) { outputLocation_ = s; @@ -496,25 +423,24 @@ public 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; - * * @return The bytes for bigqueryOutputDataset. */ - public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 2) { outputLocation_ = b; } @@ -525,7 +451,6 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -537,7 +462,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputLocationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocation_); } @@ -567,24 +493,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo)) { + 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; + 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; + if (!getGcsOutputDirectory() + .equals(other.getGcsOutputDirectory())) return false; break; case 2: - if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false; + if (!getBigqueryOutputDataset() + .equals(other.getBigqueryOutputDataset())) return false; break; case 0: default: @@ -617,114 +541,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata - .BatchPredictOutputInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + 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 { + 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 { + 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 { + 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 { + 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) + 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 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) + 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 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) + 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); + 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -734,55 +632,46 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Further describes this batch predict's output.
      * Supplements
      * [BatchPredictOutputConfig][google.cloud.automl.v1beta1.BatchPredictOutputConfig].
      * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo} + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -792,23 +681,19 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo build() { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -816,12 +701,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @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); + 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_; } @@ -837,76 +718,62 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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; - } + 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(); @@ -923,14 +790,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -939,12 +803,12 @@ public Builder mergeFrom( } return this; } - private int outputLocationCase_ = 0; private java.lang.Object outputLocation_; - - public OutputLocationCase getOutputLocationCase() { - return OutputLocationCase.forNumber(outputLocationCase_); + public OutputLocationCase + getOutputLocationCase() { + return OutputLocationCase.forNumber( + outputLocationCase_); } public Builder clearOutputLocation() { @@ -954,16 +818,14 @@ public Builder clearOutputLocation() { return this; } + /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; - * * @return Whether the gcsOutputDirectory field is set. */ @java.lang.Override @@ -971,15 +833,12 @@ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -989,7 +848,8 @@ public java.lang.String getGcsOutputDirectory() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -1000,26 +860,25 @@ public 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; - * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -1029,37 +888,32 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; - * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory(java.lang.String value) { + public Builder setGcsOutputDirectory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 1; + 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; - * * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { @@ -1071,23 +925,21 @@ public Builder clearGcsOutputDirectory() { return this; } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; - * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputLocationCase_ = 1; outputLocation_ = value; onChanged(); @@ -1095,15 +947,12 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) } /** - * - * *
        * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
        * format, into which the prediction output is written.
        * 
* * string bigquery_output_dataset = 2; - * * @return Whether the bigqueryOutputDataset field is set. */ @java.lang.Override @@ -1111,15 +960,12 @@ public boolean hasBigqueryOutputDataset() { return outputLocationCase_ == 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; - * * @return The bigqueryOutputDataset. */ @java.lang.Override @@ -1129,7 +975,8 @@ public java.lang.String getBigqueryOutputDataset() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 2) { outputLocation_ = s; @@ -1140,26 +987,25 @@ public 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; - * * @return The bytes for bigqueryOutputDataset. */ @java.lang.Override - public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 2) { outputLocation_ = b; } @@ -1169,37 +1015,32 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } } /** - * - * *
        * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
        * format, into which the prediction output is written.
        * 
* * string bigquery_output_dataset = 2; - * * @param value The bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDataset(java.lang.String value) { + public Builder setBigqueryOutputDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 2; + 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; - * * @return This builder for chaining. */ public Builder clearBigqueryOutputDataset() { @@ -1211,29 +1052,26 @@ public Builder clearBigqueryOutputDataset() { 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; - * * @param value The bytes for bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setBigqueryOutputDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { @@ -1246,36 +1084,30 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata - .BatchPredictOutputInfo(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo(); } - public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata - .BatchPredictOutputInfo - getDefaultInstance() { + 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); - } - }; + 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; @@ -1287,24 +1119,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - getDefaultInstanceForType() { + 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; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1312,26 +1141,19 @@ 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; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() - : inputConfig_; + 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.
@@ -1340,25 +1162,18 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig()
    * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder
-      getInputConfigOrBuilder() {
+  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_;
+  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; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -1366,46 +1181,30 @@ 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; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - getOutputInfo() { - return outputInfo_ == null - ? com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .getDefaultInstance() - : outputInfo_; + 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; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata - .BatchPredictOutputInfoOrBuilder - getOutputInfoOrBuilder() { + 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; @@ -1417,7 +1216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -1434,10 +1234,12 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1447,21 +1249,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (hasOutputInfo() != other.hasOutputInfo()) return false; if (hasOutputInfo()) { - if (!getOutputInfo().equals(other.getOutputInfo())) return false; + if (!getOutputInfo() + .equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1488,127 +1291,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.class, com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.newBuilder() @@ -1616,15 +1409,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1644,14 +1438,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); } @@ -1666,8 +1459,7 @@ public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata result = new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata(this); if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; } else { @@ -1686,39 +1478,38 @@ public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1726,9 +1517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance()) return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -1754,9 +1543,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1768,49 +1555,36 @@ public Builder mergeFrom( 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_; + 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; - * * @return Whether the inputConfig field is set. */ 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; - * * @return The inputConfig. */ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() - : inputConfig_; + 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.
@@ -1832,8 +1606,6 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInputC
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1853,8 +1625,6 @@ public Builder setInputConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1866,9 +1636,7 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInpu
       if (inputConfigBuilder_ == null) {
         if (inputConfig_ != null) {
           inputConfig_ =
-              com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder(inputConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial();
         } else {
           inputConfig_ = value;
         }
@@ -1880,8 +1648,6 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInpu
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1901,8 +1667,6 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1911,13 +1675,11 @@ public Builder clearInputConfig() {
      * .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.
@@ -1925,19 +1687,15 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder getInputC
      *
      * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1;
      */
-    public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder
-        getInputConfigOrBuilder() {
+    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_;
+        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.
@@ -1946,85 +1704,56 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder getInputC
      * .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>
+        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());
+        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.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_;
+        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; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ 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; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return The outputInfo. */ - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - getOutputInfo() { + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null - ? com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .getDefaultInstance() - : outputInfo_; + 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; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ - public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - value) { + public Builder setOutputInfo(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2038,19 +1767,14 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -2061,26 +1785,17 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ - public Builder mergeOutputInfo( - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - value) { + 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(); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); } else { outputInfo_ = value; } @@ -2092,15 +1807,11 @@ public Builder mergeOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -2114,81 +1825,55 @@ public Builder clearOutputInfo() { return this; } /** - * - * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - .Builder - getOutputInfoBuilder() { - + 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; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata - .BatchPredictOutputInfoOrBuilder - getOutputInfoOrBuilder() { + 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_; + 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; - * + * .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> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2198,13 +1883,12 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata(); } @@ -2213,16 +1897,16 @@ public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getD 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); - } - }; + 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; @@ -2237,4 +1921,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java similarity index 60% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java index 659f54779..a1977cde6 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
    * 
* * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig(); /** - * - * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
@@ -62,45 +38,29 @@ public interface BatchPredictOperationMetadataOrBuilder
   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; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ boolean hasOutputInfo(); /** - * - * *
    * Output only. Information further describing this batch predict's output.
    * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; * @return The outputInfo. */ - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo - getOutputInfo(); + 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; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; */ - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder - getOutputInfoOrBuilder(); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder getOutputInfoOrBuilder(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java similarity index 83% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java index 2d5b98c02..ebc63879a 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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
@@ -267,29 +250,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOutputConfig}
  */
-public final class BatchPredictOutputConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+private static final long serialVersionUID = 0L;
   // Use BatchPredictOutputConfig.newBuilder() to construct.
   private BatchPredictOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchPredictOutputConfig() {}
+  private BatchPredictOutputConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchPredictOutputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchPredictOutputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -308,89 +292,75 @@ private BatchPredictOutputConfig(
           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 10: {
+            com.google.cloud.automl.v1beta1.GcsDestination.Builder subBuilder = null;
+            if (destinationCase_ == 1) {
+              subBuilder = ((com.google.cloud.automl.v1beta1.GcsDestination) destination_).toBuilder();
             }
-          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;
+            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();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      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;
+  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
+    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);
+            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,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_DESTINATION(1),
     BIGQUERY_DESTINATION(2),
     DESTINATION_NOT_SET(0);
     private final int value;
-
     private DestinationCase(int value) {
       this.value = value;
     }
@@ -406,37 +376,31 @@ public static DestinationCase valueOf(int 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;
+        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 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; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -444,27 +408,22 @@ 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; - * * @return The gcsDestination. */ @java.lang.Override 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) 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.
@@ -475,21 +434,18 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   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) 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; - * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -497,26 +453,21 @@ 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; - * * @return The bigqueryDestination. */ @java.lang.Override 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } /** - * - * *
    * The BigQuery location where the output is to be written to.
    * 
@@ -524,16 +475,14 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { + 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -545,7 +494,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -562,14 +512,12 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -579,21 +527,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 2: - if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + if (!getBigqueryDestination() + .equals(other.getBigqueryDestination())) return false; break; case 0: default: @@ -627,104 +576,96 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.BatchPredictOutputConfig prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output configuration for BatchPredict Action.
    * As destination the
@@ -971,23 +912,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOutputConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.class, com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.newBuilder()
@@ -995,15 +934,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1013,9 +953,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -1034,8 +974,7 @@ public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.BatchPredictOutputConfig result = new com.google.cloud.automl.v1beta1.BatchPredictOutputConfig(this);
       if (destinationCase_ == 1) {
         if (gcsDestinationBuilder_ == null) {
           result.destination_ = destination_;
@@ -1059,39 +998,38 @@ public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictOutputConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1099,23 +1037,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictOutputConfig other) {
-      if (other == com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance())
-        return this;
+      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;
-          }
+        case GCS_DESTINATION: {
+          mergeGcsDestination(other.getGcsDestination());
+          break;
+        }
+        case BIGQUERY_DESTINATION: {
+          mergeBigqueryDestination(other.getBigqueryDestination());
+          break;
+        }
+        case DESTINATION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1136,8 +1070,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1beta1.BatchPredictOutputConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictOutputConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1146,12 +1079,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-
-    public DestinationCase getDestinationCase() {
-      return DestinationCase.forNumber(destinationCase_);
+    public DestinationCase
+        getDestinationCase() {
+      return DestinationCase.forNumber(
+          destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -1161,21 +1094,16 @@ public Builder clearDestination() {
       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_;
+        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; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -1183,15 +1111,12 @@ 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; - * * @return The gcsDestination. */ @java.lang.Override @@ -1209,8 +1134,6 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1232,8 +1155,6 @@ public Builder setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1253,8 +1174,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1264,14 +1183,10 @@ public Builder setGcsDestination(
      */
     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();
+        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;
         }
@@ -1286,8 +1201,6 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestinatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1312,8 +1225,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1325,8 +1236,6 @@ public com.google.cloud.automl.v1beta1.GcsDestination.Builder getGcsDestinationB
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1346,8 +1255,6 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
       }
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1356,44 +1263,32 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
      * .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>
+        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>(
+        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();
-      ;
+      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_;
+        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; - * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -1401,14 +1296,11 @@ 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; - * * @return The bigqueryDestination. */ @java.lang.Override @@ -1426,16 +1318,13 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio } } /** - * - * *
      * 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) { + public Builder setBigqueryDestination(com.google.cloud.automl.v1beta1.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1449,8 +1338,6 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1469,25 +1356,18 @@ public Builder setBigqueryDestination( 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) { + 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(); + 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; } @@ -1502,8 +1382,6 @@ public Builder mergeBigqueryDestination( return this; } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1527,21 +1405,16 @@ public Builder clearBigqueryDestination() { 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() { + public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder getBigqueryDestinationBuilder() { return getBigqueryDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1549,8 +1422,7 @@ public Builder clearBigqueryDestination() { * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { return bigqueryDestinationBuilder_.getMessageOrBuilder(); } else { @@ -1561,8 +1433,6 @@ public Builder clearBigqueryDestination() { } } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1570,32 +1440,26 @@ public Builder clearBigqueryDestination() { * .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> + 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>( + 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(); - ; + onChanged();; return bigqueryDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1605,12 +1469,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1619,16 +1483,16 @@ public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getDefaul 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); - } - }; + 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; @@ -1643,4 +1507,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java index 5d0e5537a..0b995a15f 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return Whether the gcsDestination field is set. */ 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; - * * @return The gcsDestination. */ com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination(); /** - * - * *
    * The Google Cloud Storage location of the directory where the output is to
    * be written to.
@@ -62,32 +38,24 @@ public interface BatchPredictOutputConfigOrBuilder
   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; - * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** - * - * *
    * The BigQuery location where the output is to be written to.
    * 
* * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; - * * @return The bigqueryDestination. */ com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination(); /** - * - * *
    * The BigQuery location where the output is to be written to.
    * 
@@ -96,6 +64,5 @@ public interface BatchPredictOutputConfigOrBuilder */ com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); - public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.DestinationCase - getDestinationCase(); + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.DestinationCase getDestinationCase(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java similarity index 78% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java index ccf1fdefd..986800673 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchPredictRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchPredictRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,118 +54,103 @@ private BatchPredictRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 26: { + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - 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; + inputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.BatchPredictInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - 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; + + break; + } + case 34: { + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = - com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put(params__.getKey(), params__.getValue()); - break; + outputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } + 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); + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.BatchPredictRequest.class, com.google.cloud.automl.v1beta1.BatchPredictRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -191,31 +159,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -226,16 +192,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -243,55 +204,38 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. The input configuration for batch prediction.
    * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() - : inputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder - getInputConfigOrBuilder() { + 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 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -299,61 +243,50 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance() - : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder - getOutputConfigOrBuilder() { + 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, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> 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() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -362,8 +295,6 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -427,22 +358,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
+
   @java.lang.Override
-  public boolean containsParams(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsParams(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetParams().getMap().containsKey(key);
   }
-  /** Use {@link #getParamsMap()} instead. */
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getParams() {
     return getParamsMap();
   }
   /**
-   *
-   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -507,12 +438,11 @@ public java.util.Map getParams() {
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
   @java.lang.Override
+
   public java.util.Map getParamsMap() {
     return internalGetParams().getMap();
   }
   /**
-   *
-   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -577,16 +507,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
   @java.lang.Override
-  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();
+
+  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;
   }
   /**
-   *
-   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -651,11 +581,12 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
   @java.lang.Override
-  public java.lang.String getParamsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetParams().getMap();
+
+  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();
     }
@@ -663,7 +594,6 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -675,7 +605,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -685,8 +616,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (outputConfig_ != null) {
       output.writeMessage(4, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 5);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        5);
     unknownFields.writeTo(output);
   }
 
@@ -700,20 +635,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (inputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig());
+      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 += 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;
@@ -723,24 +660,27 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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;
+    com.google.cloud.automl.v1beta1.BatchPredictRequest other = (com.google.cloud.automl.v1beta1.BatchPredictRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasInputConfig() != other.hasInputConfig()) return false;
     if (hasInputConfig()) {
-      if (!getInputConfig().equals(other.getInputConfig())) return false;
+      if (!getInputConfig()
+          .equals(other.getInputConfig())) return false;
     }
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig()
+          .equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetParams().equals(other.internalGetParams())) return false;
+    if (!internalGetParams().equals(
+        other.internalGetParams())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -772,146 +712,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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)
+      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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.BatchPredictRequest.class, com.google.cloud.automl.v1beta1.BatchPredictRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.BatchPredictRequest.newBuilder() @@ -919,15 +852,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -950,9 +884,9 @@ public Builder clear() { } @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; + 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 @@ -971,8 +905,7 @@ public com.google.cloud.automl.v1beta1.BatchPredictRequest build() { @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); + com.google.cloud.automl.v1beta1.BatchPredictRequest result = new com.google.cloud.automl.v1beta1.BatchPredictRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (inputConfigBuilder_ == null) { @@ -995,39 +928,38 @@ public com.google.cloud.automl.v1beta1.BatchPredictRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictRequest)other); } else { super.mergeFrom(other); return this; @@ -1035,8 +967,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictRequest other) { - if (other == com.google.cloud.automl.v1beta1.BatchPredictRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.BatchPredictRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1047,7 +978,8 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictRequest oth if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableParams().mergeFrom(other.internalGetParams()); + internalGetMutableParams().mergeFrom( + other.internalGetParams()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1067,8 +999,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.BatchPredictRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1077,27 +1008,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1106,23 +1032,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1130,67 +1053,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1198,58 +1108,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() - : inputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInputConfig value) { if (inputConfigBuilder_ == null) { @@ -1265,15 +1156,11 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInputC return this; } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder builderForValue) { @@ -1287,23 +1174,17 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ 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(); + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -1315,15 +1196,11 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInpu return this; } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -1337,65 +1214,48 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. The input configuration for batch prediction.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder - getInputConfigOrBuilder() { + 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.BatchPredictInputConfig, - com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder, - com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder> + 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()); + 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_; @@ -1403,61 +1263,42 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder getInputC 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ 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 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance() - : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.BatchPredictOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1473,16 +1314,12 @@ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.BatchPredictOutpu return this; } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder builderForValue) { @@ -1496,25 +1333,18 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.automl.v1beta1.BatchPredictOutputConfig value) { + 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(); + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1526,16 +1356,12 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1549,89 +1375,72 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder - getOutputConfigBuilder() { - + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder - getOutputConfigOrBuilder() { + 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.BatchPredictOutputConfig, - com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder, - com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder> + 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()); + 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() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } - private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged(); - ; + internalGetMutableParams() { + onChanged();; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1643,8 +1452,6 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1708,22 +1515,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
+
     @java.lang.Override
-    public boolean containsParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsParams(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetParams().getMap().containsKey(key);
     }
-    /** Use {@link #getParamsMap()} instead. */
+    /**
+     * Use {@link #getParamsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getParams() {
       return getParamsMap();
     }
     /**
-     *
-     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1788,12 +1595,11 @@ public java.util.Map getParams() {
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
     @java.lang.Override
+
     public java.util.Map getParamsMap() {
       return internalGetParams().getMap();
     }
     /**
-     *
-     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1858,17 +1664,16 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
     @java.lang.Override
+
     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();
+        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;
     }
     /**
-     *
-     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1933,11 +1738,12 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
     @java.lang.Override
-    public java.lang.String getParamsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetParams().getMap();
+
+    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();
       }
@@ -1945,12 +1751,11 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap().clear();
+      internalGetMutableParams().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -2014,21 +1819,23 @@ public Builder clearParams() {
      *
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder removeParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableParams().getMutableMap().remove(key);
+
+    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. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableParams() {
+    public java.util.Map
+    getMutableParams() {
       return internalGetMutableParams().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -2092,19 +1899,16 @@ public java.util.Map getMutableParams() {
      *
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
-    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);
+    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;
     }
     /**
-     *
-     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -2168,13 +1972,16 @@ public Builder putParams(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+
+    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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2184,12 +1991,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -2198,16 +2005,16 @@ public static com.google.cloud.automl.v1beta1.BatchPredictRequest getDefaultInst
     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);
-        }
-      };
+  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;
@@ -2222,4 +2029,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.BatchPredictRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java
similarity index 90%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java
index 360898b56..adfcde34b 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java
@@ -1,145 +1,90 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+public interface BatchPredictRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BatchPredictRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The input configuration for batch prediction.
    * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. The input configuration for batch prediction.
    * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig(); /** - * - * *
    * Required. The input configuration for batch prediction.
    * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ 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 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -205,8 +150,6 @@ public interface BatchPredictRequestOrBuilder
    */
   int getParamsCount();
   /**
-   *
-   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -270,13 +213,15 @@ public interface BatchPredictRequestOrBuilder
    *
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
-  boolean containsParams(java.lang.String key);
-  /** Use {@link #getParamsMap()} instead. */
+  boolean containsParams(
+      java.lang.String key);
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getParams();
+  java.util.Map
+  getParams();
   /**
-   *
-   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -340,10 +285,9 @@ public interface BatchPredictRequestOrBuilder
    *
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
-  java.util.Map getParamsMap();
+  java.util.Map
+  getParamsMap();
   /**
-   *
-   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -407,10 +351,11 @@ public interface BatchPredictRequestOrBuilder
    *
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
-  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getParamsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -474,5 +419,7 @@ public interface BatchPredictRequestOrBuilder
    *
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
-  java.lang.String getParamsOrThrow(java.lang.String key);
+
+  java.lang.String getParamsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java
similarity index 65%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java
index d8deb83a9..69fd83c0e 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1beta1/prediction_service.proto
 
 package com.google.cloud.automl.v1beta1;
 
 /**
- *
- *
  * 
  * Result of the Batch Predict. This message is returned in
  * [response][google.longrunning.Operation.response] of the operation returned
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictResult}
  */
-public final class BatchPredictResult extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+private static final long serialVersionUID = 0L;
   // Use BatchPredictResult.newBuilder() to construct.
   private BatchPredictResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchPredictResult() {}
+  private BatchPredictResult() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchPredictResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchPredictResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,84 +55,82 @@ private BatchPredictResult(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                metadata_ =
-                    com.google.protobuf.MapField.newMapField(
-                        MetadataDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry metadata__ =
-                  input.readMessage(
-                      MetadataDefaultEntryHolder.defaultEntry.getParserForType(),
-                      extensionRegistry);
-              metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue());
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              metadata_ = com.google.protobuf.MapField.newMapField(
+                  MetadataDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            metadata__ = input.readMessage(
+                MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            metadata_.getMutableMap().put(
+                metadata__.getKey(), metadata__.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);
+      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;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_BatchPredictResult_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 1:
         return internalGetMetadata();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        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_BatchPredictResult_fieldAccessorTable
+    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);
+            com.google.cloud.automl.v1beta1.BatchPredictResult.class, com.google.cloud.automl.v1beta1.BatchPredictResult.Builder.class);
   }
 
   public static final int METADATA_FIELD_NUMBER = 1;
-
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.automl.v1beta1.PredictionServiceProto
-                .internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
-  }
-
-  private com.google.protobuf.MapField metadata_;
-
-  private com.google.protobuf.MapField internalGetMetadata() {
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
+  }
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> metadata_;
+  private com.google.protobuf.MapField
+  internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
@@ -157,8 +139,6 @@ public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -171,22 +151,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 1;
    */
+
   @java.lang.Override
-  public boolean containsMetadata(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsMetadata(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /** Use {@link #getMetadataMap()} instead. */
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -200,12 +180,11 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
+
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -219,17 +198,16 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
+
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -243,11 +221,12 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
-  public java.lang.String getMetadataOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+
+  public java.lang.String getMetadataOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -255,7 +234,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -267,9 +245,14 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetMetadata(),
+        MetadataDefaultEntryHolder.defaultEntry,
+        1);
     unknownFields.writeTo(output);
   }
 
@@ -279,15 +262,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry metadata__ =
-          MetadataDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metadata__);
+    for (java.util.Map.Entry entry
+         : internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, metadata__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -297,15 +280,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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;
+    com.google.cloud.automl.v1beta1.BatchPredictResult other = (com.google.cloud.automl.v1beta1.BatchPredictResult) obj;
 
-    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
+    if (!internalGetMetadata().equals(
+        other.internalGetMetadata())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -327,103 +310,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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)
+      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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Result of the Batch Predict. This message is returned in
    * [response][google.longrunning.Operation.response] of the operation returned
@@ -432,43 +408,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictResult}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_BatchPredictResult_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMutableMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          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_BatchPredictResult_fieldAccessorTable
+      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);
+              com.google.cloud.automl.v1beta1.BatchPredictResult.class, com.google.cloud.automl.v1beta1.BatchPredictResult.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.BatchPredictResult.newBuilder()
@@ -476,15 +452,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -493,9 +470,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -514,8 +491,7 @@ public com.google.cloud.automl.v1beta1.BatchPredictResult build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.BatchPredictResult result = new com.google.cloud.automl.v1beta1.BatchPredictResult(this);
       int from_bitField0_ = bitField0_;
       result.metadata_ = internalGetMetadata();
       result.metadata_.makeImmutable();
@@ -527,39 +503,38 @@ public com.google.cloud.automl.v1beta1.BatchPredictResult buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictResult)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -567,9 +542,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictResult other) {
-      if (other == com.google.cloud.automl.v1beta1.BatchPredictResult.getDefaultInstance())
-        return this;
-      internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
+      if (other == com.google.cloud.automl.v1beta1.BatchPredictResult.getDefaultInstance()) return this;
+      internalGetMutableMetadata().mergeFrom(
+          other.internalGetMetadata());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -589,8 +564,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1beta1.BatchPredictResult) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -599,25 +573,24 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.MapField metadata_;
-
-    private com.google.protobuf.MapField internalGetMetadata() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> metadata_;
+    private com.google.protobuf.MapField
+    internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableMetadata() {
-      onChanged();
-      ;
+    internalGetMutableMetadata() {
+      onChanged();;
       if (metadata_ == null) {
-        metadata_ =
-            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ = com.google.protobuf.MapField.newMapField(
+            MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -629,8 +602,6 @@ public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -643,22 +614,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 1;
      */
+
     @java.lang.Override
-    public boolean containsMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /** Use {@link #getMetadataMap()} instead. */
+    /**
+     * Use {@link #getMetadataMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -672,12 +643,11 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
+
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -691,17 +661,16 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
+
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -715,11 +684,12 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
-    public java.lang.String getMetadataOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+
+    public java.lang.String getMetadataOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -727,12 +697,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap().clear();
+      internalGetMutableMetadata().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -745,21 +714,23 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 1;
      */
-    public Builder removeMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().remove(key);
+
+    public Builder removeMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMetadata() {
+    public java.util.Map
+    getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -772,19 +743,16 @@ public java.util.Map getMutableMetadata() {
      *
      * map<string, string> metadata = 1;
      */
-    public Builder putMetadata(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().put(key, value);
+    public Builder putMetadata(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -797,13 +765,16 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> metadata = 1;
      */
-    public Builder putAllMetadata(java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap().putAll(values);
+
+    public Builder putAllMetadata(
+        java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -813,12 +784,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -827,16 +798,16 @@ public static com.google.cloud.automl.v1beta1.BatchPredictResult getDefaultInsta
     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);
-        }
-      };
+  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;
@@ -851,4 +822,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.BatchPredictResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java
similarity index 71%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java
index 1ff326dbf..3e8d23ee9 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+public interface BatchPredictResultOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BatchPredictResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -40,8 +22,6 @@ public interface BatchPredictResultOrBuilder
    */
   int getMetadataCount();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -54,13 +34,15 @@ public interface BatchPredictResultOrBuilder
    *
    * map<string, string> metadata = 1;
    */
-  boolean containsMetadata(java.lang.String key);
-  /** Use {@link #getMetadataMap()} instead. */
+  boolean containsMetadata(
+      java.lang.String key);
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMetadata();
+  java.util.Map
+  getMetadata();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -73,10 +55,9 @@ public interface BatchPredictResultOrBuilder
    *
    * map<string, string> metadata = 1;
    */
-  java.util.Map getMetadataMap();
+  java.util.Map
+  getMetadataMap();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -89,10 +70,11 @@ public interface BatchPredictResultOrBuilder
    *
    * map<string, string> metadata = 1;
    */
-  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getMetadataOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -105,5 +87,7 @@ public interface BatchPredictResultOrBuilder
    *
    * map<string, string> metadata = 1;
    */
-  java.lang.String getMetadataOrThrow(java.lang.String key);
+
+  java.lang.String getMetadataOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java
similarity index 69%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java
index 351b03578..65877eb1d 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BigQueryDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private BigQueryDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - outputUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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:
@@ -123,7 +101,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri = 1; - * * @return The outputUri. */ @java.lang.Override @@ -132,15 +109,14 @@ public java.lang.String getOutputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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:
@@ -148,15 +124,16 @@ public java.lang.String getOutputUri() {
    * 
* * string output_uri = 1; - * * @return The bytes for outputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUri_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getOutputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.BigQueryDestination other = (com.google.cloud.automl.v1beta1.BigQueryDestination) obj; - if (!getOutputUri().equals(other.getOutputUri())) return false; + if (!getOutputUri() + .equals(other.getOutputUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.BigQueryDestination.class, com.google.cloud.automl.v1beta1.BigQueryDestination.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.BigQueryDestination.newBuilder() @@ -356,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +343,9 @@ public Builder clear() { } @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; + 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 @@ -395,8 +364,7 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination build() { @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); + com.google.cloud.automl.v1beta1.BigQueryDestination result = new com.google.cloud.automl.v1beta1.BigQueryDestination(this); result.outputUri_ = outputUri_; onBuilt(); return result; @@ -406,39 +374,38 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.BigQueryDestination)other); } else { super.mergeFrom(other); return this; @@ -446,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.BigQueryDestination other) { - if (other == com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance()) return this; if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; onChanged(); @@ -471,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.BigQueryDestination) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.BigQueryDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,8 +449,6 @@ public Builder mergeFrom( private java.lang.Object outputUri_ = ""; /** - * - * *
      * Required. BigQuery URI to a project, up to 2000 characters long.
      * Accepted forms:
@@ -493,13 +456,13 @@ public Builder mergeFrom(
      * 
* * string output_uri = 1; - * * @return The outputUri. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; @@ -508,8 +471,6 @@ public java.lang.String getOutputUri() { } } /** - * - * *
      * Required. BigQuery URI to a project, up to 2000 characters long.
      * Accepted forms:
@@ -517,14 +478,15 @@ public java.lang.String getOutputUri() {
      * 
* * string output_uri = 1; - * * @return The bytes for outputUri. */ - public com.google.protobuf.ByteString getOutputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUri_ = b; return b; } else { @@ -532,8 +494,6 @@ public com.google.protobuf.ByteString getOutputUriBytes() { } } /** - * - * *
      * Required. BigQuery URI to a project, up to 2000 characters long.
      * Accepted forms:
@@ -541,22 +501,20 @@ public com.google.protobuf.ByteString getOutputUriBytes() {
      * 
* * string output_uri = 1; - * * @param value The outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUri(java.lang.String value) { + public Builder setOutputUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. BigQuery URI to a project, up to 2000 characters long.
      * Accepted forms:
@@ -564,18 +522,15 @@ public Builder setOutputUri(java.lang.String value) {
      * 
* * string output_uri = 1; - * * @return This builder for chaining. */ public Builder clearOutputUri() { - + outputUri_ = getDefaultInstance().getOutputUri(); onChanged(); return this; } /** - * - * *
      * Required. BigQuery URI to a project, up to 2000 characters long.
      * Accepted forms:
@@ -583,23 +538,23 @@ public Builder clearOutputUri() {
      * 
* * string output_uri = 1; - * * @param value The bytes for outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,12 +564,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -623,16 +578,16 @@ public static com.google.cloud.automl.v1beta1.BigQueryDestination getDefaultInst 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); - } - }; + 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; @@ -647,4 +602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BigQueryDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java similarity index 52% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java index 9f8aadcbe..ab5817a60 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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:
@@ -33,13 +15,10 @@ public interface BigQueryDestinationOrBuilder
    * 
* * string output_uri = 1; - * * @return The outputUri. */ java.lang.String getOutputUri(); /** - * - * *
    * Required. BigQuery URI to a project, up to 2000 characters long.
    * Accepted forms:
@@ -47,8 +26,8 @@ public interface BigQueryDestinationOrBuilder
    * 
* * string output_uri = 1; - * * @return The bytes for outputUri. */ - com.google.protobuf.ByteString getOutputUriBytes(); + com.google.protobuf.ByteString + getOutputUriBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java similarity index 70% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java index d77a29ffe..e9f821fca 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQuerySource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BigQuerySource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private BigQuerySource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - inputUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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:
@@ -123,7 +101,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string input_uri = 1; - * * @return The inputUri. */ @java.lang.Override @@ -132,15 +109,14 @@ public java.lang.String getInputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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:
@@ -148,15 +124,16 @@ public java.lang.String getInputUri() {
    * 
* * string input_uri = 1; - * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getInputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUri_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getInputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.BigQuerySource other = (com.google.cloud.automl.v1beta1.BigQuerySource) obj; - if (!getInputUri().equals(other.getInputUri())) return false; + if (!getInputUri() + .equals(other.getInputUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.BigQuerySource.class, com.google.cloud.automl.v1beta1.BigQuerySource.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.BigQuerySource.newBuilder() @@ -356,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +343,9 @@ public Builder clear() { } @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; + 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 @@ -395,8 +364,7 @@ public com.google.cloud.automl.v1beta1.BigQuerySource build() { @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); + com.google.cloud.automl.v1beta1.BigQuerySource result = new com.google.cloud.automl.v1beta1.BigQuerySource(this); result.inputUri_ = inputUri_; onBuilt(); return result; @@ -406,39 +374,38 @@ public com.google.cloud.automl.v1beta1.BigQuerySource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.BigQuerySource)other); } else { super.mergeFrom(other); return this; @@ -482,8 +449,6 @@ public Builder mergeFrom( private java.lang.Object inputUri_ = ""; /** - * - * *
      * Required. BigQuery URI to a table, up to 2000 characters long.
      * Accepted forms:
@@ -491,13 +456,13 @@ public Builder mergeFrom(
      * 
* * string input_uri = 1; - * * @return The inputUri. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; @@ -506,8 +471,6 @@ public java.lang.String getInputUri() { } } /** - * - * *
      * Required. BigQuery URI to a table, up to 2000 characters long.
      * Accepted forms:
@@ -515,14 +478,15 @@ public java.lang.String getInputUri() {
      * 
* * string input_uri = 1; - * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString getInputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUri_ = b; return b; } else { @@ -530,8 +494,6 @@ public com.google.protobuf.ByteString getInputUriBytes() { } } /** - * - * *
      * Required. BigQuery URI to a table, up to 2000 characters long.
      * Accepted forms:
@@ -539,22 +501,20 @@ public com.google.protobuf.ByteString getInputUriBytes() {
      * 
* * string input_uri = 1; - * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri(java.lang.String value) { + public Builder setInputUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. BigQuery URI to a table, up to 2000 characters long.
      * Accepted forms:
@@ -562,18 +522,15 @@ public Builder setInputUri(java.lang.String value) {
      * 
* * string input_uri = 1; - * * @return This builder for chaining. */ public Builder clearInputUri() { - + inputUri_ = getDefaultInstance().getInputUri(); onChanged(); return this; } /** - * - * *
      * Required. BigQuery URI to a table, up to 2000 characters long.
      * Accepted forms:
@@ -581,23 +538,23 @@ public Builder clearInputUri() {
      * 
* * string input_uri = 1; - * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -607,12 +564,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -621,16 +578,16 @@ 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); - } - }; + 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; @@ -645,4 +602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BigQuerySource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java similarity index 53% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java index e8c336291..309a1bffc 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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:
@@ -33,13 +15,10 @@ public interface BigQuerySourceOrBuilder
    * 
* * string input_uri = 1; - * * @return The inputUri. */ java.lang.String getInputUri(); /** - * - * *
    * Required. BigQuery URI to a table, up to 2000 characters long.
    * Accepted forms:
@@ -47,8 +26,8 @@ public interface BigQuerySourceOrBuilder
    * 
* * string input_uri = 1; - * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString getInputUriBytes(); + com.google.protobuf.ByteString + getInputUriBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java index 8d74f7fe3..f4e65b728 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.BoundingBoxMetricsEntry}
  */
-public final class BoundingBoxMetricsEntry extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BoundingBoxMetricsEntry();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BoundingBoxMetricsEntry(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,160 +55,135 @@ private BoundingBoxMetricsEntry(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              iouThreshold_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              meanAveragePrecision_ = input.readFloat();
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                confidenceMetricsEntries_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry
-                            .ConfidenceMetricsEntry>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              confidenceMetricsEntries_.add(
-                  input.readMessage(
-                      com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
-                          .parser(),
-                      extensionRegistry));
-              break;
+          case 13: {
+
+            iouThreshold_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            meanAveragePrecision_ = input.readFloat();
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              confidenceMetricsEntries_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        confidenceMetricsEntries_ =
-            java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
+        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;
+  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
+    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);
+            com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.class, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder.class);
   }
 
-  public interface ConfidenceMetricsEntryOrBuilder
-      extends
+  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; - * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** - * - * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 2; - * * @return The recall. */ float getRecall(); /** - * - * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 3; - * * @return The precision. */ float getPrecision(); /** - * - * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 4; - * * @return The f1Score. */ float getF1Score(); } /** - * - * *
    * Metrics for a single confidence threshold.
    * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} + * Protobuf type {@code google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConfidenceMetricsEntry() {} + private ConfidenceMetricsEntry() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -244,72 +202,66 @@ private ConfidenceMetricsEntry( 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; + 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); + 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; + 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 + 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); + 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; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -320,14 +272,11 @@ public float getConfidenceThreshold() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** - * - * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -338,14 +287,11 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** - * - * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 3; - * * @return The precision. */ @java.lang.Override @@ -356,14 +302,11 @@ public float getPrecision() { 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; - * * @return The f1Score. */ @java.lang.Override @@ -372,7 +315,6 @@ public float getF1Score() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,7 +326,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -407,16 +350,20 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, f1Score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -426,24 +373,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)) { + 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; + 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; + != java.lang.Float.floatToIntBits( + other.getConfidenceThreshold())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits(other.getRecall())) return false; + != java.lang.Float.floatToIntBits( + other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + != java.lang.Float.floatToIntBits( + other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + != java.lang.Float.floatToIntBits( + other.getF1Score())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -456,113 +404,104 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidenceThreshold()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPrecision()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + 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 { + 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 { + 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 { + 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 { + 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 { + 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 { + 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) + 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 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) + 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 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) + 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); + 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -572,52 +511,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metrics for a single confidence threshold.
      * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} + * Protobuf type {@code google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -633,23 +564,19 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry build() { + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -657,11 +584,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @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); + 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_; @@ -674,56 +598,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -751,14 +665,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -768,16 +679,13 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_; + private float confidenceThreshold_ ; /** - * - * *
        * Output only. The confidence threshold value used to compute the metrics.
        * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -785,51 +693,42 @@ public float getConfidenceThreshold() { return confidenceThreshold_; } /** - * - * *
        * Output only. The confidence threshold value used to compute the metrics.
        * 
* * float confidence_threshold = 1; - * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private float recall_; + private float recall_ ; /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -837,51 +736,42 @@ public float getRecall() { return recall_; } /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; - * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; - * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_; + private float precision_ ; /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; - * * @return The precision. */ @java.lang.Override @@ -889,51 +779,42 @@ public float getPrecision() { return precision_; } /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; - * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float f1Score_; + private float f1Score_ ; /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @return The f1Score. */ @java.lang.Override @@ -941,41 +822,34 @@ public float getF1Score() { return f1Score_; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -988,34 +862,30 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getDefaultInstance() { + 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); - } - }; + 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; @@ -1027,24 +897,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } 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; - * * @return The iouThreshold. */ @java.lang.Override @@ -1055,14 +922,11 @@ public float getIouThreshold() { 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; - * * @return The meanAveragePrecision. */ @java.lang.Override @@ -1071,105 +935,76 @@ public float getMeanAveragePrecision() { } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 3; - private java.util.List< - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> - confidenceMetricsEntries_; + private java.util.List 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public java.util.List< - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> - getConfidenceMetricsEntriesList() { + public java.util.List 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry - .ConfidenceMetricsEntryOrBuilder> + public java.util.List 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index) { + 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index) { + 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; @@ -1181,7 +1016,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (iouThreshold_ != 0F) { output.writeFloat(1, iouThreshold_); } @@ -1201,15 +1037,16 @@ public int getSerializedSize() { size = 0; if (iouThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, iouThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, iouThreshold_); } if (meanAveragePrecision_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, meanAveragePrecision_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, confidenceMetricsEntries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1219,20 +1056,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != 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; + != java.lang.Float.floatToIntBits( + other.getMeanAveragePrecision())) return false; + if (!getConfidenceMetricsEntriesList() + .equals(other.getConfidenceMetricsEntriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1245,9 +1083,11 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IOU_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getIouThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getIouThreshold()); hash = (37 * hash) + MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAveragePrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMeanAveragePrecision()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); @@ -1258,104 +1098,96 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -1363,23 +1195,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.BoundingBoxMetricsEntry}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.class, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.newBuilder()
@@ -1387,17 +1217,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getConfidenceMetricsEntriesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1415,9 +1245,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -1436,15 +1266,13 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry result = new com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry(this);
       int from_bitField0_ = bitField0_;
       result.iouThreshold_ = iouThreshold_;
       result.meanAveragePrecision_ = meanAveragePrecision_;
       if (confidenceMetricsEntriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          confidenceMetricsEntries_ =
-              java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
+          confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.confidenceMetricsEntries_ = confidenceMetricsEntries_;
@@ -1459,39 +1287,38 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1499,8 +1326,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry other) {
-      if (other == com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance()) return this;
       if (other.getIouThreshold() != 0F) {
         setIouThreshold(other.getIouThreshold());
       }
@@ -1525,10 +1351,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry
             confidenceMetricsEntriesBuilder_ = null;
             confidenceMetricsEntries_ = other.confidenceMetricsEntries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            confidenceMetricsEntriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConfidenceMetricsEntriesFieldBuilder()
-                    : null;
+            confidenceMetricsEntriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConfidenceMetricsEntriesFieldBuilder() : null;
           } else {
             confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_);
           }
@@ -1553,8 +1378,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1563,20 +1387,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private float iouThreshold_;
+    private float iouThreshold_ ;
     /**
-     *
-     *
      * 
      * Output only. The intersection-over-union threshold value used to compute
      * this metrics entry.
      * 
* * float iou_threshold = 1; - * * @return The iouThreshold. */ @java.lang.Override @@ -1584,53 +1404,44 @@ public float getIouThreshold() { return iouThreshold_; } /** - * - * *
      * Output only. The intersection-over-union threshold value used to compute
      * this metrics entry.
      * 
* * float iou_threshold = 1; - * * @param value The iouThreshold to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearIouThreshold() { - + iouThreshold_ = 0F; onChanged(); return this; } - private float meanAveragePrecision_; + private float meanAveragePrecision_ ; /** - * - * *
      * Output only. The mean average precision, most often close to au_prc.
      * 
* * float mean_average_precision = 2; - * * @return The meanAveragePrecision. */ @java.lang.Override @@ -1638,77 +1449,57 @@ public float getMeanAveragePrecision() { return meanAveragePrecision_; } /** - * - * *
      * Output only. The mean average precision, most often close to au_prc.
      * 
* * float mean_average_precision = 2; - * * @param value The meanAveragePrecision to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ 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 java.util.List confidenceMetricsEntries_ = + java.util.Collections.emptyList(); private void ensureConfidenceMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - new java.util.ArrayList< - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>( - confidenceMetricsEntries_); + confidenceMetricsEntries_ = new java.util.ArrayList(confidenceMetricsEntries_); bitField0_ |= 0x00000001; - } + } } 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_; + 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public java.util.List< - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> - getConfidenceMetricsEntriesList() { + public java.util.List getConfidenceMetricsEntriesList() { if (confidenceMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } else { @@ -1716,17 +1507,13 @@ private void ensureConfidenceMetricsEntriesIsMutable() { } } /** - * - * *
      * 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1736,20 +1523,15 @@ public 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { @@ -1757,21 +1539,16 @@ public 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder setConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1785,22 +1562,16 @@ public Builder setConfidenceMetricsEntries( 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; - * + * 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) { + int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); @@ -1811,20 +1582,15 @@ public Builder setConfidenceMetricsEntries( 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1838,21 +1604,16 @@ public Builder addConfidenceMetricsEntries( 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder addConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1866,21 +1627,16 @@ public Builder addConfidenceMetricsEntries( 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); @@ -1891,22 +1647,16 @@ public Builder addConfidenceMetricsEntries( 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; - * + * 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) { + int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); @@ -1917,26 +1667,20 @@ public Builder addConfidenceMetricsEntries( 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; - * + * 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) { + java.lang.Iterable values) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, confidenceMetricsEntries_); onChanged(); } else { confidenceMetricsEntriesBuilder_.addAllMessages(values); @@ -1944,17 +1688,13 @@ public Builder addAllConfidenceMetricsEntries( 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1967,17 +1707,13 @@ public Builder clearConfidenceMetricsEntries() { 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1990,61 +1726,45 @@ public Builder removeConfidenceMetricsEntries(int 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder - getConfidenceMetricsEntriesBuilder(int index) { + 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index) { if (confidenceMetricsEntriesBuilder_ == null) { - return confidenceMetricsEntries_.get(index); - } else { + 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public java.util.List< - ? extends - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry - .ConfidenceMetricsEntryOrBuilder> - getConfidenceMetricsEntriesOrBuilderList() { + public java.util.List + getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -2052,78 +1772,51 @@ public Builder removeConfidenceMetricsEntries(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; - * + * 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()); + 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; - * + * 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()); + 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public java.util.List< - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder> - getConfidenceMetricsEntriesBuilderList() { + public java.util.List + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -2132,9 +1825,9 @@ public Builder removeConfidenceMetricsEntries(int index) { } return confidenceMetricsEntriesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2144,12 +1837,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -2158,16 +1851,16 @@ public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getDefault 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); - } - }; + 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; @@ -2182,4 +1875,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java similarity index 54% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java index b075bb92e..96eedd081 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java @@ -1,130 +1,84 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return The iouThreshold. */ float getIouThreshold(); /** - * - * *
    * Output only. The mean average precision, most often close to au_prc.
    * 
* * float mean_average_precision = 2; - * * @return The meanAveragePrecision. */ 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - java.util.List + 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index); + 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; - * + * 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - java.util.List< - ? extends - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry - .ConfidenceMetricsEntryOrBuilder> + java.util.List 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; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index); + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java similarity index 75% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java index cea76b8af..d466748ac 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.BoundingPoly}
  */
-public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BoundingPoly();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BoundingPoly(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,32 +56,29 @@ private BoundingPoly(
           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;
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              normalizedVertices_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         normalizedVertices_ = java.util.Collections.unmodifiableList(normalizedVertices_);
@@ -107,27 +87,22 @@ private BoundingPoly(
       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;
+  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
+    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);
+            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.
    * 
@@ -135,13 +110,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { return normalizedVertices_; } /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -149,13 +121,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -167,8 +137,6 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -180,8 +148,6 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex getNormalizedVertices(in return normalizedVertices_.get(index); } /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -195,7 +161,6 @@ public com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVe } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -221,8 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < normalizedVertices_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.BoundingPoly other = (com.google.cloud.automl.v1beta1.BoundingPoly) obj; - if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; + if (!getNormalizedVerticesList() + .equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,104 +227,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -367,23 +326,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.BoundingPoly}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.BoundingPoly.class, com.google.cloud.automl.v1beta1.BoundingPoly.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder()
@@ -391,17 +348,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getNormalizedVerticesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,9 +372,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -436,8 +393,7 @@ public com.google.cloud.automl.v1beta1.BoundingPoly build() {
 
     @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);
+      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)) {
@@ -456,39 +412,38 @@ public com.google.cloud.automl.v1beta1.BoundingPoly buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.BoundingPoly)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -515,10 +470,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.BoundingPoly other) {
             normalizedVerticesBuilder_ = null;
             normalizedVertices_ = other.normalizedVertices_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            normalizedVerticesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getNormalizedVerticesFieldBuilder()
-                    : null;
+            normalizedVerticesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getNormalizedVerticesFieldBuilder() : null;
           } else {
             normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_);
           }
@@ -552,38 +506,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List normalizedVertices_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureNormalizedVerticesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        normalizedVertices_ =
-            new java.util.ArrayList(
-                normalizedVertices_);
+        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_;
+        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() { + public java.util.List getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -591,8 +535,6 @@ private void ensureNormalizedVerticesIsMutable() { } } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -607,8 +549,6 @@ public int getNormalizedVerticesCount() { } } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -623,8 +563,6 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex getNormalizedVertices(in } } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -646,8 +584,6 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -666,8 +602,6 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -688,8 +622,6 @@ public Builder addNormalizedVertices(com.google.cloud.automl.v1beta1.NormalizedV return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -711,8 +643,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -731,8 +661,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -751,8 +679,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -763,7 +689,8 @@ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -771,8 +698,6 @@ public Builder addAllNormalizedVertices( return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -790,8 +715,6 @@ public Builder clearNormalizedVertices() { return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -809,8 +732,6 @@ public Builder removeNormalizedVertices(int index) { return this; } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -822,8 +743,6 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder getNormalizedVer return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -833,22 +752,19 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder getNormalizedVer public com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); - } else { + 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() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -856,8 +772,6 @@ public com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVe } } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -865,12 +779,10 @@ public com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVe * 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()); + return getNormalizedVerticesFieldBuilder().addBuilder( + com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -879,34 +791,26 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder addNormalizedVer */ public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance()); + 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() { + 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> + 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>( + 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(), @@ -915,9 +819,9 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder addNormalizedVer } return normalizedVerticesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -927,12 +831,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -941,16 +845,16 @@ 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); - } - }; + 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; @@ -965,4 +869,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java similarity index 69% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java index d64022c29..1ec17ed60 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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(); + java.util.List + getNormalizedVerticesList(); /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -44,8 +25,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.automl.v1beta1.NormalizedVertex getNormalizedVertices(int index); /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -54,19 +33,15 @@ public interface BoundingPolyOrBuilder */ int getNormalizedVerticesCount(); /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** - * - * *
    * Output only . The bounding polygon normalized vertices.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java similarity index 68% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java index 5c9ce32da..33f0e2231 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CategoryStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CategoryStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,33 +54,29 @@ private CategoryStats( 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + topCategoryStats_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { topCategoryStats_ = java.util.Collections.unmodifiableList(topCategoryStats_); @@ -106,99 +85,85 @@ private CategoryStats( 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; + 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 + 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); + com.google.cloud.automl.v1beta1.CategoryStats.class, com.google.cloud.automl.v1beta1.CategoryStats.Builder.class); } - public interface SingleCategoryStatsOrBuilder - extends + 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; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The CATEGORY value.
      * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
      * The number of occurrences of this value in the series.
      * 
* * int64 count = 2; - * * @return The count. */ 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 + 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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SingleCategoryStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SingleCategoryStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -217,63 +182,57 @@ private SingleCategoryStats( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + 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; + 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); + 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; + 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 + 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); + 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; - * * @return The value. */ @java.lang.Override @@ -282,29 +241,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -315,14 +274,11 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** - * - * *
      * The number of occurrences of this value in the series.
      * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -331,7 +287,6 @@ public long getCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,7 +298,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -363,7 +319,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -373,16 +330,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getValue() + .equals(other.getValue())) return false; + if (getCount() + != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -397,102 +355,95 @@ public int 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 = (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 { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -502,49 +453,44 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -556,16 +502,14 @@ public Builder clear() { } @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; + 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(); + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.getDefaultInstance(); } @java.lang.Override @@ -579,8 +523,7 @@ public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats build() @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); + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats result = new com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats(this); result.value_ = value_; result.count_ = count_; onBuilt(); @@ -591,53 +534,46 @@ public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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(); @@ -664,9 +600,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -678,20 +612,18 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** - * - * *
        * The CATEGORY value.
        * 
* * string value = 1; - * * @return The value. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -700,21 +632,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * The CATEGORY value.
        * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -722,76 +653,66 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The CATEGORY value.
        * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The CATEGORY value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The CATEGORY value.
        * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long count_; + private long count_ ; /** - * - * *
        * The number of occurrences of this value in the series.
        * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -799,41 +720,34 @@ public long getCount() { return count_; } /** - * - * *
        * The number of occurrences of this value in the series.
        * 
* * int64 count = 2; - * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** - * - * *
        * The number of occurrences of this value in the series.
        * 
* * int64 count = 2; - * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -846,32 +760,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -883,103 +795,78 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats - getDefaultInstanceForType() { + 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_; + 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ @java.lang.Override - public java.util.List - getTopCategoryStatsList() { + 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder> + public java.util.List 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ @java.lang.Override 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopCategoryStats( - int index) { + 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder - getTopCategoryStatsOrBuilder(int index) { + 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; @@ -991,7 +878,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -1005,7 +893,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < topCategoryStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topCategoryStats_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, topCategoryStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1015,15 +904,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.CategoryStats other = (com.google.cloud.automl.v1beta1.CategoryStats) obj; - if (!getTopCategoryStatsList().equals(other.getTopCategoryStatsList())) return false; + if (!getTopCategoryStatsList() + .equals(other.getTopCategoryStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1044,127 +933,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.CategoryStats.class, com.google.cloud.automl.v1beta1.CategoryStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.CategoryStats.newBuilder() @@ -1172,17 +1052,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTopCategoryStatsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1196,9 +1076,9 @@ public Builder clear() { } @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; + 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 @@ -1217,8 +1097,7 @@ public com.google.cloud.automl.v1beta1.CategoryStats build() { @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); + 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)) { @@ -1237,39 +1116,38 @@ public com.google.cloud.automl.v1beta1.CategoryStats buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.CategoryStats)other); } else { super.mergeFrom(other); return this; @@ -1296,10 +1174,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.CategoryStats other) { topCategoryStatsBuilder_ = null; topCategoryStats_ = other.topCategoryStats_; bitField0_ = (bitField0_ & ~0x00000001); - topCategoryStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTopCategoryStatsFieldBuilder() - : null; + topCategoryStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTopCategoryStatsFieldBuilder() : null; } else { topCategoryStatsBuilder_.addAllMessages(other.topCategoryStats_); } @@ -1333,42 +1210,29 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - topCategoryStats_ = java.util.Collections.emptyList(); - + 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_); + topCategoryStats_ = new java.util.ArrayList(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_; + 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ - public java.util.List - getTopCategoryStatsList() { + public java.util.List getTopCategoryStatsList() { if (topCategoryStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(topCategoryStats_); } else { @@ -1376,16 +1240,12 @@ private void ensureTopCategoryStatsIsMutable() { } } /** - * - * *
      * 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ public int getTopCategoryStatsCount() { if (topCategoryStatsBuilder_ == null) { @@ -1395,19 +1255,14 @@ public 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopCategoryStats( - int index) { + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopCategoryStats(int index) { if (topCategoryStatsBuilder_ == null) { return topCategoryStats_.get(index); } else { @@ -1415,16 +1270,12 @@ public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopC } } /** - * - * *
      * 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ public Builder setTopCategoryStats( int index, com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { @@ -1441,20 +1292,15 @@ public Builder setTopCategoryStats( 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; - * + * 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) { + int index, com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder builderForValue) { if (topCategoryStatsBuilder_ == null) { ensureTopCategoryStatsIsMutable(); topCategoryStats_.set(index, builderForValue.build()); @@ -1465,19 +1311,14 @@ public Builder setTopCategoryStats( 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ - public Builder addTopCategoryStats( - com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { + public Builder addTopCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { if (topCategoryStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1491,16 +1332,12 @@ public Builder addTopCategoryStats( 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ public Builder addTopCategoryStats( int index, com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { @@ -1517,16 +1354,12 @@ public Builder addTopCategoryStats( 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ public Builder addTopCategoryStats( com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder builderForValue) { @@ -1540,20 +1373,15 @@ public Builder addTopCategoryStats( 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; - * + * 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) { + int index, com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder builderForValue) { if (topCategoryStatsBuilder_ == null) { ensureTopCategoryStatsIsMutable(); topCategoryStats_.add(index, builderForValue.build()); @@ -1564,24 +1392,19 @@ public Builder addTopCategoryStats( 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; - * + * 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) { + java.lang.Iterable values) { if (topCategoryStatsBuilder_ == null) { ensureTopCategoryStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topCategoryStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topCategoryStats_); onChanged(); } else { topCategoryStatsBuilder_.addAllMessages(values); @@ -1589,16 +1412,12 @@ public Builder addAllTopCategoryStats( 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ public Builder clearTopCategoryStats() { if (topCategoryStatsBuilder_ == null) { @@ -1611,16 +1430,12 @@ public Builder clearTopCategoryStats() { 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ public Builder removeTopCategoryStats(int index) { if (topCategoryStatsBuilder_ == null) { @@ -1633,56 +1448,42 @@ public Builder removeTopCategoryStats(int 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder - getTopCategoryStatsBuilder(int index) { + 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder - getTopCategoryStatsOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder getTopCategoryStatsOrBuilder( + int index) { if (topCategoryStatsBuilder_ == null) { - return topCategoryStats_.get(index); - } else { + 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ - public java.util.List< - ? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder> - getTopCategoryStatsOrBuilderList() { + public java.util.List + getTopCategoryStatsOrBuilderList() { if (topCategoryStatsBuilder_ != null) { return topCategoryStatsBuilder_.getMessageOrBuilderList(); } else { @@ -1690,72 +1491,48 @@ public Builder removeTopCategoryStats(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; - * + * 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()); + 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; - * + * 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()); + 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ - public java.util.List - getTopCategoryStatsBuilderList() { + 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> + 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>( + 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(), @@ -1764,9 +1541,9 @@ public Builder removeTopCategoryStats(int index) { } return topCategoryStatsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1776,12 +1553,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1790,16 +1567,16 @@ 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); - } - }; + 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; @@ -1814,4 +1591,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.CategoryStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java similarity index 50% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java index debb61e75..230d16cfd 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java @@ -1,95 +1,58 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ - java.util.List + 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; - * + * 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; - * + * 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ - java.util.List< - ? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder> + java.util.List 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; - * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; */ - com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder - getTopCategoryStatsOrBuilder(int index); + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder getTopCategoryStatsOrBuilder( + int index); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java index 94244378c..870914e59 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java @@ -1,18 +1,3 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/classification.proto @@ -20,25 +5,25 @@ public final class ClassificationProto { private ClassificationProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } - 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 static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** - * - * *
    * Type of the classification problem.
    * 
* * Protobuf enum {@code google.cloud.automl.v1beta1.ClassificationType} */ - public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnum { + public enum ClassificationType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * An un-set value of this enum.
      * 
@@ -47,8 +32,6 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu */ CLASSIFICATION_TYPE_UNSPECIFIED(0), /** - * - * *
      * At most one label is allowed per example.
      * 
@@ -57,8 +40,6 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu */ MULTICLASS(1), /** - * - * *
      * Multiple labels are allowed for one example.
      * 
@@ -70,8 +51,6 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * An un-set value of this enum.
      * 
@@ -80,8 +59,6 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu */ public static final int CLASSIFICATION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * At most one label is allowed per example.
      * 
@@ -90,8 +67,6 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu */ public static final int MULTICLASS_VALUE = 1; /** - * - * *
      * Multiple labels are allowed for one example.
      * 
@@ -100,6 +75,7 @@ public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnu */ public static final int MULTILABEL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -124,14 +100,10 @@ public static ClassificationType valueOf(int value) { */ public static ClassificationType forNumber(int value) { switch (value) { - case 0: - return CLASSIFICATION_TYPE_UNSPECIFIED; - case 1: - return MULTICLASS; - case 2: - return MULTILABEL; - default: - return null; + case 0: return CLASSIFICATION_TYPE_UNSPECIFIED; + case 1: return MULTICLASS; + case 2: return MULTILABEL; + default: return null; } } @@ -139,31 +111,29 @@ public static ClassificationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ClassificationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClassificationType findValueByNumber(int number) { + return ClassificationType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ClassificationType findValueByNumber(int number) { - return ClassificationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + 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.ClassificationProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor().getEnumTypes().get(0); } private static final ClassificationType[] VALUES = values(); @@ -171,7 +141,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ClassificationType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -188,14 +159,11 @@ private ClassificationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.automl.v1beta1.ClassificationType) } - public interface ClassificationAnnotationOrBuilder - extends + public interface ClassificationAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. A confidence estimate between 0.0 and 1.0. A higher value
      * means greater confidence that the annotation is positive. If a user
@@ -205,43 +173,41 @@ public interface ClassificationAnnotationOrBuilder
      * 
* * float score = 1; - * * @return The score. */ float getScore(); } /** - * - * *
    * Contains annotation details specific to classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationAnnotation} */ - public static final class ClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ClassificationAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ClassificationAnnotation) ClassificationAnnotationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassificationAnnotation.newBuilder() to construct. private ClassificationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ClassificationAnnotation() {} + private ClassificationAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClassificationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -260,51 +226,46 @@ private ClassificationAnnotation( case 0: done = true; break; - case 13: - { - score_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 13: { + + 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); + 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.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.class, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder - .class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.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 that the annotation is positive. If a user
@@ -314,7 +275,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * float score = 1; - * * @return The score. */ @java.lang.Override @@ -323,7 +283,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +294,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (score_ != 0F) { output.writeFloat(1, score_); } @@ -349,7 +309,8 @@ public int getSerializedSize() { size = 0; if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -359,18 +320,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation)) { + if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation other = - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) obj; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation other = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) obj; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -383,107 +342,95 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation 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.ClassificationAnnotation - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation 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.ClassificationAnnotation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation 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.ClassificationAnnotation - 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.ClassificationAnnotation 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.ClassificationAnnotation - 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.ClassificationAnnotation 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.ClassificationAnnotation - 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.ClassificationAnnotation 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.ClassificationAnnotation - 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.ClassificationAnnotation 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.ClassificationAnnotation - 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.ClassificationAnnotation 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.ClassificationAnnotation - parseFrom( - com.google.protobuf.CodedInputStream 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.ClassificationAnnotation 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -493,50 +440,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Contains annotation details specific to classification.
      * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationAnnotation} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ClassificationAnnotation) com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.class, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder - .class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -546,22 +487,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance(); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation build() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation result = - buildPartial(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -569,10 +507,8 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotat } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - buildPartial() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation result = - new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation(this); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation buildPartial() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation(this); result.score_ = score_; onBuilt(); return result; @@ -582,55 +518,46 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotat public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ClassificationAnnotation) { - return mergeFrom( - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) other); + if (other instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) { + return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation other) { - if (other - == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation other) { + if (other == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance()) return this; if (other.getScore() != 0F) { setScore(other.getScore()); } @@ -649,14 +576,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parsedMessage = - null; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,10 +590,8 @@ public Builder mergeFrom( return this; } - private float score_; + private float score_ ; /** - * - * *
        * Output only. A confidence estimate between 0.0 and 1.0. A higher value
        * means greater confidence that the annotation is positive. If a user
@@ -679,7 +601,6 @@ public Builder mergeFrom(
        * 
* * float score = 1; - * * @return The score. */ @java.lang.Override @@ -687,8 +608,6 @@ public float getScore() { return score_; } /** - * - * *
        * Output only. A confidence estimate between 0.0 and 1.0. A higher value
        * means greater confidence that the annotation is positive. If a user
@@ -698,19 +617,16 @@ public float getScore() {
        * 
* * float score = 1; - * * @param value The score to set. * @return This builder for chaining. */ 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 that the annotation is positive. If a user
@@ -720,16 +636,14 @@ public Builder setScore(float value) {
        * 
* * float score = 1; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -742,34 +656,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ClassificationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationAnnotation) - private static final com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation(); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -781,20 +691,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface VideoClassificationAnnotationOrBuilder - extends + public interface VideoClassificationAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. Expresses the type of video classification. Possible values:
      * *  `segment` - Classification done on a specified by user
@@ -819,13 +726,10 @@ public interface VideoClassificationAnnotationOrBuilder
      * 
* * string type = 1; - * * @return The type. */ java.lang.String getType(); /** - * - * *
      * Output only. Expresses the type of video classification. Possible values:
      * *  `segment` - Classification done on a specified by user
@@ -850,80 +754,59 @@ public interface VideoClassificationAnnotationOrBuilder
      * 
* * string type = 1; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
      * Output only . The classification details of this annotation.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; - * - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; * @return Whether the classificationAnnotation field is set. */ boolean hasClassificationAnnotation(); /** - * - * *
      * Output only . The classification details of this annotation.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; - * - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; * @return The classificationAnnotation. */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - getClassificationAnnotation(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassificationAnnotation(); /** - * - * *
      * Output only . The classification details of this annotation.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder - getClassificationAnnotationOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationAnnotationOrBuilder(); /** - * - * *
      * Output only . The time segment of the video to which the
      * annotation applies.
      * 
* * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; - * * @return Whether the timeSegment field is set. */ boolean hasTimeSegment(); /** - * - * *
      * Output only . The time segment of the video to which the
      * annotation applies.
      * 
* * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; - * * @return The timeSegment. */ com.google.cloud.automl.v1beta1.TimeSegment getTimeSegment(); /** - * - * *
      * Output only . The time segment of the video to which the
      * annotation applies.
@@ -934,41 +817,37 @@ public interface VideoClassificationAnnotationOrBuilder
     com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Contains annotation details specific to video classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationAnnotation} */ - public static final class VideoClassificationAnnotation - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class VideoClassificationAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoClassificationAnnotation) VideoClassificationAnnotationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VideoClassificationAnnotation.newBuilder() to construct. - private VideoClassificationAnnotation( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private VideoClassificationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VideoClassificationAnnotation() { type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VideoClassificationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VideoClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -987,89 +866,73 @@ private VideoClassificationAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; + type_ = s; + break; + } + case 18: { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder subBuilder = null; + if (classificationAnnotation_ != null) { + subBuilder = classificationAnnotation_.toBuilder(); } - case 18: - { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder - subBuilder = null; - if (classificationAnnotation_ != null) { - subBuilder = classificationAnnotation_.toBuilder(); - } - classificationAnnotation_ = - input.readMessage( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(classificationAnnotation_); - classificationAnnotation_ = subBuilder.buildPartial(); - } - - break; + classificationAnnotation_ = input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(classificationAnnotation_); + classificationAnnotation_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.automl.v1beta1.TimeSegment.Builder subBuilder = null; - if (timeSegment_ != null) { - subBuilder = timeSegment_.toBuilder(); - } - timeSegment_ = - input.readMessage( - com.google.cloud.automl.v1beta1.TimeSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeSegment_); - timeSegment_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.automl.v1beta1.TimeSegment.Builder subBuilder = null; + if (timeSegment_ != null) { + subBuilder = timeSegment_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + timeSegment_ = input.readMessage(com.google.cloud.automl.v1beta1.TimeSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSegment_); + timeSegment_ = 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); + 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.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_descriptor; + 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 + 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); + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.class, com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.Builder.class); } 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
@@ -1094,7 +957,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string type = 1; - * * @return The type. */ @java.lang.Override @@ -1103,15 +965,14 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -1136,15 +997,16 @@ public java.lang.String getType() {
      * 
* * string type = 1; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -1153,18 +1015,13 @@ public com.google.protobuf.ByteString getTypeBytes() { } public static final int CLASSIFICATION_ANNOTATION_FIELD_NUMBER = 2; - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - classificationAnnotation_; + 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; - * - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; * @return Whether the classificationAnnotation field is set. */ @java.lang.Override @@ -1172,53 +1029,38 @@ public boolean hasClassificationAnnotation() { return classificationAnnotation_ != null; } /** - * - * *
      * Output only . The classification details of this annotation.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; - * - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; * @return The classificationAnnotation. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - getClassificationAnnotation() { - return classificationAnnotation_ == null - ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance() - : classificationAnnotation_; + 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; - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder - getClassificationAnnotationOrBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationAnnotationOrBuilder() { return getClassificationAnnotation(); } 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; - * * @return Whether the timeSegment field is set. */ @java.lang.Override @@ -1226,26 +1068,19 @@ 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; - * * @return The timeSegment. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TimeSegment getTimeSegment() { - return timeSegment_ == null - ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + return timeSegment_ == null ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; } /** - * - * *
      * Output only . The time segment of the video to which the
      * annotation applies.
@@ -1259,7 +1094,6 @@ public com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuil
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1271,7 +1105,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
       }
@@ -1294,12 +1129,12 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
       }
       if (classificationAnnotation_ != null) {
-        size +=
-            com.google.protobuf.CodedOutputStream.computeMessageSize(
-                2, getClassificationAnnotation());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getClassificationAnnotation());
       }
       if (timeSegment_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTimeSegment());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(3, getTimeSegment());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -1309,25 +1144,24 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
-      if (!(obj
-          instanceof
-          com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation)) {
+      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;
+      com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation other = (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) obj;
 
-      if (!getType().equals(other.getType())) return false;
+      if (!getType()
+          .equals(other.getType())) return false;
       if (hasClassificationAnnotation() != other.hasClassificationAnnotation()) return false;
       if (hasClassificationAnnotation()) {
-        if (!getClassificationAnnotation().equals(other.getClassificationAnnotation()))
-          return false;
+        if (!getClassificationAnnotation()
+            .equals(other.getClassificationAnnotation())) return false;
       }
       if (hasTimeSegment() != other.hasTimeSegment()) return false;
       if (hasTimeSegment()) {
-        if (!getTimeSegment().equals(other.getTimeSegment())) return false;
+        if (!getTimeSegment()
+            .equals(other.getTimeSegment())) return false;
       }
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -1355,102 +1189,88 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    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 {
+    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 {
+    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 {
+    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 {
+    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 {
+    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)
+        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 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)
+        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 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)
+        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);
+    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 Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation
-            prototype) {
+    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);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1460,51 +1280,44 @@ protected Builder newBuilderForType(
       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 + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1526,23 +1339,19 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation build() { + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1550,11 +1359,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @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); + 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_; @@ -1574,56 +1380,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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(); @@ -1649,14 +1445,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1668,8 +1461,6 @@ public Builder mergeFrom( private java.lang.Object type_ = ""; /** - * - * *
        * Output only. Expresses the type of video classification. Possible values:
        * *  `segment` - Classification done on a specified by user
@@ -1694,13 +1485,13 @@ public Builder mergeFrom(
        * 
* * string type = 1; - * * @return The type. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1709,8 +1500,6 @@ public java.lang.String getType() { } } /** - * - * *
        * Output only. Expresses the type of video classification. Possible values:
        * *  `segment` - Classification done on a specified by user
@@ -1735,14 +1524,15 @@ public java.lang.String getType() {
        * 
* * string type = 1; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -1750,8 +1540,6 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
        * Output only. Expresses the type of video classification. Possible values:
        * *  `segment` - Classification done on a specified by user
@@ -1776,22 +1564,20 @@ public com.google.protobuf.ByteString getTypeBytes() {
        * 
* * string type = 1; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -1816,18 +1602,15 @@ public Builder setType(java.lang.String value) {
        * 
* * string type = 1; - * * @return This builder for chaining. */ 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
@@ -1852,78 +1635,58 @@ public Builder clearType() {
        * 
* * string type = 1; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - classificationAnnotation_; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; * @return Whether the classificationAnnotation field is set. */ public boolean hasClassificationAnnotation() { return classificationAnnotationBuilder_ != null || classificationAnnotation_ != null; } /** - * - * *
        * Output only . The classification details of this annotation.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; - * - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; * @return The classificationAnnotation. */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - getClassificationAnnotation() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassificationAnnotation() { if (classificationAnnotationBuilder_ == null) { - return classificationAnnotation_ == null - ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation - .getDefaultInstance() - : classificationAnnotation_; + 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; - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; */ - public Builder setClassificationAnnotation( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { + public Builder setClassificationAnnotation(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { if (classificationAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1937,18 +1700,14 @@ public Builder setClassificationAnnotation( return this; } /** - * - * *
        * Output only . The classification details of this annotation.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; */ public Builder setClassificationAnnotation( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder builderForValue) { if (classificationAnnotationBuilder_ == null) { classificationAnnotation_ = builderForValue.build(); onChanged(); @@ -1959,24 +1718,17 @@ public Builder setClassificationAnnotation( return this; } /** - * - * *
        * Output only . The classification details of this annotation.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; */ - public Builder mergeClassificationAnnotation( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { + 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(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.newBuilder(classificationAnnotation_).mergeFrom(value).buildPartial(); } else { classificationAnnotation_ = value; } @@ -1988,14 +1740,11 @@ public Builder mergeClassificationAnnotation( return this; } /** - * - * *
        * Output only . The classification details of this annotation.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; */ public Builder clearClassificationAnnotation() { if (classificationAnnotationBuilder_ == null) { @@ -2009,66 +1758,48 @@ public Builder clearClassificationAnnotation() { return this; } /** - * - * *
        * Output only . The classification details of this annotation.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder - getClassificationAnnotationBuilder() { - + 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; - * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder - getClassificationAnnotationOrBuilder() { + 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_; + 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; - * + * .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> + 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()); + 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_; @@ -2076,49 +1807,36 @@ public Builder clearClassificationAnnotation() { 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_; + 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; - * * @return Whether the timeSegment field is set. */ 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; - * * @return The timeSegment. */ public com.google.cloud.automl.v1beta1.TimeSegment getTimeSegment() { if (timeSegmentBuilder_ == null) { - return timeSegment_ == null - ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + 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.
@@ -2140,8 +1858,6 @@ public Builder setTimeSegment(com.google.cloud.automl.v1beta1.TimeSegment value)
         return this;
       }
       /**
-       *
-       *
        * 
        * Output only . The time segment of the video to which the
        * annotation applies.
@@ -2161,8 +1877,6 @@ public Builder setTimeSegment(
         return this;
       }
       /**
-       *
-       *
        * 
        * Output only . The time segment of the video to which the
        * annotation applies.
@@ -2174,9 +1888,7 @@ public Builder mergeTimeSegment(com.google.cloud.automl.v1beta1.TimeSegment valu
         if (timeSegmentBuilder_ == null) {
           if (timeSegment_ != null) {
             timeSegment_ =
-                com.google.cloud.automl.v1beta1.TimeSegment.newBuilder(timeSegment_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.cloud.automl.v1beta1.TimeSegment.newBuilder(timeSegment_).mergeFrom(value).buildPartial();
           } else {
             timeSegment_ = value;
           }
@@ -2188,8 +1900,6 @@ public Builder mergeTimeSegment(com.google.cloud.automl.v1beta1.TimeSegment valu
         return this;
       }
       /**
-       *
-       *
        * 
        * Output only . The time segment of the video to which the
        * annotation applies.
@@ -2209,8 +1919,6 @@ public Builder clearTimeSegment() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Output only . The time segment of the video to which the
        * annotation applies.
@@ -2219,13 +1927,11 @@ public Builder clearTimeSegment() {
        * .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.
@@ -2237,14 +1943,11 @@ public com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuil
         if (timeSegmentBuilder_ != null) {
           return timeSegmentBuilder_.getMessageOrBuilder();
         } else {
-          return timeSegment_ == null
-              ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance()
-              : timeSegment_;
+          return timeSegment_ == null ?
+              com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_;
         }
       }
       /**
-       *
-       *
        * 
        * Output only . The time segment of the video to which the
        * annotation applies.
@@ -2253,22 +1956,18 @@ public com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuil
        * .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>
+          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());
+          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) {
@@ -2281,34 +1980,30 @@ public final Builder mergeUnknownFields(
         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;
-
+    private static final com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation();
+      DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation();
     }
 
-    public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation
-        getDefaultInstance() {
+    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);
-          }
-        };
+    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;
@@ -2320,34 +2015,28 @@ public com.google.protobuf.Parser getParserForTyp
     }
 
     @java.lang.Override
-    public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation
-        getDefaultInstanceForType() {
+    public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface ClassificationEvaluationMetricsOrBuilder
-      extends
+  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; - * * @return The auPrc. */ float getAuPrc(); /** - * - * *
      * Output only. The Area Under Precision-Recall Curve metric based on priors.
      * Micro-averaged for the overall evaluation.
@@ -2355,42 +2044,32 @@ public interface ClassificationEvaluationMetricsOrBuilder
      * 
* * float base_au_prc = 2 [deprecated = true]; - * * @return The baseAuPrc. */ - @java.lang.Deprecated - float getBaseAuPrc(); + @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; - * * @return The auRoc. */ float getAuRoc(); /** - * - * *
      * Output only. The Log Loss metric.
      * 
* * float log_loss = 7; - * * @return The logLoss. */ 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
@@ -2401,17 +2080,11 @@ public interface ClassificationEvaluationMetricsOrBuilder
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry> + java.util.List 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
@@ -2422,16 +2095,10 @@ public interface ClassificationEvaluationMetricsOrBuilder
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - getConfidenceMetricsEntry(int index); + 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
@@ -2442,14 +2109,10 @@ public interface ClassificationEvaluationMetricsOrBuilder
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * 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
@@ -2460,18 +2123,11 @@ public interface ClassificationEvaluationMetricsOrBuilder
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - java.util.List< - ? extends - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> + java.util.List 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
@@ -2482,17 +2138,12 @@ public interface ClassificationEvaluationMetricsOrBuilder
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntryOrBuilder(int index); + 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
@@ -2500,16 +2151,11 @@ public interface ClassificationEvaluationMetricsOrBuilder
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return Whether the confusionMatrix field is set. */ boolean hasConfusionMatrix(); /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -2517,18 +2163,11 @@ public interface ClassificationEvaluationMetricsOrBuilder
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return The confusionMatrix. */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - getConfusionMatrix(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix(); /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -2536,68 +2175,52 @@ public interface ClassificationEvaluationMetricsOrBuilder
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder(); + 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; - * * @return A list containing the annotationSpecId. */ - java.util.List getAnnotationSpecIdList(); + java.util.List + getAnnotationSpecIdList(); /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @return The count of annotationSpecId. */ int getAnnotationSpecIdCount(); /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ java.lang.String getAnnotationSpecId(int index); /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); + com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index); } /** - * - * *
    * Model evaluation metrics for classification problems.
    * Note: For Video Classification this metrics only describe quality of the
@@ -2606,18 +2229,15 @@ public interface ClassificationEvaluationMetricsOrBuilder
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics}
    */
-  public static final class ClassificationEvaluationMetrics
-      extends com.google.protobuf.GeneratedMessageV3
-      implements
+  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;
+  private static final long serialVersionUID = 0L;
     // Use ClassificationEvaluationMetrics.newBuilder() to construct.
-    private ClassificationEvaluationMetrics(
-        com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private ClassificationEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private ClassificationEvaluationMetrics() {
       confidenceMetricsEntry_ = java.util.Collections.emptyList();
       annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -2625,15 +2245,16 @@ private ClassificationEvaluationMetrics() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ClassificationEvaluationMetrics();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private ClassificationEvaluationMetrics(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2653,85 +2274,71 @@ private ClassificationEvaluationMetrics(
             case 0:
               done = true;
               break;
-            case 13:
-              {
-                auPrc_ = input.readFloat();
-                break;
-              }
-            case 21:
-              {
-                baseAuPrc_ = input.readFloat();
-                break;
-              }
-            case 26:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  confidenceMetricsEntry_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.automl.v1beta1.ClassificationProto
-                              .ClassificationEvaluationMetrics.ConfidenceMetricsEntry>();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                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();
-                }
+            case 13: {
 
-                break;
+              auPrc_ = input.readFloat();
+              break;
+            }
+            case 21: {
+
+              baseAuPrc_ = input.readFloat();
+              break;
+            }
+            case 26: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                confidenceMetricsEntry_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  annotationSpecId_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                annotationSpecId_.add(s);
-                break;
+              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();
               }
-            case 53:
-              {
-                auRoc_ = input.readFloat();
-                break;
+              confusionMatrix_ = input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(confusionMatrix_);
+                confusionMatrix_ = subBuilder.buildPartial();
               }
-            case 61:
-              {
-                logLoss_ = input.readFloat();
-                break;
+
+              break;
+            }
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                annotationSpecId_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           confidenceMetricsEntry_ = java.util.Collections.unmodifiableList(confidenceMetricsEntry_);
@@ -2743,46 +2350,35 @@ private ClassificationEvaluationMetrics(
         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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder.class);
     }
 
-    public interface ConfidenceMetricsEntryOrBuilder
-        extends
+    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; - * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** - * - * *
        * Output only. Metrics are computed with an assumption that the model
        * always returns at most this many predictions (ordered by their score,
@@ -2790,67 +2386,52 @@ public interface ConfidenceMetricsEntryOrBuilder
        * 
* * int32 position_threshold = 14; - * * @return The positionThreshold. */ int getPositionThreshold(); /** - * - * *
        * Output only. Recall (True Positive Rate) for the given confidence
        * threshold.
        * 
* * float recall = 2; - * * @return The recall. */ float getRecall(); /** - * - * *
        * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; - * * @return The precision. */ float getPrecision(); /** - * - * *
        * Output only. False Positive Rate for the given confidence threshold.
        * 
* * float false_positive_rate = 8; - * * @return The falsePositiveRate. */ float getFalsePositiveRate(); /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @return The f1Score. */ float getF1Score(); /** - * - * *
        * Output only. The Recall (True Positive Rate) when only considering the
        * label that has the highest prediction score and not below the confidence
@@ -2858,14 +2439,11 @@ public interface ConfidenceMetricsEntryOrBuilder
        * 
* * float recall_at1 = 5; - * * @return The recallAt1. */ float getRecallAt1(); /** - * - * *
        * Output only. The precision when only considering the label that has the
        * highest prediction score and not below the confidence threshold for each
@@ -2873,14 +2451,11 @@ public interface ConfidenceMetricsEntryOrBuilder
        * 
* * float precision_at1 = 6; - * * @return The precisionAt1. */ float getPrecisionAt1(); /** - * - * *
        * Output only. The False Positive Rate when only considering the label that
        * has the highest prediction score and not below the confidence threshold
@@ -2888,113 +2463,95 @@ public interface ConfidenceMetricsEntryOrBuilder
        * 
* * float false_positive_rate_at1 = 9; - * * @return The falsePositiveRateAt1. */ 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; - * * @return The f1ScoreAt1. */ float getF1ScoreAt1(); /** - * - * *
        * Output only. The number of model created labels that match a ground truth
        * label.
        * 
* * int64 true_positive_count = 10; - * * @return The truePositiveCount. */ long getTruePositiveCount(); /** - * - * *
        * Output only. The number of model created labels that do not match a
        * ground truth label.
        * 
* * int64 false_positive_count = 11; - * * @return The falsePositiveCount. */ long getFalsePositiveCount(); /** - * - * *
        * Output only. The number of ground truth labels that are not matched
        * by a model created label.
        * 
* * int64 false_negative_count = 12; - * * @return The falseNegativeCount. */ 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; - * * @return The trueNegativeCount. */ long getTrueNegativeCount(); } /** - * - * *
      * Metrics for a single confidence threshold.
      * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConfidenceMetricsEntry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) ConfidenceMetricsEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConfidenceMetricsEntry() {} + private ConfidenceMetricsEntry() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3013,125 +2570,117 @@ private ConfidenceMetricsEntry( 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; - } - case 45: - { - recallAt1_ = input.readFloat(); - break; - } - case 53: - { - precisionAt1_ = input.readFloat(); - break; - } - case 61: - { - 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)) { - 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; + } + case 45: { + + recallAt1_ = input.readFloat(); + break; + } + case 53: { + + precisionAt1_ = input.readFloat(); + break; + } + case 61: { + + 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)) { + 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); + 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.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_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_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.class, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; 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; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -3142,8 +2691,6 @@ public float getConfidenceThreshold() { 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,
@@ -3151,7 +2698,6 @@ public float getConfidenceThreshold() {
        * 
* * int32 position_threshold = 14; - * * @return The positionThreshold. */ @java.lang.Override @@ -3162,15 +2708,12 @@ public int getPositionThreshold() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** - * - * *
        * Output only. Recall (True Positive Rate) for the given confidence
        * threshold.
        * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -3181,14 +2724,11 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** - * - * *
        * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; - * * @return The precision. */ @java.lang.Override @@ -3199,14 +2739,11 @@ public float getPrecision() { 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; - * * @return The falsePositiveRate. */ @java.lang.Override @@ -3217,14 +2754,11 @@ public float getFalsePositiveRate() { 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; - * * @return The f1Score. */ @java.lang.Override @@ -3235,8 +2769,6 @@ public float getF1Score() { public static final int RECALL_AT1_FIELD_NUMBER = 5; 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
@@ -3244,7 +2776,6 @@ public float getF1Score() {
        * 
* * float recall_at1 = 5; - * * @return The recallAt1. */ @java.lang.Override @@ -3255,8 +2786,6 @@ public float getRecallAt1() { public static final int PRECISION_AT1_FIELD_NUMBER = 6; private float precisionAt1_; /** - * - * *
        * Output only. The precision when only considering the label that has the
        * highest prediction score and not below the confidence threshold for each
@@ -3264,7 +2793,6 @@ public float getRecallAt1() {
        * 
* * float precision_at1 = 6; - * * @return The precisionAt1. */ @java.lang.Override @@ -3275,8 +2803,6 @@ public float getPrecisionAt1() { 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
@@ -3284,7 +2810,6 @@ public float getPrecisionAt1() {
        * 
* * float false_positive_rate_at1 = 9; - * * @return The falsePositiveRateAt1. */ @java.lang.Override @@ -3295,14 +2820,11 @@ public float getFalsePositiveRateAt1() { 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].
        * 
* * float f1_score_at1 = 7; - * * @return The f1ScoreAt1. */ @java.lang.Override @@ -3313,15 +2835,12 @@ public float getF1ScoreAt1() { 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; - * * @return The truePositiveCount. */ @java.lang.Override @@ -3332,15 +2851,12 @@ public long getTruePositiveCount() { 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; - * * @return The falsePositiveCount. */ @java.lang.Override @@ -3351,15 +2867,12 @@ public long getFalsePositiveCount() { 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; - * * @return The falseNegativeCount. */ @java.lang.Override @@ -3370,15 +2883,12 @@ public long getFalseNegativeCount() { 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; - * * @return The trueNegativeCount. */ @java.lang.Override @@ -3387,7 +2897,6 @@ public long getTrueNegativeCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3399,7 +2908,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -3452,46 +2962,60 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, f1Score_); } if (recallAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, recallAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, recallAt1_); } if (precisionAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, precisionAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, precisionAt1_); } if (f1ScoreAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, f1ScoreAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, f1ScoreAt1_); } if (falsePositiveRate_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, falsePositiveRate_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(8, falsePositiveRate_); } if (falsePositiveRateAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, falsePositiveRateAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(9, falsePositiveRateAt1_); } if (truePositiveCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, truePositiveCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, truePositiveCount_); } if (falsePositiveCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, falsePositiveCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, falsePositiveCount_); } if (falseNegativeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, falseNegativeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, falseNegativeCount_); } if (trueNegativeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, trueNegativeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(13, trueNegativeCount_); } if (positionThreshold_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, positionThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(14, positionThreshold_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3501,44 +3025,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry)) { + if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - other = - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry) - obj; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry other = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) - != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; - if (getPositionThreshold() != other.getPositionThreshold()) return false; + != 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; + != java.lang.Float.floatToIntBits( + other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + != java.lang.Float.floatToIntBits( + other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getFalsePositiveRate()) - != java.lang.Float.floatToIntBits(other.getFalsePositiveRate())) return false; + != java.lang.Float.floatToIntBits( + other.getFalsePositiveRate())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + != java.lang.Float.floatToIntBits( + other.getF1Score())) return false; if (java.lang.Float.floatToIntBits(getRecallAt1()) - != java.lang.Float.floatToIntBits(other.getRecallAt1())) return false; + != java.lang.Float.floatToIntBits( + other.getRecallAt1())) return false; if (java.lang.Float.floatToIntBits(getPrecisionAt1()) - != java.lang.Float.floatToIntBits(other.getPrecisionAt1())) return false; + != java.lang.Float.floatToIntBits( + other.getPrecisionAt1())) return false; if (java.lang.Float.floatToIntBits(getFalsePositiveRateAt1()) - != java.lang.Float.floatToIntBits(other.getFalsePositiveRateAt1())) return false; + != 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; + != 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; } @@ -3551,149 +3081,133 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getFalsePositiveRate()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getF1Score()); hash = (37 * hash) + RECALL_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecallAt1()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRecallAt1()); hash = (37 * hash) + PRECISION_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecisionAt1()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getFalsePositiveRateAt1()); hash = (37 * hash) + F1_SCORE_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1ScoreAt1()); + 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 = (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 = (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 = (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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTrueNegativeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto - .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto - .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto - .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto - .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto - .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto - .ClassificationEvaluationMetrics.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); + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3703,53 +3217,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Metrics for a single confidence threshold.
        * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_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_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry.class, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3785,26 +3290,19 @@ public Builder clear() { } @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; + 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(); + 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(); + 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); } @@ -3812,14 +3310,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @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); + 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_; @@ -3842,60 +3334,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -3953,16 +3431,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3972,17 +3445,14 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_; + 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; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -3990,47 +3460,39 @@ 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; - * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private int positionThreshold_; + 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,
@@ -4038,7 +3500,6 @@ public Builder clearConfidenceThreshold() {
          * 
* * int32 position_threshold = 14; - * * @return The positionThreshold. */ @java.lang.Override @@ -4046,8 +3507,6 @@ 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,
@@ -4055,19 +3514,16 @@ public int getPositionThreshold() {
          * 
* * int32 position_threshold = 14; - * * @param value The positionThreshold to set. * @return This builder for chaining. */ 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,
@@ -4075,27 +3531,23 @@ public Builder setPositionThreshold(int value) {
          * 
* * int32 position_threshold = 14; - * * @return This builder for chaining. */ public Builder clearPositionThreshold() { - + positionThreshold_ = 0; onChanged(); return this; } - private float recall_; + private float recall_ ; /** - * - * *
          * Output only. Recall (True Positive Rate) for the given confidence
          * threshold.
          * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -4103,53 +3555,44 @@ public float getRecall() { return recall_; } /** - * - * *
          * Output only. Recall (True Positive Rate) for the given confidence
          * threshold.
          * 
* * float recall = 2; - * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** - * - * *
          * Output only. Recall (True Positive Rate) for the given confidence
          * threshold.
          * 
* * float recall = 2; - * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_; + private float precision_ ; /** - * - * *
          * Output only. Precision for the given confidence threshold.
          * 
* * float precision = 3; - * * @return The precision. */ @java.lang.Override @@ -4157,51 +3600,42 @@ public float getPrecision() { return precision_; } /** - * - * *
          * Output only. Precision for the given confidence threshold.
          * 
* * float precision = 3; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** - * - * *
          * Output only. Precision for the given confidence threshold.
          * 
* * float precision = 3; - * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float falsePositiveRate_; + private float falsePositiveRate_ ; /** - * - * *
          * Output only. False Positive Rate for the given confidence threshold.
          * 
* * float false_positive_rate = 8; - * * @return The falsePositiveRate. */ @java.lang.Override @@ -4209,51 +3643,42 @@ public float getFalsePositiveRate() { return falsePositiveRate_; } /** - * - * *
          * Output only. False Positive Rate for the given confidence threshold.
          * 
* * float false_positive_rate = 8; - * * @param value The falsePositiveRate to set. * @return This builder for chaining. */ public Builder setFalsePositiveRate(float value) { - + falsePositiveRate_ = value; onChanged(); return this; } /** - * - * *
          * Output only. False Positive Rate for the given confidence threshold.
          * 
* * float false_positive_rate = 8; - * * @return This builder for chaining. */ public Builder clearFalsePositiveRate() { - + falsePositiveRate_ = 0F; onChanged(); return this; } - private float f1Score_; + private float f1Score_ ; /** - * - * *
          * Output only. The harmonic mean of recall and precision.
          * 
* * float f1_score = 4; - * * @return The f1Score. */ @java.lang.Override @@ -4261,45 +3686,37 @@ public float getF1Score() { return f1Score_; } /** - * - * *
          * Output only. The harmonic mean of recall and precision.
          * 
* * float f1_score = 4; - * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** - * - * *
          * Output only. The harmonic mean of recall and precision.
          * 
* * float f1_score = 4; - * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - private float recallAt1_; + 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
@@ -4307,7 +3724,6 @@ public Builder clearF1Score() {
          * 
* * float recall_at1 = 5; - * * @return The recallAt1. */ @java.lang.Override @@ -4315,8 +3731,6 @@ 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
@@ -4324,19 +3738,16 @@ public float getRecallAt1() {
          * 
* * float recall_at1 = 5; - * * @param value The recallAt1 to set. * @return This builder for chaining. */ public Builder setRecallAt1(float value) { - + 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
@@ -4344,20 +3755,17 @@ public Builder setRecallAt1(float value) {
          * 
* * float recall_at1 = 5; - * * @return This builder for chaining. */ public Builder clearRecallAt1() { - + recallAt1_ = 0F; onChanged(); return this; } - private float precisionAt1_; + private float precisionAt1_ ; /** - * - * *
          * Output only. The precision when only considering the label that has the
          * highest prediction score and not below the confidence threshold for each
@@ -4365,7 +3773,6 @@ public Builder clearRecallAt1() {
          * 
* * float precision_at1 = 6; - * * @return The precisionAt1. */ @java.lang.Override @@ -4373,8 +3780,6 @@ public float getPrecisionAt1() { return precisionAt1_; } /** - * - * *
          * Output only. The precision when only considering the label that has the
          * highest prediction score and not below the confidence threshold for each
@@ -4382,19 +3787,16 @@ public float getPrecisionAt1() {
          * 
* * float precision_at1 = 6; - * * @param value The precisionAt1 to set. * @return This builder for chaining. */ public Builder setPrecisionAt1(float value) { - + precisionAt1_ = value; onChanged(); return this; } /** - * - * *
          * Output only. The precision when only considering the label that has the
          * highest prediction score and not below the confidence threshold for each
@@ -4402,20 +3804,17 @@ public Builder setPrecisionAt1(float value) {
          * 
* * float precision_at1 = 6; - * * @return This builder for chaining. */ public Builder clearPrecisionAt1() { - + precisionAt1_ = 0F; onChanged(); return this; } - private float falsePositiveRateAt1_; + 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
@@ -4423,7 +3822,6 @@ public Builder clearPrecisionAt1() {
          * 
* * float false_positive_rate_at1 = 9; - * * @return The falsePositiveRateAt1. */ @java.lang.Override @@ -4431,8 +3829,6 @@ public float getFalsePositiveRateAt1() { return falsePositiveRateAt1_; } /** - * - * *
          * Output only. The False Positive Rate when only considering the label that
          * has the highest prediction score and not below the confidence threshold
@@ -4440,19 +3836,16 @@ public float getFalsePositiveRateAt1() {
          * 
* * float false_positive_rate_at1 = 9; - * * @param value The falsePositiveRateAt1 to set. * @return This builder for chaining. */ public Builder setFalsePositiveRateAt1(float value) { - + falsePositiveRateAt1_ = value; onChanged(); return this; } /** - * - * *
          * Output only. The False Positive Rate when only considering the label that
          * has the highest prediction score and not below the confidence threshold
@@ -4460,26 +3853,22 @@ public Builder setFalsePositiveRateAt1(float value) {
          * 
* * float false_positive_rate_at1 = 9; - * * @return This builder for chaining. */ public Builder clearFalsePositiveRateAt1() { - + falsePositiveRateAt1_ = 0F; onChanged(); return this; } - private float f1ScoreAt1_; - /** - * - * + 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].
          * 
* * float f1_score_at1 = 7; - * * @return The f1ScoreAt1. */ @java.lang.Override @@ -4487,52 +3876,43 @@ public float getF1ScoreAt1() { return 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].
          * 
* * float f1_score_at1 = 7; - * * @param value The f1ScoreAt1 to set. * @return This builder for chaining. */ public Builder setF1ScoreAt1(float value) { - + f1ScoreAt1_ = value; onChanged(); return this; } /** - * - * *
          * 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; - * * @return This builder for chaining. */ public Builder clearF1ScoreAt1() { - + f1ScoreAt1_ = 0F; onChanged(); return this; } - private long truePositiveCount_; + private long truePositiveCount_ ; /** - * - * *
          * Output only. The number of model created labels that match a ground truth
          * label.
          * 
* * int64 true_positive_count = 10; - * * @return The truePositiveCount. */ @java.lang.Override @@ -4540,54 +3920,45 @@ public long getTruePositiveCount() { return truePositiveCount_; } /** - * - * *
          * Output only. The number of model created labels that match a ground truth
          * label.
          * 
* * int64 true_positive_count = 10; - * * @param value The truePositiveCount to set. * @return This builder for chaining. */ public Builder setTruePositiveCount(long value) { - + truePositiveCount_ = value; onChanged(); return this; } /** - * - * *
          * Output only. The number of model created labels that match a ground truth
          * label.
          * 
* * int64 true_positive_count = 10; - * * @return This builder for chaining. */ public Builder clearTruePositiveCount() { - + truePositiveCount_ = 0L; onChanged(); return this; } - private long falsePositiveCount_; + private long falsePositiveCount_ ; /** - * - * *
          * Output only. The number of model created labels that do not match a
          * ground truth label.
          * 
* * int64 false_positive_count = 11; - * * @return The falsePositiveCount. */ @java.lang.Override @@ -4595,54 +3966,45 @@ public long getFalsePositiveCount() { return falsePositiveCount_; } /** - * - * *
          * Output only. The number of model created labels that do not match a
          * ground truth label.
          * 
* * int64 false_positive_count = 11; - * * @param value The falsePositiveCount to set. * @return This builder for chaining. */ public Builder setFalsePositiveCount(long value) { - + falsePositiveCount_ = value; onChanged(); return this; } /** - * - * *
          * Output only. The number of model created labels that do not match a
          * ground truth label.
          * 
* * int64 false_positive_count = 11; - * * @return This builder for chaining. */ public Builder clearFalsePositiveCount() { - + falsePositiveCount_ = 0L; onChanged(); return this; } - private long falseNegativeCount_; + 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; - * * @return The falseNegativeCount. */ @java.lang.Override @@ -4650,54 +4012,45 @@ public long getFalseNegativeCount() { return falseNegativeCount_; } /** - * - * *
          * Output only. The number of ground truth labels that are not matched
          * by a model created label.
          * 
* * int64 false_negative_count = 12; - * * @param value The falseNegativeCount to set. * @return This builder for chaining. */ public Builder setFalseNegativeCount(long value) { - + falseNegativeCount_ = value; onChanged(); return this; } /** - * - * *
          * Output only. The number of ground truth labels that are not matched
          * by a model created label.
          * 
* * int64 false_negative_count = 12; - * * @return This builder for chaining. */ public Builder clearFalseNegativeCount() { - + falseNegativeCount_ = 0L; onChanged(); return this; } - private long trueNegativeCount_; + 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; - * * @return The trueNegativeCount. */ @java.lang.Override @@ -4705,43 +4058,36 @@ public long getTrueNegativeCount() { return 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; - * * @param value The trueNegativeCount to set. * @return This builder for chaining. */ public Builder setTrueNegativeCount(long value) { - + trueNegativeCount_ = value; onChanged(); return this; } /** - * - * *
          * 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; - * * @return This builder for chaining. */ public Builder clearTrueNegativeCount() { - + trueNegativeCount_ = 0L; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4754,36 +4100,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) - private static final com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.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); - } - }; + 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; @@ -4795,21 +4135,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ConfusionMatrixOrBuilder - extends + public interface ConfusionMatrixOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4818,13 +4154,11 @@ public interface ConfusionMatrixOrBuilder
        * 
* * repeated string annotation_spec_id = 1; - * * @return A list containing the annotationSpecId. */ - java.util.List getAnnotationSpecIdList(); + java.util.List + getAnnotationSpecIdList(); /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4833,13 +4167,10 @@ public interface ConfusionMatrixOrBuilder
        * 
* * repeated string annotation_spec_id = 1; - * * @return The count of annotationSpecId. */ int getAnnotationSpecIdCount(); /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4848,14 +4179,11 @@ public interface ConfusionMatrixOrBuilder
        * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ java.lang.String getAnnotationSpecId(int index); /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4864,15 +4192,13 @@ public interface ConfusionMatrixOrBuilder
        * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); + com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index); /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4883,13 +4209,11 @@ public interface ConfusionMatrixOrBuilder
        * 
* * repeated string display_name = 3; - * * @return A list containing the displayName. */ - java.util.List getDisplayNameList(); + java.util.List + getDisplayNameList(); /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4900,13 +4224,10 @@ public interface ConfusionMatrixOrBuilder
        * 
* * repeated string display_name = 3; - * * @return The count of displayName. */ int getDisplayNameCount(); /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4917,14 +4238,11 @@ public interface ConfusionMatrixOrBuilder
        * 
* * repeated string display_name = 3; - * * @param index The index of the element to return. * @return The displayName at the given index. */ java.lang.String getDisplayName(int index); /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4935,15 +4253,13 @@ public interface ConfusionMatrixOrBuilder
        * 
* * repeated string display_name = 3; - * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - com.google.protobuf.ByteString getDisplayNameBytes(int index); + com.google.protobuf.ByteString + getDisplayNameBytes(int index); /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4952,17 +4268,11 @@ public interface ConfusionMatrixOrBuilder
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row> + java.util.List getRowList(); /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4971,16 +4281,10 @@ public interface ConfusionMatrixOrBuilder
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - getRow(int index); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index); /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4989,14 +4293,10 @@ public interface ConfusionMatrixOrBuilder
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ int getRowCount(); /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -5005,18 +4305,11 @@ public interface ConfusionMatrixOrBuilder
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - java.util.List< - ? extends - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> + java.util.List getRowOrBuilderList(); /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -5025,34 +4318,27 @@ public interface ConfusionMatrixOrBuilder
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.RowOrBuilder - getRowOrBuilder(int index); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( + int index); } /** - * - * *
      * Confusion matrix of the model running the classification.
      * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix} + * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix} */ - public static final class ConfusionMatrix extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConfusionMatrix extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) ConfusionMatrixOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfusionMatrix.newBuilder() to construct. private ConfusionMatrix(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfusionMatrix() { annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; displayName_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -5061,15 +4347,16 @@ private ConfusionMatrix() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfusionMatrix(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfusionMatrix( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5089,56 +4376,47 @@ private ConfusionMatrix( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - annotationSpecId_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - row_ = - new java.util.ArrayList< - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row>(); - mutable_bitField0_ |= 0x00000004; - } - row_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row.parser(), - extensionRegistry)); - break; + annotationSpecId_.add(s); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + row_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - displayName_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - displayName_.add(s); - break; + row_.add( + input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.parser(), extensionRegistry)); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + displayName_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + displayName_.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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); @@ -5153,32 +4431,24 @@ private ConfusionMatrix( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_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_ConfusionMatrix_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.class, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder.class); } - public interface RowOrBuilder - extends + public interface RowOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -5187,13 +4457,10 @@ public interface RowOrBuilder
          * 
* * repeated int32 example_count = 1; - * * @return A list containing the exampleCount. */ java.util.List getExampleCountList(); /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -5202,13 +4469,10 @@ public interface RowOrBuilder
          * 
* * repeated int32 example_count = 1; - * * @return The count of exampleCount. */ int getExampleCountCount(); /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -5217,47 +4481,43 @@ public interface RowOrBuilder
          * 
* * repeated int32 example_count = 1; - * * @param index The index of the element to return. * @return The exampleCount at the given index. */ int getExampleCount(int index); } /** - * - * *
        * Output only. A row in the confusion matrix.
        * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} + * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} */ - public static final class Row extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Row extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) RowOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Row() { exampleCount_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Row(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Row( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5277,44 +4537,41 @@ private Row( case 0: done = true; break; - case 8: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exampleCount_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - exampleCount_.addInt(input.readInt32()); - break; + case 8: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exampleCount_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + exampleCount_.addInt(input.readInt32()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + exampleCount_ = newIntList(); + mutable_bitField0_ |= 0x00000001; } - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) - && input.getBytesUntilLimit() > 0) { - exampleCount_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - exampleCount_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; + while (input.getBytesUntilLimit() > 0) { + exampleCount_.addInt(input.readInt32()); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(limit); + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { exampleCount_.makeImmutable(); // C @@ -5323,29 +4580,22 @@ private Row( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_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_ConfusionMatrix_Row_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); } public static final int EXAMPLE_COUNT_FIELD_NUMBER = 1; private com.google.protobuf.Internal.IntList exampleCount_; /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -5354,16 +4604,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
* * repeated int32 example_count = 1; - * * @return A list containing the exampleCount. */ @java.lang.Override - public java.util.List getExampleCountList() { + public java.util.List + getExampleCountList() { return exampleCount_; } /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -5372,15 +4620,12 @@ public java.util.List getExampleCountList() {
          * 
* * repeated int32 example_count = 1; - * * @return The count of exampleCount. */ public int getExampleCountCount() { return exampleCount_.size(); } /** - * - * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -5389,18 +4634,15 @@ public int getExampleCountCount() {
          * 
* * repeated int32 example_count = 1; - * * @param index The index of the element to return. * @return The exampleCount at the given index. */ public int getExampleCount(int index) { return exampleCount_.getInt(index); } - private int exampleCountMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5413,7 +4655,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (getExampleCountList().size() > 0) { output.writeUInt32NoTag(10); @@ -5434,14 +4676,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < exampleCount_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( - exampleCount_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(exampleCount_.getInt(i)); } size += dataSize; if (!getExampleCountList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } exampleCountMemoizedSerializedSize = dataSize; } @@ -5453,22 +4695,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row)) { + if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - other = - (com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row) - obj; - - if (!getExampleCountList().equals(other.getExampleCountList())) return false; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row other = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row) obj; + + if (!getExampleCountList() + .equals(other.getExampleCountList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5489,119 +4724,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.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); + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5611,53 +4815,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Output only. A row in the confusion matrix.
          * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} + * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_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_ConfusionMatrix_Row_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5667,26 +4862,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance(); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - build() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - result = buildPartial(); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row build() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5694,14 +4882,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - buildPartial() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - result = - new com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row(this); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row buildPartial() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { exampleCount_.makeImmutable(); @@ -5716,61 +4898,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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 - .ConfusionMatrix.Row) { - return mergeFrom( - (com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row) - other); + if (other instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row) { + return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - other) { - if (other - == com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row other) { + if (other == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()) return this; if (!other.exampleCount_.isEmpty()) { if (exampleCount_.isEmpty()) { exampleCount_ = other.exampleCount_; @@ -5796,16 +4963,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - parsedMessage = null; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5814,20 +4976,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Internal.IntList exampleCount_ = emptyIntList(); - private void ensureExampleCountIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { exampleCount_ = mutableCopy(exampleCount_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5836,17 +4994,14 @@ private void ensureExampleCountIsMutable() {
            * 
* * repeated int32 example_count = 1; - * * @return A list containing the exampleCount. */ - public java.util.List getExampleCountList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(exampleCount_) - : exampleCount_; + public java.util.List + getExampleCountList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(exampleCount_) : exampleCount_; } /** - * - * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5855,15 +5010,12 @@ public java.util.List getExampleCountList() {
            * 
* * repeated int32 example_count = 1; - * * @return The count of exampleCount. */ public int getExampleCountCount() { return exampleCount_.size(); } /** - * - * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5872,7 +5024,6 @@ public int getExampleCountCount() {
            * 
* * repeated int32 example_count = 1; - * * @param index The index of the element to return. * @return The exampleCount at the given index. */ @@ -5880,8 +5031,6 @@ public int getExampleCount(int index) { return exampleCount_.getInt(index); } /** - * - * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5890,20 +5039,18 @@ public int getExampleCount(int index) {
            * 
* * repeated int32 example_count = 1; - * * @param index The index to set the value at. * @param value The exampleCount to set. * @return This builder for chaining. */ - public Builder setExampleCount(int index, int value) { + public Builder setExampleCount( + int index, int value) { ensureExampleCountIsMutable(); exampleCount_.setInt(index, value); onChanged(); return this; } /** - * - * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5912,7 +5059,6 @@ public Builder setExampleCount(int index, int value) {
            * 
* * repeated int32 example_count = 1; - * * @param value The exampleCount to add. * @return This builder for chaining. */ @@ -5923,8 +5069,6 @@ public Builder addExampleCount(int value) { return this; } /** - * - * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5933,20 +5077,18 @@ public Builder addExampleCount(int value) {
            * 
* * repeated int32 example_count = 1; - * * @param values The exampleCount to add. * @return This builder for chaining. */ public Builder addAllExampleCount( java.lang.Iterable values) { ensureExampleCountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exampleCount_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exampleCount_); onChanged(); return this; } /** - * - * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5955,7 +5097,6 @@ public Builder addAllExampleCount(
            * 
* * repeated int32 example_count = 1; - * * @return This builder for chaining. */ public Builder clearExampleCount() { @@ -5964,7 +5105,6 @@ public Builder clearExampleCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5977,36 +5117,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) - private static final com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row(); } - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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); - } - }; + 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; @@ -6018,18 +5152,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList annotationSpecId_; /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -6038,15 +5169,13 @@ public com.google.protobuf.Parser getParserForType() {
        * 
* * repeated string annotation_spec_id = 1; - * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList + getAnnotationSpecIdList() { return annotationSpecId_; } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -6055,15 +5184,12 @@ public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() {
        * 
* * repeated string annotation_spec_id = 1; - * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -6072,7 +5198,6 @@ public int getAnnotationSpecIdCount() {
        * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -6080,8 +5205,6 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** - * - * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -6090,19 +5213,17 @@ public java.lang.String getAnnotationSpecId(int index) {
        * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList displayName_; /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -6113,15 +5234,13 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) {
        * 
* * repeated string display_name = 3; - * * @return A list containing the displayName. */ - public com.google.protobuf.ProtocolStringList getDisplayNameList() { + public com.google.protobuf.ProtocolStringList + getDisplayNameList() { return displayName_; } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -6132,15 +5251,12 @@ public com.google.protobuf.ProtocolStringList getDisplayNameList() {
        * 
* * repeated string display_name = 3; - * * @return The count of displayName. */ public int getDisplayNameCount() { return displayName_.size(); } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -6151,7 +5267,6 @@ public int getDisplayNameCount() {
        * 
* * repeated string display_name = 3; - * * @param index The index of the element to return. * @return The displayName at the given index. */ @@ -6159,8 +5274,6 @@ public java.lang.String getDisplayName(int index) { return displayName_.get(index); } /** - * - * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -6171,22 +5284,17 @@ public java.lang.String getDisplayName(int index) {
        * 
* * repeated string display_name = 3; - * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - public com.google.protobuf.ByteString getDisplayNameBytes(int index) { + public com.google.protobuf.ByteString + getDisplayNameBytes(int index) { return displayName_.getByteString(index); } public static final int ROW_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row> - row_; + private java.util.List row_; /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -6195,20 +5303,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ @java.lang.Override - public java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row> - getRowList() { + public java.util.List getRowList() { return row_; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -6217,21 +5318,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> + public java.util.List getRowOrBuilderList() { return row_; } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -6240,17 +5334,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ @java.lang.Override public int getRowCount() { return row_.size(); } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -6259,19 +5349,13 @@ public int getRowCount() {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - getRow(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index) { return row_.get(index); } /** - * - * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -6280,19 +5364,15 @@ public int getRowCount() {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.RowOrBuilder - getRowOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( + int index) { return row_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6304,10 +5384,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < annotationSpecId_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 1, annotationSpecId_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecId_.getRaw(i)); } for (int i = 0; i < row_.size(); i++) { output.writeMessage(2, row_.get(i)); @@ -6333,7 +5413,8 @@ public int getSerializedSize() { size += 1 * getAnnotationSpecIdList().size(); } for (int i = 0; i < row_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, row_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, row_.get(i)); } { int dataSize = 0; @@ -6351,24 +5432,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix)) { + if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - other = - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix) - obj; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix other = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix) obj; - if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; - if (!getDisplayNameList().equals(other.getDisplayNameList())) return false; - if (!getRowList().equals(other.getRowList())) return false; + if (!getAnnotationSpecIdList() + .equals(other.getAnnotationSpecIdList())) return false; + if (!getDisplayNameList() + .equals(other.getDisplayNameList())) return false; + if (!getRowList() + .equals(other.getRowList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6397,117 +5473,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix 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 - .ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix 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 - .ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix 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 - .ClassificationEvaluationMetrics.ConfusionMatrix - 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 - .ClassificationEvaluationMetrics.ConfusionMatrix - 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 - .ClassificationEvaluationMetrics.ConfusionMatrix - 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 - .ClassificationEvaluationMetrics.ConfusionMatrix - 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 - .ClassificationEvaluationMetrics.ConfusionMatrix - 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 - .ClassificationEvaluationMetrics.ConfusionMatrix - parseFrom( - com.google.protobuf.CodedInputStream 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6517,55 +5564,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Confusion matrix of the model running the classification.
        * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix} + * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_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_ConfusionMatrix_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.class, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRowFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6583,26 +5620,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.getDefaultInstance(); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - build() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - result = buildPartial(); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix build() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6610,14 +5640,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - buildPartial() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - result = - new com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix(this); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix buildPartial() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); @@ -6646,60 +5670,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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 - .ConfusionMatrix) { - return mergeFrom( - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix) - other); + if (other instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix) { + return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - other) { - if (other - == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix other) { + if (other == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance()) return this; if (!other.annotationSpecId_.isEmpty()) { if (annotationSpecId_.isEmpty()) { annotationSpecId_ = other.annotationSpecId_; @@ -6738,10 +5748,9 @@ public Builder mergeFrom( rowBuilder_ = null; row_ = other.row_; bitField0_ = (bitField0_ & ~0x00000004); - rowBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRowFieldBuilder() - : null; + rowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRowFieldBuilder() : null; } else { rowBuilder_.addAllMessages(other.row_); } @@ -6762,16 +5771,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - parsedMessage = null; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6780,21 +5784,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList annotationSpecId_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAnnotationSpecIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -6803,15 +5802,13 @@ private void ensureAnnotationSpecIdIsMutable() {
          * 
* * repeated string annotation_spec_id = 1; - * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList + getAnnotationSpecIdList() { return annotationSpecId_.getUnmodifiableView(); } /** - * - * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -6820,15 +5817,12 @@ public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() {
          * 
* * repeated string annotation_spec_id = 1; - * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** - * - * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -6837,7 +5831,6 @@ public int getAnnotationSpecIdCount() {
          * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -6845,8 +5838,6 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** - * - * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -6855,16 +5846,14 @@ public java.lang.String getAnnotationSpecId(int index) {
          * 
* * repeated string annotation_spec_id = 1; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } /** - * - * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -6873,23 +5862,21 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) {
          * 
* * repeated string annotation_spec_id = 1; - * * @param index The index to set the value at. * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId(int index, java.lang.String value) { + public Builder setAnnotationSpecId( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.set(index, value); onChanged(); return this; } /** - * - * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -6898,22 +5885,20 @@ public Builder setAnnotationSpecId(int index, java.lang.String value) {
          * 
* * repeated string annotation_spec_id = 1; - * * @param value The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecId(java.lang.String value) { + public Builder addAnnotationSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } /** - * - * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -6922,19 +5907,18 @@ public Builder addAnnotationSpecId(java.lang.String value) {
          * 
* * repeated string annotation_spec_id = 1; - * * @param values The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAllAnnotationSpecId(java.lang.Iterable values) { + public Builder addAllAnnotationSpecId( + java.lang.Iterable values) { ensureAnnotationSpecIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotationSpecId_); onChanged(); return this; } /** - * - * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -6943,7 +5927,6 @@ public Builder addAllAnnotationSpecId(java.lang.Iterable value
          * 
* * repeated string annotation_spec_id = 1; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { @@ -6953,8 +5936,6 @@ public Builder clearAnnotationSpecId() { return this; } /** - * - * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -6963,33 +5944,29 @@ public Builder clearAnnotationSpecId() {
          * 
* * repeated string annotation_spec_id = 1; - * * @param value The bytes of the annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder addAnnotationSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList displayName_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList displayName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDisplayNameIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { displayName_ = new com.google.protobuf.LazyStringArrayList(displayName_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -7000,15 +5977,13 @@ private void ensureDisplayNameIsMutable() {
          * 
* * repeated string display_name = 3; - * * @return A list containing the displayName. */ - public com.google.protobuf.ProtocolStringList getDisplayNameList() { + public com.google.protobuf.ProtocolStringList + getDisplayNameList() { return displayName_.getUnmodifiableView(); } /** - * - * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -7019,15 +5994,12 @@ public com.google.protobuf.ProtocolStringList getDisplayNameList() {
          * 
* * repeated string display_name = 3; - * * @return The count of displayName. */ public int getDisplayNameCount() { return displayName_.size(); } /** - * - * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -7038,7 +6010,6 @@ public int getDisplayNameCount() {
          * 
* * repeated string display_name = 3; - * * @param index The index of the element to return. * @return The displayName at the given index. */ @@ -7046,8 +6017,6 @@ public java.lang.String getDisplayName(int index) { return displayName_.get(index); } /** - * - * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -7058,16 +6027,14 @@ public java.lang.String getDisplayName(int index) {
          * 
* * repeated string display_name = 3; - * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - public com.google.protobuf.ByteString getDisplayNameBytes(int index) { + public com.google.protobuf.ByteString + getDisplayNameBytes(int index) { return displayName_.getByteString(index); } /** - * - * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -7078,23 +6045,21 @@ public com.google.protobuf.ByteString getDisplayNameBytes(int index) {
          * 
* * repeated string display_name = 3; - * * @param index The index to set the value at. * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(int index, java.lang.String value) { + public Builder setDisplayName( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDisplayNameIsMutable(); + throw new NullPointerException(); + } + ensureDisplayNameIsMutable(); displayName_.set(index, value); onChanged(); return this; } /** - * - * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -7105,22 +6070,20 @@ public Builder setDisplayName(int index, java.lang.String value) {
          * 
* * repeated string display_name = 3; - * * @param value The displayName to add. * @return This builder for chaining. */ - public Builder addDisplayName(java.lang.String value) { + public Builder addDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDisplayNameIsMutable(); + throw new NullPointerException(); + } + ensureDisplayNameIsMutable(); displayName_.add(value); onChanged(); return this; } /** - * - * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -7131,19 +6094,18 @@ public Builder addDisplayName(java.lang.String value) {
          * 
* * repeated string display_name = 3; - * * @param values The displayName to add. * @return This builder for chaining. */ - public Builder addAllDisplayName(java.lang.Iterable values) { + public Builder addAllDisplayName( + java.lang.Iterable values) { ensureDisplayNameIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, displayName_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, displayName_); onChanged(); return this; } /** - * - * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -7154,7 +6116,6 @@ public Builder addAllDisplayName(java.lang.Iterable values) {
          * 
* * repeated string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -7164,8 +6125,6 @@ public Builder clearDisplayName() { return this; } /** - * - * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -7176,48 +6135,34 @@ public Builder clearDisplayName() {
          * 
* * repeated string display_name = 3; - * * @param value The bytes of the displayName to add. * @return This builder for chaining. */ - public Builder addDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder addDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDisplayNameIsMutable(); displayName_.add(value); onChanged(); return this; } - private java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row> - row_ = java.util.Collections.emptyList(); - + private java.util.List row_ = + java.util.Collections.emptyList(); private void ensureRowIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - row_ = - new java.util.ArrayList< - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row>(row_); + row_ = new java.util.ArrayList(row_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row.Builder, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.RowOrBuilder> - rowBuilder_; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> rowBuilder_; /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7226,14 +6171,9 @@ private void ensureRowIsMutable() {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row> - getRowList() { + public java.util.List getRowList() { if (rowBuilder_ == null) { return java.util.Collections.unmodifiableList(row_); } else { @@ -7241,8 +6181,6 @@ private void ensureRowIsMutable() { } } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7251,9 +6189,7 @@ private void ensureRowIsMutable() {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public int getRowCount() { if (rowBuilder_ == null) { @@ -7263,8 +6199,6 @@ public int getRowCount() { } } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7273,13 +6207,9 @@ public int getRowCount() {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - getRow(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index) { if (rowBuilder_ == null) { return row_.get(index); } else { @@ -7287,8 +6217,6 @@ public int getRowCount() { } } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7297,15 +6225,10 @@ public int getRowCount() {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder setRow( - int index, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - value) { + int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7319,8 +6242,6 @@ public Builder setRow( return this; } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7329,15 +6250,10 @@ public Builder setRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder setRow( - int index, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row.Builder - builderForValue) { + int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.set(index, builderForValue.build()); @@ -7348,8 +6264,6 @@ public Builder setRow( return this; } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7358,14 +6272,9 @@ public Builder setRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public Builder addRow( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - value) { + public Builder addRow(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7379,8 +6288,6 @@ public Builder addRow( return this; } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7389,15 +6296,10 @@ public Builder addRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder addRow( - int index, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row - value) { + int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7411,8 +6313,6 @@ public Builder addRow( return this; } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7421,14 +6321,10 @@ public Builder addRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder addRow( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.add(builderForValue.build()); @@ -7439,8 +6335,6 @@ public Builder addRow( return this; } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7449,15 +6343,10 @@ public Builder addRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder addRow( - int index, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row.Builder - builderForValue) { + int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.add(index, builderForValue.build()); @@ -7468,8 +6357,6 @@ public Builder addRow( return this; } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7478,19 +6365,14 @@ public Builder addRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder addAllRow( - java.lang.Iterable< - ? extends - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row> - values) { + java.lang.Iterable values) { if (rowBuilder_ == null) { ensureRowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, row_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, row_); onChanged(); } else { rowBuilder_.addAllMessages(values); @@ -7498,8 +6380,6 @@ public Builder addAllRow( return this; } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7508,9 +6388,7 @@ public Builder addAllRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder clearRow() { if (rowBuilder_ == null) { @@ -7523,8 +6401,6 @@ public Builder clearRow() { return this; } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7533,9 +6409,7 @@ public Builder clearRow() {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ public Builder removeRow(int index) { if (rowBuilder_ == null) { @@ -7548,8 +6422,6 @@ public Builder removeRow(int index) { return this; } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7558,18 +6430,13 @@ public Builder removeRow(int index) {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row.Builder - getRowBuilder(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder getRowBuilder( + int index) { return getRowFieldBuilder().getBuilder(index); } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7578,22 +6445,16 @@ public Builder removeRow(int index) {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.RowOrBuilder - getRowOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( + int index) { if (rowBuilder_ == null) { - return row_.get(index); - } else { + return row_.get(index); } else { return rowBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7602,15 +6463,10 @@ public Builder removeRow(int index) {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public java.util.List< - ? extends - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> - getRowOrBuilderList() { + public java.util.List + getRowOrBuilderList() { if (rowBuilder_ != null) { return rowBuilder_.getMessageOrBuilderList(); } else { @@ -7618,8 +6474,6 @@ public Builder removeRow(int index) { } } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7628,21 +6482,13 @@ public Builder removeRow(int index) {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row.Builder - addRowBuilder() { - return getRowFieldBuilder() - .addBuilder( - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addRowBuilder() { + return getRowFieldBuilder().addBuilder( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7651,22 +6497,14 @@ public Builder removeRow(int index) {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row.Builder - addRowBuilder(int index) { - return getRowFieldBuilder() - .addBuilder( - index, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addRowBuilder( + int index) { + return getRowFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); } /** - * - * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -7675,40 +6513,26 @@ public Builder removeRow(int index) {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; */ - public java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row.Builder> - getRowBuilderList() { + public java.util.List + getRowBuilderList() { return getRowFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Row.Builder, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.RowOrBuilder> + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> getRowFieldBuilder() { if (rowBuilder_ == null) { - rowBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder>( - row_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder>( + row_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); row_ = null; } return rowBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7721,36 +6545,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) - private static final com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix(); } - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfusionMatrix parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfusionMatrix(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfusionMatrix parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfusionMatrix(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7762,25 +6580,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int AU_PRC_FIELD_NUMBER = 1; private float auPrc_; /** - * - * *
      * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
      * for the overall evaluation.
      * 
* * float au_prc = 1; - * * @return The auPrc. */ @java.lang.Override @@ -7791,8 +6605,6 @@ public float getAuPrc() { public static final int BASE_AU_PRC_FIELD_NUMBER = 2; private float baseAuPrc_; /** - * - * *
      * Output only. The Area Under Precision-Recall Curve metric based on priors.
      * Micro-averaged for the overall evaluation.
@@ -7800,27 +6612,22 @@ public float getAuPrc() {
      * 
* * float base_au_prc = 2 [deprecated = true]; - * * @return The baseAuPrc. */ @java.lang.Override - @java.lang.Deprecated - public float getBaseAuPrc() { + @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; - * * @return The auRoc. */ @java.lang.Override @@ -7831,14 +6638,11 @@ public float getAuRoc() { public static final int LOG_LOSS_FIELD_NUMBER = 7; private float logLoss_; /** - * - * *
      * Output only. The Log Loss metric.
      * 
* * float log_loss = 7; - * * @return The logLoss. */ @java.lang.Override @@ -7847,13 +6651,8 @@ public float getLogLoss() { } public static final int CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER = 3; - private java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry> - confidenceMetricsEntry_; + private java.util.List confidenceMetricsEntry_; /** - * - * *
      * 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
@@ -7864,20 +6663,13 @@ public float getLogLoss() {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ @java.lang.Override - public java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry> - getConfidenceMetricsEntryList() { + public java.util.List getConfidenceMetricsEntryList() { return confidenceMetricsEntry_; } /** - * - * *
      * 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
@@ -7888,21 +6680,14 @@ public float getLogLoss() {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> + public java.util.List getConfidenceMetricsEntryOrBuilderList() { return confidenceMetricsEntry_; } /** - * - * *
      * 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
@@ -7913,17 +6698,13 @@ public float getLogLoss() {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ @java.lang.Override public int getConfidenceMetricsEntryCount() { return confidenceMetricsEntry_.size(); } /** - * - * *
      * 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
@@ -7934,19 +6715,13 @@ public int getConfidenceMetricsEntryCount() {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - getConfidenceMetricsEntry(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index) { return confidenceMetricsEntry_.get(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
@@ -7957,24 +6732,17 @@ public int getConfidenceMetricsEntryCount() {
      * metrics are computed.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntryOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( + int index) { return confidenceMetricsEntry_.get(index); } public static final int CONFUSION_MATRIX_FIELD_NUMBER = 4; - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - confusionMatrix_; + private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -7982,10 +6750,7 @@ public int getConfidenceMetricsEntryCount() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return Whether the confusionMatrix field is set. */ @java.lang.Override @@ -7993,8 +6758,6 @@ public boolean hasConfusionMatrix() { return confusionMatrix_ != null; } /** - * - * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -8002,24 +6765,14 @@ public boolean hasConfusionMatrix() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return The confusionMatrix. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - getConfusionMatrix() { - return confusionMatrix_ == null - ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.getDefaultInstance() - : confusionMatrix_; + 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 MULTICLASS classification problems where number
@@ -8027,56 +6780,44 @@ public boolean hasConfusionMatrix() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { return getConfusionMatrix(); } public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList annotationSpecId_; /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList + getAnnotationSpecIdList() { return annotationSpecId_; } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -8084,23 +6825,20 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + 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; @@ -8112,7 +6850,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (auPrc_ != 0F) { output.writeFloat(1, auPrc_); } @@ -8144,18 +6883,20 @@ public int getSerializedSize() { size = 0; if (auPrc_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, auPrc_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, auPrc_); } if (baseAuPrc_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, baseAuPrc_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, baseAuPrc_); } for (int i = 0; i < confidenceMetricsEntry_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, confidenceMetricsEntry_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, confidenceMetricsEntry_.get(i)); } if (confusionMatrix_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfusionMatrix()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getConfusionMatrix()); } { int dataSize = 0; @@ -8166,10 +6907,12 @@ public int getSerializedSize() { size += 1 * getAnnotationSpecIdList().size(); } if (auRoc_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, auRoc_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, auRoc_); } if (logLoss_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, logLoss_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, logLoss_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8179,31 +6922,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)) { + if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics other = - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) obj; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics other = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) obj; if (java.lang.Float.floatToIntBits(getAuPrc()) - != java.lang.Float.floatToIntBits(other.getAuPrc())) return false; + != java.lang.Float.floatToIntBits( + other.getAuPrc())) return false; if (java.lang.Float.floatToIntBits(getBaseAuPrc()) - != java.lang.Float.floatToIntBits(other.getBaseAuPrc())) return false; + != java.lang.Float.floatToIntBits( + other.getBaseAuPrc())) return false; if (java.lang.Float.floatToIntBits(getAuRoc()) - != java.lang.Float.floatToIntBits(other.getAuRoc())) return false; + != 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; + != java.lang.Float.floatToIntBits( + other.getLogLoss())) return false; + if (!getConfidenceMetricsEntryList() + .equals(other.getConfidenceMetricsEntryList())) return false; if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; if (hasConfusionMatrix()) { - if (!getConfusionMatrix().equals(other.getConfusionMatrix())) return false; + if (!getConfusionMatrix() + .equals(other.getConfusionMatrix())) return false; } - if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; + if (!getAnnotationSpecIdList() + .equals(other.getAnnotationSpecIdList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -8216,13 +6962,17 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AU_PRC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuPrc()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getBaseAuPrc()); hash = (37 * hash) + AU_ROC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuRoc()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getAuRoc()); hash = (37 * hash) + LOG_LOSS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLogLoss()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getLogLoss()); if (getConfidenceMetricsEntryCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntryList().hashCode(); @@ -8240,114 +6990,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics 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 - .ClassificationEvaluationMetrics - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics 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 - .ClassificationEvaluationMetrics - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics 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 - .ClassificationEvaluationMetrics - 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.ClassificationEvaluationMetrics 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 - .ClassificationEvaluationMetrics - 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.ClassificationEvaluationMetrics 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 - .ClassificationEvaluationMetrics - 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.ClassificationEvaluationMetrics 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 - .ClassificationEvaluationMetrics - 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.ClassificationEvaluationMetrics 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 - .ClassificationEvaluationMetrics - 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.ClassificationEvaluationMetrics 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 - .ClassificationEvaluationMetrics - parseFrom( - com.google.protobuf.CodedInputStream 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.ClassificationEvaluationMetrics 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8357,8 +7081,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Model evaluation metrics for classification problems.
      * Note: For Video Classification this metrics only describe quality of the
@@ -8367,46 +7089,39 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics)
-        com.google.cloud.automl.v1beta1.ClassificationProto
-            .ClassificationEvaluationMetricsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.automl.v1beta1.ClassificationProto
-            .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor;
+        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetricsOrBuilder {
+      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
+        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);
+                com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.newBuilder()
+      // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getConfidenceMetricsEntryFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -8436,23 +7151,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.automl.v1beta1.ClassificationProto
-            .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
-          getDefaultInstanceForType() {
-        return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
-            .getDefaultInstance();
+      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getDefaultInstanceForType() {
+        return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance();
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
-          build() {
-        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics result =
-            buildPartial();
+      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics build() {
+        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -8460,11 +7171,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
-          buildPartial() {
-        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics result =
-            new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics(
-                this);
+      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics buildPartial() {
+        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics(this);
         int from_bitField0_ = bitField0_;
         result.auPrc_ = auPrc_;
         result.baseAuPrc_ = baseAuPrc_;
@@ -8472,8 +7180,7 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
         result.logLoss_ = logLoss_;
         if (confidenceMetricsEntryBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
-            confidenceMetricsEntry_ =
-                java.util.Collections.unmodifiableList(confidenceMetricsEntry_);
+            confidenceMetricsEntry_ = java.util.Collections.unmodifiableList(confidenceMetricsEntry_);
             bitField0_ = (bitField0_ & ~0x00000001);
           }
           result.confidenceMetricsEntry_ = confidenceMetricsEntry_;
@@ -8498,57 +7205,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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) {
-          return mergeFrom(
-              (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)
-                  other);
+        if (other instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) {
+          return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
-              other) {
-        if (other
-            == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics other) {
+        if (other == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance()) return this;
         if (other.getAuPrc() != 0F) {
           setAuPrc(other.getAuPrc());
         }
@@ -8579,10 +7275,9 @@ public Builder mergeFrom(
               confidenceMetricsEntryBuilder_ = null;
               confidenceMetricsEntry_ = other.confidenceMetricsEntry_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              confidenceMetricsEntryBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getConfidenceMetricsEntryFieldBuilder()
-                      : null;
+              confidenceMetricsEntryBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getConfidenceMetricsEntryFieldBuilder() : null;
             } else {
               confidenceMetricsEntryBuilder_.addAllMessages(other.confidenceMetricsEntry_);
             }
@@ -8616,14 +7311,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
-            parsedMessage = null;
+        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -8632,20 +7324,16 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
-      private float auPrc_;
+      private float auPrc_ ;
       /**
-       *
-       *
        * 
        * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
        * for the overall evaluation.
        * 
* * float au_prc = 1; - * * @return The auPrc. */ @java.lang.Override @@ -8653,47 +7341,39 @@ public float getAuPrc() { return auPrc_; } /** - * - * *
        * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
        * for the overall evaluation.
        * 
* * float au_prc = 1; - * * @param value The auPrc to set. * @return This builder for chaining. */ public Builder setAuPrc(float value) { - + auPrc_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
        * for the overall evaluation.
        * 
* * float au_prc = 1; - * * @return This builder for chaining. */ public Builder clearAuPrc() { - + auPrc_ = 0F; onChanged(); return this; } - private float baseAuPrc_; + private float baseAuPrc_ ; /** - * - * *
        * Output only. The Area Under Precision-Recall Curve metric based on priors.
        * Micro-averaged for the overall evaluation.
@@ -8701,17 +7381,13 @@ public Builder clearAuPrc() {
        * 
* * float base_au_prc = 2 [deprecated = true]; - * * @return The baseAuPrc. */ @java.lang.Override - @java.lang.Deprecated - public float getBaseAuPrc() { + @java.lang.Deprecated public float getBaseAuPrc() { return baseAuPrc_; } /** - * - * *
        * Output only. The Area Under Precision-Recall Curve metric based on priors.
        * Micro-averaged for the overall evaluation.
@@ -8719,20 +7395,16 @@ public float getBaseAuPrc() {
        * 
* * float base_au_prc = 2 [deprecated = true]; - * * @param value The baseAuPrc to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setBaseAuPrc(float value) { - + @java.lang.Deprecated public Builder setBaseAuPrc(float value) { + baseAuPrc_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The Area Under Precision-Recall Curve metric based on priors.
        * Micro-averaged for the overall evaluation.
@@ -8740,28 +7412,23 @@ public Builder setBaseAuPrc(float value) {
        * 
* * float base_au_prc = 2 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearBaseAuPrc() { - + @java.lang.Deprecated public Builder clearBaseAuPrc() { + baseAuPrc_ = 0F; onChanged(); return this; } - private float auRoc_; + private float auRoc_ ; /** - * - * *
        * Output only. The Area Under Receiver Operating Characteristic curve metric.
        * Micro-averaged for the overall evaluation.
        * 
* * float au_roc = 6; - * * @return The auRoc. */ @java.lang.Override @@ -8769,53 +7436,44 @@ 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; - * * @param value The auRoc to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearAuRoc() { - + auRoc_ = 0F; onChanged(); return this; } - private float logLoss_; + private float logLoss_ ; /** - * - * *
        * Output only. The Log Loss metric.
        * 
* * float log_loss = 7; - * * @return The logLoss. */ @java.lang.Override @@ -8823,69 +7481,48 @@ public float getLogLoss() { return logLoss_; } /** - * - * *
        * Output only. The Log Loss metric.
        * 
* * float log_loss = 7; - * * @param value The logLoss to set. * @return This builder for chaining. */ public Builder setLogLoss(float value) { - + logLoss_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The Log Loss metric.
        * 
* * float log_loss = 7; - * * @return This builder for chaining. */ 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 java.util.List confidenceMetricsEntry_ = + java.util.Collections.emptyList(); private void ensureConfidenceMetricsEntryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntry_ = - new java.util.ArrayList< - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry>( - confidenceMetricsEntry_); + confidenceMetricsEntry_ = new java.util.ArrayList(confidenceMetricsEntry_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.Builder, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> - confidenceMetricsEntryBuilder_; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> confidenceMetricsEntryBuilder_; /** - * - * *
        * 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
@@ -8896,14 +7533,9 @@ private void ensureConfidenceMetricsEntryIsMutable() {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry> - getConfidenceMetricsEntryList() { + public java.util.List getConfidenceMetricsEntryList() { if (confidenceMetricsEntryBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntry_); } else { @@ -8911,8 +7543,6 @@ private void ensureConfidenceMetricsEntryIsMutable() { } } /** - * - * *
        * 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
@@ -8923,9 +7553,7 @@ private void ensureConfidenceMetricsEntryIsMutable() {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public int getConfidenceMetricsEntryCount() { if (confidenceMetricsEntryBuilder_ == null) { @@ -8935,8 +7563,6 @@ public 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
@@ -8947,13 +7573,9 @@ public int getConfidenceMetricsEntryCount() {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - getConfidenceMetricsEntry(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index) { if (confidenceMetricsEntryBuilder_ == null) { return confidenceMetricsEntry_.get(index); } else { @@ -8961,8 +7583,6 @@ public 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
@@ -8973,15 +7593,10 @@ public int getConfidenceMetricsEntryCount() {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder setConfidenceMetricsEntry( - int index, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - value) { + int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8995,8 +7610,6 @@ public Builder setConfidenceMetricsEntry( return this; } /** - * - * *
        * 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
@@ -9007,15 +7620,10 @@ public Builder setConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder setConfidenceMetricsEntry( - int index, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.Builder - builderForValue) { + int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.set(index, builderForValue.build()); @@ -9026,8 +7634,6 @@ public Builder setConfidenceMetricsEntry( return this; } /** - * - * *
        * 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
@@ -9038,14 +7644,9 @@ public Builder setConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public Builder addConfidenceMetricsEntry( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - value) { + public Builder addConfidenceMetricsEntry(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9059,8 +7660,6 @@ public Builder addConfidenceMetricsEntry( return this; } /** - * - * *
        * 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
@@ -9071,15 +7670,10 @@ public Builder addConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder addConfidenceMetricsEntry( - int index, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - value) { + int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9093,8 +7687,6 @@ public Builder addConfidenceMetricsEntry( return this; } /** - * - * *
        * 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
@@ -9105,14 +7697,10 @@ public Builder addConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder addConfidenceMetricsEntry( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.add(builderForValue.build()); @@ -9123,8 +7711,6 @@ public Builder addConfidenceMetricsEntry( return this; } /** - * - * *
        * 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
@@ -9135,15 +7721,10 @@ public Builder addConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder addConfidenceMetricsEntry( - int index, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.Builder - builderForValue) { + int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.add(index, builderForValue.build()); @@ -9154,8 +7735,6 @@ public Builder addConfidenceMetricsEntry( return this; } /** - * - * *
        * 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
@@ -9166,19 +7745,14 @@ public Builder addConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder addAllConfidenceMetricsEntry( - java.lang.Iterable< - ? extends - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry> - values) { + java.lang.Iterable values) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntry_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, confidenceMetricsEntry_); onChanged(); } else { confidenceMetricsEntryBuilder_.addAllMessages(values); @@ -9186,8 +7760,6 @@ public Builder addAllConfidenceMetricsEntry( return this; } /** - * - * *
        * 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
@@ -9198,9 +7770,7 @@ public Builder addAllConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder clearConfidenceMetricsEntry() { if (confidenceMetricsEntryBuilder_ == null) { @@ -9213,8 +7783,6 @@ public Builder clearConfidenceMetricsEntry() { return this; } /** - * - * *
        * 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
@@ -9225,9 +7793,7 @@ public Builder clearConfidenceMetricsEntry() {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ public Builder removeConfidenceMetricsEntry(int index) { if (confidenceMetricsEntryBuilder_ == null) { @@ -9240,8 +7806,6 @@ public Builder removeConfidenceMetricsEntry(int index) { return this; } /** - * - * *
        * 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
@@ -9252,18 +7816,13 @@ public Builder removeConfidenceMetricsEntry(int index) {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.Builder - getConfidenceMetricsEntryBuilder(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntryBuilder( + int index) { return getConfidenceMetricsEntryFieldBuilder().getBuilder(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
@@ -9274,22 +7833,16 @@ public Builder removeConfidenceMetricsEntry(int index) {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntryOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( + int index) { if (confidenceMetricsEntryBuilder_ == null) { - return confidenceMetricsEntry_.get(index); - } else { + return confidenceMetricsEntry_.get(index); } else { return confidenceMetricsEntryBuilder_.getMessageOrBuilder(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
@@ -9300,15 +7853,10 @@ public Builder removeConfidenceMetricsEntry(int index) {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public java.util.List< - ? extends - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> - getConfidenceMetricsEntryOrBuilderList() { + public java.util.List + getConfidenceMetricsEntryOrBuilderList() { if (confidenceMetricsEntryBuilder_ != null) { return confidenceMetricsEntryBuilder_.getMessageOrBuilderList(); } else { @@ -9316,8 +7864,6 @@ public Builder removeConfidenceMetricsEntry(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
@@ -9328,21 +7874,13 @@ public Builder removeConfidenceMetricsEntry(int index) {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.Builder - addConfidenceMetricsEntryBuilder() { - return getConfidenceMetricsEntryFieldBuilder() - .addBuilder( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntryBuilder() { + return getConfidenceMetricsEntryFieldBuilder().addBuilder( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); } /** - * - * *
        * 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
@@ -9353,22 +7891,14 @@ public Builder removeConfidenceMetricsEntry(int index) {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.Builder - addConfidenceMetricsEntryBuilder(int index) { - return getConfidenceMetricsEntryFieldBuilder() - .addBuilder( - index, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntryBuilder( + int index) { + return getConfidenceMetricsEntryFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); } /** - * - * *
        * 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
@@ -9379,34 +7909,18 @@ public Builder removeConfidenceMetricsEntry(int index) {
        * metrics are computed.
        * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; */ - public java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.Builder> - getConfidenceMetricsEntryBuilderList() { + public java.util.List + getConfidenceMetricsEntryBuilderList() { return getConfidenceMetricsEntryFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.Builder, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntryFieldBuilder() { if (confidenceMetricsEntryBuilder_ == null) { - confidenceMetricsEntryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntry_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -9416,20 +7930,10 @@ public Builder removeConfidenceMetricsEntry(int index) { return confidenceMetricsEntryBuilder_; } - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - confusionMatrix_; + 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_; + 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 MULTICLASS classification problems where number
@@ -9437,18 +7941,13 @@ public Builder removeConfidenceMetricsEntry(int index) {
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return Whether the confusionMatrix field is set. */ public boolean hasConfusionMatrix() { return confusionMatrixBuilder_ != null || confusionMatrix_ != null; } /** - * - * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -9456,27 +7955,17 @@ public boolean hasConfusionMatrix() {
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; * @return The confusionMatrix. */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - getConfusionMatrix() { + 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_; + 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 MULTICLASS classification problems where number
@@ -9484,14 +7973,9 @@ public boolean hasConfusionMatrix() {
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ - public Builder setConfusionMatrix( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - value) { + public Builder setConfusionMatrix(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9505,8 +7989,6 @@ public Builder setConfusionMatrix( return this; } /** - * - * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -9514,14 +7996,10 @@ public Builder setConfusionMatrix(
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ public Builder setConfusionMatrix( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue) { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = builderForValue.build(); onChanged(); @@ -9532,8 +8010,6 @@ public Builder setConfusionMatrix( return this; } /** - * - * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -9541,21 +8017,13 @@ public Builder setConfusionMatrix(
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ - public Builder mergeConfusionMatrix( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - value) { + 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(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder(confusionMatrix_).mergeFrom(value).buildPartial(); } else { confusionMatrix_ = value; } @@ -9567,8 +8035,6 @@ public Builder mergeConfusionMatrix( return this; } /** - * - * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -9576,9 +8042,7 @@ public Builder mergeConfusionMatrix(
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ public Builder clearConfusionMatrix() { if (confusionMatrixBuilder_ == null) { @@ -9592,8 +8056,6 @@ public Builder clearConfusionMatrix() { return this; } /** - * - * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -9601,20 +8063,14 @@ public Builder clearConfusionMatrix() {
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Builder - getConfusionMatrixBuilder() { - + 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 MULTICLASS classification problems where number
@@ -9622,25 +8078,17 @@ public Builder clearConfusionMatrix() {
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder() { + 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_; + return confusionMatrix_ == null ? + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } } /** - * - * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -9648,79 +8096,58 @@ public Builder clearConfusionMatrix() {
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; */ 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> + 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()); + 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 com.google.protobuf.LazyStringList annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAnnotationSpecIdIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; - * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList + getAnnotationSpecIdList() { return annotationSpecId_.getUnmodifiableView(); } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; - * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -9728,90 +8155,80 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; - * * @param index The index to set the value at. * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId(int index, java.lang.String value) { + public Builder setAnnotationSpecId( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.set(index, value); onChanged(); return this; } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; - * * @param value The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecId(java.lang.String value) { + public Builder addAnnotationSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; - * * @param values The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAllAnnotationSpecId(java.lang.Iterable values) { + public Builder addAllAnnotationSpecId( + java.lang.Iterable values) { ensureAnnotationSpecIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotationSpecId_); onChanged(); return this; } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { @@ -9821,28 +8238,25 @@ public Builder clearAnnotationSpecId() { return this; } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; - * * @param value The bytes of the annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder addAnnotationSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { @@ -9855,35 +8269,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics) - private static final com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics(); } - public static com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationEvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationEvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationEvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9895,167 +8304,135 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_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 + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { - "\n0google/cloud/automl/v1beta1/classifica" - + "tion.proto\022\033google.cloud.automl.v1beta1\032" - + "*google/cloud/automl/v1beta1/temporal.pr" - + "oto\032\034google/api/annotations.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\"\251" - + "\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\300\001\n\017ConfusionMat" - + "rix\022\032\n\022annotation_spec_id\030\001 \003(\t\022\024\n\014displ" - + "ay_name\030\003 \003(\t\022]\n\003row\030\002 \003(\0132P.google.clou" - + "d.automl.v1beta1.ClassificationEvaluatio" - + "nMetrics.ConfusionMatrix.Row\032\034\n\003Row\022\025\n\re" - + "xample_count\030\001 \003(\005*Y\n\022ClassificationType" - + "\022#\n\037CLASSIFICATION_TYPE_UNSPECIFIED\020\000\022\016\n" - + "\nMULTICLASS\020\001\022\016\n\nMULTILABEL\020\002B\270\001\n\037com.go" - + "ogle.cloud.automl.v1beta1B\023Classificatio" - + "nProtoZAgoogle.golang.org/genproto/googl" - + "eapis/cloud/automl/v1beta1;automl\312\002\033Goog" - + "le\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud:" - + ":AutoML::V1beta1b\006proto3" + "\n0google/cloud/automl/v1beta1/classifica" + + "tion.proto\022\033google.cloud.automl.v1beta1\032" + + "*google/cloud/automl/v1beta1/temporal.pr" + + "oto\032\034google/api/annotations.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\"\251" + + "\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\300\001\n\017ConfusionMat" + + "rix\022\032\n\022annotation_spec_id\030\001 \003(\t\022\024\n\014displ" + + "ay_name\030\003 \003(\t\022]\n\003row\030\002 \003(\0132P.google.clou" + + "d.automl.v1beta1.ClassificationEvaluatio" + + "nMetrics.ConfusionMatrix.Row\032\034\n\003Row\022\025\n\re" + + "xample_count\030\001 \003(\005*Y\n\022ClassificationType" + + "\022#\n\037CLASSIFICATION_TYPE_UNSPECIFIED\020\000\022\016\n" + + "\nMULTICLASS\020\001\022\016\n\nMULTILABEL\020\002B\270\001\n\037com.go" + + "ogle.cloud.automl.v1beta1B\023Classificatio" + + "nProtoZAgoogle.golang.org/genproto/googl" + + "eapis/cloud/automl/v1beta1;automl\312\002\033Goog" + + "le\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud:" + + ":AutoML::V1beta1b\006proto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor, - new java.lang.String[] { - "Score", - }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor, + new java.lang.String[] { "Score", }); 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", - }); + 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", - "AuRoc", - "LogLoss", - "ConfidenceMetricsEntry", - "ConfusionMatrix", - "AnnotationSpecId", - }); + 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", "AuRoc", "LogLoss", "ConfidenceMetricsEntry", "ConfusionMatrix", "AnnotationSpecId", }); internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor = - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - 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_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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 - .getNestedTypes() - .get(1); - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor, - new java.lang.String[] { - "AnnotationSpecId", "DisplayName", "Row", - }); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor, + new java.lang.String[] { "AnnotationSpecId", "DisplayName", "Row", }); internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor = - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor, - new java.lang.String[] { - "ExampleCount", - }); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor, + new java.lang.String[] { "ExampleCount", }); com.google.cloud.automl.v1beta1.Temporal.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java similarity index 71% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java index 205daa7c2..10d8cf661 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 .
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec}
  */
-public final class ColumnSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+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_ = "";
@@ -49,15 +31,16 @@ private ColumnSpec() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ColumnSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ColumnSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,86 +60,73 @@ private ColumnSpec(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.automl.v1beta1.DataType.Builder subBuilder = null;
+            if (dataType_ != null) {
+              subBuilder = dataType_.toBuilder();
             }
-          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;
+            dataType_ = input.readMessage(com.google.cloud.automl.v1beta1.DataType.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(dataType_);
+              dataType_ = subBuilder.buildPartial();
             }
-          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 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              break;
+            displayName_ = s;
+            break;
+          }
+          case 34: {
+            com.google.cloud.automl.v1beta1.DataStats.Builder subBuilder = null;
+            if (dataStats_ != null) {
+              subBuilder = dataStats_.toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                topCorrelatedColumns_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              topCorrelatedColumns_.add(
-                  input.readMessage(
-                      com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.parser(),
-                      extensionRegistry));
-              break;
+            dataStats_ = input.readMessage(com.google.cloud.automl.v1beta1.DataStats.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(dataStats_);
+              dataStats_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              topCorrelatedColumns_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         topCorrelatedColumns_ = java.util.Collections.unmodifiableList(topCorrelatedColumns_);
@@ -165,81 +135,64 @@ private ColumnSpec(
       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;
+  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
+    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);
+            com.google.cloud.automl.v1beta1.ColumnSpec.class, com.google.cloud.automl.v1beta1.ColumnSpec.Builder.class);
   }
 
-  public interface CorrelatedColumnOrBuilder
-      extends
+  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; - * * @return The columnSpecId. */ 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; - * * @return The bytes for columnSpecId. */ - com.google.protobuf.ByteString getColumnSpecIdBytes(); + com.google.protobuf.ByteString + getColumnSpecIdBytes(); /** - * - * *
      * Correlation between this and the in-context column.
      * 
* * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; - * * @return Whether the correlationStats field is set. */ boolean hasCorrelationStats(); /** - * - * *
      * Correlation between this and the in-context column.
      * 
* * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; - * * @return The correlationStats. */ com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats(); /** - * - * *
      * Correlation between this and the in-context column.
      * 
@@ -249,8 +202,6 @@ public interface CorrelatedColumnOrBuilder com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder getCorrelationStatsOrBuilder(); } /** - * - * *
    * Identifies the table's column, and its correlation with the column this
    * ColumnSpec describes.
@@ -258,31 +209,31 @@ public interface CorrelatedColumnOrBuilder
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn}
    */
-  public static final class CorrelatedColumn extends com.google.protobuf.GeneratedMessageV3
-      implements
+  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;
+  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
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new CorrelatedColumn();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private CorrelatedColumn(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -301,76 +252,66 @@ private CorrelatedColumn(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                columnSpecId_ = s;
-                break;
+              columnSpecId_ = s;
+              break;
+            }
+            case 18: {
+              com.google.cloud.automl.v1beta1.CorrelationStats.Builder subBuilder = null;
+              if (correlationStats_ != null) {
+                subBuilder = correlationStats_.toBuilder();
               }
-            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;
+              correlationStats_ = input.readMessage(com.google.cloud.automl.v1beta1.CorrelationStats.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(correlationStats_);
+                correlationStats_ = subBuilder.buildPartial();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+
+              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);
+        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;
+    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
+      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);
+              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; - * * @return The columnSpecId. */ @java.lang.Override @@ -379,30 +320,30 @@ public java.lang.String getColumnSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for columnSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString getColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnSpecId_ = b; return b; } else { @@ -413,14 +354,11 @@ public com.google.protobuf.ByteString getColumnSpecIdBytes() { 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; - * * @return Whether the correlationStats field is set. */ @java.lang.Override @@ -428,25 +366,18 @@ public boolean hasCorrelationStats() { return correlationStats_ != null; } /** - * - * *
      * Correlation between this and the in-context column.
      * 
* * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; - * * @return The correlationStats. */ @java.lang.Override public com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats() { - return correlationStats_ == null - ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() - : correlationStats_; + return correlationStats_ == null ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() : correlationStats_; } /** - * - * *
      * Correlation between this and the in-context column.
      * 
@@ -454,13 +385,11 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats() { * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder - getCorrelationStatsOrBuilder() { + public com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder getCorrelationStatsOrBuilder() { return getCorrelationStats(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -472,7 +401,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnSpecId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnSpecId_); } @@ -492,7 +422,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnSpecId_); } if (correlationStats_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCorrelationStats()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCorrelationStats()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -502,18 +433,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn other = (com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) obj; - if (!getColumnSpecId().equals(other.getColumnSpecId())) return false; + if (!getColumnSpecId() + .equals(other.getColumnSpecId())) return false; if (hasCorrelationStats() != other.hasCorrelationStats()) return false; if (hasCorrelationStats()) { - if (!getCorrelationStats().equals(other.getCorrelationStats())) return false; + if (!getCorrelationStats() + .equals(other.getCorrelationStats())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -538,94 +470,87 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -635,8 +560,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Identifies the table's column, and its correlation with the column this
      * ColumnSpec describes.
@@ -644,24 +567,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    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;
+      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
+        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);
+                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()
@@ -669,15 +589,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -693,14 +614,13 @@ public Builder clear() {
       }
 
       @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;
+      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() {
+      public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getDefaultInstanceForType() {
         return com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance();
       }
 
@@ -715,8 +635,7 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn build() {
 
       @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);
+        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_;
@@ -731,41 +650,38 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn buildPartial(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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);
+          return mergeFrom((com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -773,9 +689,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       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 == com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance()) return this;
         if (!other.getColumnSpecId().isEmpty()) {
           columnSpecId_ = other.columnSpecId_;
           onChanged();
@@ -802,9 +716,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -816,21 +728,19 @@ public Builder mergeFrom(
 
       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; - * * @return The columnSpecId. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnSpecId_ = s; return s; @@ -839,22 +749,21 @@ public 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; - * * @return The bytes for columnSpecId. */ - public com.google.protobuf.ByteString getColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnSpecId_ = b; return b; } else { @@ -862,64 +771,57 @@ public com.google.protobuf.ByteString getColumnSpecIdBytes() { } } /** - * - * *
        * The column_spec_id of the correlated column, which belongs to the same
        * table as the in-context column.
        * 
* * string column_spec_id = 1; - * * @param value The columnSpecId to set. * @return This builder for chaining. */ - public Builder setColumnSpecId(java.lang.String value) { + public Builder setColumnSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for columnSpecId to set. * @return This builder for chaining. */ - public Builder setColumnSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder setColumnSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + columnSpecId_ = value; onChanged(); return this; @@ -927,47 +829,34 @@ public Builder setColumnSpecIdBytes(com.google.protobuf.ByteString value) { 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_; + 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; - * * @return Whether the correlationStats field is set. */ public boolean hasCorrelationStats() { return correlationStatsBuilder_ != null || correlationStats_ != null; } /** - * - * *
        * Correlation between this and the in-context column.
        * 
* * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; - * * @return The correlationStats. */ public com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats() { if (correlationStatsBuilder_ == null) { - return correlationStats_ == null - ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() - : correlationStats_; + return correlationStats_ == null ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() : correlationStats_; } else { return correlationStatsBuilder_.getMessage(); } } /** - * - * *
        * Correlation between this and the in-context column.
        * 
@@ -988,8 +877,6 @@ public Builder setCorrelationStats(com.google.cloud.automl.v1beta1.CorrelationSt return this; } /** - * - * *
        * Correlation between this and the in-context column.
        * 
@@ -1008,8 +895,6 @@ public Builder setCorrelationStats( return this; } /** - * - * *
        * Correlation between this and the in-context column.
        * 
@@ -1020,9 +905,7 @@ public Builder mergeCorrelationStats(com.google.cloud.automl.v1beta1.Correlation if (correlationStatsBuilder_ == null) { if (correlationStats_ != null) { correlationStats_ = - com.google.cloud.automl.v1beta1.CorrelationStats.newBuilder(correlationStats_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1beta1.CorrelationStats.newBuilder(correlationStats_).mergeFrom(value).buildPartial(); } else { correlationStats_ = value; } @@ -1034,8 +917,6 @@ public Builder mergeCorrelationStats(com.google.cloud.automl.v1beta1.Correlation return this; } /** - * - * *
        * Correlation between this and the in-context column.
        * 
@@ -1054,8 +935,6 @@ public Builder clearCorrelationStats() { return this; } /** - * - * *
        * Correlation between this and the in-context column.
        * 
@@ -1063,32 +942,26 @@ public Builder clearCorrelationStats() { * .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() { + 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_; + return correlationStats_ == null ? + com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() : correlationStats_; } } /** - * - * *
        * Correlation between this and the in-context column.
        * 
@@ -1096,22 +969,18 @@ public com.google.cloud.automl.v1beta1.CorrelationStats.Builder getCorrelationSt * .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> + 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()); + 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) { @@ -1124,13 +993,12 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn(); } @@ -1139,16 +1007,16 @@ public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getDef 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); - } - }; + 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; @@ -1163,13 +1031,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the column specs.
    * Form:
@@ -1177,7 +1044,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getDefaultIns
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1186,15 +1052,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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:
@@ -1202,15 +1067,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1221,14 +1087,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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; - * * @return Whether the dataType field is set. */ @java.lang.Override @@ -1236,25 +1099,18 @@ public boolean hasDataType() { return dataType_ != null; } /** - * - * *
    * The data type of elements stored in the column.
    * 
* * .google.cloud.automl.v1beta1.DataType data_type = 2; - * * @return The dataType. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DataType getDataType() { - return dataType_ == null - ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() - : dataType_; + return dataType_ == null ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() : dataType_; } /** - * - * *
    * The data type of elements stored in the column.
    * 
@@ -1269,8 +1125,6 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder() 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
@@ -1279,7 +1133,6 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder()
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -1288,15 +1141,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -1305,15 +1157,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1324,8 +1177,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { 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
@@ -1334,7 +1185,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; - * * @return Whether the dataStats field is set. */ @java.lang.Override @@ -1342,8 +1192,6 @@ 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
@@ -1352,18 +1200,13 @@ public boolean hasDataStats() {
    * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; - * * @return The dataStats. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DataStats getDataStats() { - return dataStats_ == null - ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() - : dataStats_; + 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
@@ -1379,101 +1222,74 @@ public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getDataStatsOrBuilder(
   }
 
   public static final int TOP_CORRELATED_COLUMNS_FIELD_NUMBER = 5;
-  private java.util.List
-      topCorrelatedColumns_;
+  private java.util.List topCorrelatedColumns_;
   /**
-   *
-   *
    * 
    * Deprecated.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ @java.lang.Override - public java.util.List - getTopCorrelatedColumnsList() { + public java.util.List getTopCorrelatedColumnsList() { return topCorrelatedColumns_; } /** - * - * *
    * Deprecated.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder> + public java.util.List getTopCorrelatedColumnsOrBuilderList() { return topCorrelatedColumns_; } /** - * - * *
    * Deprecated.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ @java.lang.Override public int getTopCorrelatedColumnsCount() { return topCorrelatedColumns_.size(); } /** - * - * *
    * Deprecated.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns( - int index) { + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns(int index) { return topCorrelatedColumns_.get(index); } /** - * - * *
    * Deprecated.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder - getTopCorrelatedColumnsOrBuilder(int index) { + 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; - * * @return The etag. */ @java.lang.Override @@ -1482,30 +1298,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1514,7 +1330,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1526,7 +1341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1558,17 +1374,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (dataType_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDataType()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (dataStats_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDataStats()); + 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)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, topCorrelatedColumns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); @@ -1581,26 +1399,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ColumnSpec other = (com.google.cloud.automl.v1beta1.ColumnSpec) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasDataType() != other.hasDataType()) return false; if (hasDataType()) { - if (!getDataType().equals(other.getDataType())) return false; + if (!getDataType() + .equals(other.getDataType())) return false; } - if (!getDisplayName().equals(other.getDisplayName())) 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 (!getDataStats() + .equals(other.getDataStats())) return false; } - if (!getTopCorrelatedColumnsList().equals(other.getTopCorrelatedColumnsList())) return false; - if (!getEtag().equals(other.getEtag())) 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; } @@ -1635,104 +1458,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 .
@@ -1742,23 +1558,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.ColumnSpec.class, com.google.cloud.automl.v1beta1.ColumnSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder()
@@ -1766,17 +1580,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getTopCorrelatedColumnsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1808,9 +1622,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -1829,8 +1643,7 @@ public com.google.cloud.automl.v1beta1.ColumnSpec build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.ColumnSpec result = new com.google.cloud.automl.v1beta1.ColumnSpec(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (dataTypeBuilder_ == null) {
@@ -1862,39 +1675,38 @@ public com.google.cloud.automl.v1beta1.ColumnSpec buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.ColumnSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1935,10 +1747,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ColumnSpec other) {
             topCorrelatedColumnsBuilder_ = null;
             topCorrelatedColumns_ = other.topCorrelatedColumns_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            topCorrelatedColumnsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTopCorrelatedColumnsFieldBuilder()
-                    : null;
+            topCorrelatedColumnsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTopCorrelatedColumnsFieldBuilder() : null;
           } else {
             topCorrelatedColumnsBuilder_.addAllMessages(other.topCorrelatedColumns_);
           }
@@ -1976,13 +1787,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the column specs.
      * Form:
@@ -1990,13 +1798,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2005,8 +1813,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the column specs.
      * Form:
@@ -2014,14 +1820,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2029,8 +1836,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the column specs.
      * Form:
@@ -2038,22 +1843,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the column specs.
      * Form:
@@ -2061,18 +1864,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the column specs.
      * Form:
@@ -2080,16 +1880,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2097,47 +1897,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + 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; - * * @return Whether the dataType field is set. */ 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; - * * @return The dataType. */ public com.google.cloud.automl.v1beta1.DataType getDataType() { if (dataTypeBuilder_ == null) { - return dataType_ == null - ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() - : dataType_; + return dataType_ == null ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() : dataType_; } else { return dataTypeBuilder_.getMessage(); } } /** - * - * *
      * The data type of elements stored in the column.
      * 
@@ -2158,15 +1945,14 @@ public Builder setDataType(com.google.cloud.automl.v1beta1.DataType 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) { + public Builder setDataType( + com.google.cloud.automl.v1beta1.DataType.Builder builderForValue) { if (dataTypeBuilder_ == null) { dataType_ = builderForValue.build(); onChanged(); @@ -2177,8 +1963,6 @@ public Builder setDataType(com.google.cloud.automl.v1beta1.DataType.Builder buil return this; } /** - * - * *
      * The data type of elements stored in the column.
      * 
@@ -2189,9 +1973,7 @@ 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(); + com.google.cloud.automl.v1beta1.DataType.newBuilder(dataType_).mergeFrom(value).buildPartial(); } else { dataType_ = value; } @@ -2203,8 +1985,6 @@ public Builder mergeDataType(com.google.cloud.automl.v1beta1.DataType value) { return this; } /** - * - * *
      * The data type of elements stored in the column.
      * 
@@ -2223,8 +2003,6 @@ public Builder clearDataType() { return this; } /** - * - * *
      * The data type of elements stored in the column.
      * 
@@ -2232,13 +2010,11 @@ public Builder clearDataType() { * .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.
      * 
@@ -2249,14 +2025,11 @@ 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_; + return dataType_ == null ? + com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() : dataType_; } } /** - * - * *
      * The data type of elements stored in the column.
      * 
@@ -2264,17 +2037,14 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder() * .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> + 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()); + 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_; @@ -2282,8 +2052,6 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder() 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
@@ -2292,13 +2060,13 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder()
      * 
* * string display_name = 3; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2307,8 +2075,6 @@ public 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
@@ -2317,14 +2083,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2332,8 +2099,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * 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
@@ -2342,22 +2107,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -2366,18 +2129,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ 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
@@ -2386,16 +2146,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2403,13 +2163,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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_; + 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
@@ -2418,15 +2173,12 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; - * * @return Whether the dataStats field is set. */ 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
@@ -2435,21 +2187,16 @@ public boolean hasDataStats() {
      * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; - * * @return The dataStats. */ public com.google.cloud.automl.v1beta1.DataStats getDataStats() { if (dataStatsBuilder_ == null) { - return dataStats_ == null - ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() - : dataStats_; + 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
@@ -2473,8 +2220,6 @@ public Builder setDataStats(com.google.cloud.automl.v1beta1.DataStats value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Stats of the series of values in the column.
      * This field may be stale, see the ancestor's
@@ -2484,7 +2229,8 @@ public Builder setDataStats(com.google.cloud.automl.v1beta1.DataStats value) {
      *
      * .google.cloud.automl.v1beta1.DataStats data_stats = 4;
      */
-    public Builder setDataStats(com.google.cloud.automl.v1beta1.DataStats.Builder builderForValue) {
+    public Builder setDataStats(
+        com.google.cloud.automl.v1beta1.DataStats.Builder builderForValue) {
       if (dataStatsBuilder_ == null) {
         dataStats_ = builderForValue.build();
         onChanged();
@@ -2495,8 +2241,6 @@ public Builder setDataStats(com.google.cloud.automl.v1beta1.DataStats.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Stats of the series of values in the column.
      * This field may be stale, see the ancestor's
@@ -2510,9 +2254,7 @@ 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();
+            com.google.cloud.automl.v1beta1.DataStats.newBuilder(dataStats_).mergeFrom(value).buildPartial();
         } else {
           dataStats_ = value;
         }
@@ -2524,8 +2266,6 @@ public Builder mergeDataStats(com.google.cloud.automl.v1beta1.DataStats value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Stats of the series of values in the column.
      * This field may be stale, see the ancestor's
@@ -2547,8 +2287,6 @@ public Builder clearDataStats() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Stats of the series of values in the column.
      * This field may be stale, see the ancestor's
@@ -2559,13 +2297,11 @@ public Builder clearDataStats() {
      * .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
@@ -2579,14 +2315,11 @@ 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_;
+        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
@@ -2597,53 +2330,39 @@ public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getDataStatsOrBuilder(
      * .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>
+        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());
+        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 java.util.List topCorrelatedColumns_ =
+      java.util.Collections.emptyList();
     private void ensureTopCorrelatedColumnsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        topCorrelatedColumns_ =
-            new java.util.ArrayList(
-                topCorrelatedColumns_);
+        topCorrelatedColumns_ = new java.util.ArrayList(topCorrelatedColumns_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     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_;
+        com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder> topCorrelatedColumnsBuilder_;
 
     /**
-     *
-     *
      * 
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ - public java.util.List - getTopCorrelatedColumnsList() { + public java.util.List getTopCorrelatedColumnsList() { if (topCorrelatedColumnsBuilder_ == null) { return java.util.Collections.unmodifiableList(topCorrelatedColumns_); } else { @@ -2651,15 +2370,11 @@ private void ensureTopCorrelatedColumnsIsMutable() { } } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ public int getTopCorrelatedColumnsCount() { if (topCorrelatedColumnsBuilder_ == null) { @@ -2669,18 +2384,13 @@ public int getTopCorrelatedColumnsCount() { } } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ - public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns( - int index) { + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns(int index) { if (topCorrelatedColumnsBuilder_ == null) { return topCorrelatedColumns_.get(index); } else { @@ -2688,15 +2398,11 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrela } } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ public Builder setTopCorrelatedColumns( int index, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { @@ -2713,19 +2419,14 @@ public Builder setTopCorrelatedColumns( return this; } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * 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) { + int index, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder builderForValue) { if (topCorrelatedColumnsBuilder_ == null) { ensureTopCorrelatedColumnsIsMutable(); topCorrelatedColumns_.set(index, builderForValue.build()); @@ -2736,18 +2437,13 @@ public Builder setTopCorrelatedColumns( return this; } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ - public Builder addTopCorrelatedColumns( - com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { + public Builder addTopCorrelatedColumns(com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { if (topCorrelatedColumnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2761,15 +2457,11 @@ public Builder addTopCorrelatedColumns( return this; } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ public Builder addTopCorrelatedColumns( int index, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { @@ -2786,15 +2478,11 @@ public Builder addTopCorrelatedColumns( return this; } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ public Builder addTopCorrelatedColumns( com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder builderForValue) { @@ -2808,19 +2496,14 @@ public Builder addTopCorrelatedColumns( return this; } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * 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) { + int index, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder builderForValue) { if (topCorrelatedColumnsBuilder_ == null) { ensureTopCorrelatedColumnsIsMutable(); topCorrelatedColumns_.add(index, builderForValue.build()); @@ -2831,22 +2514,18 @@ public Builder addTopCorrelatedColumns( return this; } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ public Builder addAllTopCorrelatedColumns( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (topCorrelatedColumnsBuilder_ == null) { ensureTopCorrelatedColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topCorrelatedColumns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topCorrelatedColumns_); onChanged(); } else { topCorrelatedColumnsBuilder_.addAllMessages(values); @@ -2854,15 +2533,11 @@ public Builder addAllTopCorrelatedColumns( return this; } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ public Builder clearTopCorrelatedColumns() { if (topCorrelatedColumnsBuilder_ == null) { @@ -2875,15 +2550,11 @@ public Builder clearTopCorrelatedColumns() { return this; } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ public Builder removeTopCorrelatedColumns(int index) { if (topCorrelatedColumnsBuilder_ == null) { @@ -2896,53 +2567,39 @@ public Builder removeTopCorrelatedColumns(int index) { return this; } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ - public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder - getTopCorrelatedColumnsBuilder(int index) { + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder getTopCorrelatedColumnsBuilder( + int index) { return getTopCorrelatedColumnsFieldBuilder().getBuilder(index); } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ - public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder - getTopCorrelatedColumnsOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder getTopCorrelatedColumnsOrBuilder( + int index) { if (topCorrelatedColumnsBuilder_ == null) { - return topCorrelatedColumns_.get(index); - } else { + return topCorrelatedColumns_.get(index); } else { return topCorrelatedColumnsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ - public java.util.List< - ? extends com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder> - getTopCorrelatedColumnsOrBuilderList() { + public java.util.List + getTopCorrelatedColumnsOrBuilderList() { if (topCorrelatedColumnsBuilder_ != null) { return topCorrelatedColumnsBuilder_.getMessageOrBuilderList(); } else { @@ -2950,67 +2607,45 @@ public Builder removeTopCorrelatedColumns(int index) { } } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * 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()); + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder addTopCorrelatedColumnsBuilder() { + return getTopCorrelatedColumnsFieldBuilder().addBuilder( + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance()); } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * 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()); + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder addTopCorrelatedColumnsBuilder( + int index) { + return getTopCorrelatedColumnsFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance()); } /** - * - * *
      * Deprecated.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ - public java.util.List - getTopCorrelatedColumnsBuilderList() { + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -3022,21 +2657,19 @@ public Builder removeTopCorrelatedColumns(int index) { private java.lang.Object etag_ = ""; /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; - * * @return The etag. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3045,22 +2678,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -3068,71 +2700,64 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3142,12 +2767,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -3156,16 +2781,16 @@ 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); - } - }; + 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; @@ -3180,4 +2805,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ColumnSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java index 52cfc1cc2..b094b6c44 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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:
@@ -33,13 +15,10 @@ public interface ColumnSpecOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the column specs.
    * Form:
@@ -47,38 +26,30 @@ public interface ColumnSpecOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The data type of elements stored in the column.
    * 
* * .google.cloud.automl.v1beta1.DataType data_type = 2; - * * @return Whether the dataType field is set. */ boolean hasDataType(); /** - * - * *
    * The data type of elements stored in the column.
    * 
* * .google.cloud.automl.v1beta1.DataType data_type = 2; - * * @return The dataType. */ com.google.cloud.automl.v1beta1.DataType getDataType(); /** - * - * *
    * The data type of elements stored in the column.
    * 
@@ -88,8 +59,6 @@ public interface ColumnSpecOrBuilder 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
@@ -98,13 +67,10 @@ public interface ColumnSpecOrBuilder
    * 
* * string display_name = 3; - * * @return The displayName. */ 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
@@ -113,14 +79,12 @@ public interface ColumnSpecOrBuilder
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + 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
@@ -129,13 +93,10 @@ public interface ColumnSpecOrBuilder
    * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; - * * @return Whether the dataStats field is set. */ boolean hasDataStats(); /** - * - * *
    * Output only. Stats of the series of values in the column.
    * This field may be stale, see the ancestor's
@@ -144,13 +105,10 @@ public interface ColumnSpecOrBuilder
    * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; - * * @return The dataStats. */ 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
@@ -163,93 +121,68 @@ public interface ColumnSpecOrBuilder
   com.google.cloud.automl.v1beta1.DataStatsOrBuilder getDataStatsOrBuilder();
 
   /**
-   *
-   *
    * 
    * Deprecated.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ - java.util.List + java.util.List getTopCorrelatedColumnsList(); /** - * - * *
    * Deprecated.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns(int index); /** - * - * *
    * Deprecated.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ int getTopCorrelatedColumnsCount(); /** - * - * *
    * Deprecated.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ - java.util.List + java.util.List getTopCorrelatedColumnsOrBuilderList(); /** - * - * *
    * Deprecated.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; - * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; */ - com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder - getTopCorrelatedColumnsOrBuilder(int index); + 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; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 6; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java new file mode 100644 index 000000000..f0a6d40e4 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java @@ -0,0 +1,93 @@ +// 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\031go" + + "ogle/api/resource.proto\032,google/cloud/au" + + "toml/v1beta1/data_stats.proto\032,google/cl" + + "oud/automl/v1beta1/data_types.proto\032\034goo" + + "gle/api/annotations.proto\"\233\004\n\nColumnSpec" + + "\022\014\n\004name\030\001 \001(\t\0228\n\tdata_type\030\002 \001(\0132%.goog" + + "le.cloud.automl.v1beta1.DataType\022\024\n\014disp" + + "lay_name\030\003 \001(\t\022:\n\ndata_stats\030\004 \001(\0132&.goo" + + "gle.cloud.automl.v1beta1.DataStats\022X\n\026to" + + "p_correlated_columns\030\005 \003(\01328.google.clou" + + "d.automl.v1beta1.ColumnSpec.CorrelatedCo" + + "lumn\022\014\n\004etag\030\006 \001(\t\032t\n\020CorrelatedColumn\022\026" + + "\n\016column_spec_id\030\001 \001(\t\022H\n\021correlation_st" + + "ats\030\002 \001(\0132-.google.cloud.automl.v1beta1." + + "CorrelationStats:\224\001\352A\220\001\n automl.googleap" + + "is.com/ColumnSpec\022lprojects/{project}/lo" + + "cations/{location}/datasets/{dataset}/ta" + + "bleSpecs/{table_spec}/columnSpecs/{colum" + + "n_spec}B\245\001\n\037com.google.cloud.automl.v1be" + + "ta1P\001ZAgoogle.golang.org/genproto/google" + + "apis/cloud/automl/v1beta1;automl\312\002\033Googl" + + "e\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::" + + "AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.DataTypes.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.DataTypes.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java similarity index 68% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java index 06434c3e4..1cf6a2dca 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.CorrelationStats}
  */
-public final class CorrelationStats extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+private static final long serialVersionUID = 0L;
   // Use CorrelationStats.newBuilder() to construct.
   private CorrelationStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private CorrelationStats() {}
+  private CorrelationStats() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CorrelationStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CorrelationStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,56 +54,51 @@ private CorrelationStats(
           case 0:
             done = true;
             break;
-          case 9:
-            {
-              cramersV_ = input.readDouble();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                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);
+      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;
+  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
+    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);
+            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; - * * @return The cramersV. */ @java.lang.Override @@ -128,7 +107,6 @@ public double getCramersV() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +118,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (cramersV_ != 0D) { output.writeDouble(1, cramersV_); } @@ -154,7 +133,8 @@ public int getSerializedSize() { size = 0; if (cramersV_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, cramersV_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, cramersV_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -164,16 +144,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != java.lang.Double.doubleToLongBits( + other.getCramersV())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -186,113 +166,104 @@ public int hashCode() { 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 = (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) + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -301,23 +272,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.CorrelationStats}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.CorrelationStats.class, com.google.cloud.automl.v1beta1.CorrelationStats.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.CorrelationStats.newBuilder()
@@ -325,15 +294,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,9 +313,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -364,8 +334,7 @@ public com.google.cloud.automl.v1beta1.CorrelationStats build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.CorrelationStats result = new com.google.cloud.automl.v1beta1.CorrelationStats(this);
       result.cramersV_ = cramersV_;
       onBuilt();
       return result;
@@ -375,39 +344,38 @@ public com.google.cloud.automl.v1beta1.CorrelationStats buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.CorrelationStats)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -415,8 +383,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.CorrelationStats other) {
-      if (other == com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance()) return this;
       if (other.getCramersV() != 0D) {
         setCramersV(other.getCramersV());
       }
@@ -449,16 +416,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private double cramersV_;
+    private double cramersV_ ;
     /**
-     *
-     *
      * 
      * The correlation value using the Cramer's V measure.
      * 
* * double cramers_v = 1; - * * @return The cramersV. */ @java.lang.Override @@ -466,43 +430,37 @@ public double getCramersV() { return cramersV_; } /** - * - * *
      * The correlation value using the Cramer's V measure.
      * 
* * double cramers_v = 1; - * * @param value The cramersV to set. * @return This builder for chaining. */ public Builder setCramersV(double value) { - + cramersV_ = value; onChanged(); return this; } /** - * - * *
      * The correlation value using the Cramer's V measure.
      * 
* * double cramers_v = 1; - * * @return This builder for chaining. */ public Builder clearCramersV() { - + cramersV_ = 0D; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -512,12 +470,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -526,16 +484,16 @@ public static com.google.cloud.automl.v1beta1.CorrelationStats getDefaultInstanc 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); - } - }; + 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; @@ -550,4 +508,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.CorrelationStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java new file mode 100644 index 000000000..297133d32 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java @@ -0,0 +1,19 @@ +// 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; + * @return The cramersV. + */ + double getCramersV(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java similarity index 62% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java index df74cca86..0e3f962b5 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateDatasetRequest} */ -public final class CreateDatasetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.CreateDatasetRequest) CreateDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDatasetRequest.newBuilder() to construct. private CreateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDatasetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,76 +53,65 @@ private CreateDatasetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.automl.v1beta1.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); } - case 18: - { - 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; + dataset_ = input.readMessage(com.google.cloud.automl.v1beta1.Dataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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_CreateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, - com.google.cloud.automl.v1beta1.CreateDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, com.google.cloud.automl.v1beta1.CreateDatasetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,31 +120,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -183,16 +153,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DATASET_FIELD_NUMBER = 2; private com.google.cloud.automl.v1beta1.Dataset dataset_; /** - * - * *
    * Required. The dataset to create.
    * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ @java.lang.Override @@ -200,34 +165,23 @@ public boolean hasDataset() { return dataset_ != null; } /** - * - * *
    * Required. The dataset to create.
    * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ @java.lang.Override public com.google.cloud.automl.v1beta1.Dataset getDataset() { - return dataset_ == null - ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() : dataset_; } /** - * - * *
    * Required. The dataset to create.
    * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { @@ -235,7 +189,6 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -267,7 +221,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDataset()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -277,18 +232,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.CreateDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.CreateDatasetRequest other = - (com.google.cloud.automl.v1beta1.CreateDatasetRequest) obj; + com.google.cloud.automl.v1beta1.CreateDatasetRequest other = (com.google.cloud.automl.v1beta1.CreateDatasetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasDataset() != other.hasDataset()) return false; if (hasDataset()) { - if (!getDataset().equals(other.getDataset())) return false; + if (!getDataset() + .equals(other.getDataset())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -313,126 +269,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest 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.CreateDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.CreateDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateDatasetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.CreateDatasetRequest) com.google.cloud.automl.v1beta1.CreateDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, - com.google.cloud.automl.v1beta1.CreateDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, com.google.cloud.automl.v1beta1.CreateDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.CreateDatasetRequest.newBuilder() @@ -440,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -464,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override @@ -485,8 +433,7 @@ public com.google.cloud.automl.v1beta1.CreateDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.CreateDatasetRequest buildPartial() { - com.google.cloud.automl.v1beta1.CreateDatasetRequest result = - new com.google.cloud.automl.v1beta1.CreateDatasetRequest(this); + com.google.cloud.automl.v1beta1.CreateDatasetRequest result = new com.google.cloud.automl.v1beta1.CreateDatasetRequest(this); result.parent_ = parent_; if (datasetBuilder_ == null) { result.dataset_ = dataset_; @@ -501,39 +448,38 @@ public com.google.cloud.automl.v1beta1.CreateDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CreateDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.CreateDatasetRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.CreateDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -541,8 +487,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.CreateDatasetRequest other) { - if (other == com.google.cloud.automl.v1beta1.CreateDatasetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.CreateDatasetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -569,8 +514,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.CreateDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.CreateDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -582,22 +526,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -606,23 +546,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -630,67 +567,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -698,58 +622,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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_; + com.google.cloud.automl.v1beta1.Dataset, com.google.cloud.automl.v1beta1.Dataset.Builder, com.google.cloud.automl.v1beta1.DatasetOrBuilder> datasetBuilder_; /** - * - * *
      * Required. The dataset to create.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ public boolean hasDataset() { return datasetBuilder_ != null || dataset_ != null; } /** - * - * *
      * Required. The dataset to create.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ public com.google.cloud.automl.v1beta1.Dataset getDataset() { if (datasetBuilder_ == null) { - return dataset_ == null - ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() : dataset_; } else { return datasetBuilder_.getMessage(); } } /** - * - * *
      * Required. The dataset to create.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset value) { if (datasetBuilder_ == null) { @@ -765,17 +670,14 @@ public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset value) { return this; } /** - * - * *
      * Required. The dataset to create.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { + public Builder setDataset( + com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); onChanged(); @@ -786,23 +688,17 @@ public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset.Builder builde return this; } /** - * - * *
      * Required. The dataset to create.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ 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(); + com.google.cloud.automl.v1beta1.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); } else { dataset_ = value; } @@ -814,15 +710,11 @@ public Builder mergeDataset(com.google.cloud.automl.v1beta1.Dataset value) { return this; } /** - * - * *
      * Required. The dataset to create.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -836,71 +728,55 @@ public Builder clearDataset() { return this; } /** - * - * *
      * Required. The dataset to create.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.Dataset.Builder getDatasetBuilder() { - + onChanged(); return getDatasetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The dataset to create.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ 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_; + return dataset_ == null ? + com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() : dataset_; } } /** - * - * *
      * Required. The dataset to create.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Dataset, - com.google.cloud.automl.v1beta1.Dataset.Builder, - com.google.cloud.automl.v1beta1.DatasetOrBuilder> + 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()); + 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.CreateDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateDatasetRequest) private static final com.google.cloud.automl.v1beta1.CreateDatasetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.CreateDatasetRequest(); } @@ -924,16 +800,16 @@ public static com.google.cloud.automl.v1beta1.CreateDatasetRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.CreateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java new file mode 100644 index 000000000..9e46df498 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface CreateDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CreateDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the project to create the dataset for.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The resource name of the project to create the dataset for.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The dataset to create.
+   * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the dataset field is set. + */ + boolean hasDataset(); + /** + *
+   * Required. The dataset to create.
+   * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The dataset. + */ + com.google.cloud.automl.v1beta1.Dataset getDataset(); + /** + *
+   * Required. The dataset to create.
+   * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java index 35d5be3d2..6661c191e 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/operations.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Details of CreateModel operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateModelOperationMetadata} */ -public final class CreateModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateModelOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.CreateModelOperationMetadata) CreateModelOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateModelOperationMetadata.newBuilder() to construct. private CreateModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CreateModelOperationMetadata() {} + private CreateModelOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private CreateModelOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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_CreateModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Operations - .internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.class, - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.class, com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.CreateModelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata other = - (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) obj; + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata other = (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateModelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata 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.CreateModelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.CreateModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Details of CreateModel operation.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateModelOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.CreateModelOperationMetadata) com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.Operations - .internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Operations - .internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.class, - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.class, com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,14 +274,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.Operations - .internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); } @@ -324,8 +295,7 @@ public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata buildPartial() { - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata result = - new com.google.cloud.automl.v1beta1.CreateModelOperationMetadata(this); + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata result = new com.google.cloud.automl.v1beta1.CreateModelOperationMetadata(this); onBuilt(); return result; } @@ -334,39 +304,38 @@ public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CreateModelOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) other); + return mergeFrom((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -374,9 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.CreateModelOperationMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -406,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -418,13 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.CreateModelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateModelOperationMetadata) - private static final com.google.cloud.automl.v1beta1.CreateModelOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.CreateModelOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.CreateModelOperationMetadata(); } @@ -433,16 +398,16 @@ public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateModelOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateModelOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateModelOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateModelOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -457,4 +422,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..e47039a43 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.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 CreateModelOperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CreateModelOperationMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java similarity index 65% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java index ba8170cb1..2ff4bb454 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateModelRequest} */ -public final class CreateModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.CreateModelRequest) CreateModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateModelRequest.newBuilder() to construct. private CreateModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateModelRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,76 +53,65 @@ private CreateModelRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 34: { + com.google.cloud.automl.v1beta1.Model.Builder subBuilder = null; + if (model_ != null) { + subBuilder = model_.toBuilder(); } - case 34: - { - com.google.cloud.automl.v1beta1.Model.Builder subBuilder = null; - if (model_ != null) { - subBuilder = model_.toBuilder(); - } - model_ = - input.readMessage( - com.google.cloud.automl.v1beta1.Model.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(model_); - model_ = subBuilder.buildPartial(); - } - - break; + model_ = input.readMessage(com.google.cloud.automl.v1beta1.Model.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(model_); + model_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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_CreateModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateModelRequest.class, - com.google.cloud.automl.v1beta1.CreateModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.CreateModelRequest.class, com.google.cloud.automl.v1beta1.CreateModelRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,31 +120,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -183,15 +153,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MODEL_FIELD_NUMBER = 4; private com.google.cloud.automl.v1beta1.Model model_; /** - * - * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the model field is set. */ @java.lang.Override @@ -199,15 +165,11 @@ public boolean hasModel() { return model_ != null; } /** - * - * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The model. */ @java.lang.Override @@ -215,14 +177,11 @@ public com.google.cloud.automl.v1beta1.Model getModel() { return model_ == null ? com.google.cloud.automl.v1beta1.Model.getDefaultInstance() : model_; } /** - * - * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder() { @@ -230,7 +189,6 @@ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -262,7 +221,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (model_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getModel()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getModel()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -272,18 +232,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.CreateModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.CreateModelRequest other = - (com.google.cloud.automl.v1beta1.CreateModelRequest) obj; + com.google.cloud.automl.v1beta1.CreateModelRequest other = (com.google.cloud.automl.v1beta1.CreateModelRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasModel() != other.hasModel()) return false; if (hasModel()) { - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -308,126 +269,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.CreateModelRequest 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.CreateModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.CreateModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.CreateModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.CreateModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.CreateModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.CreateModelRequest) com.google.cloud.automl.v1beta1.CreateModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateModelRequest.class, - com.google.cloud.automl.v1beta1.CreateModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.CreateModelRequest.class, com.google.cloud.automl.v1beta1.CreateModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.CreateModelRequest.newBuilder() @@ -435,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -459,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; } @java.lang.Override @@ -480,8 +433,7 @@ public com.google.cloud.automl.v1beta1.CreateModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelRequest buildPartial() { - com.google.cloud.automl.v1beta1.CreateModelRequest result = - new com.google.cloud.automl.v1beta1.CreateModelRequest(this); + com.google.cloud.automl.v1beta1.CreateModelRequest result = new com.google.cloud.automl.v1beta1.CreateModelRequest(this); result.parent_ = parent_; if (modelBuilder_ == null) { result.model_ = model_; @@ -496,39 +448,38 @@ public com.google.cloud.automl.v1beta1.CreateModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CreateModelRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.CreateModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.CreateModelRequest)other); } else { super.mergeFrom(other); return this; @@ -536,8 +487,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.CreateModelRequest other) { - if (other == com.google.cloud.automl.v1beta1.CreateModelRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.CreateModelRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -564,8 +514,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.CreateModelRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.CreateModelRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -577,22 +526,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -601,23 +546,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -625,67 +567,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -693,35 +622,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1beta1.Model model_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, - com.google.cloud.automl.v1beta1.Model.Builder, - com.google.cloud.automl.v1beta1.ModelOrBuilder> - modelBuilder_; + com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder> modelBuilder_; /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The model. */ public com.google.cloud.automl.v1beta1.Model getModel() { @@ -732,14 +650,11 @@ public com.google.cloud.automl.v1beta1.Model getModel() { } } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setModel(com.google.cloud.automl.v1beta1.Model value) { if (modelBuilder_ == null) { @@ -755,16 +670,14 @@ public Builder setModel(com.google.cloud.automl.v1beta1.Model value) { return this; } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setModel(com.google.cloud.automl.v1beta1.Model.Builder builderForValue) { + public Builder setModel( + com.google.cloud.automl.v1beta1.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); @@ -775,22 +688,17 @@ public Builder setModel(com.google.cloud.automl.v1beta1.Model.Builder builderFor return this; } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeModel(com.google.cloud.automl.v1beta1.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = - com.google.cloud.automl.v1beta1.Model.newBuilder(model_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1beta1.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } @@ -802,14 +710,11 @@ public Builder mergeModel(com.google.cloud.automl.v1beta1.Model value) { return this; } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearModel() { if (modelBuilder_ == null) { @@ -823,66 +728,55 @@ public Builder clearModel() { return this; } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.Model.Builder getModelBuilder() { - + onChanged(); return getModelFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { - return model_ == null ? com.google.cloud.automl.v1beta1.Model.getDefaultInstance() : model_; + return model_ == null ? + com.google.cloud.automl.v1beta1.Model.getDefaultInstance() : model_; } } /** - * - * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, - com.google.cloud.automl.v1beta1.Model.Builder, - com.google.cloud.automl.v1beta1.ModelOrBuilder> + com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, - com.google.cloud.automl.v1beta1.Model.Builder, - com.google.cloud.automl.v1beta1.ModelOrBuilder>( - getModel(), getParentForChildren(), isClean()); + modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder>( + getModel(), + getParentForChildren(), + isClean()); model_ = null; } return modelBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -892,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.CreateModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateModelRequest) private static final com.google.cloud.automl.v1beta1.CreateModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.CreateModelRequest(); } @@ -906,16 +800,16 @@ public static com.google.cloud.automl.v1beta1.CreateModelRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.CreateModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java index ac81a5dc9..f2e5a8f3c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java @@ -1,92 +1,56 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface CreateModelRequestOrBuilder - extends +public interface CreateModelRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CreateModelRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the model field is set. */ boolean hasModel(); /** - * - * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The model. */ com.google.cloud.automl.v1beta1.Model getModel(); /** - * - * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java new file mode 100644 index 000000000..5cd83c6c2 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java @@ -0,0 +1,179 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_items.proto + +package com.google.cloud.automl.v1beta1; + +public final class DataItems { + private DataItems() {} + 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_Image_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_DocumentDimensions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_DocumentDimensions_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_Document_Layout_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Document_Layout_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 + internal_static_google_cloud_automl_v1beta1_ExamplePayload_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_items" + + ".proto\022\033google.cloud.automl.v1beta1\032*goo" + + "gle/cloud/automl/v1beta1/geometry.proto\032" + + "$google/cloud/automl/v1beta1/io.proto\032*g" + + "oogle/cloud/automl/v1beta1/temporal.prot" + + "o\032.google/cloud/automl/v1beta1/text_segm" + + "ent.proto\032\031google/protobuf/any.proto\032\036go" + + "ogle/protobuf/duration.proto\032\034google/pro" + + "tobuf/struct.proto\032\034google/api/annotatio" + + "ns.proto\"\177\n\005Image\022\025\n\013image_bytes\030\001 \001(\014H\000" + + "\022@\n\014input_config\030\006 \001(\0132(.google.cloud.au" + + "toml.v1beta1.InputConfigH\000\022\025\n\rthumbnail_" + + "uri\030\004 \001(\tB\006\n\004data\"F\n\013TextSnippet\022\017\n\007cont" + + "ent\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\022\023\n\013content_" + + "uri\030\004 \001(\t\"\357\001\n\022DocumentDimensions\022S\n\004unit" + + "\030\001 \001(\0162E.google.cloud.automl.v1beta1.Doc" + + "umentDimensions.DocumentDimensionUnit\022\r\n" + + "\005width\030\002 \001(\002\022\016\n\006height\030\003 \001(\002\"e\n\025Document" + + "DimensionUnit\022\'\n#DOCUMENT_DIMENSION_UNIT" + + "_UNSPECIFIED\020\000\022\010\n\004INCH\020\001\022\016\n\nCENTIMETER\020\002" + + "\022\t\n\005POINT\020\003\"\371\005\n\010Document\022F\n\014input_config" + + "\030\001 \001(\01320.google.cloud.automl.v1beta1.Doc" + + "umentInputConfig\022?\n\rdocument_text\030\002 \001(\0132" + + "(.google.cloud.automl.v1beta1.TextSnippe" + + "t\022<\n\006layout\030\003 \003(\0132,.google.cloud.automl." + + "v1beta1.Document.Layout\022L\n\023document_dime" + + "nsions\030\004 \001(\0132/.google.cloud.automl.v1bet" + + "a1.DocumentDimensions\022\022\n\npage_count\030\005 \001(" + + "\005\032\303\003\n\006Layout\022>\n\014text_segment\030\001 \001(\0132(.goo" + + "gle.cloud.automl.v1beta1.TextSegment\022\023\n\013" + + "page_number\030\002 \001(\005\022@\n\rbounding_poly\030\003 \001(\013" + + "2).google.cloud.automl.v1beta1.BoundingP" + + "oly\022W\n\021text_segment_type\030\004 \001(\0162<.google." + + "cloud.automl.v1beta1.Document.Layout.Tex" + + "tSegmentType\"\310\001\n\017TextSegmentType\022!\n\035TEXT" + + "_SEGMENT_TYPE_UNSPECIFIED\020\000\022\t\n\005TOKEN\020\001\022\r" + + "\n\tPARAGRAPH\020\002\022\016\n\nFORM_FIELD\020\003\022\023\n\017FORM_FI" + + "ELD_NAME\020\004\022\027\n\023FORM_FIELD_CONTENTS\020\005\022\t\n\005T" + + "ABLE\020\006\022\020\n\014TABLE_HEADER\020\007\022\r\n\tTABLE_ROW\020\010\022" + + "\016\n\nTABLE_CELL\020\t\"F\n\003Row\022\027\n\017column_spec_id" + + "s\030\002 \003(\t\022&\n\006values\030\003 \003(\0132\026.google.protobu" + + "f.Value\"\376\001\n\016ExamplePayload\0223\n\005image\030\001 \001(" + + "\0132\".google.cloud.automl.v1beta1.ImageH\000\022" + + "@\n\014text_snippet\030\002 \001(\0132(.google.cloud.aut" + + "oml.v1beta1.TextSnippetH\000\0229\n\010document\030\004 " + + "\001(\0132%.google.cloud.automl.v1beta1.Docume" + + "ntH\000\022/\n\003row\030\003 \001(\0132 .google.cloud.automl." + + "v1beta1.RowH\000B\t\n\007payloadB\245\001\n\037com.google." + + "cloud.automl.v1beta1P\001ZAgoogle.golang.or" + + "g/genproto/googleapis/cloud/automl/v1bet" + + "a1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352" + + "\002\036Google::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.Geometry.getDescriptor(), + com.google.cloud.automl.v1beta1.Io.getDescriptor(), + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), + com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_Image_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Image_descriptor, + new java.lang.String[] { "ImageBytes", "InputConfig", "ThumbnailUri", "Data", }); + internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor, + new java.lang.String[] { "Content", "MimeType", "ContentUri", }); + internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor, + new java.lang.String[] { "Unit", "Width", "Height", }); + internal_static_google_cloud_automl_v1beta1_Document_descriptor = + getDescriptor().getMessageTypes().get(3); + 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", "DocumentText", "Layout", "DocumentDimensions", "PageCount", }); + internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor = + internal_static_google_cloud_automl_v1beta1_Document_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_automl_v1beta1_Document_Layout_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor, + new java.lang.String[] { "TextSegment", "PageNumber", "BoundingPoly", "TextSegmentType", }); + internal_static_google_cloud_automl_v1beta1_Row_descriptor = + getDescriptor().getMessageTypes().get(4); + 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(5); + 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", "Document", "Row", "Payload", }); + com.google.cloud.automl.v1beta1.Geometry.getDescriptor(); + com.google.cloud.automl.v1beta1.Io.getDescriptor(); + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(); + com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java index 8cd03c574..2bf4f9d4c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use DataStats.newBuilder() to construct. private DataStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DataStats() {} + private DataStats() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DataStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DataStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,157 +52,141 @@ private DataStats( case 0: done = true; break; - case 8: - { - distinctValueCount_ = input.readInt64(); - 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(); } - case 16: - { - nullValueCount_ = input.readInt64(); - break; + 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(); } - 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; + 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(); } - 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; + 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(); } - 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; + 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(); } - 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; + 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(); } - 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; + 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(); } - 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; + 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(); } - case 72: - { - validValueCount_ = input.readInt64(); - break; + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + statsCase_ = 8; + break; + } + case 72: { + + validValueCount_ = 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); + 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; + 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 + 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); + 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, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FLOAT64_STATS(3), STRING_STATS(4), @@ -228,7 +196,6 @@ public enum StatsCase CATEGORY_STATS(8), STATS_NOT_SET(0); private final int value; - private StatsCase(int value) { this.value = value; } @@ -244,44 +211,34 @@ public static StatsCase valueOf(int 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; + 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 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; - * * @return Whether the float64Stats field is set. */ @java.lang.Override @@ -289,26 +246,21 @@ public boolean hasFloat64Stats() { return statsCase_ == 3; } /** - * - * *
    * The statistics for FLOAT64 DataType.
    * 
* * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; - * * @return The float64Stats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance(); } /** - * - * *
    * The statistics for FLOAT64 DataType.
    * 
@@ -318,21 +270,18 @@ public com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats() { @java.lang.Override 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) 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; - * * @return Whether the stringStats field is set. */ @java.lang.Override @@ -340,26 +289,21 @@ public boolean hasStringStats() { return statsCase_ == 4; } /** - * - * *
    * The statistics for STRING DataType.
    * 
* * .google.cloud.automl.v1beta1.StringStats string_stats = 4; - * * @return The stringStats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance(); } /** - * - * *
    * The statistics for STRING DataType.
    * 
@@ -369,21 +313,18 @@ public com.google.cloud.automl.v1beta1.StringStats getStringStats() { @java.lang.Override 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) 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; - * * @return Whether the timestampStats field is set. */ @java.lang.Override @@ -391,26 +332,21 @@ public boolean hasTimestampStats() { return statsCase_ == 5; } /** - * - * *
    * The statistics for TIMESTAMP DataType.
    * 
* * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; - * * @return The timestampStats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance(); } /** - * - * *
    * The statistics for TIMESTAMP DataType.
    * 
@@ -420,21 +356,18 @@ public com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats() { @java.lang.Override 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) 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; - * * @return Whether the arrayStats field is set. */ @java.lang.Override @@ -442,26 +375,21 @@ public boolean hasArrayStats() { return statsCase_ == 6; } /** - * - * *
    * The statistics for ARRAY DataType.
    * 
* * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; - * * @return The arrayStats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance(); } /** - * - * *
    * The statistics for ARRAY DataType.
    * 
@@ -471,21 +399,18 @@ public com.google.cloud.automl.v1beta1.ArrayStats getArrayStats() { @java.lang.Override 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) 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; - * * @return Whether the structStats field is set. */ @java.lang.Override @@ -493,26 +418,21 @@ public boolean hasStructStats() { return statsCase_ == 7; } /** - * - * *
    * The statistics for STRUCT DataType.
    * 
* * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; - * * @return The structStats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance(); } /** - * - * *
    * The statistics for STRUCT DataType.
    * 
@@ -522,21 +442,18 @@ public com.google.cloud.automl.v1beta1.StructStats getStructStats() { @java.lang.Override 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) 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; - * * @return Whether the categoryStats field is set. */ @java.lang.Override @@ -544,26 +461,21 @@ public boolean hasCategoryStats() { return statsCase_ == 8; } /** - * - * *
    * The statistics for CATEGORY DataType.
    * 
* * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; - * * @return The categoryStats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); } /** - * - * *
    * The statistics for CATEGORY DataType.
    * 
@@ -573,7 +485,7 @@ public com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats() { @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); } @@ -581,14 +493,11 @@ public com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOr public static final int DISTINCT_VALUE_COUNT_FIELD_NUMBER = 1; private long distinctValueCount_; /** - * - * *
    * The number of distinct values.
    * 
* * int64 distinct_value_count = 1; - * * @return The distinctValueCount. */ @java.lang.Override @@ -599,14 +508,11 @@ public long getDistinctValueCount() { 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; - * * @return The nullValueCount. */ @java.lang.Override @@ -617,14 +523,11 @@ public long getNullValueCount() { public static final int VALID_VALUE_COUNT_FIELD_NUMBER = 9; private long validValueCount_; /** - * - * *
    * The number of values that are valid.
    * 
* * int64 valid_value_count = 9; - * * @return The validValueCount. */ @java.lang.Override @@ -633,7 +536,6 @@ public long getValidValueCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -645,7 +547,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (distinctValueCount_ != 0L) { output.writeInt64(1, distinctValueCount_); } @@ -683,43 +586,40 @@ public int getSerializedSize() { size = 0; if (distinctValueCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, distinctValueCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, distinctValueCount_); } if (nullValueCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, nullValueCount_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.automl.v1beta1.CategoryStats) stats_); } if (validValueCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, validValueCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, validValueCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -729,36 +629,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (getValidValueCount() != other.getValidValueCount()) return false; + if (getDistinctValueCount() + != other.getDistinctValueCount()) return false; + if (getNullValueCount() + != other.getNullValueCount()) return false; + if (getValidValueCount() + != other.getValidValueCount()) return false; if (!getStatsCase().equals(other.getStatsCase())) return false; switch (statsCase_) { case 3: - if (!getFloat64Stats().equals(other.getFloat64Stats())) return false; + if (!getFloat64Stats() + .equals(other.getFloat64Stats())) return false; break; case 4: - if (!getStringStats().equals(other.getStringStats())) return false; + if (!getStringStats() + .equals(other.getStringStats())) return false; break; case 5: - if (!getTimestampStats().equals(other.getTimestampStats())) return false; + if (!getTimestampStats() + .equals(other.getTimestampStats())) return false; break; case 6: - if (!getArrayStats().equals(other.getArrayStats())) return false; + if (!getArrayStats() + .equals(other.getArrayStats())) return false; break; case 7: - if (!getStructStats().equals(other.getStructStats())) return false; + if (!getStructStats() + .equals(other.getStructStats())) return false; break; case 8: - if (!getCategoryStats().equals(other.getCategoryStats())) return false; + if (!getCategoryStats() + .equals(other.getCategoryStats())) return false; break; case 0: default: @@ -775,11 +683,14 @@ public int hashCode() { 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 = (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()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNullValueCount()); hash = (37 * hash) + VALID_VALUE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValidValueCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValidValueCount()); switch (statsCase_) { case 3: hash = (37 * hash) + FLOAT64_STATS_FIELD_NUMBER; @@ -813,127 +724,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.DataStats parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.DataStats.class, com.google.cloud.automl.v1beta1.DataStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DataStats.newBuilder() @@ -941,15 +843,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -965,9 +868,9 @@ public Builder clear() { } @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; + 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 @@ -986,8 +889,7 @@ public com.google.cloud.automl.v1beta1.DataStats build() { @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); + com.google.cloud.automl.v1beta1.DataStats result = new com.google.cloud.automl.v1beta1.DataStats(this); if (statsCase_ == 3) { if (float64StatsBuilder_ == null) { result.stats_ = stats_; @@ -1042,39 +944,38 @@ public com.google.cloud.automl.v1beta1.DataStats buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.DataStats)other); } else { super.mergeFrom(other); return this; @@ -1093,40 +994,33 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.DataStats other) { setValidValueCount(other.getValidValueCount()); } 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; - } + 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(); @@ -1156,12 +1050,12 @@ public Builder mergeFrom( } return this; } - private int statsCase_ = 0; private java.lang.Object stats_; - - public StatsCase getStatsCase() { - return StatsCase.forNumber(statsCase_); + public StatsCase + getStatsCase() { + return StatsCase.forNumber( + statsCase_); } public Builder clearStats() { @@ -1171,20 +1065,15 @@ public Builder clearStats() { 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_; + 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; - * * @return Whether the float64Stats field is set. */ @java.lang.Override @@ -1192,14 +1081,11 @@ public boolean hasFloat64Stats() { return statsCase_ == 3; } /** - * - * *
      * The statistics for FLOAT64 DataType.
      * 
* * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; - * * @return The float64Stats. */ @java.lang.Override @@ -1217,8 +1103,6 @@ public com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats() { } } /** - * - * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1239,8 +1123,6 @@ public Builder setFloat64Stats(com.google.cloud.automl.v1beta1.Float64Stats valu return this; } /** - * - * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1259,8 +1141,6 @@ public Builder setFloat64Stats( return this; } /** - * - * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1269,13 +1149,10 @@ public Builder setFloat64Stats( */ 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(); + 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; } @@ -1290,8 +1167,6 @@ public Builder mergeFloat64Stats(com.google.cloud.automl.v1beta1.Float64Stats va return this; } /** - * - * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1315,8 +1190,6 @@ public Builder clearFloat64Stats() { return this; } /** - * - * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1327,8 +1200,6 @@ public com.google.cloud.automl.v1beta1.Float64Stats.Builder getFloat64StatsBuild return getFloat64StatsFieldBuilder().getBuilder(); } /** - * - * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1347,8 +1218,6 @@ public com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBu } } /** - * - * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1356,44 +1225,32 @@ public com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBu * .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> + 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>( + 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(); - ; + 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_; + 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; - * * @return Whether the stringStats field is set. */ @java.lang.Override @@ -1401,14 +1258,11 @@ public boolean hasStringStats() { return statsCase_ == 4; } /** - * - * *
      * The statistics for STRING DataType.
      * 
* * .google.cloud.automl.v1beta1.StringStats string_stats = 4; - * * @return The stringStats. */ @java.lang.Override @@ -1426,8 +1280,6 @@ public com.google.cloud.automl.v1beta1.StringStats getStringStats() { } } /** - * - * *
      * The statistics for STRING DataType.
      * 
@@ -1448,8 +1300,6 @@ public Builder setStringStats(com.google.cloud.automl.v1beta1.StringStats value) return this; } /** - * - * *
      * The statistics for STRING DataType.
      * 
@@ -1468,8 +1318,6 @@ public Builder setStringStats( return this; } /** - * - * *
      * The statistics for STRING DataType.
      * 
@@ -1478,13 +1326,10 @@ public Builder setStringStats( */ 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(); + 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; } @@ -1499,8 +1344,6 @@ public Builder mergeStringStats(com.google.cloud.automl.v1beta1.StringStats valu return this; } /** - * - * *
      * The statistics for STRING DataType.
      * 
@@ -1524,8 +1367,6 @@ public Builder clearStringStats() { return this; } /** - * - * *
      * The statistics for STRING DataType.
      * 
@@ -1536,8 +1377,6 @@ public com.google.cloud.automl.v1beta1.StringStats.Builder getStringStatsBuilder return getStringStatsFieldBuilder().getBuilder(); } /** - * - * *
      * The statistics for STRING DataType.
      * 
@@ -1556,8 +1395,6 @@ public com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuil } } /** - * - * *
      * The statistics for STRING DataType.
      * 
@@ -1565,44 +1402,32 @@ public com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuil * .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> + 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>( + 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(); - ; + 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_; + 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; - * * @return Whether the timestampStats field is set. */ @java.lang.Override @@ -1610,14 +1435,11 @@ public boolean hasTimestampStats() { return statsCase_ == 5; } /** - * - * *
      * The statistics for TIMESTAMP DataType.
      * 
* * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; - * * @return The timestampStats. */ @java.lang.Override @@ -1635,8 +1457,6 @@ public com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats() { } } /** - * - * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1657,8 +1477,6 @@ public Builder setTimestampStats(com.google.cloud.automl.v1beta1.TimestampStats return this; } /** - * - * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1677,8 +1495,6 @@ public Builder setTimestampStats( return this; } /** - * - * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1687,13 +1503,10 @@ public Builder setTimestampStats( */ 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(); + 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; } @@ -1708,8 +1521,6 @@ public Builder mergeTimestampStats(com.google.cloud.automl.v1beta1.TimestampStat return this; } /** - * - * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1733,8 +1544,6 @@ public Builder clearTimestampStats() { return this; } /** - * - * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1745,8 +1554,6 @@ public com.google.cloud.automl.v1beta1.TimestampStats.Builder getTimestampStatsB return getTimestampStatsFieldBuilder().getBuilder(); } /** - * - * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1765,8 +1572,6 @@ public com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStats } } /** - * - * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1774,44 +1579,32 @@ public com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStats * .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> + 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>( + 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(); - ; + 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_; + 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; - * * @return Whether the arrayStats field is set. */ @java.lang.Override @@ -1819,14 +1612,11 @@ public boolean hasArrayStats() { return statsCase_ == 6; } /** - * - * *
      * The statistics for ARRAY DataType.
      * 
* * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; - * * @return The arrayStats. */ @java.lang.Override @@ -1844,8 +1634,6 @@ public com.google.cloud.automl.v1beta1.ArrayStats getArrayStats() { } } /** - * - * *
      * The statistics for ARRAY DataType.
      * 
@@ -1866,8 +1654,6 @@ public Builder setArrayStats(com.google.cloud.automl.v1beta1.ArrayStats value) { return this; } /** - * - * *
      * The statistics for ARRAY DataType.
      * 
@@ -1886,8 +1672,6 @@ public Builder setArrayStats( return this; } /** - * - * *
      * The statistics for ARRAY DataType.
      * 
@@ -1896,13 +1680,10 @@ public Builder setArrayStats( */ 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(); + 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; } @@ -1917,8 +1698,6 @@ public Builder mergeArrayStats(com.google.cloud.automl.v1beta1.ArrayStats value) return this; } /** - * - * *
      * The statistics for ARRAY DataType.
      * 
@@ -1942,8 +1721,6 @@ public Builder clearArrayStats() { return this; } /** - * - * *
      * The statistics for ARRAY DataType.
      * 
@@ -1954,8 +1731,6 @@ public com.google.cloud.automl.v1beta1.ArrayStats.Builder getArrayStatsBuilder() return getArrayStatsFieldBuilder().getBuilder(); } /** - * - * *
      * The statistics for ARRAY DataType.
      * 
@@ -1974,8 +1749,6 @@ public com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilde } } /** - * - * *
      * The statistics for ARRAY DataType.
      * 
@@ -1983,44 +1756,32 @@ public com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilde * .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> + 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>( + 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(); - ; + 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_; + 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; - * * @return Whether the structStats field is set. */ @java.lang.Override @@ -2028,14 +1789,11 @@ public boolean hasStructStats() { return statsCase_ == 7; } /** - * - * *
      * The statistics for STRUCT DataType.
      * 
* * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; - * * @return The structStats. */ @java.lang.Override @@ -2053,8 +1811,6 @@ public com.google.cloud.automl.v1beta1.StructStats getStructStats() { } } /** - * - * *
      * The statistics for STRUCT DataType.
      * 
@@ -2075,8 +1831,6 @@ public Builder setStructStats(com.google.cloud.automl.v1beta1.StructStats value) return this; } /** - * - * *
      * The statistics for STRUCT DataType.
      * 
@@ -2095,8 +1849,6 @@ public Builder setStructStats( return this; } /** - * - * *
      * The statistics for STRUCT DataType.
      * 
@@ -2105,13 +1857,10 @@ public Builder setStructStats( */ 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(); + 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; } @@ -2126,8 +1875,6 @@ public Builder mergeStructStats(com.google.cloud.automl.v1beta1.StructStats valu return this; } /** - * - * *
      * The statistics for STRUCT DataType.
      * 
@@ -2151,8 +1898,6 @@ public Builder clearStructStats() { return this; } /** - * - * *
      * The statistics for STRUCT DataType.
      * 
@@ -2163,8 +1908,6 @@ public com.google.cloud.automl.v1beta1.StructStats.Builder getStructStatsBuilder return getStructStatsFieldBuilder().getBuilder(); } /** - * - * *
      * The statistics for STRUCT DataType.
      * 
@@ -2183,8 +1926,6 @@ public com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuil } } /** - * - * *
      * The statistics for STRUCT DataType.
      * 
@@ -2192,44 +1933,32 @@ public com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuil * .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> + 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>( + 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(); - ; + 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_; + 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; - * * @return Whether the categoryStats field is set. */ @java.lang.Override @@ -2237,14 +1966,11 @@ public boolean hasCategoryStats() { return statsCase_ == 8; } /** - * - * *
      * The statistics for CATEGORY DataType.
      * 
* * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; - * * @return The categoryStats. */ @java.lang.Override @@ -2262,8 +1988,6 @@ public com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats() { } } /** - * - * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2284,8 +2008,6 @@ public Builder setCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats va return this; } /** - * - * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2304,8 +2026,6 @@ public Builder setCategoryStats( return this; } /** - * - * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2314,13 +2034,10 @@ public Builder setCategoryStats( */ 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(); + 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; } @@ -2335,8 +2052,6 @@ public Builder mergeCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats return this; } /** - * - * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2360,8 +2075,6 @@ public Builder clearCategoryStats() { return this; } /** - * - * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2372,8 +2085,6 @@ public com.google.cloud.automl.v1beta1.CategoryStats.Builder getCategoryStatsBui return getCategoryStatsFieldBuilder().getBuilder(); } /** - * - * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2392,8 +2103,6 @@ public com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOr } } /** - * - * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2401,40 +2110,31 @@ public com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOr * .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> + 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>( + 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(); - ; + onChanged();; return categoryStatsBuilder_; } - private long distinctValueCount_; + private long distinctValueCount_ ; /** - * - * *
      * The number of distinct values.
      * 
* * int64 distinct_value_count = 1; - * * @return The distinctValueCount. */ @java.lang.Override @@ -2442,51 +2142,42 @@ public long getDistinctValueCount() { return distinctValueCount_; } /** - * - * *
      * The number of distinct values.
      * 
* * int64 distinct_value_count = 1; - * * @param value The distinctValueCount to set. * @return This builder for chaining. */ public Builder setDistinctValueCount(long value) { - + distinctValueCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of distinct values.
      * 
* * int64 distinct_value_count = 1; - * * @return This builder for chaining. */ public Builder clearDistinctValueCount() { - + distinctValueCount_ = 0L; onChanged(); return this; } - private long nullValueCount_; + private long nullValueCount_ ; /** - * - * *
      * The number of values that are null.
      * 
* * int64 null_value_count = 2; - * * @return The nullValueCount. */ @java.lang.Override @@ -2494,51 +2185,42 @@ public long getNullValueCount() { return nullValueCount_; } /** - * - * *
      * The number of values that are null.
      * 
* * int64 null_value_count = 2; - * * @param value The nullValueCount to set. * @return This builder for chaining. */ public Builder setNullValueCount(long value) { - + nullValueCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of values that are null.
      * 
* * int64 null_value_count = 2; - * * @return This builder for chaining. */ public Builder clearNullValueCount() { - + nullValueCount_ = 0L; onChanged(); return this; } - private long validValueCount_; + private long validValueCount_ ; /** - * - * *
      * The number of values that are valid.
      * 
* * int64 valid_value_count = 9; - * * @return The validValueCount. */ @java.lang.Override @@ -2546,43 +2228,37 @@ public long getValidValueCount() { return validValueCount_; } /** - * - * *
      * The number of values that are valid.
      * 
* * int64 valid_value_count = 9; - * * @param value The validValueCount to set. * @return This builder for chaining. */ public Builder setValidValueCount(long value) { - + validValueCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of values that are valid.
      * 
* * int64 valid_value_count = 9; - * * @return This builder for chaining. */ public Builder clearValidValueCount() { - + validValueCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2592,12 +2268,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -2606,16 +2282,16 @@ 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); - } - }; + 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; @@ -2630,4 +2306,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DataStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java similarity index 85% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java index 4543eea5b..815b02515 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return Whether the float64Stats field is set. */ boolean hasFloat64Stats(); /** - * - * *
    * The statistics for FLOAT64 DataType.
    * 
* * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; - * * @return The float64Stats. */ com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats(); /** - * - * *
    * The statistics for FLOAT64 DataType.
    * 
@@ -59,32 +35,24 @@ public interface DataStatsOrBuilder com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBuilder(); /** - * - * *
    * The statistics for STRING DataType.
    * 
* * .google.cloud.automl.v1beta1.StringStats string_stats = 4; - * * @return Whether the stringStats field is set. */ boolean hasStringStats(); /** - * - * *
    * The statistics for STRING DataType.
    * 
* * .google.cloud.automl.v1beta1.StringStats string_stats = 4; - * * @return The stringStats. */ com.google.cloud.automl.v1beta1.StringStats getStringStats(); /** - * - * *
    * The statistics for STRING DataType.
    * 
@@ -94,32 +62,24 @@ public interface DataStatsOrBuilder com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuilder(); /** - * - * *
    * The statistics for TIMESTAMP DataType.
    * 
* * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; - * * @return Whether the timestampStats field is set. */ boolean hasTimestampStats(); /** - * - * *
    * The statistics for TIMESTAMP DataType.
    * 
* * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; - * * @return The timestampStats. */ com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats(); /** - * - * *
    * The statistics for TIMESTAMP DataType.
    * 
@@ -129,32 +89,24 @@ public interface DataStatsOrBuilder com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStatsOrBuilder(); /** - * - * *
    * The statistics for ARRAY DataType.
    * 
* * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; - * * @return Whether the arrayStats field is set. */ boolean hasArrayStats(); /** - * - * *
    * The statistics for ARRAY DataType.
    * 
* * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; - * * @return The arrayStats. */ com.google.cloud.automl.v1beta1.ArrayStats getArrayStats(); /** - * - * *
    * The statistics for ARRAY DataType.
    * 
@@ -164,32 +116,24 @@ public interface DataStatsOrBuilder com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilder(); /** - * - * *
    * The statistics for STRUCT DataType.
    * 
* * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; - * * @return Whether the structStats field is set. */ boolean hasStructStats(); /** - * - * *
    * The statistics for STRUCT DataType.
    * 
* * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; - * * @return The structStats. */ com.google.cloud.automl.v1beta1.StructStats getStructStats(); /** - * - * *
    * The statistics for STRUCT DataType.
    * 
@@ -199,32 +143,24 @@ public interface DataStatsOrBuilder com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuilder(); /** - * - * *
    * The statistics for CATEGORY DataType.
    * 
* * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; - * * @return Whether the categoryStats field is set. */ boolean hasCategoryStats(); /** - * - * *
    * The statistics for CATEGORY DataType.
    * 
* * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; - * * @return The categoryStats. */ com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats(); /** - * - * *
    * The statistics for CATEGORY DataType.
    * 
@@ -234,40 +170,31 @@ public interface DataStatsOrBuilder com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOrBuilder(); /** - * - * *
    * The number of distinct values.
    * 
* * int64 distinct_value_count = 1; - * * @return The distinctValueCount. */ long getDistinctValueCount(); /** - * - * *
    * The number of values that are null.
    * 
* * int64 null_value_count = 2; - * * @return The nullValueCount. */ long getNullValueCount(); /** - * - * *
    * The number of values that are valid.
    * 
* * int64 valid_value_count = 9; - * * @return The validValueCount. */ long getValidValueCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java new file mode 100644 index 000000000..ee8efe7c8 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java @@ -0,0 +1,251 @@ +// 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\"\375\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(\003\022\031\n\021valid_value_cou" + + "nt\030\t \001(\003B\007\n\005stats\"\335\001\n\014Float64Stats\022\014\n\004me" + + "an\030\001 \001(\001\022\032\n\022standard_deviation\030\002 \001(\001\022\021\n\t" + + "quantiles\030\003 \003(\001\022T\n\021histogram_buckets\030\004 \003" + + "(\01329.google.cloud.automl.v1beta1.Float64" + + "Stats.HistogramBucket\032:\n\017HistogramBucket" + + "\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_unigram_stats\030\001" + + " \003(\01325.google.cloud.automl.v1beta1.Strin" + + "gStats.UnigramStats\032,\n\014UnigramStats\022\r\n\005v" + + "alue\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"\364\002\n\016TimestampS" + + "tats\022V\n\016granular_stats\030\001 \003(\0132>.google.cl" + + "oud.automl.v1beta1.TimestampStats.Granul" + + "arStatsEntry\032\230\001\n\rGranularStats\022W\n\007bucket" + + "s\030\001 \003(\0132F.google.cloud.automl.v1beta1.Ti" + + "mestampStats.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\022GranularStatsEntry\022\013\n\003key\030\001 \001" + + "(\t\022H\n\005value\030\002 \001(\01329.google.cloud.automl." + + "v1beta1.TimestampStats.GranularStats:\0028\001" + + "\"J\n\nArrayStats\022<\n\014member_stats\030\002 \001(\0132&.g" + + "oogle.cloud.automl.v1beta1.DataStats\"\267\001\n" + + "\013StructStats\022M\n\013field_stats\030\001 \003(\01328.goog" + + "le.cloud.automl.v1beta1.StructStats.Fiel" + + "dStatsEntry\032Y\n\017FieldStatsEntry\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\rCategoryStats" + + "\022Z\n\022top_category_stats\030\001 \003(\0132>.google.cl" + + "oud.automl.v1beta1.CategoryStats.SingleC" + + "ategoryStats\0323\n\023SingleCategoryStats\022\r\n\005v" + + "alue\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"%\n\020Correlation" + + "Stats\022\021\n\tcramers_v\030\001 \001(\001B\245\001\n\037com.google." + + "cloud.automl.v1beta1P\001ZAgoogle.golang.or" + + "g/genproto/googleapis/cloud/automl/v1bet" + + "a1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352" + + "\002\036Google::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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", "ValidValueCount", "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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java similarity index 77% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java index 26b43bdd0..162e08a89 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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).
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.DataType}
  */
-public final class DataType extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DataType();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DataType(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,104 +54,93 @@ private DataType(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          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;
+            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();
             }
-          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;
+            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();
             }
-          case 32:
-            {
-              nullable_ = input.readBool();
-              break;
+            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();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              detailsCase_ = 5;
-              details_ = s;
-              break;
+            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();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      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;
+  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
+    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);
+            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,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     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;
     }
@@ -184,39 +156,32 @@ public static DetailsCase valueOf(int 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;
+        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 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; - * * @return Whether the listElementType field is set. */ @java.lang.Override @@ -224,27 +189,22 @@ 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; - * * @return The listElementType. */ @java.lang.Override 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) 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.
@@ -255,22 +215,19 @@ public com.google.cloud.automl.v1beta1.DataType getListElementType() {
   @java.lang.Override
   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) 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; - * * @return Whether the structType field is set. */ @java.lang.Override @@ -278,27 +235,22 @@ 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; - * * @return The structType. */ @java.lang.Override 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) 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.
@@ -309,15 +261,13 @@ public com.google.cloud.automl.v1beta1.StructType getStructType() {
   @java.lang.Override
   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) 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
@@ -333,15 +283,12 @@ public com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilde
    * 
* * string time_format = 5; - * * @return Whether the timeFormat field is set. */ public boolean hasTimeFormat() { return detailsCase_ == 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
@@ -357,7 +304,6 @@ public boolean hasTimeFormat() {
    * 
* * string time_format = 5; - * * @return The timeFormat. */ public java.lang.String getTimeFormat() { @@ -368,7 +314,8 @@ public java.lang.String getTimeFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (detailsCase_ == 5) { details_ = s; @@ -377,8 +324,6 @@ public 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
@@ -394,17 +339,18 @@ public java.lang.String getTimeFormat() {
    * 
* * string time_format = 5; - * * @return The bytes for timeFormat. */ - public com.google.protobuf.ByteString getTimeFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (detailsCase_ == 5) { details_ = b; } @@ -417,51 +363,39 @@ public com.google.protobuf.ByteString getTimeFormatBytes() { 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; - * * @return The enum numeric value on the wire for typeCode. */ - @java.lang.Override - public int getTypeCodeValue() { + @java.lang.Override public int getTypeCodeValue() { return typeCode_; } /** - * - * *
    * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
    * 
* * .google.cloud.automl.v1beta1.TypeCode type_code = 1; - * * @return The typeCode. */ - @java.lang.Override - public com.google.cloud.automl.v1beta1.TypeCode getTypeCode() { + @java.lang.Override 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_); + 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`. In .CSV files `NULL` value is
    * expressed as an empty string.
    * 
* * bool nullable = 4; - * * @return The nullable. */ @java.lang.Override @@ -470,7 +404,6 @@ public boolean getNullable() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -482,7 +415,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -508,20 +442,20 @@ public int getSerializedSize() { size = 0; if (typeCode_ != com.google.cloud.automl.v1beta1.TypeCode.TYPE_CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, typeCode_); + 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_); + 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_); + 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_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, nullable_); } if (detailsCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, details_); @@ -534,7 +468,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.DataType)) { return super.equals(obj); @@ -542,17 +476,21 @@ public boolean equals(final java.lang.Object 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 (getNullable() + != other.getNullable()) return false; if (!getDetailsCase().equals(other.getDetailsCase())) return false; switch (detailsCase_) { case 2: - if (!getListElementType().equals(other.getListElementType())) return false; + if (!getListElementType() + .equals(other.getListElementType())) return false; break; case 3: - if (!getStructType().equals(other.getStructType())) return false; + if (!getStructType() + .equals(other.getStructType())) return false; break; case 5: - if (!getTimeFormat().equals(other.getTimeFormat())) return false; + if (!getTimeFormat() + .equals(other.getTimeFormat())) return false; break; case 0: default: @@ -571,7 +509,8 @@ public int 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()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNullable()); switch (detailsCase_) { case 2: hash = (37 * hash) + LIST_ELEMENT_TYPE_FIELD_NUMBER; @@ -593,104 +532,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.DataType parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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).
@@ -698,23 +630,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.DataType}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.DataType.class, com.google.cloud.automl.v1beta1.DataType.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.DataType.newBuilder()
@@ -722,15 +652,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -744,9 +675,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -765,8 +696,7 @@ public com.google.cloud.automl.v1beta1.DataType build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.DataType result = new com.google.cloud.automl.v1beta1.DataType(this);
       if (detailsCase_ == 2) {
         if (listElementTypeBuilder_ == null) {
           result.details_ = details_;
@@ -795,39 +725,38 @@ public com.google.cloud.automl.v1beta1.DataType buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.DataType)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -843,27 +772,23 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.DataType other) {
         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;
-          }
+        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();
@@ -893,12 +818,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int detailsCase_ = 0;
     private java.lang.Object details_;
-
-    public DetailsCase getDetailsCase() {
-      return DetailsCase.forNumber(detailsCase_);
+    public DetailsCase
+        getDetailsCase() {
+      return DetailsCase.forNumber(
+          detailsCase_);
     }
 
     public Builder clearDetails() {
@@ -908,21 +833,16 @@ public Builder clearDetails() {
       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_;
+        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; - * * @return Whether the listElementType field is set. */ @java.lang.Override @@ -930,15 +850,12 @@ 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; - * * @return The listElementType. */ @java.lang.Override @@ -956,8 +873,6 @@ public 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.
@@ -979,8 +894,6 @@ public Builder setListElementType(com.google.cloud.automl.v1beta1.DataType value
       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.
@@ -1000,8 +913,6 @@ public Builder setListElementType(
       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.
@@ -1011,13 +922,10 @@ public Builder setListElementType(
      */
     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();
+        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;
         }
@@ -1032,8 +940,6 @@ public Builder mergeListElementType(com.google.cloud.automl.v1beta1.DataType val
       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.
@@ -1058,8 +964,6 @@ public Builder clearListElementType() {
       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.
@@ -1071,8 +975,6 @@ public com.google.cloud.automl.v1beta1.DataType.Builder getListElementTypeBuilde
       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.
@@ -1092,8 +994,6 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getListElementTypeOrBui
       }
     }
     /**
-     *
-     *
      * 
      * 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.
@@ -1102,45 +1002,33 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getListElementTypeOrBui
      * .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>
+        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>(
+        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();
-      ;
+      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_;
+        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; - * * @return Whether the structType field is set. */ @java.lang.Override @@ -1148,15 +1036,12 @@ 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; - * * @return The structType. */ @java.lang.Override @@ -1174,8 +1059,6 @@ public 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.
@@ -1197,8 +1080,6 @@ public Builder setStructType(com.google.cloud.automl.v1beta1.StructType value) {
       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.
@@ -1218,8 +1099,6 @@ public Builder setStructType(
       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.
@@ -1229,13 +1108,10 @@ public Builder setStructType(
      */
     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();
+        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;
         }
@@ -1250,8 +1126,6 @@ public Builder mergeStructType(com.google.cloud.automl.v1beta1.StructType value)
       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.
@@ -1276,8 +1150,6 @@ public Builder clearStructType() {
       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.
@@ -1289,8 +1161,6 @@ 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.
@@ -1310,8 +1180,6 @@ public com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * 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.
@@ -1320,33 +1188,25 @@ public com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilde
      * .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>
+        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>(
+        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();
-      ;
+      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
@@ -1362,7 +1222,6 @@ public com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilde
      * 
* * string time_format = 5; - * * @return Whether the timeFormat field is set. */ @java.lang.Override @@ -1370,8 +1229,6 @@ public boolean hasTimeFormat() { return detailsCase_ == 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
@@ -1387,7 +1244,6 @@ public boolean hasTimeFormat() {
      * 
* * string time_format = 5; - * * @return The timeFormat. */ @java.lang.Override @@ -1397,7 +1253,8 @@ public java.lang.String getTimeFormat() { ref = details_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (detailsCase_ == 5) { details_ = s; @@ -1408,8 +1265,6 @@ public 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
@@ -1425,18 +1280,19 @@ public java.lang.String getTimeFormat() {
      * 
* * string time_format = 5; - * * @return The bytes for timeFormat. */ @java.lang.Override - public com.google.protobuf.ByteString getTimeFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (detailsCase_ == 5) { details_ = b; } @@ -1446,8 +1302,6 @@ public com.google.protobuf.ByteString getTimeFormatBytes() { } } /** - * - * *
      * 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
@@ -1463,22 +1317,20 @@ public com.google.protobuf.ByteString getTimeFormatBytes() {
      * 
* * string time_format = 5; - * * @param value The timeFormat to set. * @return This builder for chaining. */ - public Builder setTimeFormat(java.lang.String value) { + public Builder setTimeFormat( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - detailsCase_ = 5; + 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
@@ -1494,7 +1346,6 @@ public Builder setTimeFormat(java.lang.String value) {
      * 
* * string time_format = 5; - * * @return This builder for chaining. */ public Builder clearTimeFormat() { @@ -1506,8 +1357,6 @@ public Builder clearTimeFormat() { 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
@@ -1523,15 +1372,15 @@ public Builder clearTimeFormat() {
      * 
* * string time_format = 5; - * * @param value The bytes for timeFormat to set. * @return This builder for chaining. */ - public Builder setTimeFormatBytes(com.google.protobuf.ByteString value) { + public Builder setTimeFormatBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); detailsCase_ = 5; details_ = value; onChanged(); @@ -1540,65 +1389,51 @@ public Builder setTimeFormatBytes(com.google.protobuf.ByteString value) { private int typeCode_ = 0; /** - * - * *
      * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
      * 
* * .google.cloud.automl.v1beta1.TypeCode type_code = 1; - * * @return The enum numeric value on the wire for typeCode. */ - @java.lang.Override - public int getTypeCodeValue() { + @java.lang.Override public int getTypeCodeValue() { return typeCode_; } /** - * - * *
      * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
      * 
* * .google.cloud.automl.v1beta1.TypeCode type_code = 1; - * * @param value The enum numeric value on the wire for typeCode to set. * @return This builder for chaining. */ 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; - * * @return The typeCode. */ @java.lang.Override 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_); + 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; - * * @param value The typeCode to set. * @return This builder for chaining. */ @@ -1606,40 +1441,34 @@ 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; - * * @return This builder for chaining. */ public Builder clearTypeCode() { - + typeCode_ = 0; onChanged(); return this; } - private boolean nullable_; + private boolean nullable_ ; /** - * - * *
      * If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
      * expressed as an empty string.
      * 
* * bool nullable = 4; - * * @return The nullable. */ @java.lang.Override @@ -1647,45 +1476,39 @@ public boolean getNullable() { return nullable_; } /** - * - * *
      * If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
      * expressed as an empty string.
      * 
* * bool nullable = 4; - * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; onChanged(); return this; } /** - * - * *
      * If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
      * expressed as an empty string.
      * 
* * bool nullable = 4; - * * @return This builder for chaining. */ public Builder clearNullable() { - + nullable_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1695,12 +1518,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1709,16 +1532,16 @@ 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); - } - }; + 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; @@ -1733,4 +1556,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DataType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java similarity index 87% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java index a99f46d73..b92f4752d 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return Whether the listElementType field is set. */ 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; - * * @return The listElementType. */ 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.
@@ -62,34 +38,26 @@ public interface DataTypeOrBuilder
   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; - * * @return Whether the structType field is set. */ 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; - * * @return The structType. */ 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.
@@ -100,8 +68,6 @@ public interface DataTypeOrBuilder
   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
@@ -117,13 +83,10 @@ public interface DataTypeOrBuilder
    * 
* * string time_format = 5; - * * @return Whether the timeFormat field is set. */ boolean hasTimeFormat(); /** - * - * *
    * 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
@@ -139,13 +102,10 @@ public interface DataTypeOrBuilder
    * 
* * string time_format = 5; - * * @return The timeFormat. */ 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
@@ -161,46 +121,37 @@ public interface DataTypeOrBuilder
    * 
* * string time_format = 5; - * * @return The bytes for timeFormat. */ - com.google.protobuf.ByteString getTimeFormatBytes(); + com.google.protobuf.ByteString + getTimeFormatBytes(); /** - * - * *
    * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
    * 
* * .google.cloud.automl.v1beta1.TypeCode type_code = 1; - * * @return The enum numeric value on the wire for typeCode. */ int getTypeCodeValue(); /** - * - * *
    * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
    * 
* * .google.cloud.automl.v1beta1.TypeCode type_code = 1; - * * @return The typeCode. */ com.google.cloud.automl.v1beta1.TypeCode getTypeCode(); /** - * - * *
    * If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
    * expressed as an empty string.
    * 
* * bool nullable = 4; - * * @return The nullable. */ boolean getNullable(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java new file mode 100644 index 000000000..dbc295173 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java @@ -0,0 +1,90 @@ +// 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\"\374\001\n\010DataType\022B" + + "\n\021list_element_type\030\002 \001(\0132%.google.cloud" + + ".automl.v1beta1.DataTypeH\000\022>\n\013struct_typ" + + "e\030\003 \001(\0132\'.google.cloud.automl.v1beta1.St" + + "ructTypeH\000\022\025\n\013time_format\030\005 \001(\tH\000\0228\n\ttyp" + + "e_code\030\001 \001(\0162%.google.cloud.automl.v1bet" + + "a1.TypeCode\022\020\n\010nullable\030\004 \001(\010B\t\n\007details" + + "\"\247\001\n\nStructType\022C\n\006fields\030\001 \003(\01323.google" + + ".cloud.automl.v1beta1.StructType.FieldsE" + + "ntry\032T\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0224\n\005valu" + + "e\030\002 \001(\0132%.google.cloud.automl.v1beta1.Da" + + "taType:\0028\001*r\n\010TypeCode\022\031\n\025TYPE_CODE_UNSP" + + "ECIFIED\020\000\022\013\n\007FLOAT64\020\003\022\r\n\tTIMESTAMP\020\004\022\n\n" + + "\006STRING\020\006\022\t\n\005ARRAY\020\010\022\n\n\006STRUCT\020\t\022\014\n\010CATE" + + "GORY\020\nB\245\001\n\037com.google.cloud.automl.v1bet" + + "a1P\001ZAgoogle.golang.org/genproto/googlea" + + "pis/cloud/automl/v1beta1;automl\312\002\033Google" + + "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" + + "utoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java similarity index 61% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java index 131e0c877..50555e2ec 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/dataset.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * A workspace for solving a single, particular machine learning (ML) problem.
  * A workspace contains examples that may be annotated.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.Dataset}
  */
-public final class Dataset extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Dataset extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Dataset)
     DatasetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Dataset.newBuilder() to construct.
   private Dataset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Dataset() {
     name_ = "";
     displayName_ = "";
@@ -47,15 +29,16 @@ private Dataset() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Dataset();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Dataset(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,295 +57,210 @@ private Dataset(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 114: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 114:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 138:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
+            break;
+          }
+          case 138: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            etag_ = s;
+            break;
+          }
+          case 168: {
+
+            exampleCount_ = input.readInt32();
+            break;
+          }
+          case 186: {
+            com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder subBuilder = null;
+            if (datasetMetadataCase_ == 23) {
+              subBuilder = ((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_).toBuilder();
+            }
+            datasetMetadata_ =
+                input.readMessage(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_);
+              datasetMetadata_ = subBuilder.buildPartial();
+            }
+            datasetMetadataCase_ = 23;
+            break;
+          }
+          case 194: {
+            com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder subBuilder = null;
+            if (datasetMetadataCase_ == 24) {
+              subBuilder = ((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_).toBuilder();
+            }
+            datasetMetadata_ =
+                input.readMessage(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_);
+              datasetMetadata_ = subBuilder.buildPartial();
             }
-          case 168:
-            {
-              exampleCount_ = input.readInt32();
-              break;
+            datasetMetadataCase_ = 24;
+            break;
+          }
+          case 202: {
+            com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder subBuilder = null;
+            if (datasetMetadataCase_ == 25) {
+              subBuilder = ((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_).toBuilder();
+            }
+            datasetMetadata_ =
+                input.readMessage(com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_);
+              datasetMetadata_ = subBuilder.buildPartial();
+            }
+            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();
             }
-          case 186:
-            {
-              com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder subBuilder = null;
-              if (datasetMetadataCase_ == 23) {
-                subBuilder =
-                    ((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_)
-                        .toBuilder();
-              }
-              datasetMetadata_ =
-                  input.readMessage(
-                      com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_);
-                datasetMetadata_ = subBuilder.buildPartial();
-              }
-              datasetMetadataCase_ = 23;
-              break;
+            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();
             }
-          case 194:
-            {
-              com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder
-                  subBuilder = null;
-              if (datasetMetadataCase_ == 24) {
-                subBuilder =
-                    ((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata)
-                            datasetMetadata_)
-                        .toBuilder();
-              }
-              datasetMetadata_ =
-                  input.readMessage(
-                      com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata)
-                        datasetMetadata_);
-                datasetMetadata_ = subBuilder.buildPartial();
-              }
-              datasetMetadataCase_ = 24;
-              break;
+            datasetMetadataCase_ = 28;
+            break;
+          }
+          case 234: {
+            com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder subBuilder = null;
+            if (datasetMetadataCase_ == 29) {
+              subBuilder = ((com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_).toBuilder();
             }
-          case 202:
-            {
-              com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder subBuilder =
-                  null;
-              if (datasetMetadataCase_ == 25) {
-                subBuilder =
-                    ((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata)
-                            datasetMetadata_)
-                        .toBuilder();
-              }
-              datasetMetadata_ =
-                  input.readMessage(
-                      com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata)
-                        datasetMetadata_);
-                datasetMetadata_ = subBuilder.buildPartial();
-              }
-              datasetMetadataCase_ = 25;
-              break;
+            datasetMetadata_ =
+                input.readMessage(com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_);
+              datasetMetadata_ = subBuilder.buildPartial();
             }
-          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;
+            datasetMetadataCase_ = 29;
+            break;
+          }
+          case 242: {
+            com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder subBuilder = null;
+            if (datasetMetadataCase_ == 30) {
+              subBuilder = ((com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_).toBuilder();
             }
-          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;
+            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();
             }
-          case 234:
-            {
-              com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder
-                  subBuilder = null;
-              if (datasetMetadataCase_ == 29) {
-                subBuilder =
-                    ((com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata)
-                            datasetMetadata_)
-                        .toBuilder();
-              }
-              datasetMetadata_ =
-                  input.readMessage(
-                      com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata)
-                        datasetMetadata_);
-                datasetMetadata_ = subBuilder.buildPartial();
-              }
-              datasetMetadataCase_ = 29;
-              break;
+            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();
             }
-          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;
+            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();
             }
-          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;
+            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();
             }
-          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;
+            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();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            datasetMetadataCase_ = 33;
+            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);
+      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_Dataset_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable
+    return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1beta1.Dataset.class,
-            com.google.cloud.automl.v1beta1.Dataset.Builder.class);
+            com.google.cloud.automl.v1beta1.Dataset.class, com.google.cloud.automl.v1beta1.Dataset.Builder.class);
   }
 
   private int datasetMetadataCase_ = 0;
   private java.lang.Object datasetMetadata_;
-
   public enum DatasetMetadataCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     TRANSLATION_DATASET_METADATA(23),
     IMAGE_CLASSIFICATION_DATASET_METADATA(24),
@@ -375,7 +273,6 @@ public enum DatasetMetadataCase
     TABLES_DATASET_METADATA(33),
     DATASETMETADATA_NOT_SET(0);
     private final int value;
-
     private DatasetMetadataCase(int value) {
       this.value = value;
     }
@@ -391,52 +288,37 @@ public static DatasetMetadataCase valueOf(int value) {
 
     public static DatasetMetadataCase forNumber(int value) {
       switch (value) {
-        case 23:
-          return TRANSLATION_DATASET_METADATA;
-        case 24:
-          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 29:
-          return VIDEO_OBJECT_TRACKING_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:
-          return null;
+        case 23: return TRANSLATION_DATASET_METADATA;
+        case 24: 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 29: return VIDEO_OBJECT_TRACKING_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: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DatasetMetadataCase getDatasetMetadataCase() {
-    return DatasetMetadataCase.forNumber(datasetMetadataCase_);
+  public DatasetMetadataCase
+  getDatasetMetadataCase() {
+    return DatasetMetadataCase.forNumber(
+        datasetMetadataCase_);
   }
 
   public static final int TRANSLATION_DATASET_METADATA_FIELD_NUMBER = 23;
   /**
-   *
-   *
    * 
    * Metadata for a dataset used for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return Whether the translationDatasetMetadata field is set. */ @java.lang.Override @@ -444,58 +326,42 @@ public boolean hasTranslationDatasetMetadata() { return datasetMetadataCase_ == 23; } /** - * - * *
    * Metadata for a dataset used for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return The translationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata - getTranslationDatasetMetadata() { + public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getTranslationDatasetMetadata() { if (datasetMetadataCase_ == 23) { - return (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for a dataset used for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder - getTranslationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 23) { - return (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER = 24; /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return Whether the imageClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -503,58 +369,42 @@ public boolean hasImageClassificationDatasetMetadata() { return datasetMetadataCase_ == 24; } /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return The imageClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - getImageClassificationDatasetMetadata() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata() { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder - getImageClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER = 25; /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return Whether the textClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -562,58 +412,42 @@ public boolean hasTextClassificationDatasetMetadata() { return datasetMetadataCase_ == 25; } /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return The textClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - getTextClassificationDatasetMetadata() { + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata() { if (datasetMetadataCase_ == 25) { - return (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_; + 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; - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder - getTextClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 25) { - return (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_; } 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ @java.lang.Override @@ -621,58 +455,42 @@ 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return The imageObjectDetectionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata - getImageObjectDetectionDatasetMetadata() { + 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) 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder - getImageObjectDetectionDatasetMetadataOrBuilder() { + 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) 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; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; * @return Whether the videoClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -680,58 +498,42 @@ public boolean hasVideoClassificationDatasetMetadata() { return datasetMetadataCase_ == 31; } /** - * - * *
    * Metadata for a dataset used for video classification.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; * @return The videoClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata - getVideoClassificationDatasetMetadata() { + 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) 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; - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder - getVideoClassificationDatasetMetadataOrBuilder() { + 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) datasetMetadata_; } return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_DATASET_METADATA_FIELD_NUMBER = 29; /** - * - * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; * @return Whether the videoObjectTrackingDatasetMetadata field is set. */ @java.lang.Override @@ -739,58 +541,42 @@ public boolean hasVideoObjectTrackingDatasetMetadata() { return datasetMetadataCase_ == 29; } /** - * - * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; * @return The videoObjectTrackingDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - getVideoObjectTrackingDatasetMetadata() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getVideoObjectTrackingDatasetMetadata() { if (datasetMetadataCase_ == 29) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder - getVideoObjectTrackingDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder getVideoObjectTrackingDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 29) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.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; - * - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return Whether the textExtractionDatasetMetadata field is set. */ @java.lang.Override @@ -798,58 +584,42 @@ public boolean hasTextExtractionDatasetMetadata() { return datasetMetadataCase_ == 28; } /** - * - * *
    * Metadata for a dataset used for text extraction.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return The textExtractionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata - getTextExtractionDatasetMetadata() { + 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) 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; - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder - getTextExtractionDatasetMetadataOrBuilder() { + 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) 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; - * - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return Whether the textSentimentDatasetMetadata field is set. */ @java.lang.Override @@ -857,56 +627,42 @@ public boolean hasTextSentimentDatasetMetadata() { return datasetMetadataCase_ == 30; } /** - * - * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return The textSentimentDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata - getTextSentimentDatasetMetadata() { + 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) 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; - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder - getTextSentimentDatasetMetadataOrBuilder() { + 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) 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; - * * @return Whether the tablesDatasetMetadata field is set. */ @java.lang.Override @@ -914,26 +670,21 @@ public boolean hasTablesDatasetMetadata() { return datasetMetadataCase_ == 33; } /** - * - * *
    * Metadata for a dataset used for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; - * * @return The tablesDatasetMetadata. */ @java.lang.Override 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) datasetMetadata_; } return com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for a dataset used for Tables.
    * 
@@ -941,10 +692,9 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getTablesDatasetMet * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder - getTablesDatasetMetadataOrBuilder() { + 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) datasetMetadata_; } return com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); } @@ -952,15 +702,12 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getTablesDatasetMet public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -969,30 +716,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1003,8 +750,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * 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
@@ -1013,7 +758,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -1022,15 +766,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 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
@@ -1039,15 +782,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1058,15 +802,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -1075,30 +816,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1109,14 +850,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { 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; - * * @return The exampleCount. */ @java.lang.Override @@ -1127,14 +865,11 @@ public int getExampleCount() { public static final int CREATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1142,14 +877,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return The createTime. */ @java.lang.Override @@ -1157,8 +889,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
@@ -1173,15 +903,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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; - * * @return The etag. */ @java.lang.Override @@ -1190,30 +917,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1222,7 +949,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1234,7 +960,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1254,44 +981,31 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt32(21, exampleCount_); } if (datasetMetadataCase_ == 23) { - output.writeMessage( - 23, (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_); + output.writeMessage(23, (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 24) { - output.writeMessage( - 24, - (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_); + output.writeMessage(24, (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 25) { - output.writeMessage( - 25, (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_); + output.writeMessage(25, (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 26) { - output.writeMessage( - 26, - (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) datasetMetadata_); + output.writeMessage(26, (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 28) { - output.writeMessage( - 28, (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_); + output.writeMessage(28, (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 29) { - output.writeMessage( - 29, - (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_); + output.writeMessage(29, (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 30) { - output.writeMessage( - 30, (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_); + output.writeMessage(30, (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 31) { - output.writeMessage( - 31, - (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) datasetMetadata_); + output.writeMessage(31, (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 33) { - output.writeMessage( - 33, (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_); + output.writeMessage(33, (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_); } unknownFields.writeTo(output); } @@ -1312,67 +1026,51 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_); } if (exampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, exampleCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(21, exampleCount_); } if (datasetMetadataCase_ == 23) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 23, (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 24) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 24, - (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) - datasetMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 25) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 25, - (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(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_); + 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_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 29) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 29, - (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) - datasetMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 30) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 30, (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_); + 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_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1382,27 +1080,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.Dataset)) { return super.equals(obj); } com.google.cloud.automl.v1beta1.Dataset other = (com.google.cloud.automl.v1beta1.Dataset) 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 (!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 (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getDatasetMetadataCase().equals(other.getDatasetMetadataCase())) return false; switch (datasetMetadataCase_) { case 23: - if (!getTranslationDatasetMetadata().equals(other.getTranslationDatasetMetadata())) - return false; + if (!getTranslationDatasetMetadata() + .equals(other.getTranslationDatasetMetadata())) return false; break; case 24: if (!getImageClassificationDatasetMetadata() @@ -1425,15 +1129,16 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getVideoObjectTrackingDatasetMetadata())) return false; break; case 28: - if (!getTextExtractionDatasetMetadata().equals(other.getTextExtractionDatasetMetadata())) - return false; + if (!getTextExtractionDatasetMetadata() + .equals(other.getTextExtractionDatasetMetadata())) return false; break; case 30: - if (!getTextSentimentDatasetMetadata().equals(other.getTextSentimentDatasetMetadata())) - return false; + if (!getTextSentimentDatasetMetadata() + .equals(other.getTextSentimentDatasetMetadata())) return false; break; case 33: - if (!getTablesDatasetMetadata().equals(other.getTablesDatasetMetadata())) return false; + if (!getTablesDatasetMetadata() + .equals(other.getTablesDatasetMetadata())) return false; break; case 0: default: @@ -1508,104 +1213,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.Dataset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.Dataset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Dataset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Dataset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Dataset 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.Dataset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Dataset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Dataset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.Dataset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.Dataset parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.Dataset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.Dataset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Dataset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.Dataset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.Dataset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A workspace for solving a single, particular machine learning (ML) problem.
    * A workspace contains examples that may be annotated.
@@ -1613,23 +1311,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.Dataset}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Dataset)
       com.google.cloud.automl.v1beta1.DatasetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_automl_v1beta1_Dataset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable
+      return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1beta1.Dataset.class,
-              com.google.cloud.automl.v1beta1.Dataset.Builder.class);
+              com.google.cloud.automl.v1beta1.Dataset.class, com.google.cloud.automl.v1beta1.Dataset.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.Dataset.newBuilder()
@@ -1637,15 +1333,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1671,9 +1368,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_automl_v1beta1_Dataset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_descriptor;
     }
 
     @java.lang.Override
@@ -1692,8 +1389,7 @@ public com.google.cloud.automl.v1beta1.Dataset build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1beta1.Dataset buildPartial() {
-      com.google.cloud.automl.v1beta1.Dataset result =
-          new com.google.cloud.automl.v1beta1.Dataset(this);
+      com.google.cloud.automl.v1beta1.Dataset result = new com.google.cloud.automl.v1beta1.Dataset(this);
       if (datasetMetadataCase_ == 23) {
         if (translationDatasetMetadataBuilder_ == null) {
           result.datasetMetadata_ = datasetMetadata_;
@@ -1776,39 +1472,38 @@ public com.google.cloud.automl.v1beta1.Dataset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.Dataset) {
-        return mergeFrom((com.google.cloud.automl.v1beta1.Dataset) other);
+        return mergeFrom((com.google.cloud.automl.v1beta1.Dataset)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1840,56 +1535,45 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Dataset other) {
         onChanged();
       }
       switch (other.getDatasetMetadataCase()) {
-        case TRANSLATION_DATASET_METADATA:
-          {
-            mergeTranslationDatasetMetadata(other.getTranslationDatasetMetadata());
-            break;
-          }
-        case IMAGE_CLASSIFICATION_DATASET_METADATA:
-          {
-            mergeImageClassificationDatasetMetadata(other.getImageClassificationDatasetMetadata());
-            break;
-          }
-        case TEXT_CLASSIFICATION_DATASET_METADATA:
-          {
-            mergeTextClassificationDatasetMetadata(other.getTextClassificationDatasetMetadata());
-            break;
-          }
-        case IMAGE_OBJECT_DETECTION_DATASET_METADATA:
-          {
-            mergeImageObjectDetectionDatasetMetadata(
-                other.getImageObjectDetectionDatasetMetadata());
-            break;
-          }
-        case VIDEO_CLASSIFICATION_DATASET_METADATA:
-          {
-            mergeVideoClassificationDatasetMetadata(other.getVideoClassificationDatasetMetadata());
-            break;
-          }
-        case VIDEO_OBJECT_TRACKING_DATASET_METADATA:
-          {
-            mergeVideoObjectTrackingDatasetMetadata(other.getVideoObjectTrackingDatasetMetadata());
-            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;
-          }
+        case TRANSLATION_DATASET_METADATA: {
+          mergeTranslationDatasetMetadata(other.getTranslationDatasetMetadata());
+          break;
+        }
+        case IMAGE_CLASSIFICATION_DATASET_METADATA: {
+          mergeImageClassificationDatasetMetadata(other.getImageClassificationDatasetMetadata());
+          break;
+        }
+        case TEXT_CLASSIFICATION_DATASET_METADATA: {
+          mergeTextClassificationDatasetMetadata(other.getTextClassificationDatasetMetadata());
+          break;
+        }
+        case IMAGE_OBJECT_DETECTION_DATASET_METADATA: {
+          mergeImageObjectDetectionDatasetMetadata(other.getImageObjectDetectionDatasetMetadata());
+          break;
+        }
+        case VIDEO_CLASSIFICATION_DATASET_METADATA: {
+          mergeVideoClassificationDatasetMetadata(other.getVideoClassificationDatasetMetadata());
+          break;
+        }
+        case VIDEO_OBJECT_TRACKING_DATASET_METADATA: {
+          mergeVideoObjectTrackingDatasetMetadata(other.getVideoObjectTrackingDatasetMetadata());
+          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;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1919,12 +1603,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int datasetMetadataCase_ = 0;
     private java.lang.Object datasetMetadata_;
-
-    public DatasetMetadataCase getDatasetMetadataCase() {
-      return DatasetMetadataCase.forNumber(datasetMetadataCase_);
+    public DatasetMetadataCase
+        getDatasetMetadataCase() {
+      return DatasetMetadataCase.forNumber(
+          datasetMetadataCase_);
     }
 
     public Builder clearDatasetMetadata() {
@@ -1934,22 +1618,15 @@ public Builder clearDatasetMetadata() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1beta1.TranslationDatasetMetadata,
-            com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder,
-            com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder>
-        translationDatasetMetadataBuilder_;
+        com.google.cloud.automl.v1beta1.TranslationDatasetMetadata, com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder> translationDatasetMetadataBuilder_;
     /**
-     *
-     *
      * 
      * Metadata for a dataset used for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return Whether the translationDatasetMetadata field is set. */ @java.lang.Override @@ -1957,21 +1634,15 @@ public boolean hasTranslationDatasetMetadata() { return datasetMetadataCase_ == 23; } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return The translationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata - getTranslationDatasetMetadata() { + public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getTranslationDatasetMetadata() { if (translationDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 23) { return (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_; @@ -1985,18 +1656,13 @@ public boolean hasTranslationDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ - public Builder setTranslationDatasetMetadata( - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata value) { + public Builder setTranslationDatasetMetadata(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata value) { if (translationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2010,15 +1676,11 @@ public Builder setTranslationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ public Builder setTranslationDatasetMetadata( com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder builderForValue) { @@ -2032,28 +1694,18 @@ public Builder setTranslationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ - public Builder mergeTranslationDatasetMetadata( - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata value) { + public Builder mergeTranslationDatasetMetadata(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata value) { if (translationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 23 - && datasetMetadata_ - != com.google.cloud.automl.v1beta1.TranslationDatasetMetadata - .getDefaultInstance()) { - datasetMetadata_ = - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_) - .mergeFrom(value) - .buildPartial(); + if (datasetMetadataCase_ == 23 && + datasetMetadata_ != com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.newBuilder((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_) + .mergeFrom(value).buildPartial(); } else { datasetMetadata_ = value; } @@ -2068,15 +1720,11 @@ public Builder mergeTranslationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ public Builder clearTranslationDatasetMetadata() { if (translationDatasetMetadataBuilder_ == null) { @@ -2095,34 +1743,24 @@ public Builder clearTranslationDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ - public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder - getTranslationDatasetMetadataBuilder() { + public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder getTranslationDatasetMetadataBuilder() { return getTranslationDatasetMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder - getTranslationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 23) && (translationDatasetMetadataBuilder_ != null)) { return translationDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2133,58 +1771,39 @@ public Builder clearTranslationDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata, - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder> + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata, com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder> getTranslationDatasetMetadataFieldBuilder() { if (translationDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 23)) { - datasetMetadata_ = - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance(); } - translationDatasetMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata, - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder>( + translationDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata, com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 23; - onChanged(); - ; + onChanged();; return translationDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder> - imageClassificationDatasetMetadataBuilder_; + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder> imageClassificationDatasetMetadataBuilder_; /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return Whether the imageClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -2192,49 +1811,35 @@ public boolean hasImageClassificationDatasetMetadata() { return datasetMetadataCase_ == 24; } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return The imageClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - getImageClassificationDatasetMetadata() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata() { if (imageClassificationDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) - datasetMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); } else { if (datasetMetadataCase_ == 24) { return imageClassificationDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); } } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ - public Builder setImageClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata value) { + public Builder setImageClassificationDatasetMetadata(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata value) { if (imageClassificationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2248,19 +1853,14 @@ public Builder setImageClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ public Builder setImageClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder builderForValue) { if (imageClassificationDatasetMetadataBuilder_ == null) { datasetMetadata_ = builderForValue.build(); onChanged(); @@ -2271,29 +1871,18 @@ public Builder setImageClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ - public Builder mergeImageClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata value) { + public Builder mergeImageClassificationDatasetMetadata(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata value) { if (imageClassificationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 24 - && datasetMetadata_ - != com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - .getDefaultInstance()) { - datasetMetadata_ = - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) - datasetMetadata_) - .mergeFrom(value) - .buildPartial(); + if (datasetMetadataCase_ == 24 && + datasetMetadata_ != com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.newBuilder((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_) + .mergeFrom(value).buildPartial(); } else { datasetMetadata_ = value; } @@ -2308,15 +1897,11 @@ public Builder mergeImageClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ public Builder clearImageClassificationDatasetMetadata() { if (imageClassificationDatasetMetadataBuilder_ == null) { @@ -2335,100 +1920,67 @@ public Builder clearImageClassificationDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder - getImageClassificationDatasetMetadataBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder getImageClassificationDatasetMetadataBuilder() { return getImageClassificationDatasetMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder - getImageClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 24) && (imageClassificationDatasetMetadataBuilder_ != null)) { return imageClassificationDatasetMetadataBuilder_.getMessageOrBuilder(); } else { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) - datasetMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); } } /** - * - * *
      * Metadata for a dataset used for image classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder> + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder> getImageClassificationDatasetMetadataFieldBuilder() { if (imageClassificationDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 24)) { - datasetMetadata_ = - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - .getDefaultInstance(); + datasetMetadata_ = com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); } - imageClassificationDatasetMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) - datasetMetadata_, + imageClassificationDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 24; - onChanged(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return Whether the textClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -2436,49 +1988,35 @@ public boolean hasTextClassificationDatasetMetadata() { return datasetMetadataCase_ == 25; } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return The textClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - getTextClassificationDatasetMetadata() { + 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) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance(); } else { if (datasetMetadataCase_ == 25) { return textClassificationDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ - public Builder setTextClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata value) { + public Builder setTextClassificationDatasetMetadata(com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata value) { if (textClassificationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2492,15 +2030,11 @@ public Builder setTextClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ public Builder setTextClassificationDatasetMetadata( com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder builderForValue) { @@ -2514,29 +2048,18 @@ public Builder setTextClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ - public Builder mergeTextClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata value) { + 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(); + 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; } @@ -2551,15 +2074,11 @@ public Builder mergeTextClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ public Builder clearTextClassificationDatasetMetadata() { if (textClassificationDatasetMetadataBuilder_ == null) { @@ -2578,100 +2097,67 @@ public Builder clearTextClassificationDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for text classification.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder - getTextClassificationDatasetMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder - getTextClassificationDatasetMetadataOrBuilder() { + 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) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - .getDefaultInstance(); + 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; - * + * .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> + 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(); + 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_, + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ @java.lang.Override @@ -2679,49 +2165,35 @@ 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return The imageObjectDetectionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata - getImageObjectDetectionDatasetMetadata() { + 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) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); } else { if (datasetMetadataCase_ == 26) { return imageObjectDetectionDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ - public Builder setImageObjectDetectionDatasetMetadata( - com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata value) { + public Builder setImageObjectDetectionDatasetMetadata(com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata value) { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2734,20 +2206,15 @@ public Builder setImageObjectDetectionDatasetMetadata( datasetMetadataCase_ = 26; return this; } - /** - * - * + /** *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ public Builder setImageObjectDetectionDatasetMetadata( - com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder builderForValue) { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { datasetMetadata_ = builderForValue.build(); onChanged(); @@ -2758,29 +2225,18 @@ public Builder setImageObjectDetectionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ - public Builder mergeImageObjectDetectionDatasetMetadata( - com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata value) { + 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(); + 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; } @@ -2795,15 +2251,11 @@ public Builder mergeImageObjectDetectionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ public Builder clearImageObjectDetectionDatasetMetadata() { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { @@ -2822,100 +2274,67 @@ public Builder clearImageObjectDetectionDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for image object detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder - getImageObjectDetectionDatasetMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder - getImageObjectDetectionDatasetMetadataOrBuilder() { + 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) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata - .getDefaultInstance(); + 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; - * + * .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> + 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(); + 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_, + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; * @return Whether the videoClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -2923,49 +2342,35 @@ public boolean hasVideoClassificationDatasetMetadata() { return datasetMetadataCase_ == 31; } /** - * - * *
      * Metadata for a dataset used for video classification.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; * @return The videoClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata - getVideoClassificationDatasetMetadata() { + 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) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.getDefaultInstance(); } else { if (datasetMetadataCase_ == 31) { return videoClassificationDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; */ - public Builder setVideoClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata value) { + public Builder setVideoClassificationDatasetMetadata(com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata value) { if (videoClassificationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2979,19 +2384,14 @@ public Builder setVideoClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for video classification.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; */ public Builder setVideoClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder builderForValue) { if (videoClassificationDatasetMetadataBuilder_ == null) { datasetMetadata_ = builderForValue.build(); onChanged(); @@ -3002,29 +2402,18 @@ public Builder setVideoClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for video classification.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; */ - public Builder mergeVideoClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata value) { + 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(); + 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; } @@ -3039,15 +2428,11 @@ public Builder mergeVideoClassificationDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for video classification.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; */ public Builder clearVideoClassificationDatasetMetadata() { if (videoClassificationDatasetMetadataBuilder_ == null) { @@ -3066,100 +2451,67 @@ public Builder clearVideoClassificationDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for video classification.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; */ - public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder - getVideoClassificationDatasetMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder - getVideoClassificationDatasetMetadataOrBuilder() { + 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) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata - .getDefaultInstance(); + 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; - * + * .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> + 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(); + 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_, + 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(); - ; + onChanged();; return videoClassificationDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder> - videoObjectTrackingDatasetMetadataBuilder_; + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder> videoObjectTrackingDatasetMetadataBuilder_; /** - * - * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; * @return Whether the videoObjectTrackingDatasetMetadata field is set. */ @java.lang.Override @@ -3167,49 +2519,35 @@ public boolean hasVideoObjectTrackingDatasetMetadata() { return datasetMetadataCase_ == 29; } /** - * - * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; * @return The videoObjectTrackingDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - getVideoObjectTrackingDatasetMetadata() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getVideoObjectTrackingDatasetMetadata() { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 29) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) - datasetMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); } else { if (datasetMetadataCase_ == 29) { return videoObjectTrackingDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); } } /** - * - * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; */ - public Builder setVideoObjectTrackingDatasetMetadata( - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata value) { + public Builder setVideoObjectTrackingDatasetMetadata(com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata value) { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3223,19 +2561,14 @@ public Builder setVideoObjectTrackingDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; */ public Builder setVideoObjectTrackingDatasetMetadata( - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder builderForValue) { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { datasetMetadata_ = builderForValue.build(); onChanged(); @@ -3246,29 +2579,18 @@ public Builder setVideoObjectTrackingDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; */ - public Builder mergeVideoObjectTrackingDatasetMetadata( - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata value) { + public Builder mergeVideoObjectTrackingDatasetMetadata(com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata value) { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 29 - && datasetMetadata_ - != com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - .getDefaultInstance()) { - datasetMetadata_ = - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) - datasetMetadata_) - .mergeFrom(value) - .buildPartial(); + if (datasetMetadataCase_ == 29 && + datasetMetadata_ != com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.newBuilder((com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_) + .mergeFrom(value).buildPartial(); } else { datasetMetadata_ = value; } @@ -3283,15 +2605,11 @@ public Builder mergeVideoObjectTrackingDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; */ public Builder clearVideoObjectTrackingDatasetMetadata() { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { @@ -3310,100 +2628,67 @@ public Builder clearVideoObjectTrackingDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; */ - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder - getVideoObjectTrackingDatasetMetadataBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder getVideoObjectTrackingDatasetMetadataBuilder() { return getVideoObjectTrackingDatasetMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder - getVideoObjectTrackingDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder getVideoObjectTrackingDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 29) && (videoObjectTrackingDatasetMetadataBuilder_ != null)) { return videoObjectTrackingDatasetMetadataBuilder_.getMessageOrBuilder(); } else { if (datasetMetadataCase_ == 29) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) - datasetMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); } } /** - * - * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder> + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder> getVideoObjectTrackingDatasetMetadataFieldBuilder() { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 29)) { - datasetMetadata_ = - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - .getDefaultInstance(); + datasetMetadata_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); } - videoObjectTrackingDatasetMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) - datasetMetadata_, + videoObjectTrackingDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 29; - onChanged(); - ; + onChanged();; return videoObjectTrackingDatasetMetadataBuilder_; } 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return Whether the textExtractionDatasetMetadata field is set. */ @java.lang.Override @@ -3411,21 +2696,15 @@ public boolean hasTextExtractionDatasetMetadata() { return datasetMetadataCase_ == 28; } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return The textExtractionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata - getTextExtractionDatasetMetadata() { + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getTextExtractionDatasetMetadata() { if (textExtractionDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 28) { return (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_; @@ -3439,18 +2718,13 @@ public boolean hasTextExtractionDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ - public Builder setTextExtractionDatasetMetadata( - com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata value) { + public Builder setTextExtractionDatasetMetadata(com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata value) { if (textExtractionDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3464,15 +2738,11 @@ public Builder setTextExtractionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ public Builder setTextExtractionDatasetMetadata( com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder builderForValue) { @@ -3486,29 +2756,18 @@ public Builder setTextExtractionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ - public Builder mergeTextExtractionDatasetMetadata( - com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata value) { + 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(); + 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; } @@ -3523,15 +2782,11 @@ public Builder mergeTextExtractionDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ public Builder clearTextExtractionDatasetMetadata() { if (textExtractionDatasetMetadataBuilder_ == null) { @@ -3550,34 +2805,24 @@ public Builder clearTextExtractionDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ - public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder - getTextExtractionDatasetMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder - getTextExtractionDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 28) && (textExtractionDatasetMetadataBuilder_ != null)) { return textExtractionDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3588,58 +2833,39 @@ public Builder clearTextExtractionDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for text extraction.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * + * .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> + 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(); + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return Whether the textSentimentDatasetMetadata field is set. */ @java.lang.Override @@ -3647,21 +2873,15 @@ public boolean hasTextSentimentDatasetMetadata() { return datasetMetadataCase_ == 30; } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return The textSentimentDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata - getTextSentimentDatasetMetadata() { + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getTextSentimentDatasetMetadata() { if (textSentimentDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 30) { return (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_; @@ -3675,18 +2895,13 @@ public boolean hasTextSentimentDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ - public Builder setTextSentimentDatasetMetadata( - com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata value) { + public Builder setTextSentimentDatasetMetadata(com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata value) { if (textSentimentDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3700,15 +2915,11 @@ public Builder setTextSentimentDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ public Builder setTextSentimentDatasetMetadata( com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder builderForValue) { @@ -3722,29 +2933,18 @@ public Builder setTextSentimentDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ - public Builder mergeTextSentimentDatasetMetadata( - com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata value) { + 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(); + 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; } @@ -3759,15 +2959,11 @@ public Builder mergeTextSentimentDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ public Builder clearTextSentimentDatasetMetadata() { if (textSentimentDatasetMetadataBuilder_ == null) { @@ -3786,34 +2982,24 @@ public Builder clearTextSentimentDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ - public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder - getTextSentimentDatasetMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder - getTextSentimentDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 30) && (textSentimentDatasetMetadataBuilder_ != null)) { return textSentimentDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3824,56 +3010,39 @@ public Builder clearTextSentimentDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * + * .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> + 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(); + 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>( + 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(); - ; + onChanged();; return textSentimentDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TablesDatasetMetadata, - com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder> - tablesDatasetMetadataBuilder_; + 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 Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; - * * @return Whether the tablesDatasetMetadata field is set. */ @java.lang.Override @@ -3881,14 +3050,11 @@ public boolean hasTablesDatasetMetadata() { return datasetMetadataCase_ == 33; } /** - * - * *
      * Metadata for a dataset used for Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; - * * @return The tablesDatasetMetadata. */ @java.lang.Override @@ -3906,16 +3072,13 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getTablesDatasetMet } } /** - * - * *
      * Metadata for a dataset used for Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public Builder setTablesDatasetMetadata( - com.google.cloud.automl.v1beta1.TablesDatasetMetadata value) { + public Builder setTablesDatasetMetadata(com.google.cloud.automl.v1beta1.TablesDatasetMetadata value) { if (tablesDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3929,8 +3092,6 @@ public Builder setTablesDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for Tables.
      * 
@@ -3949,25 +3110,18 @@ public Builder setTablesDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public Builder mergeTablesDatasetMetadata( - com.google.cloud.automl.v1beta1.TablesDatasetMetadata value) { + public Builder mergeTablesDatasetMetadata(com.google.cloud.automl.v1beta1.TablesDatasetMetadata value) { if (tablesDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 33 - && datasetMetadata_ - != com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = - com.google.cloud.automl.v1beta1.TablesDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_) - .mergeFrom(value) - .buildPartial(); + if (datasetMetadataCase_ == 33 && + datasetMetadata_ != com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = com.google.cloud.automl.v1beta1.TablesDatasetMetadata.newBuilder((com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_) + .mergeFrom(value).buildPartial(); } else { datasetMetadata_ = value; } @@ -3982,8 +3136,6 @@ public Builder mergeTablesDatasetMetadata( return this; } /** - * - * *
      * Metadata for a dataset used for Tables.
      * 
@@ -4007,21 +3159,16 @@ public Builder clearTablesDatasetMetadata() { return this; } /** - * - * *
      * Metadata for a dataset used for Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder - getTablesDatasetMetadataBuilder() { + public com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder getTablesDatasetMetadataBuilder() { return getTablesDatasetMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for a dataset used for Tables.
      * 
@@ -4029,8 +3176,7 @@ public Builder clearTablesDatasetMetadata() { * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder - getTablesDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder getTablesDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 33) && (tablesDatasetMetadataBuilder_ != null)) { return tablesDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -4041,8 +3187,6 @@ public Builder clearTablesDatasetMetadata() { } } /** - * - * *
      * Metadata for a dataset used for Tables.
      * 
@@ -4050,48 +3194,39 @@ public Builder clearTablesDatasetMetadata() { * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ private com.google.protobuf.SingleFieldBuilderV3< - 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, 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.TablesDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); } - tablesDatasetMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TablesDatasetMetadata, - com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder>( + tablesDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 33; - onChanged(); - ; + onChanged();; return tablesDatasetMetadataBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4100,22 +3235,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4123,64 +3257,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -4188,8 +3315,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * 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
@@ -4198,13 +3323,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -4213,8 +3338,6 @@ 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
@@ -4223,14 +3346,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -4238,8 +3362,6 @@ 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
@@ -4248,22 +3370,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -4272,18 +3392,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * 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
@@ -4292,16 +3409,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -4309,21 +3426,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; - * * @return The description. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -4332,22 +3447,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -4355,79 +3469,69 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private int exampleCount_; + private int exampleCount_ ; /** - * - * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; - * * @return The exampleCount. */ @java.lang.Override @@ -4435,36 +3539,30 @@ public int getExampleCount() { return exampleCount_; } /** - * - * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; - * * @param value The exampleCount to set. * @return This builder for chaining. */ public Builder setExampleCount(int value) { - + exampleCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; - * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0; onChanged(); return this; @@ -4472,47 +3570,34 @@ public Builder clearExampleCount() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -4533,15 +3618,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -4552,8 +3636,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -4564,7 +3646,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4576,8 +3658,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -4596,8 +3676,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -4605,13 +3683,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 14; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -4622,14 +3698,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -4637,17 +3710,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4655,21 +3725,19 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; - * * @return The etag. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -4678,22 +3746,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -4701,71 +3768,64 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4775,12 +3835,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Dataset) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Dataset) private static final com.google.cloud.automl.v1beta1.Dataset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Dataset(); } @@ -4789,16 +3849,16 @@ public static com.google.cloud.automl.v1beta1.Dataset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Dataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Dataset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Dataset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4813,4 +3873,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Dataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java similarity index 62% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java index ef0558043..e3fe6226c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java @@ -1,435 +1,278 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/dataset.proto package com.google.cloud.automl.v1beta1; -public interface DatasetOrBuilder - extends +public interface DatasetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Dataset) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Metadata for a dataset used for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return Whether the translationDatasetMetadata field is set. */ boolean hasTranslationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; * @return The translationDatasetMetadata. */ com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getTranslationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; */ - com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder - getTranslationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder(); /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return Whether the imageClassificationDatasetMetadata field is set. */ boolean hasImageClassificationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; * @return The imageClassificationDatasetMetadata. */ - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - getImageClassificationDatasetMetadata(); + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for image classification.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; */ - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder - getImageClassificationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder(); /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return Whether the textClassificationDatasetMetadata field is set. */ boolean hasTextClassificationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; * @return The textClassificationDatasetMetadata. */ - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - getTextClassificationDatasetMetadata(); + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for text classification.
    * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; */ - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder - getTextClassificationDatasetMetadataOrBuilder(); + 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ boolean hasImageObjectDetectionDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for image object detection.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; * @return The imageObjectDetectionDatasetMetadata. */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata - getImageObjectDetectionDatasetMetadata(); + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder - getImageObjectDetectionDatasetMetadataOrBuilder(); + 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; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; * @return Whether the videoClassificationDatasetMetadata field is set. */ boolean hasVideoClassificationDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for video classification.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; * @return The videoClassificationDatasetMetadata. */ - com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata - getVideoClassificationDatasetMetadata(); + 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; - * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; */ - com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder - getVideoClassificationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder getVideoClassificationDatasetMetadataOrBuilder(); /** - * - * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; * @return Whether the videoObjectTrackingDatasetMetadata field is set. */ boolean hasVideoObjectTrackingDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; * @return The videoObjectTrackingDatasetMetadata. */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - getVideoObjectTrackingDatasetMetadata(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getVideoObjectTrackingDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder - getVideoObjectTrackingDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder getVideoObjectTrackingDatasetMetadataOrBuilder(); /** - * - * *
    * Metadata for a dataset used for text extraction.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return Whether the textExtractionDatasetMetadata field is set. */ boolean hasTextExtractionDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for text extraction.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; * @return The textExtractionDatasetMetadata. */ 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; - * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; */ - com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder - getTextExtractionDatasetMetadataOrBuilder(); + 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; - * - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return Whether the textSentimentDatasetMetadata field is set. */ boolean hasTextSentimentDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; * @return The textSentimentDatasetMetadata. */ 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; - * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; */ - com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder - getTextSentimentDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder(); /** - * - * *
    * Metadata for a dataset used for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; - * * @return Whether the tablesDatasetMetadata field is set. */ boolean hasTablesDatasetMetadata(); /** - * - * *
    * Metadata for a dataset used for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; - * * @return The tablesDatasetMetadata. */ 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(); + com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder getTablesDatasetMetadataOrBuilder(); /** - * - * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + 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
@@ -438,13 +281,10 @@ public interface DatasetOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ 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
@@ -453,78 +293,62 @@ public interface DatasetOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The number of examples in the dataset.
    * 
* * int32 example_count = 21; - * * @return The exampleCount. */ int getExampleCount(); /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp when this dataset was created.
    * 
@@ -534,31 +358,26 @@ 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; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 17; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); public com.google.cloud.automl.v1beta1.Dataset.DatasetMetadataCase getDatasetMetadataCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java new file mode 100644 index 000000000..d54e0fb7e --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/dataset.proto + +package com.google.cloud.automl.v1beta1; + +public final class DatasetOuterClass { + private DatasetOuterClass() {} + 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_Dataset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Dataset_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/dataset.pr" + + "oto\022\033google.cloud.automl.v1beta1\032\031google" + + "/api/resource.proto\032\'google/cloud/automl" + + "/v1beta1/image.proto\032(google/cloud/autom" + + "l/v1beta1/tables.proto\032&google/cloud/aut" + + "oml/v1beta1/text.proto\032-google/cloud/aut" + + "oml/v1beta1/translation.proto\032\'google/cl" + + "oud/automl/v1beta1/video.proto\032\037google/p" + + "rotobuf/timestamp.proto\032\034google/api/anno" + + "tations.proto\"\316\t\n\007Dataset\022_\n\034translation" + + "_dataset_metadata\030\027 \001(\01327.google.cloud.a" + + "utoml.v1beta1.TranslationDatasetMetadata" + + "H\000\022p\n%image_classification_dataset_metad" + + "ata\030\030 \001(\0132?.google.cloud.automl.v1beta1." + + "ImageClassificationDatasetMetadataH\000\022n\n$" + + "text_classification_dataset_metadata\030\031 \001" + + "(\0132>.google.cloud.automl.v1beta1.TextCla" + + "ssificationDatasetMetadataH\000\022s\n\'image_ob" + + "ject_detection_dataset_metadata\030\032 \001(\0132@." + + "google.cloud.automl.v1beta1.ImageObjectD" + + "etectionDatasetMetadataH\000\022p\n%video_class" + + "ification_dataset_metadata\030\037 \001(\0132?.googl" + + "e.cloud.automl.v1beta1.VideoClassificati" + + "onDatasetMetadataH\000\022q\n&video_object_trac" + + "king_dataset_metadata\030\035 \001(\0132?.google.clo" + + "ud.automl.v1beta1.VideoObjectTrackingDat" + + "asetMetadataH\000\022f\n text_extraction_datase" + + "t_metadata\030\034 \001(\0132:.google.cloud.automl.v" + + "1beta1.TextExtractionDatasetMetadataH\000\022d" + + "\n\037text_sentiment_dataset_metadata\030\036 \001(\0132" + + "9.google.cloud.automl.v1beta1.TextSentim" + + "entDatasetMetadataH\000\022U\n\027tables_dataset_m" + + "etadata\030! \001(\01322.google.cloud.automl.v1be" + + "ta1.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_ti" + + "me\030\016 \001(\0132\032.google.protobuf.Timestamp\022\014\n\004" + + "etag\030\021 \001(\t:^\352A[\n\035automl.googleapis.com/D" + + "ataset\022:projects/{project}/locations/{lo" + + "cation}/datasets/{dataset}B\022\n\020dataset_me" + + "tadataB\245\001\n\037com.google.cloud.automl.v1bet" + + "a1P\001ZAgoogle.golang.org/genproto/googlea" + + "pis/cloud/automl/v1beta1;automl\312\002\033Google" + + "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" + + "utoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.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(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_Dataset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Dataset_descriptor, + new java.lang.String[] { "TranslationDatasetMetadata", "ImageClassificationDatasetMetadata", "TextClassificationDatasetMetadata", "ImageObjectDetectionDatasetMetadata", "VideoClassificationDatasetMetadata", "VideoObjectTrackingDatasetMetadata", "TextExtractionDatasetMetadata", "TextSentimentDatasetMetadata", "TablesDatasetMetadata", "Name", "DisplayName", "Description", "ExampleCount", "CreateTime", "Etag", "DatasetMetadata", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.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(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java index 99d5c22e1..e8cddaaff 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteDatasetRequest} */ -public final class DeleteDatasetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DeleteDatasetRequest) DeleteDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDatasetRequest.newBuilder() to construct. private DeleteDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private DeleteDatasetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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_DeleteDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, - com.google.cloud.automl.v1beta1.DeleteDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, com.google.cloud.automl.v1beta1.DeleteDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the dataset to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 dataset to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.DeleteDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.DeleteDatasetRequest other = - (com.google.cloud.automl.v1beta1.DeleteDatasetRequest) obj; + com.google.cloud.automl.v1beta1.DeleteDatasetRequest other = (com.google.cloud.automl.v1beta1.DeleteDatasetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest 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.DeleteDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeleteDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteDatasetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DeleteDatasetRequest) com.google.cloud.automl.v1beta1.DeleteDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, - com.google.cloud.automl.v1beta1.DeleteDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, com.google.cloud.automl.v1beta1.DeleteDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DeleteDatasetRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1beta1.DeleteDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteDatasetRequest buildPartial() { - com.google.cloud.automl.v1beta1.DeleteDatasetRequest result = - new com.google.cloud.automl.v1beta1.DeleteDatasetRequest(this); + com.google.cloud.automl.v1beta1.DeleteDatasetRequest result = new com.google.cloud.automl.v1beta1.DeleteDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1beta1.DeleteDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.DeleteDatasetRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.DeleteDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeleteDatasetRequest other) { - if (other == com.google.cloud.automl.v1beta1.DeleteDatasetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.DeleteDatasetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.DeleteDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.DeleteDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the dataset to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the dataset to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the dataset to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DeleteDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeleteDatasetRequest) private static final com.google.cloud.automl.v1beta1.DeleteDatasetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DeleteDatasetRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DeleteDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java new file mode 100644 index 000000000..5acebd5d8 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface DeleteDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeleteDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the dataset to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the dataset to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java index 101244a3f..ba54f071c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteModelRequest} */ -public final class DeleteModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DeleteModelRequest) DeleteModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteModelRequest.newBuilder() to construct. private DeleteModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private DeleteModelRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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_DeleteModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeleteModelRequest.class, - com.google.cloud.automl.v1beta1.DeleteModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeleteModelRequest.class, com.google.cloud.automl.v1beta1.DeleteModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the model being deleted.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the model being deleted.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.DeleteModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.DeleteModelRequest other = - (com.google.cloud.automl.v1beta1.DeleteModelRequest) obj; + com.google.cloud.automl.v1beta1.DeleteModelRequest other = (com.google.cloud.automl.v1beta1.DeleteModelRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DeleteModelRequest 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.DeleteModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeleteModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DeleteModelRequest) com.google.cloud.automl.v1beta1.DeleteModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeleteModelRequest.class, - com.google.cloud.automl.v1beta1.DeleteModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeleteModelRequest.class, com.google.cloud.automl.v1beta1.DeleteModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DeleteModelRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1beta1.DeleteModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteModelRequest buildPartial() { - com.google.cloud.automl.v1beta1.DeleteModelRequest result = - new com.google.cloud.automl.v1beta1.DeleteModelRequest(this); + com.google.cloud.automl.v1beta1.DeleteModelRequest result = new com.google.cloud.automl.v1beta1.DeleteModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1beta1.DeleteModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteModelRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.DeleteModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.DeleteModelRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeleteModelRequest other) { - if (other == com.google.cloud.automl.v1beta1.DeleteModelRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.DeleteModelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.DeleteModelRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.DeleteModelRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the model being deleted.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the model being deleted.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the model being deleted.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model being deleted.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model being deleted.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DeleteModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeleteModelRequest) private static final com.google.cloud.automl.v1beta1.DeleteModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DeleteModelRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.automl.v1beta1.DeleteModelRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DeleteModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java new file mode 100644 index 000000000..f4c403c37 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface DeleteModelRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeleteModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the model being deleted.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the model being deleted.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java similarity index 65% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java index 962bb5eb1..53efc883d 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use DeleteOperationMetadata.newBuilder() to construct. private DeleteOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DeleteOperationMetadata() {} + private DeleteOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private DeleteOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.DeleteOperationMetadata other = (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.DeleteOperationMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.class, com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DeleteOperationMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,9 +274,9 @@ public Builder clear() { } @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; + 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 @@ -323,8 +295,7 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.DeleteOperationMetadata result = new com.google.cloud.automl.v1beta1.DeleteOperationMetadata(this); onBuilt(); return result; } @@ -333,39 +304,38 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.DeleteOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -373,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeleteOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -394,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -404,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -416,12 +384,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -430,16 +398,16 @@ public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDefault 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); - } - }; + 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; @@ -454,4 +422,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java new file mode 100644 index 000000000..792bd8eea --- /dev/null +++ b/owl-bot-staging/v1beta1/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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java index 0146d792d..031842ef1 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use DeployModelOperationMetadata.newBuilder() to construct. private DeployModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DeployModelOperationMetadata() {} + private DeployModelOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeployModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeployModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private DeployModelOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata other = (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.DeployModelOperationMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.class, com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,14 +274,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); } @@ -324,8 +295,7 @@ public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata result = new com.google.cloud.automl.v1beta1.DeployModelOperationMetadata(this); onBuilt(); return result; } @@ -334,39 +304,38 @@ public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.DeployModelOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -374,9 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeployModelOperationMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -406,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -418,13 +384,12 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.DeployModelOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DeployModelOperationMetadata(); } @@ -433,16 +398,16 @@ public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDe 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); - } - }; + 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; @@ -457,4 +422,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..6c4c7d26e --- /dev/null +++ b/owl-bot-staging/v1beta1/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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java similarity index 57% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java index b8fabf76f..41ae369ae 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeployModelRequest} */ -public final class DeployModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeployModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DeployModelRequest) DeployModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeployModelRequest.newBuilder() to construct. private DeployModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeployModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeployModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeployModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,107 +53,81 @@ private DeployModelRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + 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(); } - 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; + modelDeploymentMetadataCase_ = 2; + break; + } + case 34: { + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder subBuilder = null; + if (modelDeploymentMetadataCase_ == 4) { + subBuilder = ((com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_).toBuilder(); } - case 34: - { - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder - subBuilder = null; - if (modelDeploymentMetadataCase_ == 4) { - subBuilder = - ((com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_) - .toBuilder(); - } - modelDeploymentMetadata_ = - input.readMessage( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_); - modelDeploymentMetadata_ = subBuilder.buildPartial(); - } - modelDeploymentMetadataCase_ = 4; - break; + modelDeploymentMetadata_ = + input.readMessage(com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); + modelDeploymentMetadata_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + modelDeploymentMetadataCase_ = 4; + 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); + 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_DeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeployModelRequest.class, - com.google.cloud.automl.v1beta1.DeployModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeployModelRequest.class, 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, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA(2), IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA(4), MODELDEPLOYMENTMETADATA_NOT_SET(0); private final int value; - private ModelDeploymentMetadataCase(int value) { this.value = value; } @@ -186,38 +143,30 @@ public static ModelDeploymentMetadataCase valueOf(int value) { public static ModelDeploymentMetadataCase forNumber(int value) { switch (value) { - case 2: - return IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA; - case 4: - return IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA; - case 0: - return MODELDEPLOYMENTMETADATA_NOT_SET; - default: - return null; + case 2: return IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA; + case 4: return IMAGE_CLASSIFICATION_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 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. */ @java.lang.Override @@ -225,62 +174,42 @@ 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; * @return The imageObjectDetectionModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata - getImageObjectDetectionModelDeploymentMetadata() { + 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) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataOrBuilder - getImageObjectDetectionModelDeploymentMetadataOrBuilder() { + 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) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA_FIELD_NUMBER = 4; /** - * - * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; * @return Whether the imageClassificationModelDeploymentMetadata field is set. */ @java.lang.Override @@ -288,63 +217,43 @@ public boolean hasImageClassificationModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 4; } /** - * - * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; * @return The imageClassificationModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - getImageClassificationModelDeploymentMetadata() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata() { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } /** - * - * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder - getImageClassificationModelDeploymentMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder() { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the model to deploy.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -353,31 +262,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the model to deploy.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -386,7 +293,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,21 +304,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (modelDeploymentMetadataCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) - modelDeploymentMetadata_); + output.writeMessage(2, (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_); } if (modelDeploymentMetadataCase_ == 4) { - output.writeMessage( - 4, - (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_); + output.writeMessage(4, (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); } unknownFields.writeTo(output); } @@ -427,18 +328,12 @@ public int getSerializedSize() { 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_); } if (modelDeploymentMetadataCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -448,17 +343,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.DeployModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.DeployModelRequest other = - (com.google.cloud.automl.v1beta1.DeployModelRequest) obj; + com.google.cloud.automl.v1beta1.DeployModelRequest other = (com.google.cloud.automl.v1beta1.DeployModelRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getModelDeploymentMetadataCase().equals(other.getModelDeploymentMetadataCase())) - return false; + if (!getName() + .equals(other.getName())) return false; + if (!getModelDeploymentMetadataCase().equals(other.getModelDeploymentMetadataCase())) return false; switch (modelDeploymentMetadataCase_) { case 2: if (!getImageObjectDetectionModelDeploymentMetadata() @@ -502,126 +396,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeployModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DeployModelRequest 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.DeployModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.DeployModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.DeployModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DeployModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeployModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeployModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DeployModelRequest) com.google.cloud.automl.v1beta1.DeployModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeployModelRequest.class, - com.google.cloud.automl.v1beta1.DeployModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeployModelRequest.class, com.google.cloud.automl.v1beta1.DeployModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DeployModelRequest.newBuilder() @@ -629,15 +514,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -649,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; } @java.lang.Override @@ -670,22 +556,19 @@ public com.google.cloud.automl.v1beta1.DeployModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.DeployModelRequest buildPartial() { - com.google.cloud.automl.v1beta1.DeployModelRequest result = - new com.google.cloud.automl.v1beta1.DeployModelRequest(this); + 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.modelDeploymentMetadata_ = imageObjectDetectionModelDeploymentMetadataBuilder_.build(); } } if (modelDeploymentMetadataCase_ == 4) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { result.modelDeploymentMetadata_ = modelDeploymentMetadata_; } else { - result.modelDeploymentMetadata_ = - imageClassificationModelDeploymentMetadataBuilder_.build(); + result.modelDeploymentMetadata_ = imageClassificationModelDeploymentMetadataBuilder_.build(); } } result.name_ = name_; @@ -698,39 +581,38 @@ public com.google.cloud.automl.v1beta1.DeployModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeployModelRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.DeployModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.DeployModelRequest)other); } else { super.mergeFrom(other); return this; @@ -738,29 +620,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeployModelRequest other) { - if (other == com.google.cloud.automl.v1beta1.DeployModelRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.DeployModelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } switch (other.getModelDeploymentMetadataCase()) { - case IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA: - { - mergeImageObjectDetectionModelDeploymentMetadata( - other.getImageObjectDetectionModelDeploymentMetadata()); - break; - } - case IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA: - { - mergeImageClassificationModelDeploymentMetadata( - other.getImageClassificationModelDeploymentMetadata()); - break; - } - case MODELDEPLOYMENTMETADATA_NOT_SET: - { - break; - } + case IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA: { + mergeImageObjectDetectionModelDeploymentMetadata(other.getImageObjectDetectionModelDeploymentMetadata()); + break; + } + case IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA: { + mergeImageClassificationModelDeploymentMetadata(other.getImageClassificationModelDeploymentMetadata()); + break; + } + case MODELDEPLOYMENTMETADATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -781,8 +657,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.DeployModelRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.DeployModelRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -791,12 +666,12 @@ public Builder mergeFrom( } return this; } - private int modelDeploymentMetadataCase_ = 0; private java.lang.Object modelDeploymentMetadata_; - - public ModelDeploymentMetadataCase getModelDeploymentMetadataCase() { - return ModelDeploymentMetadataCase.forNumber(modelDeploymentMetadataCase_); + public ModelDeploymentMetadataCase + getModelDeploymentMetadataCase() { + return ModelDeploymentMetadataCase.forNumber( + modelDeploymentMetadataCase_); } public Builder clearModelDeploymentMetadata() { @@ -806,22 +681,15 @@ public Builder clearModelDeploymentMetadata() { 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. */ @java.lang.Override @@ -829,49 +697,35 @@ 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; * @return The imageObjectDetectionModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata - getImageObjectDetectionModelDeploymentMetadata() { + 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) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); } else { if (modelDeploymentMetadataCase_ == 2) { return imageObjectDetectionModelDeploymentMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ - public Builder setImageObjectDetectionModelDeploymentMetadata( - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata value) { + public Builder setImageObjectDetectionModelDeploymentMetadata(com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata value) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,19 +739,14 @@ public Builder setImageObjectDetectionModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ public Builder setImageObjectDetectionModelDeploymentMetadata( - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder builderForValue) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { modelDeploymentMetadata_ = builderForValue.build(); onChanged(); @@ -908,30 +757,18 @@ public Builder setImageObjectDetectionModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ - public Builder mergeImageObjectDetectionModelDeploymentMetadata( - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata value) { + 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(); + 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; } @@ -946,15 +783,11 @@ public Builder mergeImageObjectDetectionModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ public Builder clearImageObjectDetectionModelDeploymentMetadata() { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { @@ -973,102 +806,67 @@ public Builder clearImageObjectDetectionModelDeploymentMetadata() { return this; } /** - * - * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder - getImageObjectDetectionModelDeploymentMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataOrBuilder - getImageObjectDetectionModelDeploymentMetadataOrBuilder() { - if ((modelDeploymentMetadataCase_ == 2) - && (imageObjectDetectionModelDeploymentMetadataBuilder_ != null)) { + 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) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata - .getDefaultInstance(); + 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; - * + * .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> + 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(); + 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_, + 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(); - ; + onChanged();; return imageObjectDetectionModelDeploymentMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder> - imageClassificationModelDeploymentMetadataBuilder_; + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder> imageClassificationModelDeploymentMetadataBuilder_; /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; * @return Whether the imageClassificationModelDeploymentMetadata field is set. */ @java.lang.Override @@ -1076,49 +874,35 @@ public boolean hasImageClassificationModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 4; } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; * @return The imageClassificationModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - getImageClassificationModelDeploymentMetadata() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } else { if (modelDeploymentMetadataCase_ == 4) { return imageClassificationModelDeploymentMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ - public Builder setImageClassificationModelDeploymentMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata value) { + public Builder setImageClassificationModelDeploymentMetadata(com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata value) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1132,19 +916,14 @@ public Builder setImageClassificationModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ public Builder setImageClassificationModelDeploymentMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder builderForValue) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { modelDeploymentMetadata_ = builderForValue.build(); onChanged(); @@ -1155,29 +934,18 @@ public Builder setImageClassificationModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ - public Builder mergeImageClassificationModelDeploymentMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata value) { + public Builder mergeImageClassificationModelDeploymentMetadata(com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata value) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { - if (modelDeploymentMetadataCase_ == 4 - && modelDeploymentMetadata_ - != com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance()) { - modelDeploymentMetadata_ = - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelDeploymentMetadataCase_ == 4 && + modelDeploymentMetadata_ != com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance()) { + modelDeploymentMetadata_ = com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.newBuilder((com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_) + .mergeFrom(value).buildPartial(); } else { modelDeploymentMetadata_ = value; } @@ -1192,15 +960,11 @@ public Builder mergeImageClassificationModelDeploymentMetadata( return this; } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ public Builder clearImageClassificationModelDeploymentMetadata() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { @@ -1219,104 +983,73 @@ public Builder clearImageClassificationModelDeploymentMetadata() { return this; } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder - getImageClassificationModelDeploymentMetadataBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder getImageClassificationModelDeploymentMetadataBuilder() { return getImageClassificationModelDeploymentMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder - getImageClassificationModelDeploymentMetadataOrBuilder() { - if ((modelDeploymentMetadataCase_ == 4) - && (imageClassificationModelDeploymentMetadataBuilder_ != null)) { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder() { + if ((modelDeploymentMetadataCase_ == 4) && (imageClassificationModelDeploymentMetadataBuilder_ != null)) { return imageClassificationModelDeploymentMetadataBuilder_.getMessageOrBuilder(); } else { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } } /** - * - * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder> + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder> getImageClassificationModelDeploymentMetadataFieldBuilder() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (!(modelDeploymentMetadataCase_ == 4)) { - modelDeploymentMetadata_ = - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + modelDeploymentMetadata_ = com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } - imageClassificationModelDeploymentMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, - com.google.cloud.automl.v1beta1 - .ImageClassificationModelDeploymentMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - modelDeploymentMetadata_, + imageClassificationModelDeploymentMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_, getParentForChildren(), isClean()); modelDeploymentMetadata_ = null; } modelDeploymentMetadataCase_ = 4; - onChanged(); - ; + onChanged();; return imageClassificationModelDeploymentMetadataBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the model to deploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1325,23 +1058,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the model to deploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1349,74 +1079,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the model to deploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to deploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to deploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1426,12 +1143,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DeployModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeployModelRequest) private static final com.google.cloud.automl.v1beta1.DeployModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DeployModelRequest(); } @@ -1440,16 +1157,16 @@ public static com.google.cloud.automl.v1beta1.DeployModelRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeployModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeployModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1464,4 +1181,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DeployModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java new file mode 100644 index 000000000..a1b15c339 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.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 DeployModelRequestOrBuilder extends + // @@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; + * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. + */ + boolean hasImageObjectDetectionModelDeploymentMetadata(); + /** + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * @return The imageObjectDetectionModelDeploymentMetadata. + */ + 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(); + + /** + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * @return Whether the imageClassificationModelDeploymentMetadata field is set. + */ + boolean hasImageClassificationModelDeploymentMetadata(); + /** + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * @return The imageClassificationModelDeploymentMetadata. + */ + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata(); + /** + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + */ + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder(); + + /** + *
+   * Required. Resource name of the model to deploy.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the model to deploy.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + public com.google.cloud.automl.v1beta1.DeployModelRequest.ModelDeploymentMetadataCase getModelDeploymentMetadataCase(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java new file mode 100644 index 000000000..79d8c2f0c --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java @@ -0,0 +1,142 @@ +// 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_VideoObjectTrackingAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_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*goog" + + "le/cloud/automl/v1beta1/geometry.proto\032\036" + + "google/protobuf/duration.proto\032\034google/a" + + "pi/annotations.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\"\264\001\n\035VideoObjectTrackingAn" + + "notation\022\023\n\013instance_id\030\001 \001(\t\022.\n\013time_of" + + "fset\030\002 \001(\0132\031.google.protobuf.Duration\022?\n" + + "\014bounding_box\030\003 \001(\0132).google.cloud.autom" + + "l.v1beta1.BoundingPoly\022\r\n\005score\030\004 \001(\002\"\256\002" + + "\n\027BoundingBoxMetricsEntry\022\025\n\riou_thresho" + + "ld\030\001 \001(\002\022\036\n\026mean_average_precision\030\002 \001(\002" + + "\022o\n\032confidence_metrics_entries\030\003 \003(\0132K.g" + + "oogle.cloud.automl.v1beta1.BoundingBoxMe" + + "tricsEntry.ConfidenceMetricsEntry\032k\n\026Con" + + "fidenceMetricsEntry\022\034\n\024confidence_thresh" + + "old\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%ImageObjectDe" + + "tectionEvaluationMetrics\022$\n\034evaluated_bo" + + "unding_box_count\030\001 \001(\005\022Z\n\034bounding_box_m" + + "etrics_entries\030\002 \003(\01324.google.cloud.auto" + + "ml.v1beta1.BoundingBoxMetricsEntry\022+\n#bo" + + "unding_box_mean_average_precision\030\003 \001(\002\"" + + "\364\001\n$VideoObjectTrackingEvaluationMetrics" + + "\022\035\n\025evaluated_frame_count\030\001 \001(\005\022$\n\034evalu" + + "ated_bounding_box_count\030\002 \001(\005\022Z\n\034boundin" + + "g_box_metrics_entries\030\004 \003(\01324.google.clo" + + "ud.automl.v1beta1.BoundingBoxMetricsEntr" + + "y\022+\n#bounding_box_mean_average_precision" + + "\030\006 \001(\002B\245\001\n\037com.google.cloud.automl.v1bet" + + "a1P\001ZAgoogle.golang.org/genproto/googlea" + + "pis/cloud/automl/v1beta1;automl\312\002\033Google" + + "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" + + "utoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.Geometry.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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_VideoObjectTrackingAnnotation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor, + new java.lang.String[] { "InstanceId", "TimeOffset", "BoundingBox", "Score", }); + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor = + getDescriptor().getMessageTypes().get(2); + 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(3); + 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", }); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor, + new java.lang.String[] { "EvaluatedFrameCount", "EvaluatedBoundingBoxCount", "BoundingBoxMetricsEntries", "BoundingBoxMeanAveragePrecision", }); + com.google.cloud.automl.v1beta1.Geometry.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java similarity index 76% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java index 2ea5fd4d2..c3cadd70f 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use Document.newBuilder() to construct. private Document(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Document() { layout_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Document(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Document( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,86 +54,73 @@ private Document( 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; + 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(); } - case 18: - { - com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; - if (documentText_ != null) { - subBuilder = documentText_.toBuilder(); - } - documentText_ = - input.readMessage( - com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentText_); - documentText_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; + if (documentText_ != null) { + subBuilder = documentText_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - layout_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - layout_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.Document.Layout.parser(), extensionRegistry)); - break; + documentText_ = input.readMessage(com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentText_); + documentText_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.automl.v1beta1.DocumentDimensions.Builder subBuilder = null; - if (documentDimensions_ != null) { - subBuilder = documentDimensions_.toBuilder(); - } - documentDimensions_ = - input.readMessage( - com.google.cloud.automl.v1beta1.DocumentDimensions.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentDimensions_); - documentDimensions_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + layout_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 40: - { - pageCount_ = input.readInt32(); - break; + layout_.add( + input.readMessage(com.google.cloud.automl.v1beta1.Document.Layout.parser(), extensionRegistry)); + break; + } + case 34: { + com.google.cloud.automl.v1beta1.DocumentDimensions.Builder subBuilder = null; + if (documentDimensions_ != null) { + subBuilder = documentDimensions_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + documentDimensions_ = input.readMessage(com.google.cloud.automl.v1beta1.DocumentDimensions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentDimensions_); + documentDimensions_ = subBuilder.buildPartial(); + } + + break; + } + case 40: { + + pageCount_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { layout_ = java.util.Collections.unmodifiableList(layout_); @@ -159,56 +129,44 @@ private Document( 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; + 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 + 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); + com.google.cloud.automl.v1beta1.Document.class, com.google.cloud.automl.v1beta1.Document.Builder.class); } - public interface LayoutOrBuilder - extends + public interface LayoutOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Document.Layout) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; - * * @return Whether the textSegment field is set. */ boolean hasTextSegment(); /** - * - * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; - * * @return The textSegment. */ com.google.cloud.automl.v1beta1.TextSegment getTextSegment(); /** - * - * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -219,22 +177,17 @@ public interface LayoutOrBuilder
     com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuilder();
 
     /**
-     *
-     *
      * 
      * Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
      * from 1.
      * 
* * int32 page_number = 2; - * * @return The pageNumber. */ int getPageNumber(); /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -247,13 +200,10 @@ public interface LayoutOrBuilder
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -266,13 +216,10 @@ public interface LayoutOrBuilder
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; - * * @return The boundingPoly. */ com.google.cloud.automl.v1beta1.BoundingPoly getBoundingPoly(); /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -289,66 +236,56 @@ public interface LayoutOrBuilder
     com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
     /**
-     *
-     *
      * 
      * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
      * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; - * - * + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; * @return The enum numeric value on the wire for textSegmentType. */ int getTextSegmentTypeValue(); /** - * - * *
      * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
      * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; - * - * + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; * @return The textSegmentType. */ com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType getTextSegmentType(); } /** - * - * *
    * Describes the layout information of a [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the document.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.Document.Layout} */ - public static final class Layout extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Layout extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Document.Layout) LayoutOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Layout.newBuilder() to construct. private Layout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Layout() { textSegmentType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Layout(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Layout( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -367,97 +304,85 @@ private Layout( case 0: done = true; break; - case 10: - { - 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; - } - case 16: - { - pageNumber_ = input.readInt32(); - break; + case 10: { + com.google.cloud.automl.v1beta1.TextSegment.Builder subBuilder = null; + if (textSegment_ != null) { + subBuilder = textSegment_.toBuilder(); } - case 26: - { - com.google.cloud.automl.v1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.automl.v1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + textSegment_ = input.readMessage(com.google.cloud.automl.v1beta1.TextSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSegment_); + textSegment_ = subBuilder.buildPartial(); } - case 32: - { - int rawValue = input.readEnum(); - textSegmentType_ = rawValue; - break; + break; + } + case 16: { + + pageNumber_ = input.readInt32(); + break; + } + case 26: { + com.google.cloud.automl.v1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + boundingPoly_ = input.readMessage(com.google.cloud.automl.v1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + textSegmentType_ = rawValue; + 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); + 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_Layout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Document_Layout_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_Layout_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Document_Layout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.Document.Layout.class, - com.google.cloud.automl.v1beta1.Document.Layout.Builder.class); + com.google.cloud.automl.v1beta1.Document.Layout.class, com.google.cloud.automl.v1beta1.Document.Layout.Builder.class); } /** - * - * *
      * The type of TextSegment in the context of the original document.
      * 
* * Protobuf enum {@code google.cloud.automl.v1beta1.Document.Layout.TextSegmentType} */ - public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { + public enum TextSegmentType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Should not be used.
        * 
@@ -466,8 +391,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ TEXT_SEGMENT_TYPE_UNSPECIFIED(0), /** - * - * *
        * The text segment is a token. e.g. word.
        * 
@@ -476,8 +399,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ TOKEN(1), /** - * - * *
        * The text segment is a paragraph.
        * 
@@ -486,8 +407,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ PARAGRAPH(2), /** - * - * *
        * The text segment is a form field.
        * 
@@ -496,8 +415,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ FORM_FIELD(3), /** - * - * *
        * The text segment is the name part of a form field. It will be treated
        * as child of another FORM_FIELD TextSegment if its span is subspan of
@@ -508,8 +425,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       FORM_FIELD_NAME(4),
       /**
-       *
-       *
        * 
        * The text segment is the text content part of a form field. It will be
        * treated as child of another FORM_FIELD TextSegment if its span is
@@ -520,8 +435,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       FORM_FIELD_CONTENTS(5),
       /**
-       *
-       *
        * 
        * The text segment is a whole table, including headers, and all rows.
        * 
@@ -530,8 +443,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ TABLE(6), /** - * - * *
        * The text segment is a table's headers. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -542,8 +453,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       TABLE_HEADER(7),
       /**
-       *
-       *
        * 
        * The text segment is a row in table. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -554,8 +463,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       TABLE_ROW(8),
       /**
-       *
-       *
        * 
        * The text segment is a cell in table. It will be treated as child of
        * another TABLE_ROW TextSegment if its span is subspan of another
@@ -569,8 +476,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Should not be used.
        * 
@@ -579,8 +484,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_SEGMENT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The text segment is a token. e.g. word.
        * 
@@ -589,8 +492,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TOKEN_VALUE = 1; /** - * - * *
        * The text segment is a paragraph.
        * 
@@ -599,8 +500,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PARAGRAPH_VALUE = 2; /** - * - * *
        * The text segment is a form field.
        * 
@@ -609,8 +508,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORM_FIELD_VALUE = 3; /** - * - * *
        * The text segment is the name part of a form field. It will be treated
        * as child of another FORM_FIELD TextSegment if its span is subspan of
@@ -621,8 +518,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int FORM_FIELD_NAME_VALUE = 4;
       /**
-       *
-       *
        * 
        * The text segment is the text content part of a form field. It will be
        * treated as child of another FORM_FIELD TextSegment if its span is
@@ -633,8 +528,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int FORM_FIELD_CONTENTS_VALUE = 5;
       /**
-       *
-       *
        * 
        * The text segment is a whole table, including headers, and all rows.
        * 
@@ -643,8 +536,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TABLE_VALUE = 6; /** - * - * *
        * The text segment is a table's headers. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -655,8 +546,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int TABLE_HEADER_VALUE = 7;
       /**
-       *
-       *
        * 
        * The text segment is a row in table. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -667,8 +556,6 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int TABLE_ROW_VALUE = 8;
       /**
-       *
-       *
        * 
        * The text segment is a cell in table. It will be treated as child of
        * another TABLE_ROW TextSegment if its span is subspan of another
@@ -679,6 +566,7 @@ public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int TABLE_CELL_VALUE = 9;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -703,28 +591,17 @@ public static TextSegmentType valueOf(int value) {
        */
       public static TextSegmentType forNumber(int value) {
         switch (value) {
-          case 0:
-            return TEXT_SEGMENT_TYPE_UNSPECIFIED;
-          case 1:
-            return TOKEN;
-          case 2:
-            return PARAGRAPH;
-          case 3:
-            return FORM_FIELD;
-          case 4:
-            return FORM_FIELD_NAME;
-          case 5:
-            return FORM_FIELD_CONTENTS;
-          case 6:
-            return TABLE;
-          case 7:
-            return TABLE_HEADER;
-          case 8:
-            return TABLE_ROW;
-          case 9:
-            return TABLE_CELL;
-          default:
-            return null;
+          case 0: return TEXT_SEGMENT_TYPE_UNSPECIFIED;
+          case 1: return TOKEN;
+          case 2: return PARAGRAPH;
+          case 3: return FORM_FIELD;
+          case 4: return FORM_FIELD_NAME;
+          case 5: return FORM_FIELD_CONTENTS;
+          case 6: return TABLE;
+          case 7: return TABLE_HEADER;
+          case 8: return TABLE_ROW;
+          case 9: return TABLE_CELL;
+          default: return null;
         }
       }
 
@@ -732,31 +609,29 @@ public static TextSegmentType forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          TextSegmentType> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public TextSegmentType findValueByNumber(int number) {
+                return TextSegmentType.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public TextSegmentType findValueByNumber(int number) {
-                  return TextSegmentType.forNumber(number);
-                }
-              };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      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.Document.Layout.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.automl.v1beta1.Document.Layout.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final TextSegmentType[] VALUES = values();
@@ -764,7 +639,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static TextSegmentType valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -784,15 +660,12 @@ private TextSegmentType(int value) {
     public static final int TEXT_SEGMENT_FIELD_NUMBER = 1;
     private com.google.cloud.automl.v1beta1.TextSegment textSegment_;
     /**
-     *
-     *
      * 
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; - * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -800,26 +673,19 @@ public boolean hasTextSegment() { return textSegment_ != null; } /** - * - * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; - * * @return The textSegment. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() { - return textSegment_ == null - ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() - : textSegment_; + return textSegment_ == null ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() : textSegment_; } /** - * - * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -835,15 +701,12 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
     public static final int PAGE_NUMBER_FIELD_NUMBER = 2;
     private int pageNumber_;
     /**
-     *
-     *
      * 
      * Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
      * from 1.
      * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -854,8 +717,6 @@ public int getPageNumber() { public static final int BOUNDING_POLY_FIELD_NUMBER = 3; private com.google.cloud.automl.v1beta1.BoundingPoly boundingPoly_; /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -868,7 +729,6 @@ public int getPageNumber() {
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -876,8 +736,6 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -890,18 +748,13 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -923,45 +776,31 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBu
     public static final int TEXT_SEGMENT_TYPE_FIELD_NUMBER = 4;
     private int textSegmentType_;
     /**
-     *
-     *
      * 
      * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
      * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; - * - * + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; * @return The enum numeric value on the wire for textSegmentType. */ - @java.lang.Override - public int getTextSegmentTypeValue() { + @java.lang.Override public int getTextSegmentTypeValue() { return textSegmentType_; } /** - * - * *
      * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
      * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; - * - * + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; * @return The textSegmentType. */ - @java.lang.Override - public com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType getTextSegmentType() { + @java.lang.Override public com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType getTextSegmentType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType result = - com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); - return result == null - ? com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType result = com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); + return result == null ? com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -973,7 +812,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (textSegment_ != null) { output.writeMessage(1, getTextSegment()); } @@ -983,10 +823,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (boundingPoly_ != null) { output.writeMessage(3, getBoundingPoly()); } - if (textSegmentType_ - != com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType - .TEXT_SEGMENT_TYPE_UNSPECIFIED - .getNumber()) { + if (textSegmentType_ != com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.TEXT_SEGMENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, textSegmentType_); } unknownFields.writeTo(output); @@ -999,19 +836,20 @@ public int getSerializedSize() { size = 0; if (textSegment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTextSegment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTextSegment()); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageNumber_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBoundingPoly()); } - if (textSegmentType_ - != com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType - .TEXT_SEGMENT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, textSegmentType_); + if (textSegmentType_ != com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.TEXT_SEGMENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, textSegmentType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1021,22 +859,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.Document.Layout)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.Document.Layout other = - (com.google.cloud.automl.v1beta1.Document.Layout) obj; + com.google.cloud.automl.v1beta1.Document.Layout other = (com.google.cloud.automl.v1beta1.Document.Layout) obj; if (hasTextSegment() != other.hasTextSegment()) return false; if (hasTextSegment()) { - if (!getTextSegment().equals(other.getTextSegment())) return false; + if (!getTextSegment() + .equals(other.getTextSegment())) return false; } - if (getPageNumber() != other.getPageNumber()) return false; + if (getPageNumber() + != other.getPageNumber()) return false; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (textSegmentType_ != other.textSegmentType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -1068,93 +908,87 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.Document.Layout parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Document.Layout parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Layout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Document.Layout 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.Layout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Document.Layout parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Layout 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.Layout 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.Layout parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.Document.Layout 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.Layout 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.Layout parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Document.Layout parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + 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.Layout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.Document.Layout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1164,32 +998,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes the layout information of a [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the document.
      * 
* * Protobuf type {@code google.cloud.automl.v1beta1.Document.Layout} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Document.Layout) com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Document_Layout_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_Layout_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Document_Layout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.Document.Layout.class, - com.google.cloud.automl.v1beta1.Document.Layout.Builder.class); + com.google.cloud.automl.v1beta1.Document.Layout.class, com.google.cloud.automl.v1beta1.Document.Layout.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.Document.Layout.newBuilder() @@ -1197,15 +1026,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1229,9 +1059,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor; } @java.lang.Override @@ -1250,8 +1080,7 @@ public com.google.cloud.automl.v1beta1.Document.Layout build() { @java.lang.Override public com.google.cloud.automl.v1beta1.Document.Layout buildPartial() { - com.google.cloud.automl.v1beta1.Document.Layout result = - new com.google.cloud.automl.v1beta1.Document.Layout(this); + com.google.cloud.automl.v1beta1.Document.Layout result = new com.google.cloud.automl.v1beta1.Document.Layout(this); if (textSegmentBuilder_ == null) { result.textSegment_ = textSegment_; } else { @@ -1272,41 +1101,38 @@ public com.google.cloud.automl.v1beta1.Document.Layout buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.Layout) { - return mergeFrom((com.google.cloud.automl.v1beta1.Document.Layout) other); + return mergeFrom((com.google.cloud.automl.v1beta1.Document.Layout)other); } else { super.mergeFrom(other); return this; @@ -1314,8 +1140,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.Document.Layout other) { - if (other == com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance()) return this; if (other.hasTextSegment()) { mergeTextSegment(other.getTextSegment()); } @@ -1347,8 +1172,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.Document.Layout) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.Document.Layout) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1360,49 +1184,36 @@ public Builder mergeFrom( 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_; + com.google.cloud.automl.v1beta1.TextSegment, com.google.cloud.automl.v1beta1.TextSegment.Builder, com.google.cloud.automl.v1beta1.TextSegmentOrBuilder> textSegmentBuilder_; /** - * - * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
        * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; - * * @return Whether the textSegment field is set. */ public boolean hasTextSegment() { return textSegmentBuilder_ != null || textSegment_ != null; } /** - * - * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
        * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; - * * @return The textSegment. */ public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() { if (textSegmentBuilder_ == null) { - return textSegment_ == null - ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() - : textSegment_; + return textSegment_ == null ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() : textSegment_; } else { return textSegmentBuilder_.getMessage(); } } /** - * - * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1424,8 +1235,6 @@ public Builder setTextSegment(com.google.cloud.automl.v1beta1.TextSegment value)
         return this;
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1445,8 +1254,6 @@ public Builder setTextSegment(
         return this;
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1458,9 +1265,7 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1beta1.TextSegment valu
         if (textSegmentBuilder_ == null) {
           if (textSegment_ != null) {
             textSegment_ =
-                com.google.cloud.automl.v1beta1.TextSegment.newBuilder(textSegment_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.cloud.automl.v1beta1.TextSegment.newBuilder(textSegment_).mergeFrom(value).buildPartial();
           } else {
             textSegment_ = value;
           }
@@ -1472,8 +1277,6 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1beta1.TextSegment valu
         return this;
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1493,8 +1296,6 @@ public Builder clearTextSegment() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1503,13 +1304,11 @@ public Builder clearTextSegment() {
        * .google.cloud.automl.v1beta1.TextSegment text_segment = 1;
        */
       public com.google.cloud.automl.v1beta1.TextSegment.Builder getTextSegmentBuilder() {
-
+        
         onChanged();
         return getTextSegmentFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1521,14 +1320,11 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
         if (textSegmentBuilder_ != null) {
           return textSegmentBuilder_.getMessageOrBuilder();
         } else {
-          return textSegment_ == null
-              ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance()
-              : textSegment_;
+          return textSegment_ == null ?
+              com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() : textSegment_;
         }
       }
       /**
-       *
-       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1537,33 +1333,27 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
        * .google.cloud.automl.v1beta1.TextSegment text_segment = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.automl.v1beta1.TextSegment,
-              com.google.cloud.automl.v1beta1.TextSegment.Builder,
-              com.google.cloud.automl.v1beta1.TextSegmentOrBuilder>
+          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());
+          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_;
       }
 
-      private int pageNumber_;
+      private int pageNumber_ ;
       /**
-       *
-       *
        * 
        * Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -1571,38 +1361,32 @@ public int getPageNumber() { return pageNumber_; } /** - * - * *
        * Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; - * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** - * - * *
        * Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; - * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; @@ -1610,13 +1394,8 @@ public Builder clearPageNumber() { private com.google.cloud.automl.v1beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.BoundingPoly, - com.google.cloud.automl.v1beta1.BoundingPoly.Builder, - com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.automl.v1beta1.BoundingPoly, com.google.cloud.automl.v1beta1.BoundingPoly.Builder, com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1629,15 +1408,12 @@ public Builder clearPageNumber() {
        * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1650,21 +1426,16 @@ public boolean hasBoundingPoly() {
        * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; - * * @return The boundingPoly. */ public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1692,8 +1463,6 @@ public Builder setBoundingPoly(com.google.cloud.automl.v1beta1.BoundingPoly valu
         return this;
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1719,8 +1488,6 @@ public Builder setBoundingPoly(
         return this;
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1738,9 +1505,7 @@ public Builder mergeBoundingPoly(com.google.cloud.automl.v1beta1.BoundingPoly va
         if (boundingPolyBuilder_ == null) {
           if (boundingPoly_ != null) {
             boundingPoly_ =
-                com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingPoly_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
           } else {
             boundingPoly_ = value;
           }
@@ -1752,8 +1517,6 @@ public Builder mergeBoundingPoly(com.google.cloud.automl.v1beta1.BoundingPoly va
         return this;
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1779,8 +1542,6 @@ public Builder clearBoundingPoly() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1795,13 +1556,11 @@ public Builder clearBoundingPoly() {
        * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3;
        */
       public com.google.cloud.automl.v1beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+        
         onChanged();
         return getBoundingPolyFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1819,14 +1578,11 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBu
         if (boundingPolyBuilder_ != null) {
           return boundingPolyBuilder_.getMessageOrBuilder();
         } else {
-          return boundingPoly_ == null
-              ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance()
-              : boundingPoly_;
+          return boundingPoly_ == null ?
+              com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
         }
       }
       /**
-       *
-       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1841,17 +1597,14 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBu
        * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.automl.v1beta1.BoundingPoly,
-              com.google.cloud.automl.v1beta1.BoundingPoly.Builder,
-              com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder>
+          com.google.cloud.automl.v1beta1.BoundingPoly, com.google.cloud.automl.v1beta1.BoundingPoly.Builder, com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder> 
           getBoundingPolyFieldBuilder() {
         if (boundingPolyBuilder_ == null) {
-          boundingPolyBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.automl.v1beta1.BoundingPoly,
-                  com.google.cloud.automl.v1beta1.BoundingPoly.Builder,
-                  com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder>(
-                  getBoundingPoly(), getParentForChildren(), isClean());
+          boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.automl.v1beta1.BoundingPoly, com.google.cloud.automl.v1beta1.BoundingPoly.Builder, com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder>(
+                  getBoundingPoly(),
+                  getParentForChildren(),
+                  isClean());
           boundingPoly_ = null;
         }
         return boundingPolyBuilder_;
@@ -1859,104 +1612,77 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBu
 
       private int textSegmentType_ = 0;
       /**
-       *
-       *
        * 
        * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
        * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; - * - * + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; * @return The enum numeric value on the wire for textSegmentType. */ - @java.lang.Override - public int getTextSegmentTypeValue() { + @java.lang.Override public int getTextSegmentTypeValue() { return textSegmentType_; } /** - * - * *
        * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
        * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; - * - * + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; * @param value The enum numeric value on the wire for textSegmentType to set. * @return This builder for chaining. */ public Builder setTextSegmentTypeValue(int value) { - + textSegmentType_ = value; onChanged(); return this; } /** - * - * *
        * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
        * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; - * - * + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; * @return The textSegmentType. */ @java.lang.Override public com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType getTextSegmentType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType result = - com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.valueOf( - textSegmentType_); - return result == null - ? com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType result = com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); + return result == null ? com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.UNRECOGNIZED : result; } /** - * - * *
        * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
        * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; - * - * + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; * @param value The textSegmentType to set. * @return This builder for chaining. */ - public Builder setTextSegmentType( - com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType value) { + public Builder setTextSegmentType(com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType value) { if (value == null) { throw new NullPointerException(); } - + textSegmentType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
        * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; - * - * + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; * @return This builder for chaining. */ public Builder clearTextSegmentType() { - + textSegmentType_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1969,12 +1695,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Document.Layout) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Document.Layout) private static final com.google.cloud.automl.v1beta1.Document.Layout DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Document.Layout(); } @@ -1983,16 +1709,16 @@ public static com.google.cloud.automl.v1beta1.Document.Layout getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Layout parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Layout(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Layout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Layout(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2007,19 +1733,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Document.Layout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } 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; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -2027,25 +1751,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DocumentInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * An input config specifying the content of the document.
    * 
@@ -2060,14 +1777,11 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConf public static final int DOCUMENT_TEXT_FIELD_NUMBER = 2; private com.google.cloud.automl.v1beta1.TextSnippet documentText_; /** - * - * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; - * * @return Whether the documentText field is set. */ @java.lang.Override @@ -2075,25 +1789,18 @@ public boolean hasDocumentText() { return documentText_ != null; } /** - * - * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; - * * @return The documentText. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet getDocumentText() { - return documentText_ == null - ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() - : documentText_; + return documentText_ == null ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : documentText_; } /** - * - * *
    * The plain text version of this document.
    * 
@@ -2108,8 +1815,6 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getDocumentTextOrBui public static final int LAYOUT_FIELD_NUMBER = 3; private java.util.List layout_; /** - * - * *
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -2122,8 +1827,6 @@ public java.util.List getLayout
     return layout_;
   }
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -2132,13 +1835,11 @@ public java.util.List getLayout
    * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLayoutOrBuilderList() {
     return layout_;
   }
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -2151,8 +1852,6 @@ public int getLayoutCount() {
     return layout_.size();
   }
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -2165,8 +1864,6 @@ public com.google.cloud.automl.v1beta1.Document.Layout getLayout(int index) {
     return layout_.get(index);
   }
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -2175,21 +1872,19 @@ public com.google.cloud.automl.v1beta1.Document.Layout getLayout(int index) {
    * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(int index) {
+  public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(
+      int index) {
     return layout_.get(index);
   }
 
   public static final int DOCUMENT_DIMENSIONS_FIELD_NUMBER = 4;
   private com.google.cloud.automl.v1beta1.DocumentDimensions documentDimensions_;
   /**
-   *
-   *
    * 
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; - * * @return Whether the documentDimensions field is set. */ @java.lang.Override @@ -2197,25 +1892,18 @@ public boolean hasDocumentDimensions() { return documentDimensions_ != null; } /** - * - * *
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; - * * @return The documentDimensions. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DocumentDimensions getDocumentDimensions() { - return documentDimensions_ == null - ? com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() - : documentDimensions_; + return documentDimensions_ == null ? com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() : documentDimensions_; } /** - * - * *
    * The dimensions of the page in the document.
    * 
@@ -2223,22 +1911,18 @@ public com.google.cloud.automl.v1beta1.DocumentDimensions getDocumentDimensions( * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder - getDocumentDimensionsOrBuilder() { + public com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder() { return getDocumentDimensions(); } public static final int PAGE_COUNT_FIELD_NUMBER = 5; private int pageCount_; /** - * - * *
    * Number of pages in the document.
    * 
* * int32 page_count = 5; - * * @return The pageCount. */ @java.lang.Override @@ -2247,7 +1931,6 @@ public int getPageCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2259,7 +1942,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -2285,19 +1969,24 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } if (documentText_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentText()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocumentText()); } for (int i = 0; i < layout_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, layout_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, layout_.get(i)); } if (documentDimensions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentDimensions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDocumentDimensions()); } if (pageCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, pageCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2307,7 +1996,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.Document)) { return super.equals(obj); @@ -2316,18 +2005,23 @@ public boolean equals(final java.lang.Object obj) { if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (hasDocumentText() != other.hasDocumentText()) return false; if (hasDocumentText()) { - if (!getDocumentText().equals(other.getDocumentText())) return false; + if (!getDocumentText() + .equals(other.getDocumentText())) return false; } - if (!getLayoutList().equals(other.getLayoutList())) return false; + if (!getLayoutList() + .equals(other.getLayoutList())) return false; if (hasDocumentDimensions() != other.hasDocumentDimensions()) return false; if (hasDocumentDimensions()) { - if (!getDocumentDimensions().equals(other.getDocumentDimensions())) return false; + if (!getDocumentDimensions() + .equals(other.getDocumentDimensions())) return false; } - if (getPageCount() != other.getPageCount()) return false; + if (getPageCount() + != other.getPageCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2362,127 +2056,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.Document parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.Document.class, com.google.cloud.automl.v1beta1.Document.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.Document.newBuilder() @@ -2490,17 +2175,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLayoutFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2534,9 +2219,9 @@ public Builder clear() { } @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; + 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 @@ -2555,8 +2240,7 @@ public com.google.cloud.automl.v1beta1.Document build() { @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); + com.google.cloud.automl.v1beta1.Document result = new com.google.cloud.automl.v1beta1.Document(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -2591,39 +2275,38 @@ public com.google.cloud.automl.v1beta1.Document buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.Document)other); } else { super.mergeFrom(other); return this; @@ -2656,10 +2339,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Document other) { layoutBuilder_ = null; layout_ = other.layout_; bitField0_ = (bitField0_ & ~0x00000001); - layoutBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLayoutFieldBuilder() - : null; + layoutBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLayoutFieldBuilder() : null; } else { layoutBuilder_.addAllMessages(other.layout_); } @@ -2699,52 +2381,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; 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_; + 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; - * * @return Whether the inputConfig field is set. */ 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; - * * @return The inputConfig. */ public com.google.cloud.automl.v1beta1.DocumentInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2765,8 +2433,6 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.DocumentInputConfi return this; } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2785,8 +2451,6 @@ public Builder setInputConfig( return this; } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2797,9 +2461,7 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.DocumentInputCon if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.automl.v1beta1.DocumentInputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1beta1.DocumentInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -2811,8 +2473,6 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.DocumentInputCon return this; } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2831,8 +2491,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2840,13 +2498,11 @@ public Builder clearInputConfig() { * .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.
      * 
@@ -2857,14 +2513,11 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConf if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * An input config specifying the content of the document.
      * 
@@ -2872,17 +2525,14 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConf * .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> + 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()); + 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_; @@ -2890,47 +2540,34 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConf private com.google.cloud.automl.v1beta1.TextSnippet documentText_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, - com.google.cloud.automl.v1beta1.TextSnippet.Builder, - com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> - documentTextBuilder_; + com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> documentTextBuilder_; /** - * - * *
      * The plain text version of this document.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; - * * @return Whether the documentText field is set. */ public boolean hasDocumentText() { return documentTextBuilder_ != null || documentText_ != null; } /** - * - * *
      * The plain text version of this document.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; - * * @return The documentText. */ public com.google.cloud.automl.v1beta1.TextSnippet getDocumentText() { if (documentTextBuilder_ == null) { - return documentText_ == null - ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() - : documentText_; + return documentText_ == null ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : documentText_; } else { return documentTextBuilder_.getMessage(); } } /** - * - * *
      * The plain text version of this document.
      * 
@@ -2951,8 +2588,6 @@ public Builder setDocumentText(com.google.cloud.automl.v1beta1.TextSnippet value return this; } /** - * - * *
      * The plain text version of this document.
      * 
@@ -2971,8 +2606,6 @@ public Builder setDocumentText( return this; } /** - * - * *
      * The plain text version of this document.
      * 
@@ -2983,9 +2616,7 @@ public Builder mergeDocumentText(com.google.cloud.automl.v1beta1.TextSnippet val if (documentTextBuilder_ == null) { if (documentText_ != null) { documentText_ = - com.google.cloud.automl.v1beta1.TextSnippet.newBuilder(documentText_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1beta1.TextSnippet.newBuilder(documentText_).mergeFrom(value).buildPartial(); } else { documentText_ = value; } @@ -2997,8 +2628,6 @@ public Builder mergeDocumentText(com.google.cloud.automl.v1beta1.TextSnippet val return this; } /** - * - * *
      * The plain text version of this document.
      * 
@@ -3017,8 +2646,6 @@ public Builder clearDocumentText() { return this; } /** - * - * *
      * The plain text version of this document.
      * 
@@ -3026,13 +2653,11 @@ public Builder clearDocumentText() { * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; */ public com.google.cloud.automl.v1beta1.TextSnippet.Builder getDocumentTextBuilder() { - + onChanged(); return getDocumentTextFieldBuilder().getBuilder(); } /** - * - * *
      * The plain text version of this document.
      * 
@@ -3043,14 +2668,11 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getDocumentTextOrBui if (documentTextBuilder_ != null) { return documentTextBuilder_.getMessageOrBuilder(); } else { - return documentText_ == null - ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() - : documentText_; + return documentText_ == null ? + com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : documentText_; } } /** - * - * *
      * The plain text version of this document.
      * 
@@ -3058,41 +2680,32 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getDocumentTextOrBui * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, - com.google.cloud.automl.v1beta1.TextSnippet.Builder, - com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> + com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> getDocumentTextFieldBuilder() { if (documentTextBuilder_ == null) { - documentTextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, - com.google.cloud.automl.v1beta1.TextSnippet.Builder, - com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( - getDocumentText(), getParentForChildren(), isClean()); + documentTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( + getDocumentText(), + getParentForChildren(), + isClean()); documentText_ = null; } return documentTextBuilder_; } private java.util.List layout_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLayoutIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { layout_ = new java.util.ArrayList(layout_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Document.Layout, - com.google.cloud.automl.v1beta1.Document.Layout.Builder, - com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder> - layoutBuilder_; + com.google.cloud.automl.v1beta1.Document.Layout, com.google.cloud.automl.v1beta1.Document.Layout.Builder, com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder> layoutBuilder_; /** - * - * *
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3108,8 +2721,6 @@ public java.util.List getLayout
       }
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3125,8 +2736,6 @@ public int getLayoutCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3142,8 +2751,6 @@ public com.google.cloud.automl.v1beta1.Document.Layout getLayout(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3151,7 +2758,8 @@ public com.google.cloud.automl.v1beta1.Document.Layout getLayout(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public Builder setLayout(int index, com.google.cloud.automl.v1beta1.Document.Layout value) {
+    public Builder setLayout(
+        int index, com.google.cloud.automl.v1beta1.Document.Layout value) {
       if (layoutBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3165,8 +2773,6 @@ public Builder setLayout(int index, com.google.cloud.automl.v1beta1.Document.Lay
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3186,8 +2792,6 @@ public Builder setLayout(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3209,8 +2813,6 @@ public Builder addLayout(com.google.cloud.automl.v1beta1.Document.Layout value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3218,7 +2820,8 @@ public Builder addLayout(com.google.cloud.automl.v1beta1.Document.Layout value)
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public Builder addLayout(int index, com.google.cloud.automl.v1beta1.Document.Layout value) {
+    public Builder addLayout(
+        int index, com.google.cloud.automl.v1beta1.Document.Layout value) {
       if (layoutBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3232,8 +2835,6 @@ public Builder addLayout(int index, com.google.cloud.automl.v1beta1.Document.Lay
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3253,8 +2854,6 @@ public Builder addLayout(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3274,8 +2873,6 @@ public Builder addLayout(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3287,7 +2884,8 @@ public Builder addAllLayout(
         java.lang.Iterable values) {
       if (layoutBuilder_ == null) {
         ensureLayoutIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, layout_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, layout_);
         onChanged();
       } else {
         layoutBuilder_.addAllMessages(values);
@@ -3295,8 +2893,6 @@ public Builder addAllLayout(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3315,8 +2911,6 @@ public Builder clearLayout() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3335,8 +2929,6 @@ public Builder removeLayout(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3344,12 +2936,11 @@ public Builder removeLayout(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1beta1.Document.Layout.Builder getLayoutBuilder(int index) {
+    public com.google.cloud.automl.v1beta1.Document.Layout.Builder getLayoutBuilder(
+        int index) {
       return getLayoutFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3357,16 +2948,14 @@ public com.google.cloud.automl.v1beta1.Document.Layout.Builder getLayoutBuilder(
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(int index) {
+    public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(
+        int index) {
       if (layoutBuilder_ == null) {
-        return layout_.get(index);
-      } else {
+        return layout_.get(index);  } else {
         return layoutBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3374,8 +2963,8 @@ public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuild
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public java.util.List
-        getLayoutOrBuilderList() {
+    public java.util.List 
+         getLayoutOrBuilderList() {
       if (layoutBuilder_ != null) {
         return layoutBuilder_.getMessageOrBuilderList();
       } else {
@@ -3383,8 +2972,6 @@ public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3393,12 +2980,10 @@ public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuild
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
     public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder() {
-      return getLayoutFieldBuilder()
-          .addBuilder(com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance());
+      return getLayoutFieldBuilder().addBuilder(
+          com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3406,13 +2991,12 @@ public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder(
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder(int index) {
-      return getLayoutFieldBuilder()
-          .addBuilder(index, com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance());
+    public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder(
+        int index) {
+      return getLayoutFieldBuilder().addBuilder(
+          index, com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3420,23 +3004,20 @@ public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder(
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public java.util.List
-        getLayoutBuilderList() {
+    public java.util.List 
+         getLayoutBuilderList() {
       return getLayoutFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.automl.v1beta1.Document.Layout,
-            com.google.cloud.automl.v1beta1.Document.Layout.Builder,
-            com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder>
+        com.google.cloud.automl.v1beta1.Document.Layout, com.google.cloud.automl.v1beta1.Document.Layout.Builder, com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder> 
         getLayoutFieldBuilder() {
       if (layoutBuilder_ == null) {
-        layoutBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.automl.v1beta1.Document.Layout,
-                com.google.cloud.automl.v1beta1.Document.Layout.Builder,
-                com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder>(
-                layout_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        layoutBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.automl.v1beta1.Document.Layout, com.google.cloud.automl.v1beta1.Document.Layout.Builder, com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder>(
+                layout_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         layout_ = null;
       }
       return layoutBuilder_;
@@ -3444,47 +3025,34 @@ public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder(
 
     private com.google.cloud.automl.v1beta1.DocumentDimensions documentDimensions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1beta1.DocumentDimensions,
-            com.google.cloud.automl.v1beta1.DocumentDimensions.Builder,
-            com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder>
-        documentDimensionsBuilder_;
+        com.google.cloud.automl.v1beta1.DocumentDimensions, com.google.cloud.automl.v1beta1.DocumentDimensions.Builder, com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder> documentDimensionsBuilder_;
     /**
-     *
-     *
      * 
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; - * * @return Whether the documentDimensions field is set. */ public boolean hasDocumentDimensions() { return documentDimensionsBuilder_ != null || documentDimensions_ != null; } /** - * - * *
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; - * * @return The documentDimensions. */ public com.google.cloud.automl.v1beta1.DocumentDimensions getDocumentDimensions() { if (documentDimensionsBuilder_ == null) { - return documentDimensions_ == null - ? com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() - : documentDimensions_; + return documentDimensions_ == null ? com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() : documentDimensions_; } else { return documentDimensionsBuilder_.getMessage(); } } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3505,8 +3073,6 @@ public Builder setDocumentDimensions(com.google.cloud.automl.v1beta1.DocumentDim return this; } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3525,22 +3091,17 @@ public Builder setDocumentDimensions( return this; } /** - * - * *
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; */ - public Builder mergeDocumentDimensions( - com.google.cloud.automl.v1beta1.DocumentDimensions value) { + public Builder mergeDocumentDimensions(com.google.cloud.automl.v1beta1.DocumentDimensions value) { if (documentDimensionsBuilder_ == null) { if (documentDimensions_ != null) { documentDimensions_ = - com.google.cloud.automl.v1beta1.DocumentDimensions.newBuilder(documentDimensions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1beta1.DocumentDimensions.newBuilder(documentDimensions_).mergeFrom(value).buildPartial(); } else { documentDimensions_ = value; } @@ -3552,8 +3113,6 @@ public Builder mergeDocumentDimensions( return this; } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3572,42 +3131,33 @@ public Builder clearDocumentDimensions() { return this; } /** - * - * *
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; */ - public com.google.cloud.automl.v1beta1.DocumentDimensions.Builder - getDocumentDimensionsBuilder() { - + public com.google.cloud.automl.v1beta1.DocumentDimensions.Builder getDocumentDimensionsBuilder() { + onChanged(); return getDocumentDimensionsFieldBuilder().getBuilder(); } /** - * - * *
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; */ - public com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder - getDocumentDimensionsOrBuilder() { + public com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder() { if (documentDimensionsBuilder_ != null) { return documentDimensionsBuilder_.getMessageOrBuilder(); } else { - return documentDimensions_ == null - ? com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() - : documentDimensions_; + return documentDimensions_ == null ? + com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() : documentDimensions_; } } /** - * - * *
      * The dimensions of the page in the document.
      * 
@@ -3615,32 +3165,26 @@ public Builder clearDocumentDimensions() { * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.DocumentDimensions, - com.google.cloud.automl.v1beta1.DocumentDimensions.Builder, - com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder> + com.google.cloud.automl.v1beta1.DocumentDimensions, com.google.cloud.automl.v1beta1.DocumentDimensions.Builder, com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder> getDocumentDimensionsFieldBuilder() { if (documentDimensionsBuilder_ == null) { - documentDimensionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.DocumentDimensions, - com.google.cloud.automl.v1beta1.DocumentDimensions.Builder, - com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder>( - getDocumentDimensions(), getParentForChildren(), isClean()); + documentDimensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DocumentDimensions, com.google.cloud.automl.v1beta1.DocumentDimensions.Builder, com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder>( + getDocumentDimensions(), + getParentForChildren(), + isClean()); documentDimensions_ = null; } return documentDimensionsBuilder_; } - private int pageCount_; + private int pageCount_ ; /** - * - * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; - * * @return The pageCount. */ @java.lang.Override @@ -3648,43 +3192,37 @@ public int getPageCount() { return pageCount_; } /** - * - * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; - * * @param value The pageCount to set. * @return This builder for chaining. */ public Builder setPageCount(int value) { - + pageCount_ = value; onChanged(); return this; } /** - * - * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; - * * @return This builder for chaining. */ public Builder clearPageCount() { - + pageCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3694,12 +3232,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -3708,16 +3246,16 @@ 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); - } - }; + 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; @@ -3732,4 +3270,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Document getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java similarity index 69% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java index b29cde6af..491d631f5 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/data_items.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Message that describes dimension of a document.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DocumentDimensions} */ -public final class DocumentDimensions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentDimensions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DocumentDimensions) DocumentDimensionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentDimensions.newBuilder() to construct. private DocumentDimensions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentDimensions() { unit_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentDimensions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentDimensions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,70 +53,64 @@ private DocumentDimensions( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - unit_ = rawValue; - break; - } - case 21: - { - width_ = input.readFloat(); - break; - } - case 29: - { - height_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unit_ = rawValue; + break; + } + case 21: { + + width_ = input.readFloat(); + break; + } + case 29: { + + height_ = 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); + 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_DocumentDimensions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DocumentDimensions.class, - com.google.cloud.automl.v1beta1.DocumentDimensions.Builder.class); + com.google.cloud.automl.v1beta1.DocumentDimensions.class, com.google.cloud.automl.v1beta1.DocumentDimensions.Builder.class); } /** - * - * *
    * Unit of the document dimension.
    * 
* * Protobuf enum {@code google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit} */ - public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessageEnum { + public enum DocumentDimensionUnit + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Should not be used.
      * 
@@ -142,8 +119,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ DOCUMENT_DIMENSION_UNIT_UNSPECIFIED(0), /** - * - * *
      * Document dimension is measured in inches.
      * 
@@ -152,8 +127,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ INCH(1), /** - * - * *
      * Document dimension is measured in centimeters.
      * 
@@ -162,8 +135,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ CENTIMETER(2), /** - * - * *
      * Document dimension is measured in points. 72 points = 1 inch.
      * 
@@ -175,8 +146,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage ; /** - * - * *
      * Should not be used.
      * 
@@ -185,8 +154,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ public static final int DOCUMENT_DIMENSION_UNIT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Document dimension is measured in inches.
      * 
@@ -195,8 +162,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ public static final int INCH_VALUE = 1; /** - * - * *
      * Document dimension is measured in centimeters.
      * 
@@ -205,8 +170,6 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ public static final int CENTIMETER_VALUE = 2; /** - * - * *
      * Document dimension is measured in points. 72 points = 1 inch.
      * 
@@ -215,6 +178,7 @@ public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessage */ public static final int POINT_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -239,16 +203,11 @@ public static DocumentDimensionUnit valueOf(int value) { */ public static DocumentDimensionUnit forNumber(int value) { switch (value) { - case 0: - return DOCUMENT_DIMENSION_UNIT_UNSPECIFIED; - case 1: - return INCH; - case 2: - return CENTIMETER; - case 3: - return POINT; - default: - return null; + case 0: return DOCUMENT_DIMENSION_UNIT_UNSPECIFIED; + case 1: return INCH; + case 2: return CENTIMETER; + case 3: return POINT; + default: return null; } } @@ -256,31 +215,29 @@ public static DocumentDimensionUnit forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DocumentDimensionUnit> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DocumentDimensionUnit findValueByNumber(int number) { + return DocumentDimensionUnit.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DocumentDimensionUnit findValueByNumber(int number) { - return DocumentDimensionUnit.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + 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.DocumentDimensions.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.DocumentDimensions.getDescriptor().getEnumTypes().get(0); } private static final DocumentDimensionUnit[] VALUES = values(); @@ -288,7 +245,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static DocumentDimensionUnit valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -308,52 +266,38 @@ private DocumentDimensionUnit(int value) { public static final int UNIT_FIELD_NUMBER = 1; private int unit_; /** - * - * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The enum numeric value on the wire for unit. */ - @java.lang.Override - public int getUnitValue() { + @java.lang.Override public int getUnitValue() { return unit_; } /** - * - * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The unit. */ - @java.lang.Override - public com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit getUnit() { + @java.lang.Override public com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit getUnit() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit result = - com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); - return result == null - ? com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit result = com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); + return result == null ? com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED : result; } public static final int WIDTH_FIELD_NUMBER = 2; private float width_; /** - * - * *
    * Width value of the document, works together with the unit.
    * 
* * float width = 2; - * * @return The width. */ @java.lang.Override @@ -364,14 +308,11 @@ public float getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private float height_; /** - * - * *
    * Height value of the document, works together with the unit.
    * 
* * float height = 3; - * * @return The height. */ @java.lang.Override @@ -380,7 +321,6 @@ public float getHeight() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -392,11 +332,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (unit_ - != com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit - .DOCUMENT_DIMENSION_UNIT_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (unit_ != com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.DOCUMENT_DIMENSION_UNIT_UNSPECIFIED.getNumber()) { output.writeEnum(1, unit_); } if (width_ != 0F) { @@ -414,17 +352,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (unit_ - != com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit - .DOCUMENT_DIMENSION_UNIT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, unit_); + if (unit_ != com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.DOCUMENT_DIMENSION_UNIT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, unit_); } if (width_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, width_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, width_); } if (height_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, height_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, height_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -434,19 +372,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.DocumentDimensions)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.DocumentDimensions other = - (com.google.cloud.automl.v1beta1.DocumentDimensions) obj; + com.google.cloud.automl.v1beta1.DocumentDimensions other = (com.google.cloud.automl.v1beta1.DocumentDimensions) obj; if (unit_ != other.unit_) return false; if (java.lang.Float.floatToIntBits(getWidth()) - != java.lang.Float.floatToIntBits(other.getWidth())) return false; + != java.lang.Float.floatToIntBits( + other.getWidth())) return false; if (java.lang.Float.floatToIntBits(getHeight()) - != java.lang.Float.floatToIntBits(other.getHeight())) return false; + != java.lang.Float.floatToIntBits( + other.getHeight())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -461,135 +400,128 @@ public int hashCode() { hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + unit_; hash = (37 * hash) + WIDTH_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getWidth()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getWidth()); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getHeight()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getHeight()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DocumentDimensions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DocumentDimensions 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.DocumentDimensions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.DocumentDimensions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.DocumentDimensions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DocumentDimensions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.DocumentDimensions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message that describes dimension of a document.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DocumentDimensions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DocumentDimensions) com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DocumentDimensions.class, - com.google.cloud.automl.v1beta1.DocumentDimensions.Builder.class); + com.google.cloud.automl.v1beta1.DocumentDimensions.class, com.google.cloud.automl.v1beta1.DocumentDimensions.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DocumentDimensions.newBuilder() @@ -597,15 +529,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +552,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor; } @java.lang.Override @@ -640,8 +573,7 @@ public com.google.cloud.automl.v1beta1.DocumentDimensions build() { @java.lang.Override public com.google.cloud.automl.v1beta1.DocumentDimensions buildPartial() { - com.google.cloud.automl.v1beta1.DocumentDimensions result = - new com.google.cloud.automl.v1beta1.DocumentDimensions(this); + com.google.cloud.automl.v1beta1.DocumentDimensions result = new com.google.cloud.automl.v1beta1.DocumentDimensions(this); result.unit_ = unit_; result.width_ = width_; result.height_ = height_; @@ -653,39 +585,38 @@ public com.google.cloud.automl.v1beta1.DocumentDimensions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DocumentDimensions) { - return mergeFrom((com.google.cloud.automl.v1beta1.DocumentDimensions) other); + return mergeFrom((com.google.cloud.automl.v1beta1.DocumentDimensions)other); } else { super.mergeFrom(other); return this; @@ -693,8 +624,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DocumentDimensions other) { - if (other == com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance()) return this; if (other.unit_ != 0) { setUnitValue(other.getUnitValue()); } @@ -723,8 +653,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.DocumentDimensions) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.DocumentDimensions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -736,108 +665,85 @@ public Builder mergeFrom( private int unit_ = 0; /** - * - * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The enum numeric value on the wire for unit. */ - @java.lang.Override - public int getUnitValue() { + @java.lang.Override public int getUnitValue() { return unit_; } /** - * - * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @param value The enum numeric value on the wire for unit to set. * @return This builder for chaining. */ public Builder setUnitValue(int value) { - + unit_ = value; onChanged(); return this; } /** - * - * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The unit. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit getUnit() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit result = - com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); - return result == null - ? com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit result = com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); + return result == null ? com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED : result; } /** - * - * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit( - com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit value) { + public Builder setUnit(com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit value) { if (value == null) { throw new NullPointerException(); } - + unit_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return This builder for chaining. */ public Builder clearUnit() { - + unit_ = 0; onChanged(); return this; } - private float width_; + private float width_ ; /** - * - * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; - * * @return The width. */ @java.lang.Override @@ -845,51 +751,42 @@ public float getWidth() { return width_; } /** - * - * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; - * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(float value) { - + width_ = value; onChanged(); return this; } /** - * - * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; - * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0F; onChanged(); return this; } - private float height_; + private float height_ ; /** - * - * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; - * * @return The height. */ @java.lang.Override @@ -897,43 +794,37 @@ public float getHeight() { return height_; } /** - * - * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; - * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(float value) { - + height_ = value; onChanged(); return this; } /** - * - * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; - * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -943,12 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DocumentDimensions) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DocumentDimensions) private static final com.google.cloud.automl.v1beta1.DocumentDimensions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DocumentDimensions(); } @@ -957,16 +848,16 @@ public static com.google.cloud.automl.v1beta1.DocumentDimensions getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentDimensions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentDimensions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentDimensions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentDimensions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -981,4 +872,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DocumentDimensions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java similarity index 62% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java index a243f1d18..7b6a2a844 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java @@ -1,75 +1,47 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 DocumentDimensionsOrBuilder - extends +public interface DocumentDimensionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DocumentDimensions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The enum numeric value on the wire for unit. */ int getUnitValue(); /** - * - * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * * @return The unit. */ com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit getUnit(); /** - * - * *
    * Width value of the document, works together with the unit.
    * 
* * float width = 2; - * * @return The width. */ float getWidth(); /** - * - * *
    * Height value of the document, works together with the unit.
    * 
* * float height = 3; - * * @return The height. */ float getHeight(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java similarity index 69% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java index 2fb458249..83ede558e 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DocumentInputConfig() {} + private DocumentInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,61 +52,54 @@ private DocumentInputConfig( 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; + case 10: { + com.google.cloud.automl.v1beta1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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.
@@ -131,7 +108,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -139,8 +115,6 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** - * - * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -149,18 +123,13 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { - return gcsSource_ == null - ? com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance() - : gcsSource_; + 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.
@@ -176,7 +145,6 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -188,7 +156,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (gcsSource_ != null) {
       output.writeMessage(1, getGcsSource());
     }
@@ -202,7 +171,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (gcsSource_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getGcsSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -212,17 +182,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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;
+    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 (!getGcsSource()
+          .equals(other.getGcsSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -245,126 +215,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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)
+      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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.DocumentInputConfig.class, com.google.cloud.automl.v1beta1.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DocumentInputConfig.newBuilder() @@ -372,15 +333,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -394,9 +356,9 @@ public Builder clear() { } @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; + 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 @@ -415,8 +377,7 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfig build() { @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); + com.google.cloud.automl.v1beta1.DocumentInputConfig result = new com.google.cloud.automl.v1beta1.DocumentInputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -430,39 +391,38 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.DocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -470,8 +430,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DocumentInputConfig other) { - if (other == com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance()) return this; if (other.hasGcsSource()) { mergeGcsSource(other.getGcsSource()); } @@ -494,8 +453,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.DocumentInputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.DocumentInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -507,13 +465,8 @@ public Builder mergeFrom( 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_; + 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.
@@ -522,15 +475,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** - * - * *
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -539,21 +489,16 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null - ? com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance() - : gcsSource_; + 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.
@@ -577,8 +522,6 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -588,7 +531,8 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
      *
      * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         gcsSource_ = builderForValue.build();
         onChanged();
@@ -599,8 +543,6 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -614,9 +556,7 @@ 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();
+            com.google.cloud.automl.v1beta1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial();
         } else {
           gcsSource_ = value;
         }
@@ -628,8 +568,6 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -651,8 +589,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -663,13 +599,11 @@ public Builder clearGcsSource() {
      * .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.
@@ -683,14 +617,11 @@ 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_;
+        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.
@@ -701,24 +632,21 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(
      * .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>
+        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());
+        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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -728,12 +656,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -742,16 +670,16 @@ public static com.google.cloud.automl.v1beta1.DocumentInputConfig getDefaultInst
     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);
-        }
-      };
+  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;
@@ -766,4 +694,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.DocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java
similarity index 66%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java
index 54506b2a7..b26762510 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+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.
@@ -34,13 +16,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -49,13 +28,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.automl.v1beta1.GcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java
similarity index 82%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java
index db8d216e7..e51fc86ef 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+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; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.automl.v1beta1.DocumentInputConfig getInputConfig(); /** - * - * *
    * An input config specifying the content of the document.
    * 
@@ -59,32 +35,24 @@ public interface DocumentOrBuilder com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; - * * @return Whether the documentText field is set. */ boolean hasDocumentText(); /** - * - * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; - * * @return The documentText. */ com.google.cloud.automl.v1beta1.TextSnippet getDocumentText(); /** - * - * *
    * The plain text version of this document.
    * 
@@ -94,8 +62,6 @@ public interface DocumentOrBuilder com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getDocumentTextOrBuilder(); /** - * - * *
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -103,10 +69,9 @@ public interface DocumentOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
    */
-  java.util.List getLayoutList();
+  java.util.List 
+      getLayoutList();
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -116,8 +81,6 @@ public interface DocumentOrBuilder
    */
   com.google.cloud.automl.v1beta1.Document.Layout getLayout(int index);
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -127,8 +90,6 @@ public interface DocumentOrBuilder
    */
   int getLayoutCount();
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -136,11 +97,9 @@ public interface DocumentOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
    */
-  java.util.List
+  java.util.List 
       getLayoutOrBuilderList();
   /**
-   *
-   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -148,35 +107,28 @@ public interface DocumentOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
    */
-  com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(int index);
+  com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; - * * @return Whether the documentDimensions field is set. */ boolean hasDocumentDimensions(); /** - * - * *
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; - * * @return The documentDimensions. */ com.google.cloud.automl.v1beta1.DocumentDimensions getDocumentDimensions(); /** - * - * *
    * The dimensions of the page in the document.
    * 
@@ -186,14 +138,11 @@ public interface DocumentOrBuilder com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder(); /** - * - * *
    * Number of pages in the document.
    * 
* * int32 page_count = 5; - * * @return The pageCount. */ int getPageCount(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java index eae77e586..ad97bfe1c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use DoubleRange.newBuilder() to construct. private DoubleRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DoubleRange() {} + private DoubleRange() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DoubleRange(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DoubleRange( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,61 +52,56 @@ private DoubleRange( 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; + 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); + 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; + 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 + 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); + 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; - * * @return The start. */ @java.lang.Override @@ -133,14 +112,11 @@ public double getStart() { public static final int END_FIELD_NUMBER = 2; private double end_; /** - * - * *
    * End of the range, exclusive.
    * 
* * double end = 2; - * * @return The end. */ @java.lang.Override @@ -149,7 +125,6 @@ public double getEnd() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,7 +136,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (start_ != 0D) { output.writeDouble(1, start_); } @@ -178,10 +154,12 @@ public int getSerializedSize() { size = 0; if (start_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, start_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, start_); } if (end_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, end_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, end_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -191,18 +169,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != java.lang.Double.doubleToLongBits( + other.getStart())) return false; if (java.lang.Double.doubleToLongBits(getEnd()) - != java.lang.Double.doubleToLongBits(other.getEnd())) return false; + != java.lang.Double.doubleToLongBits( + other.getEnd())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -215,139 +194,128 @@ public int hashCode() { 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 = (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 = (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) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.DoubleRange.class, com.google.cloud.automl.v1beta1.DoubleRange.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DoubleRange.newBuilder() @@ -355,15 +323,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +344,9 @@ public Builder clear() { } @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; + 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 @@ -396,8 +365,7 @@ public com.google.cloud.automl.v1beta1.DoubleRange build() { @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); + com.google.cloud.automl.v1beta1.DoubleRange result = new com.google.cloud.automl.v1beta1.DoubleRange(this); result.start_ = start_; result.end_ = end_; onBuilt(); @@ -408,39 +376,38 @@ public com.google.cloud.automl.v1beta1.DoubleRange buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.DoubleRange)other); } else { super.mergeFrom(other); return this; @@ -484,16 +451,13 @@ public Builder mergeFrom( return this; } - private double start_; + private double start_ ; /** - * - * *
      * Start of the range, inclusive.
      * 
* * double start = 1; - * * @return The start. */ @java.lang.Override @@ -501,51 +465,42 @@ public double getStart() { return start_; } /** - * - * *
      * Start of the range, inclusive.
      * 
* * double start = 1; - * * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(double value) { - + start_ = value; onChanged(); return this; } /** - * - * *
      * Start of the range, inclusive.
      * 
* * double start = 1; - * * @return This builder for chaining. */ public Builder clearStart() { - + start_ = 0D; onChanged(); return this; } - private double end_; + private double end_ ; /** - * - * *
      * End of the range, exclusive.
      * 
* * double end = 2; - * * @return The end. */ @java.lang.Override @@ -553,43 +508,37 @@ public double getEnd() { return end_; } /** - * - * *
      * End of the range, exclusive.
      * 
* * double end = 2; - * * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(double value) { - + end_ = value; onChanged(); return this; } /** - * - * *
      * End of the range, exclusive.
      * 
* * double end = 2; - * * @return This builder for chaining. */ public Builder clearEnd() { - + end_ = 0D; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,12 +548,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -613,16 +562,16 @@ 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); - } - }; + 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; @@ -637,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DoubleRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java new file mode 100644 index 000000000..0883b35ec --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java @@ -0,0 +1,29 @@ +// 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; + * @return The start. + */ + double getStart(); + + /** + *
+   * End of the range, exclusive.
+   * 
+ * + * double end = 2; + * @return The end. + */ + double getEnd(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java similarity index 70% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java index 0edd62ea7..b7771ccfd 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/data_items.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Example data used for training or prediction.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ExamplePayload} */ -public final class ExamplePayload extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExamplePayload extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExamplePayload) ExamplePayloadOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExamplePayload.newBuilder() to construct. private ExamplePayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExamplePayload() {} + private ExamplePayload() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExamplePayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExamplePayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,110 +52,98 @@ private ExamplePayload( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1beta1.Image.Builder subBuilder = null; - if (payloadCase_ == 1) { - subBuilder = ((com.google.cloud.automl.v1beta1.Image) payload_).toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.automl.v1beta1.Image.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.Image) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 1; - break; + case 10: { + com.google.cloud.automl.v1beta1.Image.Builder subBuilder = null; + if (payloadCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1beta1.Image) payload_).toBuilder(); } - case 18: - { - com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; - if (payloadCase_ == 2) { - subBuilder = ((com.google.cloud.automl.v1beta1.TextSnippet) payload_).toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextSnippet) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 2; - break; + payload_ = + input.readMessage(com.google.cloud.automl.v1beta1.Image.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.Image) payload_); + payload_ = subBuilder.buildPartial(); } - 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; + payloadCase_ = 1; + break; + } + case 18: { + com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; + if (payloadCase_ == 2) { + subBuilder = ((com.google.cloud.automl.v1beta1.TextSnippet) payload_).toBuilder(); } - 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; + payload_ = + input.readMessage(com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextSnippet) payload_); + payload_ = subBuilder.buildPartial(); + } + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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)) { + 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); + 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_ExamplePayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ExamplePayload.class, - com.google.cloud.automl.v1beta1.ExamplePayload.Builder.class); + com.google.cloud.automl.v1beta1.ExamplePayload.class, com.google.cloud.automl.v1beta1.ExamplePayload.Builder.class); } private int payloadCase_ = 0; private java.lang.Object payload_; - public enum PayloadCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE(1), TEXT_SNIPPET(2), @@ -179,7 +151,6 @@ public enum PayloadCase ROW(3), PAYLOAD_NOT_SET(0); private final int value; - private PayloadCase(int value) { this.value = value; } @@ -195,40 +166,32 @@ public static PayloadCase valueOf(int value) { public static PayloadCase forNumber(int value) { switch (value) { - case 1: - return IMAGE; - case 2: - return TEXT_SNIPPET; - case 4: - return DOCUMENT; - case 3: - return ROW; - case 0: - return PAYLOAD_NOT_SET; - default: - return null; + case 1: return IMAGE; + case 2: return TEXT_SNIPPET; + case 4: return DOCUMENT; + case 3: return ROW; + case 0: return PAYLOAD_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PayloadCase getPayloadCase() { - return PayloadCase.forNumber(payloadCase_); + public PayloadCase + getPayloadCase() { + return PayloadCase.forNumber( + payloadCase_); } public static final int IMAGE_FIELD_NUMBER = 1; /** - * - * *
    * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; - * * @return Whether the image field is set. */ @java.lang.Override @@ -236,26 +199,21 @@ public boolean hasImage() { return payloadCase_ == 1; } /** - * - * *
    * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; - * * @return The image. */ @java.lang.Override public com.google.cloud.automl.v1beta1.Image getImage() { if (payloadCase_ == 1) { - return (com.google.cloud.automl.v1beta1.Image) payload_; + return (com.google.cloud.automl.v1beta1.Image) payload_; } return com.google.cloud.automl.v1beta1.Image.getDefaultInstance(); } /** - * - * *
    * Example image.
    * 
@@ -265,21 +223,18 @@ public com.google.cloud.automl.v1beta1.Image getImage() { @java.lang.Override public com.google.cloud.automl.v1beta1.ImageOrBuilder getImageOrBuilder() { if (payloadCase_ == 1) { - return (com.google.cloud.automl.v1beta1.Image) payload_; + return (com.google.cloud.automl.v1beta1.Image) payload_; } return com.google.cloud.automl.v1beta1.Image.getDefaultInstance(); } public static final int TEXT_SNIPPET_FIELD_NUMBER = 2; /** - * - * *
    * Example text.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; - * * @return Whether the textSnippet field is set. */ @java.lang.Override @@ -287,26 +242,21 @@ public boolean hasTextSnippet() { return payloadCase_ == 2; } /** - * - * *
    * Example text.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; - * * @return The textSnippet. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet getTextSnippet() { if (payloadCase_ == 2) { - return (com.google.cloud.automl.v1beta1.TextSnippet) payload_; + return (com.google.cloud.automl.v1beta1.TextSnippet) payload_; } return com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance(); } /** - * - * *
    * Example text.
    * 
@@ -316,21 +266,18 @@ public com.google.cloud.automl.v1beta1.TextSnippet getTextSnippet() { @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuilder() { if (payloadCase_ == 2) { - return (com.google.cloud.automl.v1beta1.TextSnippet) payload_; + return (com.google.cloud.automl.v1beta1.TextSnippet) payload_; } 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; - * * @return Whether the document field is set. */ @java.lang.Override @@ -338,26 +285,21 @@ public boolean hasDocument() { return payloadCase_ == 4; } /** - * - * *
    * Example document.
    * 
* * .google.cloud.automl.v1beta1.Document document = 4; - * * @return The document. */ @java.lang.Override 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) payload_; } return com.google.cloud.automl.v1beta1.Document.getDefaultInstance(); } /** - * - * *
    * Example document.
    * 
@@ -367,21 +309,18 @@ public com.google.cloud.automl.v1beta1.Document getDocument() { @java.lang.Override 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) 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; - * * @return Whether the row field is set. */ @java.lang.Override @@ -389,26 +328,21 @@ public boolean hasRow() { return payloadCase_ == 3; } /** - * - * *
    * Example relational table row.
    * 
* * .google.cloud.automl.v1beta1.Row row = 3; - * * @return The row. */ @java.lang.Override 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) payload_; } return com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); } /** - * - * *
    * Example relational table row.
    * 
@@ -418,13 +352,12 @@ public com.google.cloud.automl.v1beta1.Row getRow() { @java.lang.Override 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) payload_; } return com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -436,7 +369,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (payloadCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1beta1.Image) payload_); } @@ -459,24 +393,20 @@ public int getSerializedSize() { size = 0; if (payloadCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.automl.v1beta1.Image) payload_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.automl.v1beta1.Image) payload_); } if (payloadCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.automl.v1beta1.TextSnippet) payload_); + size += 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_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.automl.v1beta1.Document) payload_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -486,27 +416,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ExamplePayload)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ExamplePayload other = - (com.google.cloud.automl.v1beta1.ExamplePayload) obj; + com.google.cloud.automl.v1beta1.ExamplePayload other = (com.google.cloud.automl.v1beta1.ExamplePayload) obj; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 1: - if (!getImage().equals(other.getImage())) return false; + if (!getImage() + .equals(other.getImage())) return false; break; case 2: - if (!getTextSnippet().equals(other.getTextSnippet())) return false; + if (!getTextSnippet() + .equals(other.getTextSnippet())) return false; break; case 4: - if (!getDocument().equals(other.getDocument())) return false; + if (!getDocument() + .equals(other.getDocument())) return false; break; case 3: - if (!getRow().equals(other.getRow())) return false; + if (!getRow() + .equals(other.getRow())) return false; break; case 0: default: @@ -547,127 +480,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ExamplePayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ExamplePayload 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.ExamplePayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ExamplePayload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ExamplePayload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ExamplePayload parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExamplePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Example data used for training or prediction.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ExamplePayload} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExamplePayload) com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ExamplePayload.class, - com.google.cloud.automl.v1beta1.ExamplePayload.Builder.class); + com.google.cloud.automl.v1beta1.ExamplePayload.class, com.google.cloud.automl.v1beta1.ExamplePayload.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ExamplePayload.newBuilder() @@ -675,15 +599,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -693,9 +618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; } @java.lang.Override @@ -714,8 +639,7 @@ public com.google.cloud.automl.v1beta1.ExamplePayload build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayload buildPartial() { - com.google.cloud.automl.v1beta1.ExamplePayload result = - new com.google.cloud.automl.v1beta1.ExamplePayload(this); + com.google.cloud.automl.v1beta1.ExamplePayload result = new com.google.cloud.automl.v1beta1.ExamplePayload(this); if (payloadCase_ == 1) { if (imageBuilder_ == null) { result.payload_ = payload_; @@ -753,39 +677,38 @@ public com.google.cloud.automl.v1beta1.ExamplePayload buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ExamplePayload) { - return mergeFrom((com.google.cloud.automl.v1beta1.ExamplePayload) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ExamplePayload)other); } else { super.mergeFrom(other); return this; @@ -795,30 +718,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExamplePayload other) { if (other == com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance()) return this; switch (other.getPayloadCase()) { - case IMAGE: - { - mergeImage(other.getImage()); - break; - } - case TEXT_SNIPPET: - { - mergeTextSnippet(other.getTextSnippet()); - break; - } - case DOCUMENT: - { - mergeDocument(other.getDocument()); - break; - } - case ROW: - { - mergeRow(other.getRow()); - break; - } - case PAYLOAD_NOT_SET: - { - break; - } + case IMAGE: { + mergeImage(other.getImage()); + break; + } + case TEXT_SNIPPET: { + mergeTextSnippet(other.getTextSnippet()); + break; + } + case DOCUMENT: { + mergeDocument(other.getDocument()); + break; + } + case ROW: { + mergeRow(other.getRow()); + break; + } + case PAYLOAD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -848,12 +766,12 @@ public Builder mergeFrom( } return this; } - private int payloadCase_ = 0; private java.lang.Object payload_; - - public PayloadCase getPayloadCase() { - return PayloadCase.forNumber(payloadCase_); + public PayloadCase + getPayloadCase() { + return PayloadCase.forNumber( + payloadCase_); } public Builder clearPayload() { @@ -863,20 +781,15 @@ public Builder clearPayload() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Image, - com.google.cloud.automl.v1beta1.Image.Builder, - com.google.cloud.automl.v1beta1.ImageOrBuilder> - imageBuilder_; + com.google.cloud.automl.v1beta1.Image, com.google.cloud.automl.v1beta1.Image.Builder, com.google.cloud.automl.v1beta1.ImageOrBuilder> imageBuilder_; /** - * - * *
      * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; - * * @return Whether the image field is set. */ @java.lang.Override @@ -884,14 +797,11 @@ public boolean hasImage() { return payloadCase_ == 1; } /** - * - * *
      * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; - * * @return The image. */ @java.lang.Override @@ -909,8 +819,6 @@ public com.google.cloud.automl.v1beta1.Image getImage() { } } /** - * - * *
      * Example image.
      * 
@@ -931,15 +839,14 @@ public Builder setImage(com.google.cloud.automl.v1beta1.Image value) { return this; } /** - * - * *
      * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; */ - public Builder setImage(com.google.cloud.automl.v1beta1.Image.Builder builderForValue) { + public Builder setImage( + com.google.cloud.automl.v1beta1.Image.Builder builderForValue) { if (imageBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -950,8 +857,6 @@ public Builder setImage(com.google.cloud.automl.v1beta1.Image.Builder builderFor return this; } /** - * - * *
      * Example image.
      * 
@@ -960,13 +865,10 @@ public Builder setImage(com.google.cloud.automl.v1beta1.Image.Builder builderFor */ public Builder mergeImage(com.google.cloud.automl.v1beta1.Image value) { if (imageBuilder_ == null) { - if (payloadCase_ == 1 - && payload_ != com.google.cloud.automl.v1beta1.Image.getDefaultInstance()) { - payload_ = - com.google.cloud.automl.v1beta1.Image.newBuilder( - (com.google.cloud.automl.v1beta1.Image) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 1 && + payload_ != com.google.cloud.automl.v1beta1.Image.getDefaultInstance()) { + payload_ = com.google.cloud.automl.v1beta1.Image.newBuilder((com.google.cloud.automl.v1beta1.Image) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -981,8 +883,6 @@ public Builder mergeImage(com.google.cloud.automl.v1beta1.Image value) { return this; } /** - * - * *
      * Example image.
      * 
@@ -1006,8 +906,6 @@ public Builder clearImage() { return this; } /** - * - * *
      * Example image.
      * 
@@ -1018,8 +916,6 @@ public com.google.cloud.automl.v1beta1.Image.Builder getImageBuilder() { return getImageFieldBuilder().getBuilder(); } /** - * - * *
      * Example image.
      * 
@@ -1038,8 +934,6 @@ public com.google.cloud.automl.v1beta1.ImageOrBuilder getImageOrBuilder() { } } /** - * - * *
      * Example image.
      * 
@@ -1047,44 +941,32 @@ public com.google.cloud.automl.v1beta1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.automl.v1beta1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Image, - com.google.cloud.automl.v1beta1.Image.Builder, - com.google.cloud.automl.v1beta1.ImageOrBuilder> + com.google.cloud.automl.v1beta1.Image, com.google.cloud.automl.v1beta1.Image.Builder, com.google.cloud.automl.v1beta1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { if (!(payloadCase_ == 1)) { payload_ = com.google.cloud.automl.v1beta1.Image.getDefaultInstance(); } - imageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Image, - com.google.cloud.automl.v1beta1.Image.Builder, - com.google.cloud.automl.v1beta1.ImageOrBuilder>( + imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Image, com.google.cloud.automl.v1beta1.Image.Builder, com.google.cloud.automl.v1beta1.ImageOrBuilder>( (com.google.cloud.automl.v1beta1.Image) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 1; - onChanged(); - ; + onChanged();; return imageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, - com.google.cloud.automl.v1beta1.TextSnippet.Builder, - com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> - textSnippetBuilder_; + com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> textSnippetBuilder_; /** - * - * *
      * Example text.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; - * * @return Whether the textSnippet field is set. */ @java.lang.Override @@ -1092,14 +974,11 @@ public boolean hasTextSnippet() { return payloadCase_ == 2; } /** - * - * *
      * Example text.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; - * * @return The textSnippet. */ @java.lang.Override @@ -1117,8 +996,6 @@ public com.google.cloud.automl.v1beta1.TextSnippet getTextSnippet() { } } /** - * - * *
      * Example text.
      * 
@@ -1139,8 +1016,6 @@ public Builder setTextSnippet(com.google.cloud.automl.v1beta1.TextSnippet value) return this; } /** - * - * *
      * Example text.
      * 
@@ -1159,8 +1034,6 @@ public Builder setTextSnippet( return this; } /** - * - * *
      * Example text.
      * 
@@ -1169,13 +1042,10 @@ public Builder setTextSnippet( */ public Builder mergeTextSnippet(com.google.cloud.automl.v1beta1.TextSnippet value) { if (textSnippetBuilder_ == null) { - if (payloadCase_ == 2 - && payload_ != com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance()) { - payload_ = - com.google.cloud.automl.v1beta1.TextSnippet.newBuilder( - (com.google.cloud.automl.v1beta1.TextSnippet) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 2 && + payload_ != com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance()) { + payload_ = com.google.cloud.automl.v1beta1.TextSnippet.newBuilder((com.google.cloud.automl.v1beta1.TextSnippet) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1190,8 +1060,6 @@ public Builder mergeTextSnippet(com.google.cloud.automl.v1beta1.TextSnippet valu return this; } /** - * - * *
      * Example text.
      * 
@@ -1215,8 +1083,6 @@ public Builder clearTextSnippet() { return this; } /** - * - * *
      * Example text.
      * 
@@ -1227,8 +1093,6 @@ public com.google.cloud.automl.v1beta1.TextSnippet.Builder getTextSnippetBuilder return getTextSnippetFieldBuilder().getBuilder(); } /** - * - * *
      * Example text.
      * 
@@ -1247,8 +1111,6 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuil } } /** - * - * *
      * Example text.
      * 
@@ -1256,44 +1118,32 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuil * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, - com.google.cloud.automl.v1beta1.TextSnippet.Builder, - com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> + com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> getTextSnippetFieldBuilder() { if (textSnippetBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance(); } - textSnippetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, - com.google.cloud.automl.v1beta1.TextSnippet.Builder, - com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( + textSnippetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( (com.google.cloud.automl.v1beta1.TextSnippet) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; - onChanged(); - ; + onChanged();; 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_; + 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; - * * @return Whether the document field is set. */ @java.lang.Override @@ -1301,14 +1151,11 @@ public boolean hasDocument() { return payloadCase_ == 4; } /** - * - * *
      * Example document.
      * 
* * .google.cloud.automl.v1beta1.Document document = 4; - * * @return The document. */ @java.lang.Override @@ -1326,8 +1173,6 @@ public com.google.cloud.automl.v1beta1.Document getDocument() { } } /** - * - * *
      * Example document.
      * 
@@ -1348,15 +1193,14 @@ public Builder setDocument(com.google.cloud.automl.v1beta1.Document value) { return this; } /** - * - * *
      * Example document.
      * 
* * .google.cloud.automl.v1beta1.Document document = 4; */ - public Builder setDocument(com.google.cloud.automl.v1beta1.Document.Builder builderForValue) { + public Builder setDocument( + com.google.cloud.automl.v1beta1.Document.Builder builderForValue) { if (documentBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -1367,8 +1211,6 @@ public Builder setDocument(com.google.cloud.automl.v1beta1.Document.Builder buil return this; } /** - * - * *
      * Example document.
      * 
@@ -1377,13 +1219,10 @@ public Builder setDocument(com.google.cloud.automl.v1beta1.Document.Builder buil */ 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(); + 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; } @@ -1398,8 +1237,6 @@ public Builder mergeDocument(com.google.cloud.automl.v1beta1.Document value) { return this; } /** - * - * *
      * Example document.
      * 
@@ -1423,8 +1260,6 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Example document.
      * 
@@ -1435,8 +1270,6 @@ public com.google.cloud.automl.v1beta1.Document.Builder getDocumentBuilder() { return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Example document.
      * 
@@ -1455,8 +1288,6 @@ public com.google.cloud.automl.v1beta1.DocumentOrBuilder getDocumentOrBuilder() } } /** - * - * *
      * Example document.
      * 
@@ -1464,44 +1295,32 @@ public com.google.cloud.automl.v1beta1.DocumentOrBuilder getDocumentOrBuilder() * .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> + 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>( + 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(); - ; + 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_; + 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; - * * @return Whether the row field is set. */ @java.lang.Override @@ -1509,14 +1328,11 @@ public boolean hasRow() { return payloadCase_ == 3; } /** - * - * *
      * Example relational table row.
      * 
* * .google.cloud.automl.v1beta1.Row row = 3; - * * @return The row. */ @java.lang.Override @@ -1534,8 +1350,6 @@ public com.google.cloud.automl.v1beta1.Row getRow() { } } /** - * - * *
      * Example relational table row.
      * 
@@ -1556,15 +1370,14 @@ public Builder setRow(com.google.cloud.automl.v1beta1.Row value) { return this; } /** - * - * *
      * Example relational table row.
      * 
* * .google.cloud.automl.v1beta1.Row row = 3; */ - public Builder setRow(com.google.cloud.automl.v1beta1.Row.Builder builderForValue) { + public Builder setRow( + com.google.cloud.automl.v1beta1.Row.Builder builderForValue) { if (rowBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -1575,8 +1388,6 @@ public Builder setRow(com.google.cloud.automl.v1beta1.Row.Builder builderForValu return this; } /** - * - * *
      * Example relational table row.
      * 
@@ -1585,13 +1396,10 @@ public Builder setRow(com.google.cloud.automl.v1beta1.Row.Builder builderForValu */ 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(); + 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; } @@ -1606,8 +1414,6 @@ public Builder mergeRow(com.google.cloud.automl.v1beta1.Row value) { return this; } /** - * - * *
      * Example relational table row.
      * 
@@ -1631,8 +1437,6 @@ public Builder clearRow() { return this; } /** - * - * *
      * Example relational table row.
      * 
@@ -1643,8 +1447,6 @@ public com.google.cloud.automl.v1beta1.Row.Builder getRowBuilder() { return getRowFieldBuilder().getBuilder(); } /** - * - * *
      * Example relational table row.
      * 
@@ -1663,8 +1465,6 @@ public com.google.cloud.automl.v1beta1.RowOrBuilder getRowOrBuilder() { } } /** - * - * *
      * Example relational table row.
      * 
@@ -1672,30 +1472,26 @@ public com.google.cloud.automl.v1beta1.RowOrBuilder getRowOrBuilder() { * .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> + 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()); + 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(); - ; + onChanged();; return rowBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1705,12 +1501,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExamplePayload) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExamplePayload) private static final com.google.cloud.automl.v1beta1.ExamplePayload DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExamplePayload(); } @@ -1719,16 +1515,16 @@ public static com.google.cloud.automl.v1beta1.ExamplePayload getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExamplePayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExamplePayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExamplePayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExamplePayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1743,4 +1539,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ExamplePayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java similarity index 78% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java index 98988792b..3d4949fad 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 ExamplePayloadOrBuilder - extends +public interface ExamplePayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExamplePayload) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; - * * @return Whether the image field is set. */ boolean hasImage(); /** - * - * *
    * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; - * * @return The image. */ com.google.cloud.automl.v1beta1.Image getImage(); /** - * - * *
    * Example image.
    * 
@@ -59,32 +35,24 @@ public interface ExamplePayloadOrBuilder com.google.cloud.automl.v1beta1.ImageOrBuilder getImageOrBuilder(); /** - * - * *
    * Example text.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; - * * @return Whether the textSnippet field is set. */ boolean hasTextSnippet(); /** - * - * *
    * Example text.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; - * * @return The textSnippet. */ com.google.cloud.automl.v1beta1.TextSnippet getTextSnippet(); /** - * - * *
    * Example text.
    * 
@@ -94,32 +62,24 @@ public interface ExamplePayloadOrBuilder com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuilder(); /** - * - * *
    * Example document.
    * 
* * .google.cloud.automl.v1beta1.Document document = 4; - * * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
    * Example document.
    * 
* * .google.cloud.automl.v1beta1.Document document = 4; - * * @return The document. */ com.google.cloud.automl.v1beta1.Document getDocument(); /** - * - * *
    * Example document.
    * 
@@ -129,32 +89,24 @@ public interface ExamplePayloadOrBuilder com.google.cloud.automl.v1beta1.DocumentOrBuilder getDocumentOrBuilder(); /** - * - * *
    * Example relational table row.
    * 
* * .google.cloud.automl.v1beta1.Row row = 3; - * * @return Whether the row field is set. */ boolean hasRow(); /** - * - * *
    * Example relational table row.
    * 
* * .google.cloud.automl.v1beta1.Row row = 3; - * * @return The row. */ com.google.cloud.automl.v1beta1.Row getRow(); /** - * - * *
    * Example relational table row.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java index 42632a85d..10badf214 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use ExportDataOperationMetadata.newBuilder() to construct. private ExportDataOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExportDataOperationMetadata() {} + private ExportDataOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportDataOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportDataOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,184 +52,154 @@ private ExportDataOperationMetadata( 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; + case 10: { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.class, com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder.class); } - public interface ExportDataOutputInfoOrBuilder - extends + 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; - * * @return Whether the gcsOutputDirectory field is set. */ boolean hasGcsOutputDirectory(); /** - * - * *
      * The full path of the Google Cloud Storage directory created, into which
      * the exported data is written.
      * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ 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; - * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + 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; - * * @return Whether the bigqueryOutputDataset field is set. */ boolean hasBigqueryOutputDataset(); /** - * - * *
      * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
      * format, into which the exported data is written.
      * 
* * string bigquery_output_dataset = 2; - * * @return The bigqueryOutputDataset. */ 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; - * * @return The bytes for bigqueryOutputDataset. */ - com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); + com.google.protobuf.ByteString + getBigqueryOutputDatasetBytes(); - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo - .OutputLocationCase - getOutputLocationCase(); + 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} + * Protobuf type {@code google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo} */ - public static final class ExportDataOutputInfo extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + private static final long serialVersionUID = 0L; // Use ExportDataOutputInfo.newBuilder() to construct. private ExportDataOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExportDataOutputInfo() {} + private ExportDataOutputInfo() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportDataOutputInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportDataOutputInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -264,68 +218,59 @@ private ExportDataOutputInfo( 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; + 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); + 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; + 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 + 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); + 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, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_OUTPUT_DIRECTORY(1), BIGQUERY_OUTPUT_DATASET(2), OUTPUTLOCATION_NOT_SET(0); private final int value; - private OutputLocationCase(int value) { this.value = value; } @@ -341,52 +286,43 @@ public static OutputLocationCase valueOf(int 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; + 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 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; - * * @return Whether the gcsOutputDirectory field is set. */ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** - * - * *
      * The full path of the Google Cloud Storage directory created, into which
      * the exported data is written.
      * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ public java.lang.String getGcsOutputDirectory() { @@ -397,7 +333,8 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -406,25 +343,24 @@ public 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; - * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -436,30 +372,24 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { 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; - * * @return Whether the bigqueryOutputDataset field is set. */ public boolean hasBigqueryOutputDataset() { return outputLocationCase_ == 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; - * * @return The bigqueryOutputDataset. */ public java.lang.String getBigqueryOutputDataset() { @@ -470,7 +400,8 @@ public java.lang.String getBigqueryOutputDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 2) { outputLocation_ = s; @@ -479,25 +410,24 @@ public 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; - * * @return The bytes for bigqueryOutputDataset. */ - public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 2) { outputLocation_ = b; } @@ -508,7 +438,6 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -520,7 +449,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputLocationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocation_); } @@ -550,23 +480,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo)) { + 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; + 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; + if (!getGcsOutputDirectory() + .equals(other.getGcsOutputDirectory())) return false; break; case 2: - if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false; + if (!getBigqueryOutputDataset() + .equals(other.getBigqueryOutputDataset())) return false; break; case 0: default: @@ -599,102 +528,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + 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 { + 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 { + 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 { + 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 { + 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) + 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 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) + 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 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) + 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); + 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo - prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -704,54 +619,46 @@ protected Builder newBuilderForType( 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} + * Protobuf type {@code google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -761,23 +668,19 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo build() { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -785,11 +688,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @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); + 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_; } @@ -805,75 +705,62 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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; - } + 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(); @@ -890,14 +777,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -906,12 +790,12 @@ public Builder mergeFrom( } return this; } - private int outputLocationCase_ = 0; private java.lang.Object outputLocation_; - - public OutputLocationCase getOutputLocationCase() { - return OutputLocationCase.forNumber(outputLocationCase_); + public OutputLocationCase + getOutputLocationCase() { + return OutputLocationCase.forNumber( + outputLocationCase_); } public Builder clearOutputLocation() { @@ -921,16 +805,14 @@ public Builder clearOutputLocation() { return this; } + /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; - * * @return Whether the gcsOutputDirectory field is set. */ @java.lang.Override @@ -938,15 +820,12 @@ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; - * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -956,7 +835,8 @@ public java.lang.String getGcsOutputDirectory() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -967,26 +847,25 @@ public 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; - * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -996,37 +875,32 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; - * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory(java.lang.String value) { + public Builder setGcsOutputDirectory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 1; + 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; - * * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { @@ -1038,23 +912,21 @@ public Builder clearGcsOutputDirectory() { return this; } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; - * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputLocationCase_ = 1; outputLocation_ = value; onChanged(); @@ -1062,15 +934,12 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) } /** - * - * *
        * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
        * format, into which the exported data is written.
        * 
* * string bigquery_output_dataset = 2; - * * @return Whether the bigqueryOutputDataset field is set. */ @java.lang.Override @@ -1078,15 +947,12 @@ public boolean hasBigqueryOutputDataset() { return outputLocationCase_ == 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; - * * @return The bigqueryOutputDataset. */ @java.lang.Override @@ -1096,7 +962,8 @@ public java.lang.String getBigqueryOutputDataset() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 2) { outputLocation_ = s; @@ -1107,26 +974,25 @@ public 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; - * * @return The bytes for bigqueryOutputDataset. */ @java.lang.Override - public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputLocationCase_ == 2) { outputLocation_ = b; } @@ -1136,37 +1002,32 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } } /** - * - * *
        * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
        * format, into which the exported data is written.
        * 
* * string bigquery_output_dataset = 2; - * * @param value The bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDataset(java.lang.String value) { + public Builder setBigqueryOutputDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 2; + 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; - * * @return This builder for chaining. */ public Builder clearBigqueryOutputDataset() { @@ -1178,29 +1039,26 @@ public Builder clearBigqueryOutputDataset() { 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; - * * @param value The bytes for bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setBigqueryOutputDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { @@ -1213,34 +1071,30 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo(); } - public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo - getDefaultInstance() { + 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); - } - }; + 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; @@ -1252,26 +1106,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo - getDefaultInstanceForType() { + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -1279,45 +1127,30 @@ 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; - * - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo - getOutputInfo() { - return outputInfo_ == null - ? com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo - .getDefaultInstance() - : outputInfo_; + 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; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder - getOutputInfoOrBuilder() { + 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; @@ -1329,7 +1162,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputInfo_ != null) { output.writeMessage(1, getOutputInfo()); } @@ -1343,7 +1177,8 @@ public int getSerializedSize() { size = 0; if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1353,17 +1188,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getOutputInfo() + .equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1386,127 +1221,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ExportDataOperationMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.class, com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.newBuilder() @@ -1514,15 +1339,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1536,9 +1362,9 @@ public Builder clear() { } @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; + 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 @@ -1557,8 +1383,7 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata result = new com.google.cloud.automl.v1beta1.ExportDataOperationMetadata(this); if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { @@ -1572,39 +1397,38 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ExportDataOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1612,8 +1436,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance()) return this; if (other.hasOutputInfo()) { mergeOutputInfo(other.getOutputInfo()); } @@ -1636,8 +1459,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1647,68 +1469,43 @@ public Builder mergeFrom( return this; } - private com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo - outputInfo_; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; * @return Whether the outputInfo field is set. */ 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; - * - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; * @return The outputInfo. */ - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo - getOutputInfo() { + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null - ? com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo - .getDefaultInstance() - : outputInfo_; + 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; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ - public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo value) { + public Builder setOutputInfo(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1722,19 +1519,14 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1745,25 +1537,17 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ - public Builder mergeOutputInfo( - com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo value) { + 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(); + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); } else { outputInfo_ = value; } @@ -1775,15 +1559,11 @@ public Builder mergeOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1797,78 +1577,55 @@ public Builder clearOutputInfo() { return this; } /** - * - * *
      * Output only. Information further describing this export data's output.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder - getOutputInfoBuilder() { - + 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; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; */ - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder - getOutputInfoOrBuilder() { + 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_; + 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; - * + * .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> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1878,12 +1635,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1892,16 +1649,16 @@ public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getDef 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); - } - }; + 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; @@ -1916,4 +1673,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java new file mode 100644 index 000000000..5343daaba --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java @@ -0,0 +1,36 @@ +// 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; + * @return Whether the outputInfo field is set. + */ + boolean hasOutputInfo(); + /** + *
+   * Output only. Information further describing this export data's output.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * @return The outputInfo. + */ + 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java similarity index 62% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java index 12f87fcee..2b7428fe9 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ExportDataRequest} */ -public final class ExportDataRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportDataRequest) ExportDataRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportDataRequest.newBuilder() to construct. private ExportDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportDataRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportDataRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,76 +53,65 @@ private ExportDataRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 26: { + com.google.cloud.automl.v1beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.automl.v1beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.automl.v1beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + outputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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_ExportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ExportDataRequest.class, - com.google.cloud.automl.v1beta1.ExportDataRequest.Builder.class); + com.google.cloud.automl.v1beta1.ExportDataRequest.class, com.google.cloud.automl.v1beta1.ExportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the dataset.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -148,31 +120,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 dataset.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -183,16 +153,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1beta1.OutputConfig outputConfig_; /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -200,34 +165,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The desired output location.
    * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -235,7 +189,6 @@ public com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -267,7 +221,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -277,18 +232,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportDataRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ExportDataRequest other = - (com.google.cloud.automl.v1beta1.ExportDataRequest) obj; + com.google.cloud.automl.v1beta1.ExportDataRequest other = (com.google.cloud.automl.v1beta1.ExportDataRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -313,126 +269,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ExportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ExportDataRequest 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.ExportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ExportDataRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ExportDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ExportDataRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ExportDataRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportDataRequest) com.google.cloud.automl.v1beta1.ExportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ExportDataRequest.class, - com.google.cloud.automl.v1beta1.ExportDataRequest.Builder.class); + com.google.cloud.automl.v1beta1.ExportDataRequest.class, com.google.cloud.automl.v1beta1.ExportDataRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ExportDataRequest.newBuilder() @@ -440,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -464,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override @@ -485,8 +433,7 @@ public com.google.cloud.automl.v1beta1.ExportDataRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ExportDataRequest buildPartial() { - com.google.cloud.automl.v1beta1.ExportDataRequest result = - new com.google.cloud.automl.v1beta1.ExportDataRequest(this); + com.google.cloud.automl.v1beta1.ExportDataRequest result = new com.google.cloud.automl.v1beta1.ExportDataRequest(this); result.name_ = name_; if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; @@ -501,39 +448,38 @@ public com.google.cloud.automl.v1beta1.ExportDataRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ExportDataRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.ExportDataRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ExportDataRequest)other); } else { super.mergeFrom(other); return this; @@ -541,8 +487,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportDataRequest other) { - if (other == com.google.cloud.automl.v1beta1.ExportDataRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ExportDataRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -569,8 +514,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ExportDataRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ExportDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -582,22 +526,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the dataset.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -606,23 +546,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the dataset.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -630,67 +567,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the dataset.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -698,58 +622,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.OutputConfig, - com.google.cloud.automl.v1beta1.OutputConfig.Builder, - com.google.cloud.automl.v1beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.automl.v1beta1.OutputConfig, com.google.cloud.automl.v1beta1.OutputConfig.Builder, com.google.cloud.automl.v1beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.automl.v1beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -765,15 +670,11 @@ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.OutputConfig valu return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.automl.v1beta1.OutputConfig.Builder builderForValue) { @@ -787,23 +688,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.automl.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.automl.v1beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -815,15 +710,11 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1beta1.OutputConfig va return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -837,71 +728,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The desired output location.
      * 
* - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.OutputConfig, - com.google.cloud.automl.v1beta1.OutputConfig.Builder, - com.google.cloud.automl.v1beta1.OutputConfigOrBuilder> + com.google.cloud.automl.v1beta1.OutputConfig, com.google.cloud.automl.v1beta1.OutputConfig.Builder, com.google.cloud.automl.v1beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.OutputConfig, - com.google.cloud.automl.v1beta1.OutputConfig.Builder, - com.google.cloud.automl.v1beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.OutputConfig, com.google.cloud.automl.v1beta1.OutputConfig.Builder, com.google.cloud.automl.v1beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -911,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportDataRequest) private static final com.google.cloud.automl.v1beta1.ExportDataRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportDataRequest(); } @@ -925,16 +800,16 @@ public static com.google.cloud.automl.v1beta1.ExportDataRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportDataRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDataRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ExportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java new file mode 100644 index 000000000..6ca186555 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface ExportDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the dataset.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the dataset.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The desired output location.
+   * 
+ * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + *
+   * Required. The desired output location.
+   * 
+ * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The outputConfig. + */ + com.google.cloud.automl.v1beta1.OutputConfig getOutputConfig(); + /** + *
+   * Required. The desired output location.
+   * 
+ * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java similarity index 55% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java index 2dc361898..9df84ccdc 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java @@ -1,57 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use ExportEvaluatedExamplesOperationMetadata.newBuilder() to construct. - private ExportEvaluatedExamplesOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ExportEvaluatedExamplesOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExportEvaluatedExamplesOperationMetadata() {} + private ExportEvaluatedExamplesOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportEvaluatedExamplesOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportEvaluatedExamplesOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,131 +52,111 @@ private ExportEvaluatedExamplesOperationMetadata( 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; + case 18: { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.Builder subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.class, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder.class); } - public interface ExportEvaluatedExamplesOutputInfoOrBuilder - extends + 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; - * * @return The bigqueryOutputDataset. */ 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; - * * @return The bytes for bigqueryOutputDataset. */ - com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); + 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} + * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo} */ - public static final class ExportEvaluatedExamplesOutputInfo - extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + private static final long serialVersionUID = 0L; // Use ExportEvaluatedExamplesOutputInfo.newBuilder() to construct. - private ExportEvaluatedExamplesOutputInfo( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ExportEvaluatedExamplesOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportEvaluatedExamplesOutputInfo() { bigqueryOutputDataset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportEvaluatedExamplesOutputInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportEvaluatedExamplesOutputInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -213,61 +175,53 @@ private ExportEvaluatedExamplesOutputInfo( case 0: done = true; break; - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - bigqueryOutputDataset_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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; - * * @return The bigqueryOutputDataset. */ @java.lang.Override @@ -276,30 +230,30 @@ public java.lang.String getBigqueryOutputDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for bigqueryOutputDataset. */ @java.lang.Override - public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bigqueryOutputDataset_ = b; return b; } else { @@ -308,7 +262,6 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bigqueryOutputDataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bigqueryOutputDataset_); } @@ -344,22 +298,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo)) { + 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; + 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; } @@ -378,115 +325,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + 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 { + 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 { + 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 { + 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 { + 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) + 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 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) + 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 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) + 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); + 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo - prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -496,55 +416,46 @@ protected Builder newBuilderForType( 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} + * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -554,26 +465,19 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo build() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -581,14 +485,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @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); + 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; @@ -598,60 +496,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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(); @@ -671,16 +555,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -692,21 +571,19 @@ public Builder mergeFrom( 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; - * * @return The bigqueryOutputDataset. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigqueryOutputDataset_ = s; return s; @@ -715,22 +592,21 @@ public 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; - * * @return The bytes for bigqueryOutputDataset. */ - public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bigqueryOutputDataset_ = b; return b; } else { @@ -738,69 +614,61 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } } /** - * - * *
        * 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; - * * @param value The bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDataset(java.lang.String value) { + public Builder setBigqueryOutputDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setBigqueryOutputDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bigqueryOutputDataset_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -813,36 +681,30 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo(); } - public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo - getDefaultInstance() { + 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); - } - }; + 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; @@ -854,29 +716,21 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo - getDefaultInstanceForType() { + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -884,49 +738,32 @@ 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; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo - getOutputInfo() { - return outputInfo_ == null - ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo.getDefaultInstance() - : outputInfo_; + 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; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfoOrBuilder - getOutputInfoOrBuilder() { + 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; @@ -938,7 +775,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputInfo_ != null) { output.writeMessage(2, getOutputInfo()); } @@ -952,7 +790,8 @@ public int getSerializedSize() { size = 0; if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -962,18 +801,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata)) { + 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; + 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 (!getOutputInfo() + .equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -996,146 +834,134 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.class, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1149,22 +975,19 @@ public Builder clear() { } @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; + 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(); + 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(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1173,8 +996,7 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata @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); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata result = new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata(this); if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { @@ -1188,52 +1010,46 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -1256,9 +1072,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1268,76 +1082,46 @@ public Builder mergeFrom( return this; } - private com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo - outputInfo_; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ 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; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; * @return The outputInfo. */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo - getOutputInfo() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null - ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo.getDefaultInstance() - : outputInfo_; + 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; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; */ - public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo - value) { + public Builder setOutputInfo(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1351,21 +1135,15 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing the output of this evaluated
      * examples export.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; */ public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.Builder builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1376,28 +1154,18 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing the output of this evaluated
      * examples export.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; */ - public Builder mergeOutputInfo( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo - value) { + 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(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); } else { outputInfo_ = value; } @@ -1409,16 +1177,12 @@ public Builder mergeOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing the output of this evaluated
      * examples export.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1432,85 +1196,58 @@ public Builder clearOutputInfo() { return this; } /** - * - * *
      * Output only. Information further describing the output of this evaluated
      * examples export.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfo.Builder - getOutputInfoBuilder() { - + 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; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .ExportEvaluatedExamplesOutputInfoOrBuilder - getOutputInfoOrBuilder() { + 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_; + 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; - * + * .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> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1520,33 +1257,30 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata(); } - public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - getDefaultInstance() { + 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); - } - }; + 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; @@ -1558,8 +1292,9 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java new file mode 100644 index 000000000..b82ed95d1 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java @@ -0,0 +1,39 @@ +// 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; + * @return Whether the outputInfo field is set. + */ + boolean hasOutputInfo(); + /** + *
+   * Output only. Information further describing the output of this evaluated
+   * examples export.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * @return The outputInfo. + */ + 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java similarity index 68% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java index 905a905e8..efceeb9fa 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.
@@ -51,31 +34,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig}
  */
-public final class ExportEvaluatedExamplesOutputConfig
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+private static final long serialVersionUID = 0L;
   // Use ExportEvaluatedExamplesOutputConfig.newBuilder() to construct.
-  private ExportEvaluatedExamplesOutputConfig(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ExportEvaluatedExamplesOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ExportEvaluatedExamplesOutputConfig() {}
+  private ExportEvaluatedExamplesOutputConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExportEvaluatedExamplesOutputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ExportEvaluatedExamplesOutputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -94,71 +76,60 @@ private ExportEvaluatedExamplesOutputConfig(
           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;
+          case 18: {
+            com.google.cloud.automl.v1beta1.BigQueryDestination.Builder subBuilder = null;
+            if (destinationCase_ == 2) {
+              subBuilder = ((com.google.cloud.automl.v1beta1.BigQueryDestination) destination_).toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      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;
+  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
+    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);
+            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,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     BIGQUERY_DESTINATION(2),
     DESTINATION_NOT_SET(0);
     private final int value;
-
     private DestinationCase(int value) {
       this.value = value;
     }
@@ -174,34 +145,29 @@ public static DestinationCase valueOf(int value) {
 
     public static DestinationCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return BIGQUERY_DESTINATION;
-        case 0:
-          return DESTINATION_NOT_SET;
-        default:
-          return null;
+        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 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; - * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -209,26 +175,21 @@ 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; - * * @return The bigqueryDestination. */ @java.lang.Override 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } /** - * - * *
    * The BigQuery location where the output is to be written to.
    * 
@@ -236,16 +197,14 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { + 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -271,9 +231,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,18 +242,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + if (!getBigqueryDestination() + .equals(other.getBigqueryDestination())) return false; break; case 0: default: @@ -324,105 +283,96 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -453,40 +403,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.class, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.newBuilder()
+    // Construct using com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -496,16 +444,14 @@ public Builder clear() {
     }
 
     @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;
+    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();
+    public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getDefaultInstanceForType() {
+      return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -519,8 +465,7 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig build
 
     @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);
+      com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig result = new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig(this);
       if (destinationCase_ == 2) {
         if (bigqueryDestinationBuilder_ == null) {
           result.destination_ = destination_;
@@ -537,61 +482,54 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig build
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        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;
+    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;
-          }
+        case BIGQUERY_DESTINATION: {
+          mergeBigqueryDestination(other.getBigqueryDestination());
+          break;
+        }
+        case DESTINATION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -612,9 +550,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -623,12 +559,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-
-    public DestinationCase getDestinationCase() {
-      return DestinationCase.forNumber(destinationCase_);
+    public DestinationCase
+        getDestinationCase() {
+      return DestinationCase.forNumber(
+          destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -638,20 +574,15 @@ public Builder clearDestination() {
       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_;
+        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; - * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -659,14 +590,11 @@ 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; - * * @return The bigqueryDestination. */ @java.lang.Override @@ -684,16 +612,13 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio } } /** - * - * *
      * 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) { + public Builder setBigqueryDestination(com.google.cloud.automl.v1beta1.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -707,8 +632,6 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -727,25 +650,18 @@ public Builder setBigqueryDestination( 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) { + 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(); + 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; } @@ -760,8 +676,6 @@ public Builder mergeBigqueryDestination( return this; } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -785,21 +699,16 @@ public Builder clearBigqueryDestination() { 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() { + public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder getBigqueryDestinationBuilder() { return getBigqueryDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -807,8 +716,7 @@ public Builder clearBigqueryDestination() { * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { return bigqueryDestinationBuilder_.getMessageOrBuilder(); } else { @@ -819,8 +727,6 @@ public Builder clearBigqueryDestination() { } } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -828,32 +734,26 @@ public Builder clearBigqueryDestination() { * .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> + 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>( + 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(); - ; + onChanged();; return bigqueryDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -863,32 +763,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -900,8 +798,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java similarity index 62% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java index 0a514fbd4..32ca341a9 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** - * - * *
    * The BigQuery location where the output is to be written to.
    * 
* * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; - * * @return The bigqueryDestination. */ com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination(); /** - * - * *
    * The BigQuery location where the output is to be written to.
    * 
@@ -58,6 +34,5 @@ public interface ExportEvaluatedExamplesOutputConfigOrBuilder */ com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.DestinationCase - getDestinationCase(); + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.DestinationCase getDestinationCase(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java similarity index 59% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java index 9ba6fefdb..a54ee6198 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use ExportEvaluatedExamplesRequest.newBuilder() to construct. - private ExportEvaluatedExamplesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ExportEvaluatedExamplesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportEvaluatedExamplesRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportEvaluatedExamplesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportEvaluatedExamplesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,79 +53,66 @@ private ExportEvaluatedExamplesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 26: { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - 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; + outputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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; + 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 + 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); + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -152,32 +121,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -188,16 +155,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -205,43 +167,30 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location and configuration.
    * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.getDefaultInstance() - : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -273,7 +223,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,18 +234,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest other = (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -319,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.class, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.newBuilder() @@ -447,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -471,14 +414,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.getDefaultInstance(); } @@ -493,8 +435,7 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest build() { @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); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest result = new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest(this); result.name_ = name_; if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; @@ -509,39 +450,38 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest)other); } else { super.mergeFrom(other); return this; @@ -549,9 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest other) { - if (other - == com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -578,9 +516,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -592,23 +528,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the model whose evaluated examples are to
      * be exported.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -617,24 +549,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the model whose evaluated examples are to
      * be exported.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -642,70 +571,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the model whose evaluated examples are to
      * be exported.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -713,62 +629,41 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig - .getDefaultInstance() - : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOutputConfig( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig value) { + public Builder setOutputConfig(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig value) { if (outputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -782,19 +677,14 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); onChanged(); @@ -805,25 +695,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig value) { + 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(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -835,15 +717,11 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -857,74 +735,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder - getOutputConfigBuilder() { - + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder - getOutputConfigOrBuilder() { + 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig, - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder, - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -934,32 +793,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -971,8 +828,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java new file mode 100644 index 000000000..8f769b39a --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java @@ -0,0 +1,58 @@ +// 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the model whose evaluated examples are to
+   * be exported.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The outputConfig. + */ + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig(); + /** + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java similarity index 60% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java index 095c20e09..c82a5f74b 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use ExportModelOperationMetadata.newBuilder() to construct. private ExportModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExportModelOperationMetadata() {} + private ExportModelOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,129 +52,111 @@ private ExportModelOperationMetadata( 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; + case 18: { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.class, com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder.class); } - public interface ExportModelOutputInfoOrBuilder - extends + 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; - * * @return The gcsOutputDirectory. */ 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; - * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + 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} + * Protobuf type {@code google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo} */ - public static final class ExportModelOutputInfo extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportModelOutputInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportModelOutputInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -209,61 +175,53 @@ private ExportModelOutputInfo( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - gcsOutputDirectory_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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; - * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -272,30 +230,30 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsOutputDirectory_ = b; return b; } else { @@ -304,7 +262,6 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsOutputDirectory_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsOutputDirectory_); } @@ -340,17 +298,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo)) { + 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; + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo other = (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) obj; - if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; + if (!getGcsOutputDirectory() + .equals(other.getGcsOutputDirectory())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -369,102 +325,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + 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 { + 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 { + 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 { + 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 { + 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) + 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 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) + 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 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) + 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); + 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo - prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -474,55 +416,46 @@ protected Builder newBuilderForType( 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} + * Protobuf type {@code google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -532,23 +465,19 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo build() { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -556,11 +485,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @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); + 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; @@ -570,57 +496,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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(); @@ -640,14 +555,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -659,21 +571,19 @@ public Builder mergeFrom( 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; - * * @return The gcsOutputDirectory. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsOutputDirectory_ = s; return s; @@ -682,22 +592,21 @@ public 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; - * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsOutputDirectory_ = b; return b; } else { @@ -705,69 +614,61 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } } /** - * - * *
        * The full path of the Google Cloud Storage directory created, into which
        * the model will be exported.
        * 
* * string gcs_output_directory = 1; - * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory(java.lang.String value) { + public Builder setGcsOutputDirectory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsOutputDirectory_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -780,34 +681,30 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo(); } - public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo - getDefaultInstance() { + 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); - } - }; + 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; @@ -819,27 +716,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo - getDefaultInstanceForType() { + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -847,47 +738,32 @@ 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; - * - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo - getOutputInfo() { - return outputInfo_ == null - ? com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo - .getDefaultInstance() - : outputInfo_; + 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; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder - getOutputInfoOrBuilder() { + 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; @@ -899,7 +775,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputInfo_ != null) { output.writeMessage(2, getOutputInfo()); } @@ -913,7 +790,8 @@ public int getSerializedSize() { size = 0; if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -923,17 +801,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getOutputInfo() + .equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -956,127 +834,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ExportModelOperationMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.class, com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.newBuilder() @@ -1084,15 +952,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1106,14 +975,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); } @@ -1128,8 +996,7 @@ public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata result = new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata(this); if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { @@ -1143,39 +1010,38 @@ public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ExportModelOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1183,9 +1049,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance()) return this; if (other.hasOutputInfo()) { mergeOutputInfo(other.getOutputInfo()); } @@ -1208,8 +1072,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1219,71 +1082,46 @@ public Builder mergeFrom( return this; } - private com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo - outputInfo_; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; * @return Whether the outputInfo field is set. */ 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; - * - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; * @return The outputInfo. */ - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo - getOutputInfo() { + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null - ? com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo - .getDefaultInstance() - : outputInfo_; + 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; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ - public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo value) { + public Builder setOutputInfo(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1297,20 +1135,15 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1321,26 +1154,18 @@ public Builder setOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ - public Builder mergeOutputInfo( - com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo value) { + 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(); + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); } else { outputInfo_ = value; } @@ -1352,16 +1177,12 @@ public Builder mergeOutputInfo( return this; } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1375,83 +1196,58 @@ public Builder clearOutputInfo() { return this; } /** - * - * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo - .Builder - getOutputInfoBuilder() { - + 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; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; */ - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata - .ExportModelOutputInfoOrBuilder - getOutputInfoOrBuilder() { + 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_; + 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; - * + * .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> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1461,13 +1257,12 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.ExportModelOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata(); } @@ -1476,16 +1271,16 @@ public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getDe 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); - } - }; + 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; @@ -1500,4 +1295,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..0361fb0d2 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java @@ -0,0 +1,39 @@ +// 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; + * @return Whether the outputInfo field is set. + */ + boolean hasOutputInfo(); + /** + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * @return The outputInfo. + */ + 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java similarity index 62% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java index e1ae1721f..76ce80408 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.ExportModelRequest}
  */
-public final class ExportModelRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExportModelRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ExportModelRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,77 +55,65 @@ private ExportModelRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
             }
-          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;
+            outputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.ModelExportOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            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);
+      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;
+  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
+    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);
+            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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -151,31 +122,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -186,16 +155,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -203,43 +167,30 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location and configuration.
    * 
* - * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance() - : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -271,7 +223,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,18 +234,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ExportModelRequest other = (com.google.cloud.automl.v1beta1.ExportModelRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -317,103 +271,96 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -422,23 +369,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ExportModelRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.ExportModelRequest.class, com.google.cloud.automl.v1beta1.ExportModelRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.ExportModelRequest.newBuilder()
@@ -446,15 +391,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -470,9 +416,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -491,8 +437,7 @@ public com.google.cloud.automl.v1beta1.ExportModelRequest build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.ExportModelRequest result = new com.google.cloud.automl.v1beta1.ExportModelRequest(this);
       result.name_ = name_;
       if (outputConfigBuilder_ == null) {
         result.outputConfig_ = outputConfig_;
@@ -507,39 +452,38 @@ public com.google.cloud.automl.v1beta1.ExportModelRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.ExportModelRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -547,8 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportModelRequest other) {
-      if (other == com.google.cloud.automl.v1beta1.ExportModelRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.automl.v1beta1.ExportModelRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -575,8 +518,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1beta1.ExportModelRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1beta1.ExportModelRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -588,22 +530,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the model to export.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -612,23 +550,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the model to export.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -636,67 +571,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the model to export.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the model to export.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the model to export.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -704,58 +626,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance() - : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.ModelExportOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -771,15 +674,11 @@ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.ModelExportOutput return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder builderForValue) { @@ -793,24 +692,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.automl.v1beta1.ModelExportOutputConfig value) { + 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(); + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -822,15 +714,11 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -844,73 +732,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location and configuration.
      * 
* - * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder - getOutputConfigBuilder() { - + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder - getOutputConfigOrBuilder() { + 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ModelExportOutputConfig, - com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder, - com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -920,12 +790,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -934,16 +804,16 @@ public static com.google.cloud.automl.v1beta1.ExportModelRequest getDefaultInsta 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); - } - }; + 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; @@ -958,4 +828,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ExportModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java new file mode 100644 index 000000000..9f127c221 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java @@ -0,0 +1,56 @@ +// 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the model to export.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The outputConfig. + */ + com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig(); + /** + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java index c436fe1fc..bf7ecfec9 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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(); @@ -44,15 +26,16 @@ private Float64Stats() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Float64Stats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Float64Stats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,66 +55,60 @@ private Float64Stats( case 0: done = true; break; - case 9: - { - mean_ = input.readDouble(); - break; + case 9: { + + mean_ = input.readDouble(); + break; + } + case 17: { + + standardDeviation_ = input.readDouble(); + break; + } + case 25: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + quantiles_ = newDoubleList(); + mutable_bitField0_ |= 0x00000001; } - case 17: - { - standardDeviation_ = input.readDouble(); - break; + quantiles_.addDouble(input.readDouble()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + quantiles_ = newDoubleList(); + mutable_bitField0_ |= 0x00000001; } - case 25: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - quantiles_ = newDoubleList(); - mutable_bitField0_ |= 0x00000001; - } + while (input.getBytesUntilLimit() > 0) { quantiles_.addDouble(input.readDouble()); - break; } - case 26: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - quantiles_ = newDoubleList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - quantiles_.addDouble(input.readDouble()); - } - input.popLimit(limit); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - histogramBuckets_ = - new java.util.ArrayList< - com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket>(); - mutable_bitField0_ |= 0x00000002; - } - histogramBuckets_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.parser(), - extensionRegistry)); - break; + input.popLimit(limit); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + histogramBuckets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { quantiles_.makeImmutable(); // C @@ -143,100 +120,86 @@ private Float64Stats( 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; + 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 + 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); + com.google.cloud.automl.v1beta1.Float64Stats.class, com.google.cloud.automl.v1beta1.Float64Stats.Builder.class); } - public interface HistogramBucketOrBuilder - extends + 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; - * * @return The min. */ double getMin(); /** - * - * *
      * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
      * which case it's inclusive.
      * 
* * double max = 2; - * * @return The max. */ double getMax(); /** - * - * *
      * The number of data values that are in the bucket, i.e. are between
      * min and max values.
      * 
* * int64 count = 3; - * * @return The count. */ 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 + 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; + private static final long serialVersionUID = 0L; // Use HistogramBucket.newBuilder() to construct. private HistogramBucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HistogramBucket() {} + private HistogramBucket() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HistogramBucket(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HistogramBucket( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -255,66 +218,61 @@ private HistogramBucket( 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; + 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); + 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; + 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 + 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); + 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; - * * @return The min. */ @java.lang.Override @@ -325,15 +283,12 @@ public double getMin() { 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; - * * @return The max. */ @java.lang.Override @@ -344,15 +299,12 @@ public double getMax() { 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; - * * @return The count. */ @java.lang.Override @@ -361,7 +313,6 @@ public long getCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,7 +324,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (min_ != 0D) { output.writeDouble(1, min_); } @@ -393,13 +345,16 @@ public int getSerializedSize() { size = 0; if (min_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, min_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, min_); } if (max_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, max_); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,19 +364,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != 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; + != java.lang.Double.doubleToLongBits( + other.getMax())) return false; + if (getCount() + != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -434,109 +391,101 @@ public int hashCode() { 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 = (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 = (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 = (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 { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -546,32 +495,27 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() @@ -579,15 +523,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -601,14 +546,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.getDefaultInstance(); } @@ -623,8 +567,7 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket build() { @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); + 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_; @@ -636,41 +579,38 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket)other); } else { super.mergeFrom(other); return this; @@ -678,9 +618,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } 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 == com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.getDefaultInstance()) return this; if (other.getMin() != 0D) { setMin(other.getMin()); } @@ -709,9 +647,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -721,16 +657,13 @@ public Builder mergeFrom( return this; } - private double min_; + private double min_ ; /** - * - * *
        * The minimum value of the bucket, inclusive.
        * 
* * double min = 1; - * * @return The min. */ @java.lang.Override @@ -738,52 +671,43 @@ public double getMin() { return min_; } /** - * - * *
        * The minimum value of the bucket, inclusive.
        * 
* * double min = 1; - * * @param value The min to set. * @return This builder for chaining. */ public Builder setMin(double value) { - + min_ = value; onChanged(); return this; } /** - * - * *
        * The minimum value of the bucket, inclusive.
        * 
* * double min = 1; - * * @return This builder for chaining. */ public Builder clearMin() { - + min_ = 0D; onChanged(); return this; } - private double max_; + private double max_ ; /** - * - * *
        * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
        * which case it's inclusive.
        * 
* * double max = 2; - * * @return The max. */ @java.lang.Override @@ -791,54 +715,45 @@ public double getMax() { return max_; } /** - * - * *
        * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
        * which case it's inclusive.
        * 
* * double max = 2; - * * @param value The max to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearMax() { - + max_ = 0D; onChanged(); return this; } - private long count_; + private long count_ ; /** - * - * *
        * The number of data values that are in the bucket, i.e. are between
        * min and max values.
        * 
* * int64 count = 3; - * * @return The count. */ @java.lang.Override @@ -846,43 +761,36 @@ 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; - * * @param value The count to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -895,32 +803,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -932,23 +838,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int MEAN_FIELD_NUMBER = 1; private double mean_; /** - * - * *
    * The mean of the series.
    * 
* * double mean = 1; - * * @return The mean. */ @java.lang.Override @@ -959,14 +862,11 @@ public double getMean() { public static final int STANDARD_DEVIATION_FIELD_NUMBER = 2; private double standardDeviation_; /** - * - * *
    * The standard deviation of the series.
    * 
* * double standard_deviation = 2; - * * @return The standardDeviation. */ @java.lang.Override @@ -977,8 +877,6 @@ public double getStandardDeviation() { 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
@@ -987,16 +885,14 @@ public double getStandardDeviation() {
    * 
* * repeated double quantiles = 3; - * * @return A list containing the quantiles. */ @java.lang.Override - public java.util.List getQuantilesList() { + 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
@@ -1005,15 +901,12 @@ public java.util.List getQuantilesList() {
    * 
* * repeated double quantiles = 3; - * * @return The count of quantiles. */ 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
@@ -1022,22 +915,17 @@ public int getQuantilesCount() {
    * 
* * repeated double quantiles = 3; - * * @param index The index of the element to return. * @return The quantiles at the given index. */ 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_; + 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
@@ -1046,17 +934,13 @@ public double getQuantiles(int index) {
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ @java.lang.Override - public java.util.List - getHistogramBucketsList() { + 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
@@ -1065,18 +949,14 @@ public double getQuantiles(int index) {
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder> + public java.util.List 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
@@ -1085,16 +965,13 @@ public double getQuantiles(int index) {
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ @java.lang.Override 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
@@ -1103,17 +980,13 @@ public int getHistogramBucketsCount() {
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogramBuckets( - int index) { + 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
@@ -1122,17 +995,15 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogram
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder - getHistogramBucketsOrBuilder(int index) { + 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; @@ -1144,7 +1015,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (mean_ != 0D) { output.writeDouble(1, mean_); @@ -1172,10 +1044,12 @@ public int getSerializedSize() { size = 0; if (mean_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, mean_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, mean_); } if (standardDeviation_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, standardDeviation_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, standardDeviation_); } { int dataSize = 0; @@ -1183,12 +1057,14 @@ public int getSerializedSize() { size += dataSize; if (!getQuantilesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, histogramBuckets_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1198,20 +1074,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != 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; + != 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; } @@ -1224,14 +1103,11 @@ public int hashCode() { 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 = (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())); + 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(); @@ -1245,127 +1121,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.Float64Stats.class, com.google.cloud.automl.v1beta1.Float64Stats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.Float64Stats.newBuilder() @@ -1373,17 +1240,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getHistogramBucketsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1403,9 +1270,9 @@ public Builder clear() { } @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; + 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 @@ -1424,8 +1291,7 @@ public com.google.cloud.automl.v1beta1.Float64Stats build() { @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); + com.google.cloud.automl.v1beta1.Float64Stats result = new com.google.cloud.automl.v1beta1.Float64Stats(this); int from_bitField0_ = bitField0_; result.mean_ = mean_; result.standardDeviation_ = standardDeviation_; @@ -1451,39 +1317,38 @@ public com.google.cloud.automl.v1beta1.Float64Stats buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.Float64Stats)other); } else { super.mergeFrom(other); return this; @@ -1526,10 +1391,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Float64Stats other) { histogramBucketsBuilder_ = null; histogramBuckets_ = other.histogramBuckets_; bitField0_ = (bitField0_ & ~0x00000002); - histogramBucketsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHistogramBucketsFieldBuilder() - : null; + histogramBucketsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHistogramBucketsFieldBuilder() : null; } else { histogramBucketsBuilder_.addAllMessages(other.histogramBuckets_); } @@ -1563,19 +1427,15 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private double mean_; + private double mean_ ; /** - * - * *
      * The mean of the series.
      * 
* * double mean = 1; - * * @return The mean. */ @java.lang.Override @@ -1583,51 +1443,42 @@ public double getMean() { return mean_; } /** - * - * *
      * The mean of the series.
      * 
* * double mean = 1; - * * @param value The mean to set. * @return This builder for chaining. */ public Builder setMean(double value) { - + mean_ = value; onChanged(); return this; } /** - * - * *
      * The mean of the series.
      * 
* * double mean = 1; - * * @return This builder for chaining. */ public Builder clearMean() { - + mean_ = 0D; onChanged(); return this; } - private double standardDeviation_; + private double standardDeviation_ ; /** - * - * *
      * The standard deviation of the series.
      * 
* * double standard_deviation = 2; - * * @return The standardDeviation. */ @java.lang.Override @@ -1635,52 +1486,43 @@ public double getStandardDeviation() { return standardDeviation_; } /** - * - * *
      * The standard deviation of the series.
      * 
* * double standard_deviation = 2; - * * @param value The standardDeviation to set. * @return This builder for chaining. */ public Builder setStandardDeviation(double value) { - + standardDeviation_ = value; onChanged(); return this; } /** - * - * *
      * The standard deviation of the series.
      * 
* * double standard_deviation = 2; - * * @return This builder for chaining. */ public Builder clearStandardDeviation() { - + standardDeviation_ = 0D; onChanged(); return this; } private com.google.protobuf.Internal.DoubleList quantiles_ = emptyDoubleList(); - private void ensureQuantilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { quantiles_ = mutableCopy(quantiles_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * 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
@@ -1689,17 +1531,14 @@ private void ensureQuantilesIsMutable() {
      * 
* * repeated double quantiles = 3; - * * @return A list containing the quantiles. */ - public java.util.List getQuantilesList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(quantiles_) - : quantiles_; + public java.util.List + getQuantilesList() { + return ((bitField0_ & 0x00000001) != 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
@@ -1708,15 +1547,12 @@ public java.util.List getQuantilesList() {
      * 
* * repeated double quantiles = 3; - * * @return The count of quantiles. */ 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
@@ -1725,7 +1561,6 @@ public int getQuantilesCount() {
      * 
* * repeated double quantiles = 3; - * * @param index The index of the element to return. * @return The quantiles at the given index. */ @@ -1733,8 +1568,6 @@ 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
@@ -1743,20 +1576,18 @@ public double getQuantiles(int index) {
      * 
* * repeated double quantiles = 3; - * * @param index The index to set the value at. * @param value The quantiles to set. * @return This builder for chaining. */ - public Builder setQuantiles(int index, double value) { + 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
@@ -1765,7 +1596,6 @@ public Builder setQuantiles(int index, double value) {
      * 
* * repeated double quantiles = 3; - * * @param value The quantiles to add. * @return This builder for chaining. */ @@ -1776,8 +1606,6 @@ public Builder addQuantiles(double value) { 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
@@ -1786,19 +1614,18 @@ public Builder addQuantiles(double value) {
      * 
* * repeated double quantiles = 3; - * * @param values The quantiles to add. * @return This builder for chaining. */ - public Builder addAllQuantiles(java.lang.Iterable values) { + public Builder addAllQuantiles( + java.lang.Iterable values) { ensureQuantilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quantiles_); + 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
@@ -1807,7 +1634,6 @@ public Builder addAllQuantiles(java.lang.Iterable va
      * 
* * repeated double quantiles = 3; - * * @return This builder for chaining. */ public Builder clearQuantiles() { @@ -1817,27 +1643,19 @@ public Builder clearQuantiles() { return this; } - private java.util.List - histogramBuckets_ = java.util.Collections.emptyList(); - + private java.util.List histogramBuckets_ = + java.util.Collections.emptyList(); private void ensureHistogramBucketsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - histogramBuckets_ = - new java.util.ArrayList( - histogramBuckets_); + histogramBuckets_ = new java.util.ArrayList(histogramBuckets_); bitField0_ |= 0x00000002; - } + } } 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_; + 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
@@ -1846,12 +1664,9 @@ private void ensureHistogramBucketsIsMutable() {
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ - public java.util.List - getHistogramBucketsList() { + public java.util.List getHistogramBucketsList() { if (histogramBucketsBuilder_ == null) { return java.util.Collections.unmodifiableList(histogramBuckets_); } else { @@ -1859,8 +1674,6 @@ private void ensureHistogramBucketsIsMutable() { } } /** - * - * *
      * Histogram buckets of the data series. Sorted by the min value of the
      * bucket, ascendingly, and the number of the buckets is dynamically
@@ -1869,9 +1682,7 @@ private void ensureHistogramBucketsIsMutable() {
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ public int getHistogramBucketsCount() { if (histogramBucketsBuilder_ == null) { @@ -1881,8 +1692,6 @@ public 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
@@ -1891,12 +1700,9 @@ public int getHistogramBucketsCount() {
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogramBuckets( - int index) { + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogramBuckets(int index) { if (histogramBucketsBuilder_ == null) { return histogramBuckets_.get(index); } else { @@ -1904,8 +1710,6 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogram } } /** - * - * *
      * Histogram buckets of the data series. Sorted by the min value of the
      * bucket, ascendingly, and the number of the buckets is dynamically
@@ -1914,9 +1718,7 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogram
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ public Builder setHistogramBuckets( int index, com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { @@ -1933,8 +1735,6 @@ public Builder setHistogramBuckets( 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
@@ -1943,13 +1743,10 @@ public Builder setHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ public Builder setHistogramBuckets( - int index, - com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { + int index, com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { if (histogramBucketsBuilder_ == null) { ensureHistogramBucketsIsMutable(); histogramBuckets_.set(index, builderForValue.build()); @@ -1960,8 +1757,6 @@ public Builder setHistogramBuckets( 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
@@ -1970,12 +1765,9 @@ public Builder setHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ - public Builder addHistogramBuckets( - com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { + public Builder addHistogramBuckets(com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { if (histogramBucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1989,8 +1781,6 @@ public Builder addHistogramBuckets( 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
@@ -1999,9 +1789,7 @@ public Builder addHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ public Builder addHistogramBuckets( int index, com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { @@ -2018,8 +1806,6 @@ public Builder addHistogramBuckets( 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
@@ -2028,9 +1814,7 @@ public Builder addHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ public Builder addHistogramBuckets( com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { @@ -2044,8 +1828,6 @@ public Builder addHistogramBuckets( 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
@@ -2054,13 +1836,10 @@ public Builder addHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ public Builder addHistogramBuckets( - int index, - com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { + int index, com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { if (histogramBucketsBuilder_ == null) { ensureHistogramBucketsIsMutable(); histogramBuckets_.add(index, builderForValue.build()); @@ -2071,8 +1850,6 @@ public Builder addHistogramBuckets( 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
@@ -2081,16 +1858,14 @@ public Builder addHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ public Builder addAllHistogramBuckets( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (histogramBucketsBuilder_ == null) { ensureHistogramBucketsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramBuckets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, histogramBuckets_); onChanged(); } else { histogramBucketsBuilder_.addAllMessages(values); @@ -2098,8 +1873,6 @@ public Builder addAllHistogramBuckets( 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
@@ -2108,9 +1881,7 @@ public Builder addAllHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ public Builder clearHistogramBuckets() { if (histogramBucketsBuilder_ == null) { @@ -2123,8 +1894,6 @@ public Builder clearHistogramBuckets() { 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
@@ -2133,9 +1902,7 @@ public Builder clearHistogramBuckets() {
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ public Builder removeHistogramBuckets(int index) { if (histogramBucketsBuilder_ == null) { @@ -2148,8 +1915,6 @@ public Builder removeHistogramBuckets(int 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
@@ -2158,17 +1923,13 @@ public Builder removeHistogramBuckets(int index) {
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder - getHistogramBucketsBuilder(int index) { + 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
@@ -2177,21 +1938,16 @@ public Builder removeHistogramBuckets(int index) {
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder - getHistogramBucketsOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder getHistogramBucketsOrBuilder( + int index) { if (histogramBucketsBuilder_ == null) { - return histogramBuckets_.get(index); - } else { + 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
@@ -2200,13 +1956,10 @@ public Builder removeHistogramBuckets(int index) {
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ - public java.util.List< - ? extends com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder> - getHistogramBucketsOrBuilderList() { + public java.util.List + getHistogramBucketsOrBuilderList() { if (histogramBucketsBuilder_ != null) { return histogramBucketsBuilder_.getMessageOrBuilderList(); } else { @@ -2214,8 +1967,6 @@ public Builder removeHistogramBuckets(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
@@ -2224,19 +1975,13 @@ public Builder removeHistogramBuckets(int index) {
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * 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()); + 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
@@ -2245,20 +1990,14 @@ public Builder removeHistogramBuckets(int index) {
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * 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()); + 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
@@ -2267,26 +2006,18 @@ public Builder removeHistogramBuckets(int index) {
      * the last one being `"Infinity"`.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ - public java.util.List - getHistogramBucketsBuilderList() { + 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> + 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>( + 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_ & 0x00000002) != 0), getParentForChildren(), @@ -2295,9 +2026,9 @@ public Builder removeHistogramBuckets(int index) { } return histogramBucketsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2307,12 +2038,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -2321,16 +2052,16 @@ 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); - } - }; + 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; @@ -2345,4 +2076,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Float64Stats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java similarity index 80% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java index d10104ccc..5691dc134 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return The mean. */ double getMean(); /** - * - * *
    * The standard deviation of the series.
    * 
* * double standard_deviation = 2; - * * @return The standardDeviation. */ 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
@@ -60,13 +36,10 @@ public interface Float64StatsOrBuilder
    * 
* * repeated double quantiles = 3; - * * @return A list containing the quantiles. */ 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
@@ -75,13 +48,10 @@ public interface Float64StatsOrBuilder
    * 
* * repeated double quantiles = 3; - * * @return The count of quantiles. */ 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
@@ -90,15 +60,12 @@ public interface Float64StatsOrBuilder
    * 
* * repeated double quantiles = 3; - * * @param index The index of the element to return. * @return The quantiles at the given index. */ 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
@@ -107,14 +74,11 @@ public interface Float64StatsOrBuilder
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ - java.util.List + 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
@@ -123,13 +87,10 @@ public interface Float64StatsOrBuilder
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * 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
@@ -138,13 +99,10 @@ public interface Float64StatsOrBuilder
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * 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
@@ -153,14 +111,11 @@ public interface Float64StatsOrBuilder
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ - java.util.List + 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
@@ -169,9 +124,8 @@ public interface Float64StatsOrBuilder
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; - * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; */ - com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder - getHistogramBucketsOrBuilder(int index); + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder getHistogramBucketsOrBuilder( + int index); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java similarity index 72% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java index c77032ad6..3e01fddf0 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcrDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcrDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private GcrDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - outputUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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
@@ -129,7 +107,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri = 1; - * * @return The outputUri. */ @java.lang.Override @@ -138,15 +115,14 @@ public java.lang.String getOutputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -160,15 +136,16 @@ public java.lang.String getOutputUri() {
    * 
* * string output_uri = 1; - * * @return The bytes for outputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUri_ = b; return b; } else { @@ -177,7 +154,6 @@ public com.google.protobuf.ByteString getOutputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +165,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); } @@ -213,15 +190,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.GcrDestination other = (com.google.cloud.automl.v1beta1.GcrDestination) obj; - if (!getOutputUri().equals(other.getOutputUri())) return false; + if (!getOutputUri() + .equals(other.getOutputUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -240,127 +217,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.GcrDestination.class, com.google.cloud.automl.v1beta1.GcrDestination.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GcrDestination.newBuilder() @@ -368,15 +336,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +355,9 @@ public Builder clear() { } @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; + 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 @@ -407,8 +376,7 @@ public com.google.cloud.automl.v1beta1.GcrDestination build() { @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); + com.google.cloud.automl.v1beta1.GcrDestination result = new com.google.cloud.automl.v1beta1.GcrDestination(this); result.outputUri_ = outputUri_; onBuilt(); return result; @@ -418,39 +386,38 @@ public com.google.cloud.automl.v1beta1.GcrDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.GcrDestination)other); } else { super.mergeFrom(other); return this; @@ -494,8 +461,6 @@ public Builder mergeFrom( private java.lang.Object outputUri_ = ""; /** - * - * *
      * Required. Google Contained Registry URI of the new image, up to 2000
      * characters long. See
@@ -509,13 +474,13 @@ public Builder mergeFrom(
      * 
* * string output_uri = 1; - * * @return The outputUri. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; @@ -524,8 +489,6 @@ public java.lang.String getOutputUri() { } } /** - * - * *
      * Required. Google Contained Registry URI of the new image, up to 2000
      * characters long. See
@@ -539,14 +502,15 @@ public java.lang.String getOutputUri() {
      * 
* * string output_uri = 1; - * * @return The bytes for outputUri. */ - public com.google.protobuf.ByteString getOutputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUri_ = b; return b; } else { @@ -554,8 +518,6 @@ public com.google.protobuf.ByteString getOutputUriBytes() { } } /** - * - * *
      * Required. Google Contained Registry URI of the new image, up to 2000
      * characters long. See
@@ -569,22 +531,20 @@ public com.google.protobuf.ByteString getOutputUriBytes() {
      * 
* * string output_uri = 1; - * * @param value The outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUri(java.lang.String value) { + public Builder setOutputUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. Google Contained Registry URI of the new image, up to 2000
      * characters long. See
@@ -598,18 +558,15 @@ public Builder setOutputUri(java.lang.String value) {
      * 
* * string output_uri = 1; - * * @return This builder for chaining. */ public Builder clearOutputUri() { - + outputUri_ = getDefaultInstance().getOutputUri(); onChanged(); return this; } /** - * - * *
      * Required. Google Contained Registry URI of the new image, up to 2000
      * characters long. See
@@ -623,23 +580,23 @@ public Builder clearOutputUri() {
      * 
* * string output_uri = 1; - * * @param value The bytes for outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -649,12 +606,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -663,16 +620,16 @@ 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); - } - }; + 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; @@ -687,4 +644,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GcrDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java index f5a9b28e2..878efeea2 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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
@@ -39,13 +21,10 @@ public interface GcrDestinationOrBuilder
    * 
* * string output_uri = 1; - * * @return The outputUri. */ java.lang.String getOutputUri(); /** - * - * *
    * Required. Google Contained Registry URI of the new image, up to 2000
    * characters long. See
@@ -59,8 +38,8 @@ public interface GcrDestinationOrBuilder
    * 
* * string output_uri = 1; - * * @return The bytes for outputUri. */ - com.google.protobuf.ByteString getOutputUriBytes(); + com.google.protobuf.ByteString + getOutputUriBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java similarity index 71% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java index f39b64527..5a32d788d 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * The Google Cloud Storage location where the output is to be written to.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private GcsDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - outputUriPrefix_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputUriPrefix_ = 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); + 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_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Io - .internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GcsDestination.class, - com.google.cloud.automl.v1beta1.GcsDestination.Builder.class); + com.google.cloud.automl.v1beta1.GcsDestination.class, com.google.cloud.automl.v1beta1.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; private volatile java.lang.Object outputUriPrefix_; /** - * - * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -126,7 +104,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri_prefix = 1; - * * @return The outputUriPrefix. */ @java.lang.Override @@ -135,15 +112,14 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** - * - * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -154,15 +130,16 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1; - * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -171,7 +148,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +159,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -207,15 +184,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.GcsDestination other = - (com.google.cloud.automl.v1beta1.GcsDestination) obj; + com.google.cloud.automl.v1beta1.GcsDestination other = (com.google.cloud.automl.v1beta1.GcsDestination) obj; - if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix() + .equals(other.getOutputUriPrefix())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,127 +211,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GcsDestination 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.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the output is to be written to.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GcsDestination) com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.Io - .internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Io - .internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GcsDestination.class, - com.google.cloud.automl.v1beta1.GcsDestination.Builder.class); + com.google.cloud.automl.v1beta1.GcsDestination.class, com.google.cloud.automl.v1beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GcsDestination.newBuilder() @@ -362,15 +330,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.Io - .internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; } @java.lang.Override @@ -401,8 +370,7 @@ public com.google.cloud.automl.v1beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.automl.v1beta1.GcsDestination buildPartial() { - com.google.cloud.automl.v1beta1.GcsDestination result = - new com.google.cloud.automl.v1beta1.GcsDestination(this); + com.google.cloud.automl.v1beta1.GcsDestination result = new com.google.cloud.automl.v1beta1.GcsDestination(this); result.outputUriPrefix_ = outputUriPrefix_; onBuilt(); return result; @@ -412,39 +380,38 @@ public com.google.cloud.automl.v1beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GcsDestination) { - return mergeFrom((com.google.cloud.automl.v1beta1.GcsDestination) other); + return mergeFrom((com.google.cloud.automl.v1beta1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -488,8 +455,6 @@ public Builder mergeFrom( private java.lang.Object outputUriPrefix_ = ""; /** - * - * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -500,13 +465,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1; - * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -515,8 +480,6 @@ public java.lang.String getOutputUriPrefix() { } } /** - * - * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -527,14 +490,15 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1; - * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -542,8 +506,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } } /** - * - * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -554,22 +516,20 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
      * 
* * string output_uri_prefix = 1; - * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix(java.lang.String value) { + public Builder setOutputUriPrefix( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUriPrefix_ = value; onChanged(); return this; } /** - * - * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -580,18 +540,15 @@ public Builder setOutputUriPrefix(java.lang.String value) {
      * 
* * string output_uri_prefix = 1; - * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { - + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); onChanged(); return this; } /** - * - * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -602,23 +559,23 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1; - * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUriPrefixBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUriPrefix_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GcsDestination) private static final com.google.cloud.automl.v1beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GcsDestination(); } @@ -642,16 +599,16 @@ public static com.google.cloud.automl.v1beta1.GcsDestination getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,4 +623,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java similarity index 60% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java index 694f7419c..c5f2c44d3 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -36,13 +18,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1; - * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** - * - * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -53,8 +32,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1; - * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString getOutputUriPrefixBytes(); + com.google.protobuf.ByteString + getOutputUriPrefixBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java similarity index 72% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java index 84f097c47..9b984196a 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,29 +54,29 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - inputUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - inputUris_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + inputUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + inputUris_.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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { inputUris_ = inputUris_.getUnmodifiableView(); @@ -102,27 +85,22 @@ private GcsSource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.Io - .internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Io - .internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GcsSource.class, - com.google.cloud.automl.v1beta1.GcsSource.Builder.class); + com.google.cloud.automl.v1beta1.GcsSource.class, com.google.cloud.automl.v1beta1.GcsSource.Builder.class); } public static final int INPUT_URIS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList inputUris_; /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -130,15 +108,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string input_uris = 1; - * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList getInputUrisList() { + public com.google.protobuf.ProtocolStringList + getInputUrisList() { return inputUris_; } /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -146,15 +122,12 @@ public com.google.protobuf.ProtocolStringList getInputUrisList() {
    * 
* * repeated string input_uris = 1; - * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -162,7 +135,6 @@ public int getInputUrisCount() {
    * 
* * repeated string input_uris = 1; - * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -170,8 +142,6 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -179,16 +149,15 @@ public java.lang.String getInputUris(int index) {
    * 
* * repeated string input_uris = 1; - * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString getInputUrisBytes(int index) { + public com.google.protobuf.ByteString + getInputUrisBytes(int index) { return inputUris_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < inputUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUris_.getRaw(i)); } @@ -229,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.GcsSource other = - (com.google.cloud.automl.v1beta1.GcsSource) obj; + com.google.cloud.automl.v1beta1.GcsSource other = (com.google.cloud.automl.v1beta1.GcsSource) obj; - if (!getInputUrisList().equals(other.getInputUrisList())) return false; + if (!getInputUrisList() + .equals(other.getInputUrisList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -258,127 +228,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GcsSource 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.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GcsSource) com.google.cloud.automl.v1beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.Io - .internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Io - .internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GcsSource.class, - com.google.cloud.automl.v1beta1.GcsSource.Builder.class); + com.google.cloud.automl.v1beta1.GcsSource.class, com.google.cloud.automl.v1beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GcsSource.newBuilder() @@ -386,15 +347,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -404,9 +366,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.Io - .internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; } @java.lang.Override @@ -425,8 +387,7 @@ public com.google.cloud.automl.v1beta1.GcsSource build() { @java.lang.Override public com.google.cloud.automl.v1beta1.GcsSource buildPartial() { - com.google.cloud.automl.v1beta1.GcsSource result = - new com.google.cloud.automl.v1beta1.GcsSource(this); + com.google.cloud.automl.v1beta1.GcsSource result = new com.google.cloud.automl.v1beta1.GcsSource(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { inputUris_ = inputUris_.getUnmodifiableView(); @@ -441,39 +402,38 @@ public com.google.cloud.automl.v1beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GcsSource) { - return mergeFrom((com.google.cloud.automl.v1beta1.GcsSource) other); + return mergeFrom((com.google.cloud.automl.v1beta1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -520,21 +480,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList inputUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInputUrisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { inputUris_ = new com.google.protobuf.LazyStringArrayList(inputUris_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -542,15 +497,13 @@ private void ensureInputUrisIsMutable() {
      * 
* * repeated string input_uris = 1; - * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList getInputUrisList() { + public com.google.protobuf.ProtocolStringList + getInputUrisList() { return inputUris_.getUnmodifiableView(); } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -558,15 +511,12 @@ public com.google.protobuf.ProtocolStringList getInputUrisList() {
      * 
* * repeated string input_uris = 1; - * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -574,7 +524,6 @@ public int getInputUrisCount() {
      * 
* * repeated string input_uris = 1; - * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -582,8 +531,6 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -591,16 +538,14 @@ public java.lang.String getInputUris(int index) {
      * 
* * repeated string input_uris = 1; - * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString getInputUrisBytes(int index) { + public com.google.protobuf.ByteString + getInputUrisBytes(int index) { return inputUris_.getByteString(index); } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -608,23 +553,21 @@ public com.google.protobuf.ByteString getInputUrisBytes(int index) {
      * 
* * repeated string input_uris = 1; - * * @param index The index to set the value at. * @param value The inputUris to set. * @return This builder for chaining. */ - public Builder setInputUris(int index, java.lang.String value) { + public Builder setInputUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -632,22 +575,20 @@ public Builder setInputUris(int index, java.lang.String value) {
      * 
* * repeated string input_uris = 1; - * * @param value The inputUris to add. * @return This builder for chaining. */ - public Builder addInputUris(java.lang.String value) { + public Builder addInputUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -655,19 +596,18 @@ public Builder addInputUris(java.lang.String value) {
      * 
* * repeated string input_uris = 1; - * * @param values The inputUris to add. * @return This builder for chaining. */ - public Builder addAllInputUris(java.lang.Iterable values) { + public Builder addAllInputUris( + java.lang.Iterable values) { ensureInputUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputUris_); onChanged(); return this; } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -675,7 +615,6 @@ public Builder addAllInputUris(java.lang.Iterable values) {
      * 
* * repeated string input_uris = 1; - * * @return This builder for chaining. */ public Builder clearInputUris() { @@ -685,8 +624,6 @@ public Builder clearInputUris() { return this; } /** - * - * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -694,23 +631,23 @@ public Builder clearInputUris() {
      * 
* * repeated string input_uris = 1; - * * @param value The bytes of the inputUris to add. * @return This builder for chaining. */ - public Builder addInputUrisBytes(com.google.protobuf.ByteString value) { + public Builder addInputUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -720,12 +657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GcsSource) private static final com.google.cloud.automl.v1beta1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GcsSource(); } @@ -734,16 +671,16 @@ public static com.google.cloud.automl.v1beta1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -758,4 +695,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java index bb6073fd0..a41f6bb75 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -33,13 +15,11 @@ public interface GcsSourceOrBuilder
    * 
* * repeated string input_uris = 1; - * * @return A list containing the inputUris. */ - java.util.List getInputUrisList(); + java.util.List + getInputUrisList(); /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -47,13 +27,10 @@ public interface GcsSourceOrBuilder
    * 
* * repeated string input_uris = 1; - * * @return The count of inputUris. */ int getInputUrisCount(); /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -61,14 +38,11 @@ public interface GcsSourceOrBuilder
    * 
* * repeated string input_uris = 1; - * * @param index The index of the element to return. * @return The inputUris at the given index. */ java.lang.String getInputUris(int index); /** - * - * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -76,9 +50,9 @@ public interface GcsSourceOrBuilder
    * 
* * repeated string input_uris = 1; - * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - com.google.protobuf.ByteString getInputUrisBytes(int index); + com.google.protobuf.ByteString + getInputUrisBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java new file mode 100644 index 000000000..d9be48d79 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java @@ -0,0 +1,69 @@ +// 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\245\001" + + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" + + "toMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1" + + "beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java index 08ac0f41e..fdb50adf6 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAnnotationSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAnnotationSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetAnnotationSpecRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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_; /** - * - * *
    * Required. The resource name of the annotation spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 annotation spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest other = (com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.class, com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.newBuilder() @@ -357,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +339,9 @@ public Builder clear() { } @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; + 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 @@ -396,8 +360,7 @@ public com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest build() { @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); + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest result = new com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +370,38 @@ public com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest)other); } else { super.mergeFrom(other); return this; @@ -447,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -472,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -509,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -533,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -610,12 +550,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -624,16 +564,16 @@ public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest getDefaul 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); - } - }; + 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; @@ -648,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java new file mode 100644 index 000000000..a84b04bf9 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java @@ -0,0 +1,29 @@ +// 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 { + + /** + *
+   * Required. The resource name of the annotation spec to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the annotation spec to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java index 91e1fc8c5..2f30875f0 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetColumnSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetColumnSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,65 @@ private GetColumnSpecRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - 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; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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; + 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 + 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); + 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_; /** - * - * *
    * Required. The resource name of the column spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -147,31 +120,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 column spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -182,14 +153,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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; - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -197,14 +165,11 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ @java.lang.Override @@ -212,8 +177,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * Mask specifying which fields to read.
    * 
@@ -226,7 +189,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,7 +221,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFieldMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -268,18 +232,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.GetColumnSpecRequest other = (com.google.cloud.automl.v1beta1.GetColumnSpecRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -304,126 +269,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.GetColumnSpecRequest.class, com.google.cloud.automl.v1beta1.GetColumnSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetColumnSpecRequest.newBuilder() @@ -431,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -455,9 +412,9 @@ public Builder clear() { } @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; + 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 @@ -476,8 +433,7 @@ public com.google.cloud.automl.v1beta1.GetColumnSpecRequest build() { @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); + com.google.cloud.automl.v1beta1.GetColumnSpecRequest result = new com.google.cloud.automl.v1beta1.GetColumnSpecRequest(this); result.name_ = name_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; @@ -492,39 +448,38 @@ public com.google.cloud.automl.v1beta1.GetColumnSpecRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.GetColumnSpecRequest)other); } else { super.mergeFrom(other); return this; @@ -532,8 +487,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetColumnSpecRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetColumnSpecRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.GetColumnSpecRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -560,8 +514,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.GetColumnSpecRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.GetColumnSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,22 +526,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the column spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -597,23 +546,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the column spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -621,67 +567,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the column spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the column spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the column spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -689,33 +622,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + 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; - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -726,8 +650,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -748,15 +670,14 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; */ - public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -767,8 +688,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -779,7 +698,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -791,8 +710,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -811,8 +728,6 @@ public Builder clearFieldMask() { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -820,13 +735,11 @@ public Builder clearFieldMask() { * .google.protobuf.FieldMask field_mask = 2; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -837,12 +750,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -850,24 +762,21 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * .google.protobuf.FieldMask field_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -877,12 +786,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -891,16 +800,16 @@ public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest getDefaultIns 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); - } - }; + 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; @@ -915,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GetColumnSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java index 69ed101ba..c3c2fa8d2 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java @@ -1,84 +1,51 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +public interface GetColumnSpecRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetColumnSpecRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the column spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the column spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * Mask specifying which fields to read.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java index 10605f7a7..d8c08544c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetDatasetRequest} */ -public final class GetDatasetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GetDatasetRequest) GetDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDatasetRequest.newBuilder() to construct. private GetDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetDatasetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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_GetDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetDatasetRequest.class, - com.google.cloud.automl.v1beta1.GetDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetDatasetRequest.class, com.google.cloud.automl.v1beta1.GetDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the dataset to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 dataset to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.GetDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.GetDatasetRequest other = - (com.google.cloud.automl.v1beta1.GetDatasetRequest) obj; + com.google.cloud.automl.v1beta1.GetDatasetRequest other = (com.google.cloud.automl.v1beta1.GetDatasetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GetDatasetRequest 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.GetDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetDatasetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GetDatasetRequest) com.google.cloud.automl.v1beta1.GetDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetDatasetRequest.class, - com.google.cloud.automl.v1beta1.GetDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetDatasetRequest.class, com.google.cloud.automl.v1beta1.GetDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetDatasetRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1beta1.GetDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.GetDatasetRequest buildPartial() { - com.google.cloud.automl.v1beta1.GetDatasetRequest result = - new com.google.cloud.automl.v1beta1.GetDatasetRequest(this); + com.google.cloud.automl.v1beta1.GetDatasetRequest result = new com.google.cloud.automl.v1beta1.GetDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1beta1.GetDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.GetDatasetRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.GetDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetDatasetRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetDatasetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.GetDatasetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.GetDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.GetDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GetDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetDatasetRequest) private static final com.google.cloud.automl.v1beta1.GetDatasetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GetDatasetRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.automl.v1beta1.GetDatasetRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GetDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java new file mode 100644 index 000000000..8f2f6aa51 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface GetDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the dataset to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the dataset to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java index 185c4458f..e2d17e0cf 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelEvaluationRequest} */ -public final class GetModelEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetModelEvaluationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GetModelEvaluationRequest) GetModelEvaluationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetModelEvaluationRequest.newBuilder() to construct. private GetModelEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetModelEvaluationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetModelEvaluationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetModelEvaluationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetModelEvaluationRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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_GetModelEvaluationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name for the model evaluation.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name for the model evaluation.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.GetModelEvaluationRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest other = - (com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) obj; + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest other = (com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetModelEvaluationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest 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.GetModelEvaluationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelEvaluationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GetModelEvaluationRequest) com.google.cloud.automl.v1beta1.GetModelEvaluationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.newBuilder() @@ -357,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; } @java.lang.Override @@ -396,8 +360,7 @@ public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest buildPartial() { - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest result = - new com.google.cloud.automl.v1beta1.GetModelEvaluationRequest(this); + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest result = new com.google.cloud.automl.v1beta1.GetModelEvaluationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +370,38 @@ public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetModelEvaluationRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.GetModelEvaluationRequest)other); } else { super.mergeFrom(other); return this; @@ -447,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -472,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name for the model evaluation.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -509,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name for the model evaluation.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -533,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name for the model evaluation.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name for the model evaluation.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name for the model evaluation.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -610,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GetModelEvaluationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetModelEvaluationRequest) private static final com.google.cloud.automl.v1beta1.GetModelEvaluationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GetModelEvaluationRequest(); } @@ -624,16 +564,16 @@ public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetModelEvaluationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelEvaluationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetModelEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetModelEvaluationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java new file mode 100644 index 000000000..ff0e1d238 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface GetModelEvaluationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetModelEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name for the model evaluation.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name for the model evaluation.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java similarity index 65% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java index d716eb3c3..19c0d1a5d 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelRequest} */ -public final class GetModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GetModelRequest) GetModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetModelRequest.newBuilder() to construct. private GetModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetModelRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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_GetModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetModelRequest.class, - com.google.cloud.automl.v1beta1.GetModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetModelRequest.class, com.google.cloud.automl.v1beta1.GetModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the model.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the model.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.GetModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.GetModelRequest other = - (com.google.cloud.automl.v1beta1.GetModelRequest) obj; + com.google.cloud.automl.v1beta1.GetModelRequest other = (com.google.cloud.automl.v1beta1.GetModelRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GetModelRequest 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.GetModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.GetModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.GetModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GetModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GetModelRequest) com.google.cloud.automl.v1beta1.GetModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetModelRequest.class, - com.google.cloud.automl.v1beta1.GetModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetModelRequest.class, com.google.cloud.automl.v1beta1.GetModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetModelRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1beta1.GetModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelRequest buildPartial() { - com.google.cloud.automl.v1beta1.GetModelRequest result = - new com.google.cloud.automl.v1beta1.GetModelRequest(this); + com.google.cloud.automl.v1beta1.GetModelRequest result = new com.google.cloud.automl.v1beta1.GetModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1beta1.GetModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetModelRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.GetModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.GetModelRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetModelRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetModelRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.GetModelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the model.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -507,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the model.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -531,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the model.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GetModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetModelRequest) private static final com.google.cloud.automl.v1beta1.GetModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GetModelRequest(); } @@ -622,16 +564,16 @@ public static com.google.cloud.automl.v1beta1.GetModelRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GetModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java new file mode 100644 index 000000000..ab4ad8ed3 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface GetModelRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the model.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the model.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java index bd92fdf7e..e4280fefe 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetTableSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetTableSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,65 @@ private GetTableSpecRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - 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; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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; + 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 + 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); + 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_; /** - * - * *
    * Required. The resource name of the table spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -147,31 +120,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 table spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -182,14 +153,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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; - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -197,14 +165,11 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ @java.lang.Override @@ -212,8 +177,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * Mask specifying which fields to read.
    * 
@@ -226,7 +189,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,7 +221,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFieldMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -268,18 +232,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.GetTableSpecRequest other = (com.google.cloud.automl.v1beta1.GetTableSpecRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -304,126 +269,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.GetTableSpecRequest.class, com.google.cloud.automl.v1beta1.GetTableSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetTableSpecRequest.newBuilder() @@ -431,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -455,9 +412,9 @@ public Builder clear() { } @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; + 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 @@ -476,8 +433,7 @@ public com.google.cloud.automl.v1beta1.GetTableSpecRequest build() { @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); + com.google.cloud.automl.v1beta1.GetTableSpecRequest result = new com.google.cloud.automl.v1beta1.GetTableSpecRequest(this); result.name_ = name_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; @@ -492,39 +448,38 @@ public com.google.cloud.automl.v1beta1.GetTableSpecRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.GetTableSpecRequest)other); } else { super.mergeFrom(other); return this; @@ -532,8 +487,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetTableSpecRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetTableSpecRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.GetTableSpecRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -560,8 +514,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.GetTableSpecRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.GetTableSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,22 +526,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the table spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -597,23 +546,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the table spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -621,67 +567,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the table spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the table spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the table spec to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -689,33 +622,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + 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; - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -726,8 +650,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -748,15 +670,14 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; */ - public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -767,8 +688,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -779,7 +698,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -791,8 +710,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -811,8 +728,6 @@ public Builder clearFieldMask() { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -820,13 +735,11 @@ public Builder clearFieldMask() { * .google.protobuf.FieldMask field_mask = 2; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -837,12 +750,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -850,24 +762,21 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * .google.protobuf.FieldMask field_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -877,12 +786,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -891,16 +800,16 @@ public static com.google.cloud.automl.v1beta1.GetTableSpecRequest getDefaultInst 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); - } - }; + 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; @@ -915,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GetTableSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java index 602d954d1..0cb716f08 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java @@ -1,84 +1,51 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +public interface GetTableSpecRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetTableSpecRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the table spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the table spec to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * Mask specifying which fields to read.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java similarity index 72% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java index af9c1ecd6..02a1c0fdf 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 an image.
  * Only images up to 30MB in size are supported.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.Image}
  */
-public final class Image extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Image extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Image)
     ImageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Image.newBuilder() to construct.
   private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Image() {
     thumbnailUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Image();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Image(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,81 +54,72 @@ private Image(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              dataCase_ = 1;
-              data_ = input.readBytes();
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            dataCase_ = 1;
+            data_ = input.readBytes();
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              thumbnailUri_ = s;
-              break;
+            thumbnailUri_ = s;
+            break;
+          }
+          case 50: {
+            com.google.cloud.automl.v1beta1.InputConfig.Builder subBuilder = null;
+            if (dataCase_ == 6) {
+              subBuilder = ((com.google.cloud.automl.v1beta1.InputConfig) data_).toBuilder();
             }
-          case 50:
-            {
-              com.google.cloud.automl.v1beta1.InputConfig.Builder subBuilder = null;
-              if (dataCase_ == 6) {
-                subBuilder = ((com.google.cloud.automl.v1beta1.InputConfig) data_).toBuilder();
-              }
-              data_ =
-                  input.readMessage(
-                      com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.InputConfig) data_);
-                data_ = subBuilder.buildPartial();
-              }
-              dataCase_ = 6;
-              break;
+            data_ =
+                input.readMessage(com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.InputConfig) data_);
+              data_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            dataCase_ = 6;
+            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);
+      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_Image_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1beta1.DataItems
-        .internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable
+    return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1beta1.Image.class,
-            com.google.cloud.automl.v1beta1.Image.Builder.class);
+            com.google.cloud.automl.v1beta1.Image.class, com.google.cloud.automl.v1beta1.Image.Builder.class);
   }
 
   private int dataCase_ = 0;
   private java.lang.Object data_;
-
   public enum DataCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     IMAGE_BYTES(1),
     INPUT_CONFIG(6),
     DATA_NOT_SET(0);
     private final int value;
-
     private DataCase(int value) {
       this.value = value;
     }
@@ -161,30 +135,25 @@ public static DataCase valueOf(int value) {
 
     public static DataCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return IMAGE_BYTES;
-        case 6:
-          return INPUT_CONFIG;
-        case 0:
-          return DATA_NOT_SET;
-        default:
-          return null;
+        case 1: return IMAGE_BYTES;
+        case 6: return INPUT_CONFIG;
+        case 0: return DATA_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DataCase getDataCase() {
-    return DataCase.forNumber(dataCase_);
+  public DataCase
+  getDataCase() {
+    return DataCase.forNumber(
+        dataCase_);
   }
 
   public static final int IMAGE_BYTES_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -192,7 +161,6 @@ public DataCase getDataCase() {
    * 
* * bytes image_bytes = 1; - * * @return Whether the imageBytes field is set. */ @java.lang.Override @@ -200,8 +168,6 @@ public boolean hasImageBytes() { return dataCase_ == 1; } /** - * - * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -209,7 +175,6 @@ public boolean hasImageBytes() {
    * 
* * bytes image_bytes = 1; - * * @return The imageBytes. */ @java.lang.Override @@ -222,14 +187,11 @@ public com.google.protobuf.ByteString getImageBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 6; /** - * - * *
    * An input config specifying the content of the image.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -237,26 +199,21 @@ public boolean hasInputConfig() { return dataCase_ == 6; } /** - * - * *
    * An input config specifying the content of the image.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { if (dataCase_ == 6) { - return (com.google.cloud.automl.v1beta1.InputConfig) data_; + return (com.google.cloud.automl.v1beta1.InputConfig) data_; } return com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance(); } /** - * - * *
    * An input config specifying the content of the image.
    * 
@@ -266,7 +223,7 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (dataCase_ == 6) { - return (com.google.cloud.automl.v1beta1.InputConfig) data_; + return (com.google.cloud.automl.v1beta1.InputConfig) data_; } return com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance(); } @@ -274,14 +231,11 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil public static final int THUMBNAIL_URI_FIELD_NUMBER = 4; private volatile java.lang.Object thumbnailUri_; /** - * - * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; - * * @return The thumbnailUri. */ @java.lang.Override @@ -290,29 +244,29 @@ public java.lang.String getThumbnailUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); thumbnailUri_ = s; return s; } } /** - * - * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; - * * @return The bytes for thumbnailUri. */ @java.lang.Override - public com.google.protobuf.ByteString getThumbnailUriBytes() { + public com.google.protobuf.ByteString + getThumbnailUriBytes() { java.lang.Object ref = thumbnailUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); thumbnailUri_ = b; return b; } else { @@ -321,7 +275,6 @@ public com.google.protobuf.ByteString getThumbnailUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,9 +286,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dataCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) data_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbnailUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, thumbnailUri_); @@ -353,17 +308,16 @@ public int getSerializedSize() { size = 0; if (dataCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) data_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbnailUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, thumbnailUri_); } if (dataCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.automl.v1beta1.InputConfig) data_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.automl.v1beta1.InputConfig) data_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -373,21 +327,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.Image)) { return super.equals(obj); } com.google.cloud.automl.v1beta1.Image other = (com.google.cloud.automl.v1beta1.Image) obj; - if (!getThumbnailUri().equals(other.getThumbnailUri())) return false; + if (!getThumbnailUri() + .equals(other.getThumbnailUri())) return false; if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 1: - if (!getImageBytes().equals(other.getImageBytes())) return false; + if (!getImageBytes() + .equals(other.getImageBytes())) return false; break; case 6: - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; break; case 0: default: @@ -422,103 +379,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.Image parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.Image parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Image parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Image parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.automl.v1beta1.Image parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Image 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.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Image parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Image parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.Image parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Image parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.Image parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Image parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.Image parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A representation of an image.
    * Only images up to 30MB in size are supported.
@@ -526,23 +477,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.Image}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Image)
       com.google.cloud.automl.v1beta1.ImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1beta1.DataItems
-          .internal_static_google_cloud_automl_v1beta1_Image_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1beta1.DataItems
-          .internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable
+      return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1beta1.Image.class,
-              com.google.cloud.automl.v1beta1.Image.Builder.class);
+              com.google.cloud.automl.v1beta1.Image.class, com.google.cloud.automl.v1beta1.Image.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.Image.newBuilder()
@@ -550,15 +499,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -570,9 +520,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1beta1.DataItems
-          .internal_static_google_cloud_automl_v1beta1_Image_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_descriptor;
     }
 
     @java.lang.Override
@@ -591,8 +541,7 @@ public com.google.cloud.automl.v1beta1.Image build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1beta1.Image buildPartial() {
-      com.google.cloud.automl.v1beta1.Image result =
-          new com.google.cloud.automl.v1beta1.Image(this);
+      com.google.cloud.automl.v1beta1.Image result = new com.google.cloud.automl.v1beta1.Image(this);
       if (dataCase_ == 1) {
         result.data_ = data_;
       }
@@ -613,39 +562,38 @@ public com.google.cloud.automl.v1beta1.Image buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.Image) {
-        return mergeFrom((com.google.cloud.automl.v1beta1.Image) other);
+        return mergeFrom((com.google.cloud.automl.v1beta1.Image)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -659,20 +607,17 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Image other) {
         onChanged();
       }
       switch (other.getDataCase()) {
-        case IMAGE_BYTES:
-          {
-            setImageBytes(other.getImageBytes());
-            break;
-          }
-        case INPUT_CONFIG:
-          {
-            mergeInputConfig(other.getInputConfig());
-            break;
-          }
-        case DATA_NOT_SET:
-          {
-            break;
-          }
+        case IMAGE_BYTES: {
+          setImageBytes(other.getImageBytes());
+          break;
+        }
+        case INPUT_CONFIG: {
+          mergeInputConfig(other.getInputConfig());
+          break;
+        }
+        case DATA_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -702,12 +647,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int dataCase_ = 0;
     private java.lang.Object data_;
-
-    public DataCase getDataCase() {
-      return DataCase.forNumber(dataCase_);
+    public DataCase
+        getDataCase() {
+      return DataCase.forNumber(
+          dataCase_);
     }
 
     public Builder clearData() {
@@ -717,9 +662,8 @@ public Builder clearData() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -727,15 +671,12 @@ public Builder clearData() {
      * 
* * bytes image_bytes = 1; - * * @return Whether the imageBytes field is set. */ public boolean hasImageBytes() { return dataCase_ == 1; } /** - * - * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -743,7 +684,6 @@ public boolean hasImageBytes() {
      * 
* * bytes image_bytes = 1; - * * @return The imageBytes. */ public com.google.protobuf.ByteString getImageBytes() { @@ -753,8 +693,6 @@ public com.google.protobuf.ByteString getImageBytes() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -762,22 +700,19 @@ public com.google.protobuf.ByteString getImageBytes() {
      * 
* * bytes image_bytes = 1; - * * @param value The imageBytes to set. * @return This builder for chaining. */ public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - dataCase_ = 1; + throw new NullPointerException(); + } + dataCase_ = 1; data_ = value; onChanged(); return this; } /** - * - * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -785,7 +720,6 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes image_bytes = 1; - * * @return This builder for chaining. */ public Builder clearImageBytes() { @@ -798,19 +732,13 @@ public Builder clearImageBytes() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, - com.google.cloud.automl.v1beta1.InputConfig.Builder, - com.google.cloud.automl.v1beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * An input config specifying the content of the image.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -818,14 +746,11 @@ public boolean hasInputConfig() { return dataCase_ == 6; } /** - * - * *
      * An input config specifying the content of the image.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; - * * @return The inputConfig. */ @java.lang.Override @@ -843,8 +768,6 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { } } /** - * - * *
      * An input config specifying the content of the image.
      * 
@@ -865,8 +788,6 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) return this; } /** - * - * *
      * An input config specifying the content of the image.
      * 
@@ -885,8 +806,6 @@ public Builder setInputConfig( return this; } /** - * - * *
      * An input config specifying the content of the image.
      * 
@@ -895,13 +814,10 @@ public Builder setInputConfig( */ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { - if (dataCase_ == 6 - && data_ != com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance()) { - data_ = - com.google.cloud.automl.v1beta1.InputConfig.newBuilder( - (com.google.cloud.automl.v1beta1.InputConfig) data_) - .mergeFrom(value) - .buildPartial(); + if (dataCase_ == 6 && + data_ != com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance()) { + data_ = com.google.cloud.automl.v1beta1.InputConfig.newBuilder((com.google.cloud.automl.v1beta1.InputConfig) data_) + .mergeFrom(value).buildPartial(); } else { data_ = value; } @@ -916,8 +832,6 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.InputConfig valu return this; } /** - * - * *
      * An input config specifying the content of the image.
      * 
@@ -941,8 +855,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * An input config specifying the content of the image.
      * 
@@ -953,8 +865,6 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder getInputConfigBuilder return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * An input config specifying the content of the image.
      * 
@@ -973,8 +883,6 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil } } /** - * - * *
      * An input config specifying the content of the image.
      * 
@@ -982,46 +890,38 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil * .google.cloud.automl.v1beta1.InputConfig input_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, - com.google.cloud.automl.v1beta1.InputConfig.Builder, - com.google.cloud.automl.v1beta1.InputConfigOrBuilder> + com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { if (!(dataCase_ == 6)) { data_ = com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance(); } - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, - com.google.cloud.automl.v1beta1.InputConfig.Builder, - com.google.cloud.automl.v1beta1.InputConfigOrBuilder>( + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder>( (com.google.cloud.automl.v1beta1.InputConfig) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 6; - onChanged(); - ; + onChanged();; return inputConfigBuilder_; } private java.lang.Object thumbnailUri_ = ""; /** - * - * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; - * * @return The thumbnailUri. */ public java.lang.String getThumbnailUri() { java.lang.Object ref = thumbnailUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); thumbnailUri_ = s; return s; @@ -1030,21 +930,20 @@ public java.lang.String getThumbnailUri() { } } /** - * - * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; - * * @return The bytes for thumbnailUri. */ - public com.google.protobuf.ByteString getThumbnailUriBytes() { + public com.google.protobuf.ByteString + getThumbnailUriBytes() { java.lang.Object ref = thumbnailUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); thumbnailUri_ = b; return b; } else { @@ -1052,68 +951,61 @@ public com.google.protobuf.ByteString getThumbnailUriBytes() { } } /** - * - * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; - * * @param value The thumbnailUri to set. * @return This builder for chaining. */ - public Builder setThumbnailUri(java.lang.String value) { + public Builder setThumbnailUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + thumbnailUri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; - * * @return This builder for chaining. */ public Builder clearThumbnailUri() { - + thumbnailUri_ = getDefaultInstance().getThumbnailUri(); onChanged(); return this; } /** - * - * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; - * * @param value The bytes for thumbnailUri to set. * @return This builder for chaining. */ - public Builder setThumbnailUriBytes(com.google.protobuf.ByteString value) { + public Builder setThumbnailUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + thumbnailUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1123,12 +1015,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Image) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Image) private static final com.google.cloud.automl.v1beta1.Image DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Image(); } @@ -1137,16 +1029,16 @@ public static com.google.cloud.automl.v1beta1.Image getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Image parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Image(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Image(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1161,4 +1053,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java similarity index 61% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java index 5e4ab281b..b4e6df2e9 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/image.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Dataset metadata that is specific to image classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata} */ -public final class ImageClassificationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageClassificationDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) ImageClassificationDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageClassificationDatasetMetadata.newBuilder() to construct. - private ImageClassificationDatasetMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageClassificationDatasetMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageClassificationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageClassificationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,89 +53,72 @@ private ImageClassificationDatasetMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + classificationType_ = rawValue; + 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); + 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_ImageClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.class, - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 1; private int classificationType_; /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The classificationType. */ - @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - getClassificationType() { + @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( - classificationType_); - return result == null - ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); + return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,11 +130,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (classificationType_ - != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - .CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, classificationType_); } unknownFields.writeTo(output); @@ -181,11 +144,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ - != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - .CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, classificationType_); + if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,13 +156,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata other = - (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) obj; + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata other = (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -223,145 +183,134 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ImageClassificationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata 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.ImageClassificationDatasetMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - 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.ImageClassificationDatasetMetadata 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.ImageClassificationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Dataset metadata that is specific to image classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.class, - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,16 +320,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - .getDefaultInstance(); + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); } @java.lang.Override @@ -394,8 +341,7 @@ public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata build( @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata result = - new com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata(this); + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata result = new com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -405,51 +351,46 @@ public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ImageClassificationDatasetMetadata) { - return mergeFrom( - (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata other) { + if (other == com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance()) return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -472,9 +413,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,102 +425,80 @@ public Builder mergeFrom( private int classificationType_ = 0; /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The classificationType. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - getClassificationType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( - classificationType_); - return result == null - ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); + return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @param value The classificationType to set. * @return This builder for chaining. */ - public Builder setClassificationType( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { + public Builder setClassificationType(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,32 +508,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) - private static final com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata(); } - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -628,8 +543,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java similarity index 56% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java index b7c177d77..c915e6313 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/image.proto package com.google.cloud.automl.v1beta1; -public interface ImageClassificationDatasetMetadataOrBuilder - extends +public interface ImageClassificationDatasetMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The classificationType. */ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java similarity index 56% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java index 1e368ef93..afd15a9ae 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java @@ -1,57 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 Classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata} */ -public final class ImageClassificationModelDeploymentMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageClassificationModelDeploymentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) ImageClassificationModelDeploymentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageClassificationModelDeploymentMetadata.newBuilder() to construct. - private ImageClassificationModelDeploymentMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationModelDeploymentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageClassificationModelDeploymentMetadata() {} + private ImageClassificationModelDeploymentMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageClassificationModelDeploymentMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageClassificationModelDeploymentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,51 +52,46 @@ private ImageClassificationModelDeploymentMetadata( case 0: done = true; break; - case 8: - { - nodeCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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_ImageClassificationModelDeploymentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.class, - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder - .class); + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.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
@@ -124,7 +101,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int64 node_count = 1; - * * @return The nodeCount. */ @java.lang.Override @@ -133,7 +109,6 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (nodeCount_ != 0L) { output.writeInt64(1, nodeCount_); } @@ -159,7 +135,8 @@ public int getSerializedSize() { size = 0; if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, nodeCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -169,16 +146,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata)) { + if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata other = - (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) obj; + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata other = (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) obj; - if (getNodeCount() != other.getNodeCount()) return false; + if (getNodeCount() + != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -191,158 +167,142 @@ public int hashCode() { 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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNodeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata 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.ImageClassificationModelDeploymentMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata 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.ImageClassificationModelDeploymentMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata 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.ImageClassificationModelDeploymentMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - 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.ImageClassificationModelDeploymentMetadata 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.ImageClassificationModelDeploymentMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - 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.ImageClassificationModelDeploymentMetadata 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.ImageClassificationModelDeploymentMetadata - 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.ImageClassificationModelDeploymentMetadata 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.ImageClassificationModelDeploymentMetadata - parseFrom( - com.google.protobuf.CodedInputStream 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.ImageClassificationModelDeploymentMetadata 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model deployment metadata specific to Image Classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.class, - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder - .class); + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -352,22 +312,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance(); + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata build() { - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata result = - buildPartial(); + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -375,10 +332,8 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadat } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - buildPartial() { - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata result = - new com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata(this); + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata buildPartial() { + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata result = new com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata(this); result.nodeCount_ = nodeCount_; onBuilt(); return result; @@ -388,52 +343,46 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadat public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ImageClassificationModelDeploymentMetadata) { - return mergeFrom( - (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) other); + if (other instanceof com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata other) { + if (other == com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance()) return this; if (other.getNodeCount() != 0L) { setNodeCount(other.getNodeCount()); } @@ -452,14 +401,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parsedMessage = - null; + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -469,10 +415,8 @@ public Builder mergeFrom( return this; } - private long nodeCount_; + 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
@@ -482,7 +426,6 @@ public Builder mergeFrom(
      * 
* * int64 node_count = 1; - * * @return The nodeCount. */ @java.lang.Override @@ -490,8 +433,6 @@ 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
@@ -501,19 +442,16 @@ public long getNodeCount() {
      * 
* * int64 node_count = 1; - * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -523,18 +461,17 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 1; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -544,34 +481,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - private static final com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata(); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationModelDeploymentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationModelDeploymentMetadata(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationModelDeploymentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationModelDeploymentMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,8 +516,9 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java similarity index 57% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java index f40580896..5fec803c1 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/image.proto package com.google.cloud.automl.v1beta1; -public interface ImageClassificationModelDeploymentMetadataOrBuilder - extends +public interface ImageClassificationModelDeploymentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) 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
@@ -35,7 +17,6 @@ public interface ImageClassificationModelDeploymentMetadataOrBuilder
    * 
* * int64 node_count = 1; - * * @return The nodeCount. */ long getNodeCount(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java similarity index 80% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java index b1825563c..905f4e594 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/image.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Model metadata for image classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationModelMetadata} */ -public final class ImageClassificationModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageClassificationModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) ImageClassificationModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageClassificationModelMetadata.newBuilder() to construct. - private ImageClassificationModelMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageClassificationModelMetadata() { baseModelId_ = ""; stopReason_ = ""; @@ -46,15 +27,16 @@ private ImageClassificationModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageClassificationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageClassificationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,86 +55,79 @@ private ImageClassificationModelMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - baseModelId_ = s; - break; - } - case 16: - { - trainBudget_ = input.readInt64(); - break; - } - case 24: - { - trainCost_ = input.readInt64(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + baseModelId_ = s; + break; + } + case 16: { - stopReason_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + trainBudget_ = input.readInt64(); + break; + } + case 24: { - modelType_ = s; - break; - } - case 105: - { - nodeQps_ = input.readDouble(); - break; - } - case 112: - { - nodeCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + trainCost_ = input.readInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + stopReason_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + modelType_ = s; + break; + } + case 105: { + + nodeQps_ = input.readDouble(); + break; + } + case 112: { + + 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); + 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_ImageClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.class, - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder.class); } public static final int BASE_MODEL_ID_FIELD_NUMBER = 1; private volatile java.lang.Object baseModelId_; /** - * - * *
    * 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
@@ -162,7 +137,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string base_model_id = 1; - * * @return The baseModelId. */ @java.lang.Override @@ -171,15 +145,14 @@ public java.lang.String getBaseModelId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModelId_ = s; return s; } } /** - * - * *
    * 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
@@ -189,15 +162,16 @@ public java.lang.String getBaseModelId() {
    * 
* * string base_model_id = 1; - * * @return The bytes for baseModelId. */ @java.lang.Override - public com.google.protobuf.ByteString getBaseModelIdBytes() { + public com.google.protobuf.ByteString + getBaseModelIdBytes() { java.lang.Object ref = baseModelId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseModelId_ = b; return b; } else { @@ -208,15 +182,12 @@ public com.google.protobuf.ByteString getBaseModelIdBytes() { public static final int TRAIN_BUDGET_FIELD_NUMBER = 2; private long trainBudget_; /** - * - * *
    * 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; - * * @return The trainBudget. */ @java.lang.Override @@ -227,8 +198,6 @@ public long getTrainBudget() { public static final int TRAIN_COST_FIELD_NUMBER = 3; private long trainCost_; /** - * - * *
    * 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
@@ -236,7 +205,6 @@ public long getTrainBudget() {
    * 
* * int64 train_cost = 3; - * * @return The trainCost. */ @java.lang.Override @@ -247,15 +215,12 @@ public long getTrainCost() { public static final int STOP_REASON_FIELD_NUMBER = 5; private volatile java.lang.Object stopReason_; /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The stopReason. */ @java.lang.Override @@ -264,30 +229,30 @@ public java.lang.String getStopReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; } } /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ @java.lang.Override - public com.google.protobuf.ByteString getStopReasonBytes() { + public com.google.protobuf.ByteString + getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stopReason_ = b; return b; } else { @@ -298,8 +263,6 @@ 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.
@@ -337,7 +300,6 @@ public com.google.protobuf.ByteString getStopReasonBytes() {
    * 
* * string model_type = 7; - * * @return The modelType. */ @java.lang.Override @@ -346,15 +308,14 @@ public java.lang.String getModelType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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.
@@ -392,15 +353,16 @@ public java.lang.String getModelType() {
    * 
* * string model_type = 7; - * * @return The bytes for modelType. */ @java.lang.Override - public com.google.protobuf.ByteString getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelType_ = b; return b; } else { @@ -411,15 +373,12 @@ public com.google.protobuf.ByteString getModelTypeBytes() { public static final int NODE_QPS_FIELD_NUMBER = 13; 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 = 13; - * * @return The nodeQps. */ @java.lang.Override @@ -430,8 +389,6 @@ public double getNodeQps() { public static final int NODE_COUNT_FIELD_NUMBER = 14; 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
@@ -439,7 +396,6 @@ public double getNodeQps() {
    * 
* * int64 node_count = 14; - * * @return The nodeCount. */ @java.lang.Override @@ -448,7 +404,6 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -460,7 +415,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseModelId_); } @@ -495,10 +451,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseModelId_); } if (trainBudget_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, trainBudget_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, trainBudget_); } if (trainCost_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, trainCost_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, trainCost_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stopReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stopReason_); @@ -507,10 +465,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, modelType_); } if (nodeQps_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(13, nodeQps_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(13, nodeQps_); } if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(14, nodeCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -520,22 +480,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata other = - (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) obj; - - if (!getBaseModelId().equals(other.getBaseModelId())) return false; - 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; + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata other = (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) obj; + + if (!getBaseModelId() + .equals(other.getBaseModelId())) return false; + 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 (java.lang.Double.doubleToLongBits(getNodeQps()) - != java.lang.Double.doubleToLongBits(other.getNodeQps())) return false; - if (getNodeCount() != other.getNodeCount()) return false; + != java.lang.Double.doubleToLongBits( + other.getNodeQps())) return false; + if (getNodeCount() + != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -550,147 +516,138 @@ public int hashCode() { hash = (37 * hash) + BASE_MODEL_ID_FIELD_NUMBER; hash = (53 * hash) + getBaseModelId().hashCode(); hash = (37 * hash) + TRAIN_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainBudget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTrainBudget()); hash = (37 * hash) + TRAIN_COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainCost()); + 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 = (37 * hash) + NODE_QPS_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getNodeQps())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNodeQps())); hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNodeCount()); + 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.ImageClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ImageClassificationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata 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.ImageClassificationModelMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model metadata for image classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.class, - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.newBuilder() @@ -698,15 +655,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -728,14 +686,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ImageProto - .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); } @@ -750,8 +707,7 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata build() @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata buildPartial() { - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata result = - new com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata(this); + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata result = new com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata(this); result.baseModelId_ = baseModelId_; result.trainBudget_ = trainBudget_; result.trainCost_ = trainCost_; @@ -767,50 +723,46 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ImageClassificationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata other) { + if (other == com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance()) return this; if (!other.getBaseModelId().isEmpty()) { baseModelId_ = other.baseModelId_; onChanged(); @@ -854,9 +806,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -868,8 +818,6 @@ public Builder mergeFrom( private java.lang.Object baseModelId_ = ""; /** - * - * *
      * 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
@@ -879,13 +827,13 @@ public Builder mergeFrom(
      * 
* * string base_model_id = 1; - * * @return The baseModelId. */ public java.lang.String getBaseModelId() { java.lang.Object ref = baseModelId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModelId_ = s; return s; @@ -894,8 +842,6 @@ 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
@@ -905,14 +851,15 @@ public java.lang.String getBaseModelId() {
      * 
* * string base_model_id = 1; - * * @return The bytes for baseModelId. */ - public com.google.protobuf.ByteString getBaseModelIdBytes() { + public com.google.protobuf.ByteString + getBaseModelIdBytes() { java.lang.Object ref = baseModelId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseModelId_ = b; return b; } else { @@ -920,8 +867,6 @@ 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
@@ -931,22 +876,20 @@ public com.google.protobuf.ByteString getBaseModelIdBytes() {
      * 
* * string base_model_id = 1; - * * @param value The baseModelId to set. * @return This builder for chaining. */ - public Builder setBaseModelId(java.lang.String value) { + public Builder setBaseModelId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + baseModelId_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -956,18 +899,15 @@ public Builder setBaseModelId(java.lang.String value) {
      * 
* * string base_model_id = 1; - * * @return This builder for chaining. */ public Builder clearBaseModelId() { - + baseModelId_ = getDefaultInstance().getBaseModelId(); onChanged(); return this; } /** - * - * *
      * 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
@@ -977,32 +917,29 @@ public Builder clearBaseModelId() {
      * 
* * string base_model_id = 1; - * * @param value The bytes for baseModelId to set. * @return This builder for chaining. */ - public Builder setBaseModelIdBytes(com.google.protobuf.ByteString value) { + public Builder setBaseModelIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseModelId_ = value; onChanged(); return this; } - private long trainBudget_; + private long trainBudget_ ; /** - * - * *
      * 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; - * * @return The trainBudget. */ @java.lang.Override @@ -1010,47 +947,39 @@ public long getTrainBudget() { return trainBudget_; } /** - * - * *
      * 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; - * * @param value The trainBudget to set. * @return This builder for chaining. */ public Builder setTrainBudget(long value) { - + trainBudget_ = value; onChanged(); return this; } /** - * - * *
      * 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; - * * @return This builder for chaining. */ public Builder clearTrainBudget() { - + trainBudget_ = 0L; onChanged(); return this; } - private long trainCost_; + private long trainCost_ ; /** - * - * *
      * 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
@@ -1058,7 +987,6 @@ public Builder clearTrainBudget() {
      * 
* * int64 train_cost = 3; - * * @return The trainCost. */ @java.lang.Override @@ -1066,8 +994,6 @@ public long getTrainCost() { return trainCost_; } /** - * - * *
      * 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
@@ -1075,19 +1001,16 @@ public long getTrainCost() {
      * 
* * int64 train_cost = 3; - * * @param value The trainCost to set. * @return This builder for chaining. */ public Builder setTrainCost(long value) { - + trainCost_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -1095,11 +1018,10 @@ public Builder setTrainCost(long value) {
      * 
* * int64 train_cost = 3; - * * @return This builder for chaining. */ public Builder clearTrainCost() { - + trainCost_ = 0L; onChanged(); return this; @@ -1107,21 +1029,19 @@ public Builder clearTrainCost() { private java.lang.Object stopReason_ = ""; /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return The stopReason. */ public java.lang.String getStopReason() { java.lang.Object ref = stopReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; @@ -1130,22 +1050,21 @@ public java.lang.String getStopReason() { } } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ - public com.google.protobuf.ByteString getStopReasonBytes() { + public com.google.protobuf.ByteString + getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stopReason_ = b; return b; } else { @@ -1153,64 +1072,57 @@ public com.google.protobuf.ByteString getStopReasonBytes() { } } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @param value The stopReason to set. * @return This builder for chaining. */ - public Builder setStopReason(java.lang.String value) { + public Builder setStopReason( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stopReason_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return This builder for chaining. */ public Builder clearStopReason() { - + stopReason_ = getDefaultInstance().getStopReason(); onChanged(); return this; } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @param value The bytes for stopReason to set. * @return This builder for chaining. */ - public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { + public Builder setStopReasonBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stopReason_ = value; onChanged(); return this; @@ -1218,8 +1130,6 @@ public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { 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.
@@ -1257,13 +1167,13 @@ public Builder setStopReasonBytes(com.google.protobuf.ByteString value) {
      * 
* * string model_type = 7; - * * @return The modelType. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelType_ = s; return s; @@ -1272,8 +1182,6 @@ public java.lang.String getModelType() { } } /** - * - * *
      * Optional. Type of the model. The available values are:
      * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -1311,14 +1219,15 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 7; - * * @return The bytes for modelType. */ - public com.google.protobuf.ByteString getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelType_ = b; return b; } else { @@ -1326,8 +1235,6 @@ public com.google.protobuf.ByteString getModelTypeBytes() { } } /** - * - * *
      * Optional. Type of the model. The available values are:
      * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -1365,22 +1272,20 @@ public com.google.protobuf.ByteString getModelTypeBytes() {
      * 
* * string model_type = 7; - * * @param value The modelType to set. * @return This builder for chaining. */ - public Builder setModelType(java.lang.String value) { + public Builder setModelType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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.
@@ -1418,18 +1323,15 @@ public Builder setModelType(java.lang.String value) {
      * 
* * string model_type = 7; - * * @return This builder for chaining. */ 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.
@@ -1467,32 +1369,29 @@ public Builder clearModelType() {
      * 
* * string model_type = 7; - * * @param value The bytes for modelType to set. * @return This builder for chaining. */ - public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { + public Builder setModelTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelType_ = value; onChanged(); return this; } - private double nodeQps_; + 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 = 13; - * * @return The nodeQps. */ @java.lang.Override @@ -1500,47 +1399,39 @@ 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 = 13; - * * @param value The nodeQps to set. * @return This builder for chaining. */ 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 = 13; - * * @return This builder for chaining. */ public Builder clearNodeQps() { - + nodeQps_ = 0D; onChanged(); return this; } - private long nodeCount_; + 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
@@ -1548,7 +1439,6 @@ public Builder clearNodeQps() {
      * 
* * int64 node_count = 14; - * * @return The nodeCount. */ @java.lang.Override @@ -1556,8 +1446,6 @@ 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
@@ -1565,19 +1453,16 @@ public long getNodeCount() {
      * 
* * int64 node_count = 14; - * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -1585,18 +1470,17 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 14; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1606,32 +1490,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) - private static final com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata(); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1643,8 +1525,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java similarity index 89% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java index 747152091..e7de2f63b 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/image.proto package com.google.cloud.automl.v1beta1; -public interface ImageClassificationModelMetadataOrBuilder - extends +public interface ImageClassificationModelMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * 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
@@ -35,13 +17,10 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * string base_model_id = 1; - * * @return The baseModelId. */ 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
@@ -51,28 +30,23 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * string base_model_id = 1; - * * @return The bytes for baseModelId. */ - com.google.protobuf.ByteString getBaseModelIdBytes(); + com.google.protobuf.ByteString + getBaseModelIdBytes(); /** - * - * *
    * 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; - * * @return The trainBudget. */ long getTrainBudget(); /** - * - * *
    * 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
@@ -80,41 +54,33 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * int64 train_cost = 3; - * * @return The trainCost. */ long getTrainCost(); /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The stopReason. */ java.lang.String getStopReason(); /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ - com.google.protobuf.ByteString getStopReasonBytes(); + 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.
@@ -152,13 +118,10 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * string model_type = 7; - * * @return The modelType. */ java.lang.String getModelType(); /** - * - * *
    * Optional. Type of the model. The available values are:
    * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -196,28 +159,23 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * string model_type = 7; - * * @return The bytes for modelType. */ - com.google.protobuf.ByteString getModelTypeBytes(); + com.google.protobuf.ByteString + getModelTypeBytes(); /** - * - * *
    * 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 = 13; - * * @return The nodeQps. */ double getNodeQps(); /** - * - * *
    * 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
@@ -225,7 +183,6 @@ public interface ImageClassificationModelMetadataOrBuilder
    * 
* * int64 node_count = 14; - * * @return The nodeCount. */ long getNodeCount(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java index a722d9fcb..861b60e75 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java @@ -1,56 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use ImageObjectDetectionAnnotation.newBuilder() to construct. - private ImageObjectDetectionAnnotation( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageObjectDetectionAnnotation() {} + private ImageObjectDetectionAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageObjectDetectionAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageObjectDetectionAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,72 +52,64 @@ private ImageObjectDetectionAnnotation( 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 10: { + com.google.cloud.automl.v1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 21: - { - score_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.automl.v1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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; + 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 + 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); + 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; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -142,25 +117,18 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * Output only. The rectangle representing the object location.
    * 
@@ -175,15 +143,12 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui 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; - * * @return The score. */ @java.lang.Override @@ -192,7 +157,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingBox_ != null) { output.writeMessage(1, getBoundingBox()); } @@ -221,10 +186,12 @@ public int getSerializedSize() { size = 0; if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingBox()); } if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,20 +201,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -264,134 +232,125 @@ public int hashCode() { hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + 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 { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.class, com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.newBuilder() @@ -399,15 +358,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -423,14 +383,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); } @@ -445,8 +404,7 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation build() { @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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation result = new com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation(this); if (boundingBoxBuilder_ == null) { result.boundingBox_ = boundingBox_; } else { @@ -461,39 +419,38 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation)other); } else { super.mergeFrom(other); return this; @@ -501,9 +458,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation other) { - if (other - == com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance()) return this; if (other.hasBoundingBox()) { mergeBoundingBox(other.getBoundingBox()); } @@ -529,9 +484,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -543,47 +496,34 @@ public Builder mergeFrom( 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_; + 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; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; - * * @return The boundingBox. */ public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -604,8 +544,6 @@ public Builder setBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly value return this; } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -624,8 +562,6 @@ public Builder setBoundingBox( return this; } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -636,9 +572,7 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly val if (boundingBoxBuilder_ == null) { if (boundingBox_ != null) { boundingBox_ = - com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingBox_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial(); } else { boundingBox_ = value; } @@ -650,8 +584,6 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly val return this; } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -670,8 +602,6 @@ public Builder clearBoundingBox() { return this; } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -679,13 +609,11 @@ public Builder clearBoundingBox() { * .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.
      * 
@@ -696,14 +624,11 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui if (boundingBoxBuilder_ != null) { return boundingBoxBuilder_.getMessageOrBuilder(); } else { - return boundingBox_ == null - ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? + com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } } /** - * - * *
      * Output only. The rectangle representing the object location.
      * 
@@ -711,33 +636,27 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui * .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> + 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()); + 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_; + 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; - * * @return The score. */ @java.lang.Override @@ -745,45 +664,39 @@ 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; - * * @param value The score to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -793,32 +706,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -830,8 +741,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java similarity index 66% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java index 2988e1bb4..ad98f8505 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; - * * @return The boundingBox. */ com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * Output only. The rectangle representing the object location.
    * 
@@ -59,15 +35,12 @@ public interface ImageObjectDetectionAnnotationOrBuilder 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; - * * @return The score. */ float getScore(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java similarity index 59% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java index d7435ce81..530938955 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java @@ -1,57 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use ImageObjectDetectionDatasetMetadata.newBuilder() to construct. - private ImageObjectDetectionDatasetMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageObjectDetectionDatasetMetadata() {} + private ImageObjectDetectionDatasetMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageObjectDetectionDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageObjectDetectionDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,42 +52,39 @@ private ImageObjectDetectionDatasetMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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; @@ -117,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -135,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata other = (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,145 +139,134 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.class, com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -306,16 +274,14 @@ public Builder clear() { } @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; + 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(); + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); } @java.lang.Override @@ -329,8 +295,7 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata build @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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata result = new com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata(this); onBuilt(); return result; } @@ -339,51 +304,46 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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; @@ -403,9 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -414,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -426,32 +384,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -463,8 +419,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java new file mode 100644 index 000000000..12ca4ebdc --- /dev/null +++ b/owl-bot-staging/v1beta1/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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java index 9b12e97d8..2e47233bf 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.
@@ -28,33 +11,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics}
  */
-public final class ImageObjectDetectionEvaluationMetrics
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+private static final long serialVersionUID = 0L;
   // Use ImageObjectDetectionEvaluationMetrics.newBuilder() to construct.
-  private ImageObjectDetectionEvaluationMetrics(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ImageObjectDetectionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImageObjectDetectionEvaluationMetrics() {
     boundingBoxMetricsEntries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImageObjectDetectionEvaluationMetrics();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImageObjectDetectionEvaluationMetrics(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,80 +55,69 @@ private ImageObjectDetectionEvaluationMetrics(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              evaluatedBoundingBoxCount_ = input.readInt32();
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                boundingBoxMetricsEntries_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              boundingBoxMetricsEntries_.add(
-                  input.readMessage(
-                      com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 29:
-            {
-              boundingBoxMeanAveragePrecision_ = input.readFloat();
-              break;
+          case 8: {
+
+            evaluatedBoundingBoxCount_ = input.readInt32();
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              boundingBoxMetricsEntries_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        boundingBoxMetricsEntries_ =
-            java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+        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;
+  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
+    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);
+            com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.class, com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder.class);
   }
 
   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; - * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -156,11 +126,8 @@ public int getEvaluatedBoundingBoxCount() { } public static final int BOUNDING_BOX_METRICS_ENTRIES_FIELD_NUMBER = 2; - private java.util.List - boundingBoxMetricsEntries_; + 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
@@ -168,18 +135,13 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ @java.lang.Override - public java.util.List - getBoundingBoxMetricsEntriesList() { + 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
@@ -187,18 +149,14 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ @java.lang.Override - public java.util.List + 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
@@ -206,17 +164,13 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ @java.lang.Override 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
@@ -224,18 +178,13 @@ public int getBoundingBoxMetricsEntriesCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( - int index) { + 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
@@ -243,28 +192,23 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder - getBoundingBoxMetricsEntriesOrBuilder(int index) { + 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; - * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -273,7 +217,6 @@ public float getBoundingBoxMeanAveragePrecision() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (evaluatedBoundingBoxCount_ != 0) { output.writeInt32(1, evaluatedBoundingBoxCount_); } @@ -305,17 +249,16 @@ public int getSerializedSize() { size = 0; if (evaluatedBoundingBoxCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, evaluatedBoundingBoxCount_); + 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)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, boundingBoxMetricsEntries_.get(i)); } if (boundingBoxMeanAveragePrecision_ != 0F) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 3, boundingBoxMeanAveragePrecision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, boundingBoxMeanAveragePrecision_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -325,19 +268,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (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; + != java.lang.Float.floatToIntBits( + other.getBoundingBoxMeanAveragePrecision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -356,112 +300,104 @@ public int hashCode() { hash = (53 * hash) + getBoundingBoxMetricsEntriesList().hashCode(); } hash = (37 * hash) + BOUNDING_BOX_MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoundingBoxMeanAveragePrecision()); + 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 { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -469,42 +405,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.class, com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.newBuilder()
+    // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getBoundingBoxMetricsEntriesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -522,16 +455,14 @@ public Builder clear() {
     }
 
     @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;
+    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();
+    public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics getDefaultInstanceForType() {
+      return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -545,14 +476,12 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics bui
 
     @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);
+      com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics result = new com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics(this);
       int from_bitField0_ = bitField0_;
       result.evaluatedBoundingBoxCount_ = evaluatedBoundingBoxCount_;
       if (boundingBoxMetricsEntriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          boundingBoxMetricsEntries_ =
-              java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+          boundingBoxMetricsEntries_ = java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.boundingBoxMetricsEntries_ = boundingBoxMetricsEntries_;
@@ -568,51 +497,46 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics bui
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        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;
+    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());
       }
@@ -634,10 +558,9 @@ public Builder mergeFrom(
             boundingBoxMetricsEntriesBuilder_ = null;
             boundingBoxMetricsEntries_ = other.boundingBoxMetricsEntries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingBoxMetricsEntriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getBoundingBoxMetricsEntriesFieldBuilder()
-                    : null;
+            boundingBoxMetricsEntriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getBoundingBoxMetricsEntriesFieldBuilder() : null;
           } else {
             boundingBoxMetricsEntriesBuilder_.addAllMessages(other.boundingBoxMetricsEntries_);
           }
@@ -665,9 +588,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -676,20 +597,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private int evaluatedBoundingBoxCount_;
+    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; - * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -697,64 +614,50 @@ 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; - * * @param value The evaluatedBoundingBoxCount to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearEvaluatedBoundingBoxCount() { - + evaluatedBoundingBoxCount_ = 0; onChanged(); return this; } - private java.util.List - boundingBoxMetricsEntries_ = java.util.Collections.emptyList(); - + private java.util.List boundingBoxMetricsEntries_ = + java.util.Collections.emptyList(); private void ensureBoundingBoxMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingBoxMetricsEntries_ = - new java.util.ArrayList( - boundingBoxMetricsEntries_); + boundingBoxMetricsEntries_ = new java.util.ArrayList(boundingBoxMetricsEntries_); bitField0_ |= 0x00000001; - } + } } 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_; + 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
@@ -762,12 +665,9 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public java.util.List - getBoundingBoxMetricsEntriesList() { + public java.util.List getBoundingBoxMetricsEntriesList() { if (boundingBoxMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_); } else { @@ -775,8 +675,6 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() { } } /** - * - * *
      * 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
@@ -784,9 +682,7 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public int getBoundingBoxMetricsEntriesCount() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -796,8 +692,6 @@ public 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
@@ -805,12 +699,9 @@ public int getBoundingBoxMetricsEntriesCount() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( - int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { return boundingBoxMetricsEntries_.get(index); } else { @@ -818,8 +709,6 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet } } /** - * - * *
      * 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
@@ -827,9 +716,7 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder setBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { @@ -846,8 +733,6 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -855,13 +740,10 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder setBoundingBoxMetricsEntries( - int index, - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); boundingBoxMetricsEntries_.set(index, builderForValue.build()); @@ -872,8 +754,6 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -881,12 +761,9 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public Builder addBoundingBoxMetricsEntries( - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { + public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { if (boundingBoxMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -900,8 +777,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -909,9 +784,7 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder addBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { @@ -928,8 +801,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -937,9 +808,7 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder addBoundingBoxMetricsEntries( com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { @@ -953,8 +822,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -962,13 +829,10 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder addBoundingBoxMetricsEntries( - int index, - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); boundingBoxMetricsEntries_.add(index, builderForValue.build()); @@ -979,8 +843,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -988,16 +850,14 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder addAllBoundingBoxMetricsEntries( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingBoxMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, boundingBoxMetricsEntries_); onChanged(); } else { boundingBoxMetricsEntriesBuilder_.addAllMessages(values); @@ -1005,8 +865,6 @@ public Builder addAllBoundingBoxMetricsEntries( 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
@@ -1014,9 +872,7 @@ public Builder addAllBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder clearBoundingBoxMetricsEntries() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -1029,8 +885,6 @@ public Builder clearBoundingBoxMetricsEntries() { 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
@@ -1038,9 +892,7 @@ public Builder clearBoundingBoxMetricsEntries() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ public Builder removeBoundingBoxMetricsEntries(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -1053,8 +905,6 @@ public Builder removeBoundingBoxMetricsEntries(int 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
@@ -1062,17 +912,13 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder - getBoundingBoxMetricsEntriesBuilder(int index) { + 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
@@ -1080,21 +926,16 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder - getBoundingBoxMetricsEntriesOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( + int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { - return boundingBoxMetricsEntries_.get(index); - } else { + 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
@@ -1102,13 +943,10 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public java.util.List< - ? extends com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder> - getBoundingBoxMetricsEntriesOrBuilderList() { + public java.util.List + getBoundingBoxMetricsEntriesOrBuilderList() { if (boundingBoxMetricsEntriesBuilder_ != null) { return boundingBoxMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1116,8 +954,6 @@ public Builder removeBoundingBoxMetricsEntries(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
@@ -1125,18 +961,13 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * 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()); + 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
@@ -1144,19 +975,14 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * 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()); + 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
@@ -1164,26 +990,18 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - public java.util.List - getBoundingBoxMetricsEntriesBuilderList() { + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -1193,17 +1011,14 @@ public Builder removeBoundingBoxMetricsEntries(int index) { return boundingBoxMetricsEntriesBuilder_; } - private float boundingBoxMeanAveragePrecision_; + 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; - * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -1211,45 +1026,39 @@ 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; - * * @param value The boundingBoxMeanAveragePrecision to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearBoundingBoxMeanAveragePrecision() { - + boundingBoxMeanAveragePrecision_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1259,32 +1068,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -1296,8 +1103,9 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java similarity index 65% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java index 7d768cb43..88f722052 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java @@ -1,45 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return The evaluatedBoundingBoxCount. */ 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
@@ -47,15 +26,11 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - java.util.List + 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
@@ -63,14 +38,10 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * 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
@@ -78,14 +49,10 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * 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
@@ -93,15 +60,11 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - java.util.List + 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
@@ -109,23 +72,18 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; */ - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder - getBoundingBoxMetricsEntriesOrBuilder(int index); + 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; - * * @return The boundingBoxMeanAveragePrecision. */ float getBoundingBoxMeanAveragePrecision(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java similarity index 56% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java index d40b69817..2bc99bc61 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java @@ -1,57 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use ImageObjectDetectionModelDeploymentMetadata.newBuilder() to construct. - private ImageObjectDetectionModelDeploymentMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionModelDeploymentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageObjectDetectionModelDeploymentMetadata() {} + private ImageObjectDetectionModelDeploymentMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageObjectDetectionModelDeploymentMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageObjectDetectionModelDeploymentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,51 +52,46 @@ private ImageObjectDetectionModelDeploymentMetadata( case 0: done = true; break; - case 8: - { - nodeCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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
@@ -124,7 +101,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int64 node_count = 1; - * * @return The nodeCount. */ @java.lang.Override @@ -133,7 +109,6 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (nodeCount_ != 0L) { output.writeInt64(1, nodeCount_); } @@ -159,7 +135,8 @@ public int getSerializedSize() { size = 0; if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, nodeCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -169,16 +146,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata)) { + 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; + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata other = (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) obj; - if (getNodeCount() != other.getNodeCount()) return false; + if (getNodeCount() + != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -191,158 +167,142 @@ public int hashCode() { 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 = (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 { + 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 { + 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 { + 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 { + 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 { + 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 { + 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) + 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 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) + 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 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) + 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); + 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.class, com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -352,22 +312,19 @@ public Builder clear() { } @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; + 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(); + 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(); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -375,10 +332,8 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetada } @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); + 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; @@ -388,52 +343,46 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetada public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -452,14 +401,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -469,10 +415,8 @@ public Builder mergeFrom( return this; } - private long nodeCount_; + 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
@@ -482,7 +426,6 @@ public Builder mergeFrom(
      * 
* * int64 node_count = 1; - * * @return The nodeCount. */ @java.lang.Override @@ -490,8 +433,6 @@ 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
@@ -501,19 +442,16 @@ public long getNodeCount() {
      * 
* * int64 node_count = 1; - * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -523,18 +461,17 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 1; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -544,48 +481,44 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata(); } - public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata - getDefaultInstance() { + 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); - } - }; + 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() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java similarity index 57% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java index c45fa4223..798ea315b 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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
@@ -35,7 +17,6 @@ public interface ImageObjectDetectionModelDeploymentMetadataOrBuilder
    * 
* * int64 node_count = 1; - * * @return The nodeCount. */ long getNodeCount(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java similarity index 79% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java index 5b07619e8..51672d62a 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use ImageObjectDetectionModelMetadata.newBuilder() to construct. - private ImageObjectDetectionModelMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageObjectDetectionModelMetadata() { modelType_ = ""; stopReason_ = ""; @@ -45,15 +26,16 @@ private ImageObjectDetectionModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageObjectDetectionModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageObjectDetectionModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,79 +54,73 @@ private ImageObjectDetectionModelMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - modelType_ = s; - break; - } - case 24: - { - nodeCount_ = input.readInt64(); - break; - } - case 33: - { - nodeQps_ = input.readDouble(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + modelType_ = s; + break; + } + case 24: { - stopReason_ = s; - break; - } - case 48: - { - trainBudgetMilliNodeHours_ = input.readInt64(); - break; - } - case 56: - { - trainCostMilliNodeHours_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nodeCount_ = input.readInt64(); + break; + } + case 33: { + + nodeQps_ = input.readDouble(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + stopReason_ = s; + 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); + 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; + 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 + 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); + 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
@@ -172,7 +148,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string model_type = 1; - * * @return The modelType. */ @java.lang.Override @@ -181,15 +156,14 @@ public java.lang.String getModelType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -217,15 +191,16 @@ public java.lang.String getModelType() {
    * 
* * string model_type = 1; - * * @return The bytes for modelType. */ @java.lang.Override - public com.google.protobuf.ByteString getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelType_ = b; return b; } else { @@ -236,8 +211,6 @@ public com.google.protobuf.ByteString getModelTypeBytes() { 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
@@ -245,7 +218,6 @@ public com.google.protobuf.ByteString getModelTypeBytes() {
    * 
* * int64 node_count = 3; - * * @return The nodeCount. */ @java.lang.Override @@ -256,15 +228,12 @@ public long getNodeCount() { 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; - * * @return The nodeQps. */ @java.lang.Override @@ -275,15 +244,12 @@ public double getNodeQps() { public static final int STOP_REASON_FIELD_NUMBER = 5; private volatile java.lang.Object stopReason_; /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The stopReason. */ @java.lang.Override @@ -292,30 +258,30 @@ public java.lang.String getStopReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; } } /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ @java.lang.Override - public com.google.protobuf.ByteString getStopReasonBytes() { + public com.google.protobuf.ByteString + getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stopReason_ = b; return b; } else { @@ -326,8 +292,6 @@ public com.google.protobuf.ByteString getStopReasonBytes() { 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 actual
@@ -347,7 +311,6 @@ public com.google.protobuf.ByteString getStopReasonBytes() {
    * 
* * int64 train_budget_milli_node_hours = 6; - * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -358,8 +321,6 @@ public long getTrainBudgetMilliNodeHours() { public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 7; private long trainCostMilliNodeHours_; /** - * - * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -367,7 +328,6 @@ public long getTrainBudgetMilliNodeHours() {
    * 
* * int64 train_cost_milli_node_hours = 7; - * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -376,7 +336,6 @@ public long getTrainCostMilliNodeHours() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelType_); } @@ -420,19 +380,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, modelType_); } if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, nodeCount_); } if (nodeQps_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, nodeQps_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, nodeQps_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stopReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stopReason_); } if (trainBudgetMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, trainBudgetMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, trainBudgetMilliNodeHours_); } if (trainCostMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, trainCostMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, trainCostMilliNodeHours_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -442,21 +406,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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 (!getStopReason().equals(other.getStopReason())) return false; - if (getTrainBudgetMilliNodeHours() != other.getTrainBudgetMilliNodeHours()) return false; - if (getTrainCostMilliNodeHours() != other.getTrainCostMilliNodeHours()) return false; + != java.lang.Double.doubleToLongBits( + other.getNodeQps())) return false; + if (!getStopReason() + .equals(other.getStopReason())) return false; + if (getTrainBudgetMilliNodeHours() + != other.getTrainBudgetMilliNodeHours()) return false; + if (getTrainCostMilliNodeHours() + != other.getTrainCostMilliNodeHours()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -471,163 +440,153 @@ public int 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 = (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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNodeQps())); hash = (37 * hash) + STOP_REASON_FIELD_NUMBER; hash = (53 * hash) + getStopReason().hashCode(); hash = (37 * hash) + TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainBudgetMilliNodeHours()); + 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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTrainCostMilliNodeHours()); 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 { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.class, com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -647,14 +606,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } @@ -669,8 +627,7 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata build() @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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata result = new com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata(this); result.modelType_ = modelType_; result.nodeCount_ = nodeCount_; result.nodeQps_ = nodeQps_; @@ -685,50 +642,46 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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(); @@ -768,9 +721,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -782,8 +733,6 @@ public Builder mergeFrom( 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
@@ -811,13 +760,13 @@ public Builder mergeFrom(
      * 
* * string model_type = 1; - * * @return The modelType. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelType_ = s; return s; @@ -826,8 +775,6 @@ public 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
@@ -855,14 +802,15 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 1; - * * @return The bytes for modelType. */ - public com.google.protobuf.ByteString getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelType_ = b; return b; } else { @@ -870,8 +818,6 @@ public com.google.protobuf.ByteString getModelTypeBytes() { } } /** - * - * *
      * Optional. Type of the model. The available values are:
      * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
@@ -899,22 +845,20 @@ public com.google.protobuf.ByteString getModelTypeBytes() {
      * 
* * string model_type = 1; - * * @param value The modelType to set. * @return This builder for chaining. */ - public Builder setModelType(java.lang.String value) { + public Builder setModelType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -942,18 +886,15 @@ public Builder setModelType(java.lang.String value) {
      * 
* * string model_type = 1; - * * @return This builder for chaining. */ 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
@@ -981,25 +922,23 @@ public Builder clearModelType() {
      * 
* * string model_type = 1; - * * @param value The bytes for modelType to set. * @return This builder for chaining. */ - public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { + public Builder setModelTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelType_ = value; onChanged(); return this; } - private long nodeCount_; + 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
@@ -1007,7 +946,6 @@ public Builder setModelTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 node_count = 3; - * * @return The nodeCount. */ @java.lang.Override @@ -1015,8 +953,6 @@ 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
@@ -1024,19 +960,16 @@ public long getNodeCount() {
      * 
* * int64 node_count = 3; - * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -1044,27 +977,23 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 3; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } - private double nodeQps_; + 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; - * * @return The nodeQps. */ @java.lang.Override @@ -1072,38 +1001,32 @@ 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; - * * @param value The nodeQps to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearNodeQps() { - + nodeQps_ = 0D; onChanged(); return this; @@ -1111,21 +1034,19 @@ public Builder clearNodeQps() { private java.lang.Object stopReason_ = ""; /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return The stopReason. */ public java.lang.String getStopReason() { java.lang.Object ref = stopReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; @@ -1134,22 +1055,21 @@ public java.lang.String getStopReason() { } } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ - public com.google.protobuf.ByteString getStopReasonBytes() { + public com.google.protobuf.ByteString + getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stopReason_ = b; return b; } else { @@ -1157,73 +1077,64 @@ public com.google.protobuf.ByteString getStopReasonBytes() { } } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @param value The stopReason to set. * @return This builder for chaining. */ - public Builder setStopReason(java.lang.String value) { + public Builder setStopReason( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stopReason_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @return This builder for chaining. */ public Builder clearStopReason() { - + stopReason_ = getDefaultInstance().getStopReason(); onChanged(); return this; } /** - * - * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; - * * @param value The bytes for stopReason to set. * @return This builder for chaining. */ - public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { + public Builder setStopReasonBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stopReason_ = value; onChanged(); return this; } - private long trainBudgetMilliNodeHours_; + 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 actual
@@ -1243,7 +1154,6 @@ public Builder setStopReasonBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 train_budget_milli_node_hours = 6; - * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -1251,8 +1161,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 actual
@@ -1272,19 +1180,16 @@ public long getTrainBudgetMilliNodeHours() {
      * 
* * int64 train_budget_milli_node_hours = 6; - * * @param value The trainBudgetMilliNodeHours to set. * @return This builder for chaining. */ 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 actual
@@ -1304,20 +1209,17 @@ public Builder setTrainBudgetMilliNodeHours(long value) {
      * 
* * int64 train_budget_milli_node_hours = 6; - * * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; } - private long trainCostMilliNodeHours_; + private long trainCostMilliNodeHours_ ; /** - * - * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1325,7 +1227,6 @@ public Builder clearTrainBudgetMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; - * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -1333,8 +1234,6 @@ public long getTrainCostMilliNodeHours() { return trainCostMilliNodeHours_; } /** - * - * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1342,19 +1241,16 @@ public long getTrainCostMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; - * * @param value The trainCostMilliNodeHours to set. * @return This builder for chaining. */ public Builder setTrainCostMilliNodeHours(long value) { - + trainCostMilliNodeHours_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1362,18 +1258,17 @@ public Builder setTrainCostMilliNodeHours(long value) {
      * 
* * int64 train_cost_milli_node_hours = 7; - * * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + trainCostMilliNodeHours_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1383,32 +1278,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -1420,8 +1313,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java similarity index 88% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java index f65f5db9b..585de2612 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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
@@ -53,13 +35,10 @@ public interface ImageObjectDetectionModelMetadataOrBuilder
    * 
* * string model_type = 1; - * * @return The modelType. */ 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
@@ -87,14 +66,12 @@ public interface ImageObjectDetectionModelMetadataOrBuilder
    * 
* * string model_type = 1; - * * @return The bytes for modelType. */ - com.google.protobuf.ByteString getModelTypeBytes(); + 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
@@ -102,55 +79,44 @@ public interface ImageObjectDetectionModelMetadataOrBuilder
    * 
* * int64 node_count = 3; - * * @return The nodeCount. */ 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; - * * @return The nodeQps. */ double getNodeQps(); /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The stopReason. */ java.lang.String getStopReason(); /** - * - * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; - * * @return The bytes for stopReason. */ - com.google.protobuf.ByteString getStopReasonBytes(); + com.google.protobuf.ByteString + getStopReasonBytes(); /** - * - * *
    * 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 actual
@@ -170,14 +136,11 @@ public interface ImageObjectDetectionModelMetadataOrBuilder
    * 
* * int64 train_budget_milli_node_hours = 6; - * * @return The trainBudgetMilliNodeHours. */ long getTrainBudgetMilliNodeHours(); /** - * - * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -185,7 +148,6 @@ public interface ImageObjectDetectionModelMetadataOrBuilder
    * 
* * int64 train_cost_milli_node_hours = 7; - * * @return The trainCostMilliNodeHours. */ long getTrainCostMilliNodeHours(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java index ba432aa22..da6343a85 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 ImageOrBuilder - extends +public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Image) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -33,13 +15,10 @@ public interface ImageOrBuilder
    * 
* * bytes image_bytes = 1; - * * @return Whether the imageBytes field is set. */ boolean hasImageBytes(); /** - * - * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -47,38 +26,29 @@ public interface ImageOrBuilder
    * 
* * bytes image_bytes = 1; - * * @return The imageBytes. */ com.google.protobuf.ByteString getImageBytes(); /** - * - * *
    * An input config specifying the content of the image.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * An input config specifying the content of the image.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; - * * @return The inputConfig. */ com.google.cloud.automl.v1beta1.InputConfig getInputConfig(); /** - * - * *
    * An input config specifying the content of the image.
    * 
@@ -88,29 +58,24 @@ public interface ImageOrBuilder com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; - * * @return The thumbnailUri. */ java.lang.String getThumbnailUri(); /** - * - * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; - * * @return The bytes for thumbnailUri. */ - com.google.protobuf.ByteString getThumbnailUriBytes(); + com.google.protobuf.ByteString + getThumbnailUriBytes(); public com.google.cloud.automl.v1beta1.Image.DataCase getDataCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java new file mode 100644 index 000000000..e076c0b7c --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java @@ -0,0 +1,138 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/image.proto + +package com.google.cloud.automl.v1beta1; + +public final class ImageProto { + private ImageProto() {} + 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_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_ImageClassificationModelDeploymentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_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; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/automl/v1beta1/image.prot" + + "o\022\033google.cloud.automl.v1beta1\032\031google/a" + + "pi/resource.proto\0321google/cloud/automl/v" + + "1beta1/annotation_spec.proto\0320google/clo" + + "ud/automl/v1beta1/classification.proto\032\037" + + "google/protobuf/timestamp.proto\032\034google/" + + "api/annotations.proto\"r\n\"ImageClassifica" + + "tionDatasetMetadata\022L\n\023classification_ty" + + "pe\030\001 \001(\0162/.google.cloud.automl.v1beta1.C" + + "lassificationType\"%\n#ImageObjectDetectio" + + "nDatasetMetadata\"\262\001\n ImageClassification" + + "ModelMetadata\022\025\n\rbase_model_id\030\001 \001(\t\022\024\n\014" + + "train_budget\030\002 \001(\003\022\022\n\ntrain_cost\030\003 \001(\003\022\023" + + "\n\013stop_reason\030\005 \001(\t\022\022\n\nmodel_type\030\007 \001(\t\022" + + "\020\n\010node_qps\030\r \001(\001\022\022\n\nnode_count\030\016 \001(\003\"\276\001" + + "\n!ImageObjectDetectionModelMetadata\022\022\n\nm" + + "odel_type\030\001 \001(\t\022\022\n\nnode_count\030\003 \001(\003\022\020\n\010n" + + "ode_qps\030\004 \001(\001\022\023\n\013stop_reason\030\005 \001(\t\022%\n\035tr" + + "ain_budget_milli_node_hours\030\006 \001(\003\022#\n\033tra" + + "in_cost_milli_node_hours\030\007 \001(\003\"@\n*ImageC" + + "lassificationModelDeploymentMetadata\022\022\n\n" + + "node_count\030\001 \001(\003\"A\n+ImageObjectDetection" + + "ModelDeploymentMetadata\022\022\n\nnode_count\030\001 " + + "\001(\003B\261\001\n\037com.google.cloud.automl.v1beta1B" + + "\nImageProtoP\001ZAgoogle.golang.org/genprot" + + "o/googleapis/cloud/automl/v1beta1;automl" + + "\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Google:" + + ":Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor, + new java.lang.String[] { "ClassificationType", }); + 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", "ModelType", "NodeQps", "NodeCount", }); + 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", "StopReason", "TrainBudgetMilliNodeHours", "TrainCostMilliNodeHours", }); + internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor, + new java.lang.String[] { "NodeCount", }); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + 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.ResourceProto.getDescriptor(); + com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java similarity index 65% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java index 6d01d3581..ed5121222 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use ImportDataOperationMetadata.newBuilder() to construct. private ImportDataOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImportDataOperationMetadata() {} + private ImportDataOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportDataOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportDataOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private ImportDataOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata other = (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ImportDataOperationMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.class, com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,9 +274,9 @@ public Builder clear() { } @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; + 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 @@ -323,8 +295,7 @@ public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata result = new com.google.cloud.automl.v1beta1.ImportDataOperationMetadata(this); onBuilt(); return result; } @@ -333,39 +304,38 @@ public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ImportDataOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -373,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImportDataOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -394,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -404,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -416,12 +384,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -430,16 +398,16 @@ public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getDef 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); - } - }; + 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; @@ -454,4 +422,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java new file mode 100644 index 000000000..8398529f0 --- /dev/null +++ b/owl-bot-staging/v1beta1/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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java similarity index 63% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java index 50a96554d..20a384c6d 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImportDataRequest} */ -public final class ImportDataRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImportDataRequest) ImportDataRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportDataRequest.newBuilder() to construct. private ImportDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportDataRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportDataRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,77 +53,66 @@ private ImportDataRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 26: { + com.google.cloud.automl.v1beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.automl.v1beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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_ImportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImportDataRequest.class, - com.google.cloud.automl.v1beta1.ImportDataRequest.Builder.class); + com.google.cloud.automl.v1beta1.ImportDataRequest.class, com.google.cloud.automl.v1beta1.ImportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Dataset name. Dataset must already exist. All imported
    * annotations and examples will be added.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -149,32 +121,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Dataset name. Dataset must already exist. All imported
    * annotations and examples will be added.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -185,17 +155,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1beta1.InputConfig inputConfig_; /** - * - * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -203,36 +168,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { @@ -240,7 +194,6 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -272,7 +226,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,18 +237,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ImportDataRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ImportDataRequest other = - (com.google.cloud.automl.v1beta1.ImportDataRequest) obj; + com.google.cloud.automl.v1beta1.ImportDataRequest other = (com.google.cloud.automl.v1beta1.ImportDataRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -318,126 +274,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ImportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImportDataRequest 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.ImportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ImportDataRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ImportDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImportDataRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImportDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImportDataRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImportDataRequest) com.google.cloud.automl.v1beta1.ImportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImportDataRequest.class, - com.google.cloud.automl.v1beta1.ImportDataRequest.Builder.class); + com.google.cloud.automl.v1beta1.ImportDataRequest.class, com.google.cloud.automl.v1beta1.ImportDataRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ImportDataRequest.newBuilder() @@ -445,15 +392,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override @@ -490,8 +438,7 @@ public com.google.cloud.automl.v1beta1.ImportDataRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ImportDataRequest buildPartial() { - com.google.cloud.automl.v1beta1.ImportDataRequest result = - new com.google.cloud.automl.v1beta1.ImportDataRequest(this); + com.google.cloud.automl.v1beta1.ImportDataRequest result = new com.google.cloud.automl.v1beta1.ImportDataRequest(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -506,39 +453,38 @@ public com.google.cloud.automl.v1beta1.ImportDataRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ImportDataRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.ImportDataRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ImportDataRequest)other); } else { super.mergeFrom(other); return this; @@ -546,8 +492,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImportDataRequest other) { - if (other == com.google.cloud.automl.v1beta1.ImportDataRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ImportDataRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -574,8 +519,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ImportDataRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ImportDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -587,23 +531,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -612,24 +552,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -637,70 +574,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -708,61 +632,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, - com.google.cloud.automl.v1beta1.InputConfig.Builder, - com.google.cloud.automl.v1beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -778,16 +683,12 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) return this; } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.automl.v1beta1.InputConfig.Builder builderForValue) { @@ -801,24 +702,18 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.automl.v1beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -830,16 +725,12 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.InputConfig valu return this; } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -853,74 +744,58 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, - com.google.cloud.automl.v1beta1.InputConfig.Builder, - com.google.cloud.automl.v1beta1.InputConfigOrBuilder> + com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, - com.google.cloud.automl.v1beta1.InputConfig.Builder, - com.google.cloud.automl.v1beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -930,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImportDataRequest) private static final com.google.cloud.automl.v1beta1.ImportDataRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImportDataRequest(); } @@ -944,16 +819,16 @@ public static com.google.cloud.automl.v1beta1.ImportDataRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportDataRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportDataRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,4 +843,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ImportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java new file mode 100644 index 000000000..2f97b0796 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface ImportDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImportDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Dataset name. Dataset must already exist. All imported
+   * annotations and examples will be added.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Dataset name. Dataset must already exist. All imported
+   * annotations and examples will be added.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the inputConfig field is set. + */ + boolean hasInputConfig(); + /** + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The inputConfig. + */ + com.google.cloud.automl.v1beta1.InputConfig getInputConfig(); + /** + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java similarity index 82% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java index ebb3d78db..dcad2e23f 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 ImportData Action.
  * The format of input depends on dataset_metadata the Dataset into which
@@ -368,29 +351,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.InputConfig}
  */
-public final class InputConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InputConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.InputConfig)
     InputConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InputConfig.newBuilder() to construct.
   private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private InputConfig() {}
+  private InputConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private InputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -410,108 +394,100 @@ private InputConfig(
           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 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: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              params_ = com.google.protobuf.MapField.newMapField(
+                  ParamsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                params_ =
-                    com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry params__ =
-                  input.readMessage(
-                      ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              params_.getMutableMap().put(params__.getKey(), params__.getValue());
-              break;
+            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();
             }
-          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;
+            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();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            sourceCase_ = 3;
+            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);
+      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_InputConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 2:
         return internalGetParams();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        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_InputConfig_fieldAccessorTable
+    return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1beta1.InputConfig.class,
-            com.google.cloud.automl.v1beta1.InputConfig.Builder.class);
+            com.google.cloud.automl.v1beta1.InputConfig.class, com.google.cloud.automl.v1beta1.InputConfig.Builder.class);
   }
 
   private int sourceCase_ = 0;
   private java.lang.Object source_;
-
   public enum SourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_SOURCE(1),
     BIGQUERY_SOURCE(3),
     SOURCE_NOT_SET(0);
     private final int value;
-
     private SourceCase(int value) {
       this.value = value;
     }
@@ -527,30 +503,25 @@ public static SourceCase valueOf(int value) {
 
     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:
-          return null;
+        case 1: return GCS_SOURCE;
+        case 3: 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 SourceCase
+  getSourceCase() {
+    return SourceCase.forNumber(
+        sourceCase_);
   }
 
   public static final int GCS_SOURCE_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -558,7 +529,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -566,8 +536,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -575,19 +543,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override 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) source_; } return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -599,21 +564,18 @@ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() {
   @java.lang.Override
   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) source_;
     }
     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; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -621,26 +583,21 @@ public boolean hasBigquerySource() { return sourceCase_ == 3; } /** - * - * *
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; - * * @return The bigquerySource. */ @java.lang.Override 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) source_; } return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); } /** - * - * *
    * The BigQuery location for the input content.
    * 
@@ -650,29 +607,30 @@ public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { @java.lang.Override 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) 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, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> 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() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -681,8 +639,6 @@ 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
@@ -696,22 +652,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 2;
    */
+
   @java.lang.Override
-  public boolean containsParams(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsParams(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetParams().getMap().containsKey(key);
   }
-  /** Use {@link #getParamsMap()} instead. */
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Override
   @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
@@ -726,12 +682,11 @@ public java.util.Map getParams() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
+
   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
@@ -746,16 +701,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-  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();
+
+  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
@@ -770,11 +725,12 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> params = 2;
    */
   @java.lang.Override
-  public java.lang.String getParamsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetParams().getMap();
+
+  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();
     }
@@ -782,7 +738,6 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -794,12 +749,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  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_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        2);
     if (sourceCase_ == 3) {
       output.writeMessage(3, (com.google.cloud.automl.v1beta1.BigQuerySource) source_);
     }
@@ -813,24 +773,22 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          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__);
+      size += 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 += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.automl.v1beta1.BigQuerySource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -840,22 +798,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1beta1.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1beta1.InputConfig other =
-        (com.google.cloud.automl.v1beta1.InputConfig) obj;
+    com.google.cloud.automl.v1beta1.InputConfig other = (com.google.cloud.automl.v1beta1.InputConfig) obj;
 
-    if (!internalGetParams().equals(other.internalGetParams())) return false;
+    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;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 3:
-        if (!getBigquerySource().equals(other.getBigquerySource())) return false;
+        if (!getBigquerySource()
+            .equals(other.getBigquerySource())) return false;
         break;
       case 0:
       default:
@@ -892,104 +852,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1beta1.InputConfig 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.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.automl.v1beta1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.automl.v1beta1.InputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1beta1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1beta1.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for ImportData Action.
    * The format of input depends on dataset_metadata the Dataset into which
@@ -1337,43 +1290,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.InputConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.InputConfig)
       com.google.cloud.automl.v1beta1.InputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1beta1.Io
-          .internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetParams();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMutableParams();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          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_InputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1beta1.InputConfig.class,
-              com.google.cloud.automl.v1beta1.InputConfig.Builder.class);
+              com.google.cloud.automl.v1beta1.InputConfig.class, com.google.cloud.automl.v1beta1.InputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.InputConfig.newBuilder()
@@ -1381,15 +1334,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1400,9 +1354,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1beta1.Io
-          .internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1421,8 +1375,7 @@ public com.google.cloud.automl.v1beta1.InputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1beta1.InputConfig buildPartial() {
-      com.google.cloud.automl.v1beta1.InputConfig result =
-          new com.google.cloud.automl.v1beta1.InputConfig(this);
+      com.google.cloud.automl.v1beta1.InputConfig result = new com.google.cloud.automl.v1beta1.InputConfig(this);
       int from_bitField0_ = bitField0_;
       if (sourceCase_ == 1) {
         if (gcsSourceBuilder_ == null) {
@@ -1449,39 +1402,38 @@ public com.google.cloud.automl.v1beta1.InputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.InputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1beta1.InputConfig) other);
+        return mergeFrom((com.google.cloud.automl.v1beta1.InputConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1490,22 +1442,20 @@ 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());
+      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;
-          }
+        case GCS_SOURCE: {
+          mergeGcsSource(other.getGcsSource());
+          break;
+        }
+        case BIGQUERY_SOURCE: {
+          mergeBigquerySource(other.getBigquerySource());
+          break;
+        }
+        case SOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1535,12 +1485,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-
-    public SourceCase getSourceCase() {
-      return SourceCase.forNumber(sourceCase_);
+    public SourceCase
+        getSourceCase() {
+      return SourceCase.forNumber(
+          sourceCase_);
     }
 
     public Builder clearSource() {
@@ -1553,13 +1503,8 @@ public Builder clearSource() {
     private int bitField0_;
 
     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_;
+        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.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1567,7 +1512,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1575,8 +1519,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1584,7 +1526,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -1602,8 +1543,6 @@ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { } } /** - * - * *
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1626,8 +1565,6 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1636,7 +1573,8 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
      *
      * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -1647,8 +1585,6 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1659,13 +1595,10 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder bu
      */
     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();
+        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;
         }
@@ -1680,8 +1613,6 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1707,8 +1638,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1721,8 +1650,6 @@ public com.google.cloud.automl.v1beta1.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1743,8 +1670,6 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(
       }
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1754,44 +1679,32 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(
      * .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>
+        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>(
+        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();
-      ;
+      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_;
+        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; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -1799,14 +1712,11 @@ public boolean hasBigquerySource() { return sourceCase_ == 3; } /** - * - * *
      * The BigQuery location for the input content.
      * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; - * * @return The bigquerySource. */ @java.lang.Override @@ -1824,8 +1734,6 @@ public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { } } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1846,8 +1754,6 @@ public Builder setBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySource return this; } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1866,8 +1772,6 @@ public Builder setBigquerySource( return this; } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1876,13 +1780,10 @@ public Builder setBigquerySource( */ 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(); + 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; } @@ -1897,8 +1798,6 @@ public Builder mergeBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySourc return this; } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1922,8 +1821,6 @@ public Builder clearBigquerySource() { return this; } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1934,8 +1831,6 @@ public com.google.cloud.automl.v1beta1.BigQuerySource.Builder getBigquerySourceB return getBigquerySourceFieldBuilder().getBuilder(); } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1954,8 +1849,6 @@ public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySource } } /** - * - * *
      * The BigQuery location for the input content.
      * 
@@ -1963,45 +1856,40 @@ public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySource * .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> + 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>( + 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(); - ; + onChanged();; return bigquerySourceBuilder_; } - private com.google.protobuf.MapField params_; - - private com.google.protobuf.MapField internalGetParams() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } - private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged(); - ; + internalGetMutableParams() { + onChanged();; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -2013,8 +1901,6 @@ 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
@@ -2028,22 +1914,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 2;
      */
+
     @java.lang.Override
-    public boolean containsParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsParams(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetParams().getMap().containsKey(key);
     }
-    /** Use {@link #getParamsMap()} instead. */
+    /**
+     * Use {@link #getParamsMap()} instead.
+     */
     @java.lang.Override
     @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
@@ -2058,12 +1944,11 @@ public java.util.Map getParams() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
+
     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
@@ -2078,17 +1963,16 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
+
     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();
+        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
@@ -2103,11 +1987,12 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 2;
      */
     @java.lang.Override
-    public java.lang.String getParamsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetParams().getMap();
+
+    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();
       }
@@ -2115,12 +2000,11 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap().clear();
+      internalGetMutableParams().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters describing the semantic of the
      * imported data, any string must be up to 25000
@@ -2134,21 +2018,23 @@ public Builder clearParams() {
      *
      * map<string, string> params = 2;
      */
-    public Builder removeParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableParams().getMutableMap().remove(key);
+
+    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. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableParams() {
+    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
@@ -2162,19 +2048,16 @@ public java.util.Map getMutableParams() {
      *
      * 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);
+    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
@@ -2188,13 +2071,16 @@ public Builder putParams(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> params = 2;
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+
+    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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2204,12 +2090,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.InputConfig)
   private static final com.google.cloud.automl.v1beta1.InputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.InputConfig();
   }
@@ -2218,16 +2104,16 @@ public static com.google.cloud.automl.v1beta1.InputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public InputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new InputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public InputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new InputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2242,4 +2128,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java
similarity index 81%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java
index 5ee1048e9..d1bb42f69 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1beta1/io.proto
 
 package com.google.cloud.automl.v1beta1;
 
-public interface InputConfigOrBuilder
-    extends
+public interface InputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -33,13 +15,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -47,13 +26,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.automl.v1beta1.GcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -65,32 +41,24 @@ public interface InputConfigOrBuilder
   com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; - * * @return Whether the bigquerySource field is set. */ boolean hasBigquerySource(); /** - * - * *
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; - * * @return The bigquerySource. */ com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource(); /** - * - * *
    * The BigQuery location for the input content.
    * 
@@ -100,8 +68,6 @@ public interface InputConfigOrBuilder 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
@@ -117,8 +83,6 @@ public interface InputConfigOrBuilder
    */
   int getParamsCount();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -132,13 +96,15 @@ public interface InputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  boolean containsParams(java.lang.String key);
-  /** Use {@link #getParamsMap()} instead. */
+  boolean containsParams(
+      java.lang.String key);
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getParams();
+  java.util.Map
+  getParams();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -152,10 +118,9 @@ public interface InputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.util.Map getParamsMap();
+  java.util.Map
+  getParamsMap();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -169,10 +134,11 @@ public interface InputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  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
@@ -186,7 +152,9 @@ public interface InputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.lang.String getParamsOrThrow(java.lang.String key);
+
+  java.lang.String getParamsOrThrow(
+      java.lang.String key);
 
   public com.google.cloud.automl.v1beta1.InputConfig.SourceCase getSourceCase();
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java
new file mode 100644
index 000000000..aea29332e
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java
@@ -0,0 +1,237 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1beta1/io.proto
+
+package com.google.cloud.automl.v1beta1;
+
+public final class Io {
+  private Io() {}
+  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_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;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n$google/cloud/automl/v1beta1/io.proto\022\033" +
+      "google.cloud.automl.v1beta1\032\034google/api/" +
+      "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\245\001\n\037com.google.cloud.automl.v1beta1" +
+      "P\001ZAgoogle.golang.org/genproto/googleapi" +
+      "s/cloud/automl/v1beta1;automl\312\002\033Google\\C" +
+      "loud\\AutoMl\\V1beta1\352\002\036Google::Cloud::Aut" +
+      "oML::V1beta1b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+        });
+    internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor,
+        new java.lang.String[] { "GcsSource", "BigquerySource", "Params", "Source", });
+    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", "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(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(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();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java
similarity index 71%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java
index ba70c7671..f6383d9cf 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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 +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; +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_ = ""; @@ -45,15 +27,16 @@ private ListColumnSpecsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListColumnSpecsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListColumnSpecsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,94 +55,82 @@ private ListColumnSpecsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - 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; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - 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(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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_; /** - * - * *
    * Required. The resource name of the table spec to list column specs from.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -168,31 +139,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the table spec to list column specs from.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -203,14 +172,11 @@ public com.google.protobuf.ByteString getParentBytes() { 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; - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -218,14 +184,11 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ @java.lang.Override @@ -233,8 +196,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * Mask specifying which fields to read.
    * 
@@ -249,14 +210,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -265,29 +223,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -298,15 +256,12 @@ public com.google.protobuf.ByteString getFilterBytes() { 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; - * * @return The pageSize. */ @java.lang.Override @@ -317,8 +272,6 @@ public int getPageSize() { 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
@@ -327,7 +280,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -336,15 +288,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -353,15 +304,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -370,7 +322,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,7 +333,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -411,13 +363,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -430,22 +384,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest other = (com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + 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 (!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; } @@ -475,127 +433,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ListColumnSpecsRequest prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.class, com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.newBuilder() @@ -603,15 +551,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -633,9 +582,9 @@ public Builder clear() { } @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; + 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 @@ -654,8 +603,7 @@ public com.google.cloud.automl.v1beta1.ListColumnSpecsRequest build() { @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); + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest result = new com.google.cloud.automl.v1beta1.ListColumnSpecsRequest(this); result.parent_ = parent_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; @@ -673,39 +621,38 @@ public com.google.cloud.automl.v1beta1.ListColumnSpecsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ListColumnSpecsRequest)other); } else { super.mergeFrom(other); return this; @@ -713,8 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListColumnSpecsRequest other) { - if (other == com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -752,8 +698,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -765,22 +710,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the table spec to list column specs from.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -789,23 +730,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the table spec to list column specs from.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -813,67 +751,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the table spec to list column specs from.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the table spec to list column specs from.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the table spec to list column specs from.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -881,33 +806,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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_; + 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; - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -918,8 +834,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -940,15 +854,14 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; */ - public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -959,8 +872,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -971,7 +882,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -983,8 +894,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -1003,8 +912,6 @@ public Builder clearFieldMask() { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -1012,13 +919,11 @@ public Builder clearFieldMask() { * .google.protobuf.FieldMask field_mask = 2; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -1029,12 +934,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -1042,17 +946,14 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * .google.protobuf.FieldMask field_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -1060,20 +961,18 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; - * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1082,21 +981,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1104,77 +1002,67 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + 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; - * * @return The pageSize. */ @java.lang.Override @@ -1182,38 +1070,32 @@ 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; - * * @param value The pageSize to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1221,8 +1103,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1231,13 +1111,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1246,8 +1126,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1256,14 +1134,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1271,8 +1150,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1281,22 +1158,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1305,18 +1180,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ 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
@@ -1325,23 +1197,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1351,12 +1223,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1365,16 +1237,16 @@ public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest getDefaultI 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); - } - }; + 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; @@ -1389,4 +1261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListColumnSpecsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java index b8510abc7..e3a3f0539 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java @@ -1,84 +1,51 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +public interface ListColumnSpecsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListColumnSpecsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the table spec to list column specs from.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the table spec to list column specs from.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * Mask specifying which fields to read.
    * 
@@ -88,47 +55,37 @@ public interface ListColumnSpecsRequestOrBuilder com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); /** - * - * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + 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; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results for the server to return.
    * Typically obtained from the
@@ -137,13 +94,10 @@ public interface ListColumnSpecsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results for the server to return.
    * Typically obtained from the
@@ -152,8 +106,8 @@ public interface ListColumnSpecsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java index 62c624c0c..46a44e0cb 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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_ = ""; @@ -44,15 +26,16 @@ private ListColumnSpecsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListColumnSpecsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListColumnSpecsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,38 +55,35 @@ private ListColumnSpecsResponse( 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 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columnSpecs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + 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; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { columnSpecs_ = java.util.Collections.unmodifiableList(columnSpecs_); @@ -112,27 +92,22 @@ private ListColumnSpecsResponse( 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.Builder.class); } public static final int COLUMN_SPECS_FIELD_NUMBER = 1; private java.util.List columnSpecs_; /** - * - * *
    * The column specs read.
    * 
@@ -144,8 +119,6 @@ public java.util.List getColumnSpecs return columnSpecs_; } /** - * - * *
    * The column specs read.
    * 
@@ -153,13 +126,11 @@ public java.util.List getColumnSpecs * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColumnSpecsOrBuilderList() { return columnSpecs_; } /** - * - * *
    * The column specs read.
    * 
@@ -171,8 +142,6 @@ public int getColumnSpecsCount() { return columnSpecs_.size(); } /** - * - * *
    * The column specs read.
    * 
@@ -184,8 +153,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int index) { return columnSpecs_.get(index); } /** - * - * *
    * The column specs read.
    * 
@@ -193,22 +160,20 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int index) { * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuilder(int index) { + 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; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,30 +182,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -249,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +225,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -278,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < columnSpecs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, columnSpecs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, columnSpecs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -291,16 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getColumnSpecsList() + .equals(other.getColumnSpecsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ListColumnSpecsResponse prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.newBuilder() @@ -452,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getColumnSpecsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +435,9 @@ public Builder clear() { } @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; + 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 @@ -499,8 +456,7 @@ public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse build() { @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); + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse result = new com.google.cloud.automl.v1beta1.ListColumnSpecsResponse(this); int from_bitField0_ = bitField0_; if (columnSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +476,38 @@ public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ListColumnSpecsResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListColumnSpecsResponse other) { - if (other == com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.getDefaultInstance()) return this; if (columnSpecsBuilder_ == null) { if (!other.columnSpecs_.isEmpty()) { if (columnSpecs_.isEmpty()) { @@ -580,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListColumnSpecsResponse columnSpecsBuilder_ = null; columnSpecs_ = other.columnSpecs_; bitField0_ = (bitField0_ & ~0x00000001); - columnSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getColumnSpecsFieldBuilder() - : null; + columnSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnSpecsFieldBuilder() : null; } else { columnSpecsBuilder_.addAllMessages(other.columnSpecs_); } @@ -612,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ListColumnSpecsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ListColumnSpecsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,29 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List columnSpecs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureColumnSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - columnSpecs_ = - new java.util.ArrayList(columnSpecs_); + 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_; + com.google.cloud.automl.v1beta1.ColumnSpec, com.google.cloud.automl.v1beta1.ColumnSpec.Builder, com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> columnSpecsBuilder_; /** - * - * *
      * The column specs read.
      * 
@@ -659,8 +603,6 @@ public java.util.List getColumnSpecs } } /** - * - * *
      * The column specs read.
      * 
@@ -675,8 +617,6 @@ public int getColumnSpecsCount() { } } /** - * - * *
      * The column specs read.
      * 
@@ -691,15 +631,14 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int 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) { + public Builder setColumnSpecs( + int index, com.google.cloud.automl.v1beta1.ColumnSpec value) { if (columnSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,8 +652,6 @@ public Builder setColumnSpecs(int index, com.google.cloud.automl.v1beta1.ColumnS return this; } /** - * - * *
      * The column specs read.
      * 
@@ -733,8 +670,6 @@ public Builder setColumnSpecs( return this; } /** - * - * *
      * The column specs read.
      * 
@@ -755,15 +690,14 @@ public Builder addColumnSpecs(com.google.cloud.automl.v1beta1.ColumnSpec 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) { + public Builder addColumnSpecs( + int index, com.google.cloud.automl.v1beta1.ColumnSpec value) { if (columnSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,8 +711,6 @@ public Builder addColumnSpecs(int index, com.google.cloud.automl.v1beta1.ColumnS return this; } /** - * - * *
      * The column specs read.
      * 
@@ -797,8 +729,6 @@ public Builder addColumnSpecs( return this; } /** - * - * *
      * The column specs read.
      * 
@@ -817,8 +747,6 @@ public Builder addColumnSpecs( return this; } /** - * - * *
      * The column specs read.
      * 
@@ -829,7 +757,8 @@ public Builder addAllColumnSpecs( java.lang.Iterable values) { if (columnSpecsBuilder_ == null) { ensureColumnSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnSpecs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columnSpecs_); onChanged(); } else { columnSpecsBuilder_.addAllMessages(values); @@ -837,8 +766,6 @@ public Builder addAllColumnSpecs( return this; } /** - * - * *
      * The column specs read.
      * 
@@ -856,8 +783,6 @@ public Builder clearColumnSpecs() { return this; } /** - * - * *
      * The column specs read.
      * 
@@ -875,44 +800,39 @@ public Builder removeColumnSpecs(int 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) { + 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) { + public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuilder( + int index) { if (columnSpecsBuilder_ == null) { - return columnSpecs_.get(index); - } else { + 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() { + public java.util.List + getColumnSpecsOrBuilderList() { if (columnSpecsBuilder_ != null) { return columnSpecsBuilder_.getMessageOrBuilderList(); } else { @@ -920,8 +840,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuild } } /** - * - * *
      * The column specs read.
      * 
@@ -929,48 +847,42 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuild * 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()); + 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()); + 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() { + 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> + 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()); + 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_; @@ -978,21 +890,19 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addColumnSpecsBuilder( 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; - * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1001,22 +911,21 @@ public 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; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1024,71 +933,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1098,12 +1000,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1112,16 +1014,16 @@ public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse getDefault 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); - } - }; + 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; @@ -1136,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java index fb3efe275..09463851a 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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(); + java.util.List + getColumnSpecsList(); /** - * - * *
    * The column specs read.
    * 
@@ -44,8 +25,6 @@ public interface ListColumnSpecsResponseOrBuilder */ com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int index); /** - * - * *
    * The column specs read.
    * 
@@ -54,51 +33,43 @@ public interface ListColumnSpecsResponseOrBuilder */ int getColumnSpecsCount(); /** - * - * *
    * The column specs read.
    * 
* * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; */ - java.util.List + 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); + 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; - * * @return The nextPageToken. */ 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; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java similarity index 68% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java index 7c9db0502..6d6e28179 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsRequest} */ -public final class ListDatasetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDatasetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListDatasetsRequest) ListDatasetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDatasetsRequest.newBuilder() to construct. private ListDatasetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDatasetsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListDatasetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDatasetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDatasetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,79 +55,69 @@ private ListDatasetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + 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(); + filter_ = s; + break; + } + case 32: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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_ListDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, - com.google.cloud.automl.v1beta1.ListDatasetsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, com.google.cloud.automl.v1beta1.ListDatasetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,31 +126,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,18 +159,16 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
-   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+   *             `image_classification_dataset_metadata:*`). Some examples of
+   *             using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
-   *                                          translation_dataset_metadata.
+   *                                          `translation_dataset_metadata`.
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -208,33 +177,34 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
-   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+   *             `image_classification_dataset_metadata:*`). Some examples of
+   *             using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
-   *                                          translation_dataset_metadata.
+   *                                          `translation_dataset_metadata`.
    * 
* * string filter = 3; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -245,15 +215,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * Requested page size. Server may return fewer results than requested.
    * If unspecified, server will pick a default size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -264,8 +231,6 @@ public int getPageSize() { 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 via
@@ -274,7 +239,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -283,15 +247,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 via
@@ -300,15 +263,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -317,7 +281,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,7 +292,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -358,7 +322,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -371,18 +336,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListDatasetsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListDatasetsRequest other = - (com.google.cloud.automl.v1beta1.ListDatasetsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.automl.v1beta1.ListDatasetsRequest other = (com.google.cloud.automl.v1beta1.ListDatasetsRequest) obj; + + if (!getParent() + .equals(other.getParent())) 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; } @@ -408,126 +376,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListDatasetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest 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.ListDatasetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListDatasetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListDatasetsRequest) com.google.cloud.automl.v1beta1.ListDatasetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, - com.google.cloud.automl.v1beta1.ListDatasetsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, com.google.cloud.automl.v1beta1.ListDatasetsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListDatasetsRequest.newBuilder() @@ -535,15 +494,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -559,9 +519,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override @@ -580,8 +540,7 @@ public com.google.cloud.automl.v1beta1.ListDatasetsRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsRequest buildPartial() { - com.google.cloud.automl.v1beta1.ListDatasetsRequest result = - new com.google.cloud.automl.v1beta1.ListDatasetsRequest(this); + com.google.cloud.automl.v1beta1.ListDatasetsRequest result = new com.google.cloud.automl.v1beta1.ListDatasetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -594,39 +553,38 @@ public com.google.cloud.automl.v1beta1.ListDatasetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListDatasetsRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListDatasetsRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListDatasetsRequest)other); } else { super.mergeFrom(other); return this; @@ -634,8 +592,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListDatasetsRequest other) { - if (other == com.google.cloud.automl.v1beta1.ListDatasetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ListDatasetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -670,8 +627,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ListDatasetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ListDatasetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -683,22 +639,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -707,23 +659,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -731,67 +680,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -799,24 +735,23 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
-     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+     *             `image_classification_dataset_metadata:*`). Some examples of
+     *             using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
-     *                                          translation_dataset_metadata.
+     *                                          `translation_dataset_metadata`.
      * 
* * string filter = 3; - * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -825,25 +760,25 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
-     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+     *             `image_classification_dataset_metadata:*`). Some examples of
+     *             using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
-     *                                          translation_dataset_metadata.
+     *                                          `translation_dataset_metadata`.
      * 
* * string filter = 3; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -851,89 +786,82 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
-     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+     *             `image_classification_dataset_metadata:*`). Some examples of
+     *             using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
-     *                                          translation_dataset_metadata.
+     *                                          `translation_dataset_metadata`.
      * 
* * string filter = 3; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
-     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+     *             `image_classification_dataset_metadata:*`). Some examples of
+     *             using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
-     *                                          translation_dataset_metadata.
+     *                                          `translation_dataset_metadata`.
      * 
* * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
-     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+     *             `image_classification_dataset_metadata:*`). Some examples of
+     *             using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
-     *                                          translation_dataset_metadata.
+     *                                          `translation_dataset_metadata`.
      * 
* * string filter = 3; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -941,38 +869,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -980,8 +902,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -990,13 +910,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1005,8 +925,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1015,14 +933,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1030,8 +949,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1040,22 +957,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1064,18 +979,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1084,23 +996,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1110,12 +1022,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListDatasetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListDatasetsRequest) private static final com.google.cloud.automl.v1beta1.ListDatasetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListDatasetsRequest(); } @@ -1124,16 +1036,16 @@ public static com.google.cloud.automl.v1beta1.ListDatasetsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDatasetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,4 +1060,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListDatasetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java index e39a8aead..5bd97c460 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java @@ -1,107 +1,74 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListDatasetsRequestOrBuilder - extends +public interface ListDatasetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListDatasetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
-   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+   *             `image_classification_dataset_metadata:*`). Some examples of
+   *             using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
-   *                                          translation_dataset_metadata.
+   *                                          `translation_dataset_metadata`.
    * 
* * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
-   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
+   *             `image_classification_dataset_metadata:*`). Some examples of
+   *             using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
-   *                                          translation_dataset_metadata.
+   *                                          `translation_dataset_metadata`.
    * 
* * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Requested page size. Server may return fewer results than requested.
    * If unspecified, server will pick a default size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -110,13 +77,10 @@ public interface ListDatasetsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -125,8 +89,8 @@ public interface ListDatasetsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java index 8fe29df07..fe62549e1 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsResponse} */ -public final class ListDatasetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDatasetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListDatasetsResponse) ListDatasetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDatasetsResponse.newBuilder() to construct. private ListDatasetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDatasetsResponse() { datasets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListDatasetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDatasetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDatasetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListDatasetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - datasets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - datasets_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.Dataset.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + datasets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + datasets_.add( + input.readMessage(com.google.cloud.automl.v1beta1.Dataset.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { datasets_ = java.util.Collections.unmodifiableList(datasets_); @@ -111,27 +92,22 @@ private ListDatasetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, - com.google.cloud.automl.v1beta1.ListDatasetsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, com.google.cloud.automl.v1beta1.ListDatasetsResponse.Builder.class); } public static final int DATASETS_FIELD_NUMBER = 1; private java.util.List datasets_; /** - * - * *
    * The datasets read.
    * 
@@ -143,8 +119,6 @@ public java.util.List getDatasetsList() return datasets_; } /** - * - * *
    * The datasets read.
    * 
@@ -152,13 +126,11 @@ public java.util.List getDatasetsList() * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDatasetsOrBuilderList() { return datasets_; } /** - * - * *
    * The datasets read.
    * 
@@ -170,8 +142,6 @@ public int getDatasetsCount() { return datasets_.size(); } /** - * - * *
    * The datasets read.
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.automl.v1beta1.Dataset getDatasets(int index) { return datasets_.get(index); } /** - * - * *
    * The datasets read.
    * 
@@ -192,22 +160,20 @@ public com.google.cloud.automl.v1beta1.Dataset getDatasets(int index) { * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( + int index) { return datasets_.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 [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -216,30 +182,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -248,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +225,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < datasets_.size(); i++) { output.writeMessage(1, datasets_.get(i)); } @@ -277,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < datasets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, datasets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, datasets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -290,16 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListDatasetsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListDatasetsResponse other = - (com.google.cloud.automl.v1beta1.ListDatasetsResponse) obj; + com.google.cloud.automl.v1beta1.ListDatasetsResponse other = (com.google.cloud.automl.v1beta1.ListDatasetsResponse) obj; - if (!getDatasetsList().equals(other.getDatasetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDatasetsList() + .equals(other.getDatasetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,126 +291,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListDatasetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse 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.ListDatasetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListDatasetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListDatasetsResponse) com.google.cloud.automl.v1beta1.ListDatasetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, - com.google.cloud.automl.v1beta1.ListDatasetsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, com.google.cloud.automl.v1beta1.ListDatasetsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListDatasetsResponse.newBuilder() @@ -450,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDatasetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override @@ -497,8 +456,7 @@ public com.google.cloud.automl.v1beta1.ListDatasetsResponse build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsResponse buildPartial() { - com.google.cloud.automl.v1beta1.ListDatasetsResponse result = - new com.google.cloud.automl.v1beta1.ListDatasetsResponse(this); + com.google.cloud.automl.v1beta1.ListDatasetsResponse result = new com.google.cloud.automl.v1beta1.ListDatasetsResponse(this); int from_bitField0_ = bitField0_; if (datasetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -518,39 +476,38 @@ public com.google.cloud.automl.v1beta1.ListDatasetsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListDatasetsResponse) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListDatasetsResponse) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListDatasetsResponse)other); } else { super.mergeFrom(other); return this; @@ -558,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListDatasetsResponse other) { - if (other == com.google.cloud.automl.v1beta1.ListDatasetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ListDatasetsResponse.getDefaultInstance()) return this; if (datasetsBuilder_ == null) { if (!other.datasets_.isEmpty()) { if (datasets_.isEmpty()) { @@ -578,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListDatasetsResponse ot datasetsBuilder_ = null; datasets_ = other.datasets_; bitField0_ = (bitField0_ & ~0x00000001); - datasetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDatasetsFieldBuilder() - : null; + datasetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDatasetsFieldBuilder() : null; } else { datasetsBuilder_.addAllMessages(other.datasets_); } @@ -610,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ListDatasetsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ListDatasetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,28 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List datasets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDatasetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { datasets_ = new java.util.ArrayList(datasets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Dataset, - com.google.cloud.automl.v1beta1.Dataset.Builder, - com.google.cloud.automl.v1beta1.DatasetOrBuilder> - datasetsBuilder_; + com.google.cloud.automl.v1beta1.Dataset, com.google.cloud.automl.v1beta1.Dataset.Builder, com.google.cloud.automl.v1beta1.DatasetOrBuilder> datasetsBuilder_; /** - * - * *
      * The datasets read.
      * 
@@ -656,8 +603,6 @@ public java.util.List getDatasetsList() } } /** - * - * *
      * The datasets read.
      * 
@@ -672,8 +617,6 @@ public int getDatasetsCount() { } } /** - * - * *
      * The datasets read.
      * 
@@ -688,15 +631,14 @@ public com.google.cloud.automl.v1beta1.Dataset getDatasets(int index) { } } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public Builder setDatasets(int index, com.google.cloud.automl.v1beta1.Dataset value) { + public Builder setDatasets( + int index, com.google.cloud.automl.v1beta1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -710,8 +652,6 @@ public Builder setDatasets(int index, com.google.cloud.automl.v1beta1.Dataset va return this; } /** - * - * *
      * The datasets read.
      * 
@@ -730,8 +670,6 @@ public Builder setDatasets( return this; } /** - * - * *
      * The datasets read.
      * 
@@ -752,15 +690,14 @@ public Builder addDatasets(com.google.cloud.automl.v1beta1.Dataset value) { return this; } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public Builder addDatasets(int index, com.google.cloud.automl.v1beta1.Dataset value) { + public Builder addDatasets( + int index, com.google.cloud.automl.v1beta1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -774,15 +711,14 @@ public Builder addDatasets(int index, com.google.cloud.automl.v1beta1.Dataset va return this; } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public Builder addDatasets(com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { + public Builder addDatasets( + com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { if (datasetsBuilder_ == null) { ensureDatasetsIsMutable(); datasets_.add(builderForValue.build()); @@ -793,8 +729,6 @@ public Builder addDatasets(com.google.cloud.automl.v1beta1.Dataset.Builder build return this; } /** - * - * *
      * The datasets read.
      * 
@@ -813,8 +747,6 @@ public Builder addDatasets( return this; } /** - * - * *
      * The datasets read.
      * 
@@ -825,7 +757,8 @@ public Builder addAllDatasets( java.lang.Iterable values) { if (datasetsBuilder_ == null) { ensureDatasetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, datasets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, datasets_); onChanged(); } else { datasetsBuilder_.addAllMessages(values); @@ -833,8 +766,6 @@ public Builder addAllDatasets( return this; } /** - * - * *
      * The datasets read.
      * 
@@ -852,8 +783,6 @@ public Builder clearDatasets() { return this; } /** - * - * *
      * The datasets read.
      * 
@@ -871,44 +800,39 @@ public Builder removeDatasets(int index) { return this; } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1beta1.Dataset.Builder getDatasetsBuilder(int index) { + public com.google.cloud.automl.v1beta1.Dataset.Builder getDatasetsBuilder( + int index) { return getDatasetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( + int index) { if (datasetsBuilder_ == null) { - return datasets_.get(index); - } else { + return datasets_.get(index); } else { return datasetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public java.util.List - getDatasetsOrBuilderList() { + public java.util.List + getDatasetsOrBuilderList() { if (datasetsBuilder_ != null) { return datasetsBuilder_.getMessageOrBuilderList(); } else { @@ -916,8 +840,6 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int } } /** - * - * *
      * The datasets read.
      * 
@@ -925,48 +847,42 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ public com.google.cloud.automl.v1beta1.Dataset.Builder addDatasetsBuilder() { - return getDatasetsFieldBuilder() - .addBuilder(com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance()); + return getDatasetsFieldBuilder().addBuilder( + com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance()); } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1beta1.Dataset.Builder addDatasetsBuilder(int index) { - return getDatasetsFieldBuilder() - .addBuilder(index, com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.Dataset.Builder addDatasetsBuilder( + int index) { + return getDatasetsFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance()); } /** - * - * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public java.util.List - getDatasetsBuilderList() { + public java.util.List + getDatasetsBuilderList() { return getDatasetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Dataset, - com.google.cloud.automl.v1beta1.Dataset.Builder, - com.google.cloud.automl.v1beta1.DatasetOrBuilder> + com.google.cloud.automl.v1beta1.Dataset, com.google.cloud.automl.v1beta1.Dataset.Builder, com.google.cloud.automl.v1beta1.DatasetOrBuilder> getDatasetsFieldBuilder() { if (datasetsBuilder_ == null) { - datasetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Dataset, - com.google.cloud.automl.v1beta1.Dataset.Builder, - com.google.cloud.automl.v1beta1.DatasetOrBuilder>( - datasets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + datasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.Dataset, com.google.cloud.automl.v1beta1.Dataset.Builder, com.google.cloud.automl.v1beta1.DatasetOrBuilder>( + datasets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); datasets_ = null; } return datasetsBuilder_; @@ -974,21 +890,19 @@ public com.google.cloud.automl.v1beta1.Dataset.Builder addDatasetsBuilder(int in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -997,22 +911,21 @@ 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.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1020,71 +933,64 @@ 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.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1094,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListDatasetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListDatasetsResponse) private static final com.google.cloud.automl.v1beta1.ListDatasetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListDatasetsResponse(); } @@ -1108,16 +1014,16 @@ public static com.google.cloud.automl.v1beta1.ListDatasetsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDatasetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1132,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListDatasetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java index 93dc2bd25..8d9298aa1 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListDatasetsResponseOrBuilder - extends +public interface ListDatasetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListDatasetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - java.util.List getDatasetsList(); + java.util.List + getDatasetsList(); /** - * - * *
    * The datasets read.
    * 
@@ -44,8 +25,6 @@ public interface ListDatasetsResponseOrBuilder */ com.google.cloud.automl.v1beta1.Dataset getDatasets(int index); /** - * - * *
    * The datasets read.
    * 
@@ -54,51 +33,43 @@ public interface ListDatasetsResponseOrBuilder */ int getDatasetsCount(); /** - * - * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - java.util.List + java.util.List getDatasetsOrBuilderList(); /** - * - * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index); + com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ 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.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java index fd6b51355..eb15d3062 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsRequest} */ -public final class ListModelEvaluationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListModelEvaluationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) ListModelEvaluationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListModelEvaluationsRequest.newBuilder() to construct. private ListModelEvaluationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListModelEvaluationsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListModelEvaluationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListModelEvaluationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListModelEvaluationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,81 +55,71 @@ private ListModelEvaluationsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + 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(); + filter_ = s; + break; + } + case 32: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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_ListModelEvaluationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -155,33 +128,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -192,8 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -206,7 +175,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -215,15 +183,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -236,15 +203,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -255,14 +223,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * Requested page size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -273,8 +238,6 @@ public int getPageSize() { 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 via
@@ -283,7 +246,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -292,15 +254,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 via
@@ -309,15 +270,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -326,7 +288,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,7 +299,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -367,7 +329,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -380,18 +343,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest other = - (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest other = (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) obj; + + if (!getParent() + .equals(other.getParent())) 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; } @@ -417,127 +383,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListModelEvaluationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest 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.ListModelEvaluationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) com.google.cloud.automl.v1beta1.ListModelEvaluationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.newBuilder() @@ -545,15 +501,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override @@ -590,8 +547,7 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest buildPartial() { - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest result = - new com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest(this); + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest result = new com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -604,39 +560,38 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListModelEvaluationsRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest)other); } else { super.mergeFrom(other); return this; @@ -644,8 +599,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest other) { - if (other == com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -680,8 +634,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -693,24 +646,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -719,25 +668,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -745,73 +691,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -819,8 +752,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -833,13 +764,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 3; - * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -848,8 +779,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -862,14 +791,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -877,8 +807,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -891,22 +819,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 3; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -919,18 +845,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -943,31 +866,28 @@ public Builder clearFilter() {
      * 
* * string filter = 3; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -975,36 +895,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1012,8 +926,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1022,13 +934,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1037,8 +949,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1047,14 +957,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1062,8 +973,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1072,22 +981,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1096,18 +1003,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1116,23 +1020,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1142,12 +1046,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) private static final com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest(); } @@ -1156,16 +1060,16 @@ public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelEvaluationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelEvaluationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelEvaluationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelEvaluationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1180,4 +1084,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java index f51b6851c..b0e27d299 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListModelEvaluationsRequestOrBuilder - extends +public interface ListModelEvaluationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -71,13 +44,10 @@ public interface ListModelEvaluationsRequestOrBuilder
    * 
* * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -90,27 +60,22 @@ public interface ListModelEvaluationsRequestOrBuilder
    * 
* * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Requested page size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
@@ -119,13 +84,10 @@ public interface ListModelEvaluationsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
@@ -134,8 +96,8 @@ public interface ListModelEvaluationsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java similarity index 75% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java index 4de393672..3a065d5ae 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsResponse} */ -public final class ListModelEvaluationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListModelEvaluationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) ListModelEvaluationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListModelEvaluationsResponse.newBuilder() to construct. private ListModelEvaluationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListModelEvaluationsResponse() { modelEvaluation_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListModelEvaluationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListModelEvaluationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListModelEvaluationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,38 +55,35 @@ private ListModelEvaluationsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - modelEvaluation_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - modelEvaluation_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.ModelEvaluation.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + modelEvaluation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + modelEvaluation_.add( + input.readMessage(com.google.cloud.automl.v1beta1.ModelEvaluation.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { modelEvaluation_ = java.util.Collections.unmodifiableList(modelEvaluation_); @@ -112,27 +92,22 @@ private ListModelEvaluationsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.Builder.class); } public static final int MODEL_EVALUATION_FIELD_NUMBER = 1; private java.util.List modelEvaluation_; /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -144,8 +119,6 @@ public java.util.List getModelE return modelEvaluation_; } /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -153,13 +126,11 @@ public java.util.List getModelE * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ @java.lang.Override - public java.util.List + public java.util.List getModelEvaluationOrBuilderList() { return modelEvaluation_; } /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -171,8 +142,6 @@ public int getModelEvaluationCount() { return modelEvaluation_.size(); } /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -184,8 +153,6 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation(int in return modelEvaluation_.get(index); } /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -201,8 +168,6 @@ public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluati 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 the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -210,7 +175,6 @@ public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluati
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,15 +183,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -235,15 +198,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -252,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < modelEvaluation_.size(); i++) { output.writeMessage(1, modelEvaluation_.get(i)); } @@ -281,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < modelEvaluation_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, modelEvaluation_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, modelEvaluation_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -294,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse other = - (com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) obj; + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse other = (com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) obj; - if (!getModelEvaluationList().equals(other.getModelEvaluationList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getModelEvaluationList() + .equals(other.getModelEvaluationList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListModelEvaluationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse 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.ListModelEvaluationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) com.google.cloud.automl.v1beta1.ListModelEvaluationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.newBuilder() @@ -455,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getModelEvaluationFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.getDefaultInstance(); } @@ -503,8 +458,7 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse buildPartial() { - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse result = - new com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse(this); + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse result = new com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse(this); int from_bitField0_ = bitField0_; if (modelEvaluationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -524,39 +478,38 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListModelEvaluationsResponse) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse)other); } else { super.mergeFrom(other); return this; @@ -564,9 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse other) { - if (other - == com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.getDefaultInstance()) return this; if (modelEvaluationBuilder_ == null) { if (!other.modelEvaluation_.isEmpty()) { if (modelEvaluation_.isEmpty()) { @@ -585,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelEvaluationsRes modelEvaluationBuilder_ = null; modelEvaluation_ = other.modelEvaluation_; bitField0_ = (bitField0_ & ~0x00000001); - modelEvaluationBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getModelEvaluationFieldBuilder() - : null; + modelEvaluationBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getModelEvaluationFieldBuilder() : null; } else { modelEvaluationBuilder_.addAllMessages(other.modelEvaluation_); } @@ -617,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -627,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List modelEvaluation_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureModelEvaluationIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - modelEvaluation_ = - new java.util.ArrayList( - modelEvaluation_); + modelEvaluation_ = new java.util.ArrayList(modelEvaluation_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ModelEvaluation, - com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, - com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder> - modelEvaluationBuilder_; + com.google.cloud.automl.v1beta1.ModelEvaluation, com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder> modelEvaluationBuilder_; /** - * - * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - public java.util.List - getModelEvaluationList() { + public java.util.List getModelEvaluationList() { if (modelEvaluationBuilder_ == null) { return java.util.Collections.unmodifiableList(modelEvaluation_); } else { @@ -666,8 +605,6 @@ private void ensureModelEvaluationIsMutable() { } } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -682,8 +619,6 @@ public int getModelEvaluationCount() { } } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -698,8 +633,6 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation(int in } } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -721,8 +654,6 @@ public Builder setModelEvaluation( return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -741,8 +672,6 @@ public Builder setModelEvaluation( return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -763,8 +692,6 @@ public Builder addModelEvaluation(com.google.cloud.automl.v1beta1.ModelEvaluatio return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -786,8 +713,6 @@ public Builder addModelEvaluation( return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -806,8 +731,6 @@ public Builder addModelEvaluation( return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -826,8 +749,6 @@ public Builder addModelEvaluation( return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -838,7 +759,8 @@ public Builder addAllModelEvaluation( java.lang.Iterable values) { if (modelEvaluationBuilder_ == null) { ensureModelEvaluationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modelEvaluation_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modelEvaluation_); onChanged(); } else { modelEvaluationBuilder_.addAllMessages(values); @@ -846,8 +768,6 @@ public Builder addAllModelEvaluation( return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -865,8 +785,6 @@ public Builder clearModelEvaluation() { return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -884,8 +802,6 @@ public Builder removeModelEvaluation(int index) { return this; } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -897,8 +813,6 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder getModelEvaluatio return getModelEvaluationFieldBuilder().getBuilder(index); } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -908,22 +822,19 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder getModelEvaluatio public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder( int index) { if (modelEvaluationBuilder_ == null) { - return modelEvaluation_.get(index); - } else { + return modelEvaluation_.get(index); } else { return modelEvaluationBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - public java.util.List - getModelEvaluationOrBuilderList() { + public java.util.List + getModelEvaluationOrBuilderList() { if (modelEvaluationBuilder_ != null) { return modelEvaluationBuilder_.getMessageOrBuilderList(); } else { @@ -931,8 +842,6 @@ public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluati } } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -940,12 +849,10 @@ public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluati * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluationBuilder() { - return getModelEvaluationFieldBuilder() - .addBuilder(com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()); + return getModelEvaluationFieldBuilder().addBuilder( + com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()); } /** - * - * *
      * List of model evaluations in the requested page.
      * 
@@ -954,34 +861,26 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluatio */ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluationBuilder( int index) { - return getModelEvaluationFieldBuilder() - .addBuilder(index, com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()); + return getModelEvaluationFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()); } /** - * - * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - public java.util.List - getModelEvaluationBuilderList() { + public java.util.List + getModelEvaluationBuilderList() { return getModelEvaluationFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ModelEvaluation, - com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, - com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder> + com.google.cloud.automl.v1beta1.ModelEvaluation, com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder> getModelEvaluationFieldBuilder() { if (modelEvaluationBuilder_ == null) { - modelEvaluationBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ModelEvaluation, - com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, - com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder>( + modelEvaluationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ModelEvaluation, com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder>( modelEvaluation_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -993,8 +892,6 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluatio private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -1002,13 +899,13 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluatio
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1017,8 +914,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -1026,14 +921,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1041,8 +937,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -1050,22 +944,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -1073,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -1092,23 +981,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1118,13 +1007,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) - private static final com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse(); } @@ -1133,16 +1021,16 @@ public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelEvaluationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelEvaluationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelEvaluationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelEvaluationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1157,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java index a14c73e66..82bfd230b 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListModelEvaluationsResponseOrBuilder - extends +public interface ListModelEvaluationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - java.util.List getModelEvaluationList(); + java.util.List + getModelEvaluationList(); /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -44,8 +25,6 @@ public interface ListModelEvaluationsResponseOrBuilder */ com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation(int index); /** - * - * *
    * List of model evaluations in the requested page.
    * 
@@ -54,30 +33,25 @@ public interface ListModelEvaluationsResponseOrBuilder */ int getModelEvaluationCount(); /** - * - * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - java.util.List + java.util.List getModelEvaluationOrBuilderList(); /** - * - * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder(int index); + com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -85,13 +59,10 @@ public interface ListModelEvaluationsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -99,8 +70,8 @@ public interface ListModelEvaluationsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java similarity index 70% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java index 071a65d93..dce61b33e 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsRequest} */ -public final class ListModelsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListModelsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListModelsRequest) ListModelsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListModelsRequest.newBuilder() to construct. private ListModelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListModelsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListModelsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListModelsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListModelsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,79 +55,69 @@ private ListModelsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + 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(); + filter_ = s; + break; + } + case 32: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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_ListModelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelsRequest.class, - com.google.cloud.automl.v1beta1.ListModelsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListModelsRequest.class, com.google.cloud.automl.v1beta1.ListModelsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,31 +126,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,20 +159,17 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
-   *             video_classification_model_metadata:*).
+   *             `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.
+   *                                      `image_classification_model_metadata`.
    *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -210,35 +178,35 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
-   *             video_classification_model_metadata:*).
+   *             `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.
+   *                                      `image_classification_model_metadata`.
    *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -249,14 +217,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * Requested page size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -267,8 +232,6 @@ public int getPageSize() { 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 via
@@ -277,7 +240,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -286,15 +248,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 via
@@ -303,15 +264,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -320,7 +282,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -361,7 +323,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -374,18 +337,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListModelsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListModelsRequest other = - (com.google.cloud.automl.v1beta1.ListModelsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.automl.v1beta1.ListModelsRequest other = (com.google.cloud.automl.v1beta1.ListModelsRequest) obj; + + if (!getParent() + .equals(other.getParent())) 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; } @@ -411,126 +377,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListModelsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelsRequest 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.ListModelsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListModelsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListModelsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListModelsRequest) com.google.cloud.automl.v1beta1.ListModelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelsRequest.class, - com.google.cloud.automl.v1beta1.ListModelsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListModelsRequest.class, com.google.cloud.automl.v1beta1.ListModelsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListModelsRequest.newBuilder() @@ -538,15 +495,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -562,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; } @java.lang.Override @@ -583,8 +541,7 @@ public com.google.cloud.automl.v1beta1.ListModelsRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsRequest buildPartial() { - com.google.cloud.automl.v1beta1.ListModelsRequest result = - new com.google.cloud.automl.v1beta1.ListModelsRequest(this); + com.google.cloud.automl.v1beta1.ListModelsRequest result = new com.google.cloud.automl.v1beta1.ListModelsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -597,39 +554,38 @@ public com.google.cloud.automl.v1beta1.ListModelsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListModelsRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListModelsRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListModelsRequest)other); } else { super.mergeFrom(other); return this; @@ -637,8 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelsRequest other) { - if (other == com.google.cloud.automl.v1beta1.ListModelsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ListModelsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -673,8 +628,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ListModelsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ListModelsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -686,22 +640,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -710,23 +660,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -734,67 +681,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -802,26 +736,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
-     *             video_classification_model_metadata:*).
+     *             `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.
+     *                                      `image_classification_model_metadata`.
      *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; - * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -830,27 +762,26 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
-     *             video_classification_model_metadata:*).
+     *             `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.
+     *                                      `image_classification_model_metadata`.
      *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -858,94 +789,84 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
-     *             video_classification_model_metadata:*).
+     *             `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.
+     *                                      `image_classification_model_metadata`.
      *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
-     *             video_classification_model_metadata:*).
+     *             `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.
+     *                                      `image_classification_model_metadata`.
      *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
-     *             video_classification_model_metadata:*).
+     *             `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.
+     *                                      `image_classification_model_metadata`.
      *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -953,36 +874,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -990,8 +905,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1000,13 +913,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1015,8 +928,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1025,14 +936,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1040,8 +952,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1050,22 +960,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1074,18 +982,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -1094,23 +999,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1120,12 +1025,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListModelsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelsRequest) private static final com.google.cloud.automl.v1beta1.ListModelsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListModelsRequest(); } @@ -1134,16 +1039,16 @@ public static com.google.cloud.automl.v1beta1.ListModelsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,4 +1063,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListModelsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java index 873c691f9..a15f09ce9 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java @@ -1,110 +1,75 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListModelsRequestOrBuilder - extends +public interface ListModelsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListModelsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
-   *             video_classification_model_metadata:*).
+   *             `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.
+   *                                      `image_classification_model_metadata`.
    *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
-   *             video_classification_model_metadata:*).
+   *             `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.
+   *                                      `image_classification_model_metadata`.
    *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Requested page size.
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -113,13 +78,10 @@ public interface ListModelsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -128,8 +90,8 @@ public interface ListModelsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java index d7526c4b6..87a85e1c1 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsResponse} */ -public final class ListModelsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListModelsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListModelsResponse) ListModelsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListModelsResponse.newBuilder() to construct. private ListModelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListModelsResponse() { model_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListModelsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListModelsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListModelsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListModelsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - model_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - model_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.Model.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + model_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + model_.add( + input.readMessage(com.google.cloud.automl.v1beta1.Model.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { model_ = java.util.Collections.unmodifiableList(model_); @@ -111,27 +92,22 @@ private ListModelsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelsResponse.class, - com.google.cloud.automl.v1beta1.ListModelsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListModelsResponse.class, com.google.cloud.automl.v1beta1.ListModelsResponse.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private java.util.List model_; /** - * - * *
    * List of models in the requested page.
    * 
@@ -143,8 +119,6 @@ public java.util.List getModelList() { return model_; } /** - * - * *
    * List of models in the requested page.
    * 
@@ -152,13 +126,11 @@ public java.util.List getModelList() { * repeated .google.cloud.automl.v1beta1.Model model = 1; */ @java.lang.Override - public java.util.List + public java.util.List getModelOrBuilderList() { return model_; } /** - * - * *
    * List of models in the requested page.
    * 
@@ -170,8 +142,6 @@ public int getModelCount() { return model_.size(); } /** - * - * *
    * List of models in the requested page.
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.automl.v1beta1.Model getModel(int index) { return model_.get(index); } /** - * - * *
    * List of models in the requested page.
    * 
@@ -192,22 +160,20 @@ public com.google.cloud.automl.v1beta1.Model getModel(int index) { * repeated .google.cloud.automl.v1beta1.Model model = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder( + int index) { return model_.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 [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -216,30 +182,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -248,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +225,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < model_.size(); i++) { output.writeMessage(1, model_.get(i)); } @@ -277,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < model_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, model_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, model_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -290,16 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListModelsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListModelsResponse other = - (com.google.cloud.automl.v1beta1.ListModelsResponse) obj; + com.google.cloud.automl.v1beta1.ListModelsResponse other = (com.google.cloud.automl.v1beta1.ListModelsResponse) obj; - if (!getModelList().equals(other.getModelList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getModelList() + .equals(other.getModelList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,126 +291,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListModelsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelsResponse 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.ListModelsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ListModelsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ListModelsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListModelsResponse) com.google.cloud.automl.v1beta1.ListModelsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelsResponse.class, - com.google.cloud.automl.v1beta1.ListModelsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListModelsResponse.class, com.google.cloud.automl.v1beta1.ListModelsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListModelsResponse.newBuilder() @@ -450,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getModelFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; } @java.lang.Override @@ -497,8 +456,7 @@ public com.google.cloud.automl.v1beta1.ListModelsResponse build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsResponse buildPartial() { - com.google.cloud.automl.v1beta1.ListModelsResponse result = - new com.google.cloud.automl.v1beta1.ListModelsResponse(this); + com.google.cloud.automl.v1beta1.ListModelsResponse result = new com.google.cloud.automl.v1beta1.ListModelsResponse(this); int from_bitField0_ = bitField0_; if (modelBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -518,39 +476,38 @@ public com.google.cloud.automl.v1beta1.ListModelsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListModelsResponse) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListModelsResponse) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListModelsResponse)other); } else { super.mergeFrom(other); return this; @@ -558,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelsResponse other) { - if (other == com.google.cloud.automl.v1beta1.ListModelsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ListModelsResponse.getDefaultInstance()) return this; if (modelBuilder_ == null) { if (!other.model_.isEmpty()) { if (model_.isEmpty()) { @@ -578,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelsResponse othe modelBuilder_ = null; model_ = other.model_; bitField0_ = (bitField0_ & ~0x00000001); - modelBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getModelFieldBuilder() - : null; + modelBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getModelFieldBuilder() : null; } else { modelBuilder_.addAllMessages(other.model_); } @@ -610,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ListModelsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ListModelsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,28 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List model_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureModelIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { model_ = new java.util.ArrayList(model_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, - com.google.cloud.automl.v1beta1.Model.Builder, - com.google.cloud.automl.v1beta1.ModelOrBuilder> - modelBuilder_; + com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder> modelBuilder_; /** - * - * *
      * List of models in the requested page.
      * 
@@ -656,8 +603,6 @@ public java.util.List getModelList() { } } /** - * - * *
      * List of models in the requested page.
      * 
@@ -672,8 +617,6 @@ public int getModelCount() { } } /** - * - * *
      * List of models in the requested page.
      * 
@@ -688,15 +631,14 @@ public com.google.cloud.automl.v1beta1.Model getModel(int index) { } } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public Builder setModel(int index, com.google.cloud.automl.v1beta1.Model value) { + public Builder setModel( + int index, com.google.cloud.automl.v1beta1.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -710,8 +652,6 @@ public Builder setModel(int index, com.google.cloud.automl.v1beta1.Model value) return this; } /** - * - * *
      * List of models in the requested page.
      * 
@@ -730,8 +670,6 @@ public Builder setModel( return this; } /** - * - * *
      * List of models in the requested page.
      * 
@@ -752,15 +690,14 @@ public Builder addModel(com.google.cloud.automl.v1beta1.Model value) { return this; } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public Builder addModel(int index, com.google.cloud.automl.v1beta1.Model value) { + public Builder addModel( + int index, com.google.cloud.automl.v1beta1.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -774,15 +711,14 @@ public Builder addModel(int index, com.google.cloud.automl.v1beta1.Model value) return this; } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public Builder addModel(com.google.cloud.automl.v1beta1.Model.Builder builderForValue) { + public Builder addModel( + com.google.cloud.automl.v1beta1.Model.Builder builderForValue) { if (modelBuilder_ == null) { ensureModelIsMutable(); model_.add(builderForValue.build()); @@ -793,8 +729,6 @@ public Builder addModel(com.google.cloud.automl.v1beta1.Model.Builder builderFor return this; } /** - * - * *
      * List of models in the requested page.
      * 
@@ -813,8 +747,6 @@ public Builder addModel( return this; } /** - * - * *
      * List of models in the requested page.
      * 
@@ -825,7 +757,8 @@ public Builder addAllModel( java.lang.Iterable values) { if (modelBuilder_ == null) { ensureModelIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, model_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, model_); onChanged(); } else { modelBuilder_.addAllMessages(values); @@ -833,8 +766,6 @@ public Builder addAllModel( return this; } /** - * - * *
      * List of models in the requested page.
      * 
@@ -852,8 +783,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * List of models in the requested page.
      * 
@@ -871,44 +800,39 @@ public Builder removeModel(int index) { return this; } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public com.google.cloud.automl.v1beta1.Model.Builder getModelBuilder(int index) { + public com.google.cloud.automl.v1beta1.Model.Builder getModelBuilder( + int index) { return getModelFieldBuilder().getBuilder(index); } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder( + int index) { if (modelBuilder_ == null) { - return model_.get(index); - } else { + return model_.get(index); } else { return modelBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public java.util.List - getModelOrBuilderList() { + public java.util.List + getModelOrBuilderList() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilderList(); } else { @@ -916,8 +840,6 @@ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(int inde } } /** - * - * *
      * List of models in the requested page.
      * 
@@ -925,47 +847,42 @@ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(int inde * repeated .google.cloud.automl.v1beta1.Model model = 1; */ public com.google.cloud.automl.v1beta1.Model.Builder addModelBuilder() { - return getModelFieldBuilder() - .addBuilder(com.google.cloud.automl.v1beta1.Model.getDefaultInstance()); + return getModelFieldBuilder().addBuilder( + com.google.cloud.automl.v1beta1.Model.getDefaultInstance()); } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public com.google.cloud.automl.v1beta1.Model.Builder addModelBuilder(int index) { - return getModelFieldBuilder() - .addBuilder(index, com.google.cloud.automl.v1beta1.Model.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.Model.Builder addModelBuilder( + int index) { + return getModelFieldBuilder().addBuilder( + index, com.google.cloud.automl.v1beta1.Model.getDefaultInstance()); } /** - * - * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public java.util.List getModelBuilderList() { + public java.util.List + getModelBuilderList() { return getModelFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, - com.google.cloud.automl.v1beta1.Model.Builder, - com.google.cloud.automl.v1beta1.ModelOrBuilder> + com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, - com.google.cloud.automl.v1beta1.Model.Builder, - com.google.cloud.automl.v1beta1.ModelOrBuilder>( - model_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + modelBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder>( + model_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); model_ = null; } return modelBuilder_; @@ -973,21 +890,19 @@ public java.util.List getModelBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -996,22 +911,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1019,71 +933,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1093,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListModelsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelsResponse) private static final com.google.cloud.automl.v1beta1.ListModelsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListModelsResponse(); } @@ -1107,16 +1014,16 @@ public static com.google.cloud.automl.v1beta1.ListModelsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListModelsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java index a3caedf68..32ebf71ab 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListModelsResponseOrBuilder - extends +public interface ListModelsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListModelsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - java.util.List getModelList(); + java.util.List + getModelList(); /** - * - * *
    * List of models in the requested page.
    * 
@@ -44,8 +25,6 @@ public interface ListModelsResponseOrBuilder */ com.google.cloud.automl.v1beta1.Model getModel(int index); /** - * - * *
    * List of models in the requested page.
    * 
@@ -54,50 +33,43 @@ public interface ListModelsResponseOrBuilder */ int getModelCount(); /** - * - * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - java.util.List getModelOrBuilderList(); + java.util.List + getModelOrBuilderList(); /** - * - * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(int index); + com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java similarity index 71% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java index b330aae66..8751f3588 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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_ = ""; @@ -45,15 +27,16 @@ private ListTableSpecsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTableSpecsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTableSpecsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,94 +55,82 @@ private ListTableSpecsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - 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; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - 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(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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_; /** - * - * *
    * Required. The resource name of the dataset to list table specs from.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -168,31 +139,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the dataset to list table specs from.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -203,14 +172,11 @@ public com.google.protobuf.ByteString getParentBytes() { 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; - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -218,14 +184,11 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ @java.lang.Override @@ -233,8 +196,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * Mask specifying which fields to read.
    * 
@@ -249,14 +210,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -265,29 +223,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -298,15 +256,12 @@ public com.google.protobuf.ByteString getFilterBytes() { 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; - * * @return The pageSize. */ @java.lang.Override @@ -317,8 +272,6 @@ public int getPageSize() { 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
@@ -327,7 +280,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -336,15 +288,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -353,15 +304,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -370,7 +322,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,7 +333,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -411,13 +363,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -430,22 +384,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ListTableSpecsRequest other = (com.google.cloud.automl.v1beta1.ListTableSpecsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + 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 (!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; } @@ -475,127 +433,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ListTableSpecsRequest prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ListTableSpecsRequest.class, com.google.cloud.automl.v1beta1.ListTableSpecsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListTableSpecsRequest.newBuilder() @@ -603,15 +551,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -633,9 +582,9 @@ public Builder clear() { } @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; + 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 @@ -654,8 +603,7 @@ public com.google.cloud.automl.v1beta1.ListTableSpecsRequest build() { @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); + com.google.cloud.automl.v1beta1.ListTableSpecsRequest result = new com.google.cloud.automl.v1beta1.ListTableSpecsRequest(this); result.parent_ = parent_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; @@ -673,39 +621,38 @@ public com.google.cloud.automl.v1beta1.ListTableSpecsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ListTableSpecsRequest)other); } else { super.mergeFrom(other); return this; @@ -713,8 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListTableSpecsRequest other) { - if (other == com.google.cloud.automl.v1beta1.ListTableSpecsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ListTableSpecsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -752,8 +698,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ListTableSpecsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ListTableSpecsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -765,22 +710,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the dataset to list table specs from.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -789,23 +730,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the dataset to list table specs from.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -813,67 +751,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the dataset to list table specs from.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset to list table specs from.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the dataset to list table specs from.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -881,33 +806,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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_; + 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; - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -918,8 +834,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -940,15 +854,14 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; */ - public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -959,8 +872,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -971,7 +882,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -983,8 +894,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -1003,8 +912,6 @@ public Builder clearFieldMask() { return this; } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -1012,13 +919,11 @@ public Builder clearFieldMask() { * .google.protobuf.FieldMask field_mask = 2; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -1029,12 +934,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** - * - * *
      * Mask specifying which fields to read.
      * 
@@ -1042,17 +946,14 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * .google.protobuf.FieldMask field_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -1060,20 +961,18 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; - * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1082,21 +981,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1104,77 +1002,67 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + 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; - * * @return The pageSize. */ @java.lang.Override @@ -1182,38 +1070,32 @@ 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; - * * @param value The pageSize to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1221,8 +1103,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1231,13 +1111,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1246,8 +1126,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1256,14 +1134,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1271,8 +1150,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1281,22 +1158,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1305,18 +1180,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ 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
@@ -1325,23 +1197,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1351,12 +1223,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1365,16 +1237,16 @@ public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest getDefaultIn 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); - } - }; + 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; @@ -1389,4 +1261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListTableSpecsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java index f98028520..bbecefbdb 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java @@ -1,84 +1,51 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +public interface ListTableSpecsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListTableSpecsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the dataset to list table specs from.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the dataset to list table specs from.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * Mask specifying which fields to read.
    * 
@@ -88,47 +55,37 @@ public interface ListTableSpecsRequestOrBuilder com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); /** - * - * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + 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; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results for the server to return.
    * Typically obtained from the
@@ -137,13 +94,10 @@ public interface ListTableSpecsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results for the server to return.
    * Typically obtained from the
@@ -152,8 +106,8 @@ public interface ListTableSpecsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java similarity index 73% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java index 20a2043ba..3977459c2 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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_ = ""; @@ -44,15 +26,16 @@ private ListTableSpecsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTableSpecsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTableSpecsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListTableSpecsResponse( 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 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tableSpecs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + 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; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { tableSpecs_ = java.util.Collections.unmodifiableList(tableSpecs_); @@ -111,27 +92,22 @@ private ListTableSpecsResponse( 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, com.google.cloud.automl.v1beta1.ListTableSpecsResponse.Builder.class); } public static final int TABLE_SPECS_FIELD_NUMBER = 1; private java.util.List tableSpecs_; /** - * - * *
    * The table specs read.
    * 
@@ -143,8 +119,6 @@ public java.util.List getTableSpecsLi return tableSpecs_; } /** - * - * *
    * The table specs read.
    * 
@@ -152,13 +126,11 @@ public java.util.List getTableSpecsLi * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getTableSpecsOrBuilderList() { return tableSpecs_; } /** - * - * *
    * The table specs read.
    * 
@@ -170,8 +142,6 @@ public int getTableSpecsCount() { return tableSpecs_.size(); } /** - * - * *
    * The table specs read.
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int index) { return tableSpecs_.get(index); } /** - * - * *
    * The table specs read.
    * 
@@ -192,22 +160,20 @@ public com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int index) { * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder(int index) { + 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; - * * @return The nextPageToken. */ @java.lang.Override @@ -216,30 +182,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -248,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +225,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -277,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < tableSpecs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tableSpecs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tableSpecs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -290,16 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getTableSpecsList() + .equals(other.getTableSpecsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.ListTableSpecsResponse prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, com.google.cloud.automl.v1beta1.ListTableSpecsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListTableSpecsResponse.newBuilder() @@ -451,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTableSpecsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +435,9 @@ public Builder clear() { } @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; + 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 @@ -498,8 +456,7 @@ public com.google.cloud.automl.v1beta1.ListTableSpecsResponse build() { @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); + com.google.cloud.automl.v1beta1.ListTableSpecsResponse result = new com.google.cloud.automl.v1beta1.ListTableSpecsResponse(this); int from_bitField0_ = bitField0_; if (tableSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -519,39 +476,38 @@ public com.google.cloud.automl.v1beta1.ListTableSpecsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ListTableSpecsResponse)other); } else { super.mergeFrom(other); return this; @@ -559,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListTableSpecsResponse other) { - if (other == com.google.cloud.automl.v1beta1.ListTableSpecsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ListTableSpecsResponse.getDefaultInstance()) return this; if (tableSpecsBuilder_ == null) { if (!other.tableSpecs_.isEmpty()) { if (tableSpecs_.isEmpty()) { @@ -579,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListTableSpecsResponse tableSpecsBuilder_ = null; tableSpecs_ = other.tableSpecs_; bitField0_ = (bitField0_ & ~0x00000001); - tableSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTableSpecsFieldBuilder() - : null; + tableSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTableSpecsFieldBuilder() : null; } else { tableSpecsBuilder_.addAllMessages(other.tableSpecs_); } @@ -611,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ListTableSpecsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ListTableSpecsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -621,29 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List tableSpecs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTableSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - tableSpecs_ = - new java.util.ArrayList(tableSpecs_); + 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_; + com.google.cloud.automl.v1beta1.TableSpec, com.google.cloud.automl.v1beta1.TableSpec.Builder, com.google.cloud.automl.v1beta1.TableSpecOrBuilder> tableSpecsBuilder_; /** - * - * *
      * The table specs read.
      * 
@@ -658,8 +603,6 @@ public java.util.List getTableSpecsLi } } /** - * - * *
      * The table specs read.
      * 
@@ -674,8 +617,6 @@ public int getTableSpecsCount() { } } /** - * - * *
      * The table specs read.
      * 
@@ -690,15 +631,14 @@ public com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int 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) { + public Builder setTableSpecs( + int index, com.google.cloud.automl.v1beta1.TableSpec value) { if (tableSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,8 +652,6 @@ public Builder setTableSpecs(int index, com.google.cloud.automl.v1beta1.TableSpe return this; } /** - * - * *
      * The table specs read.
      * 
@@ -732,8 +670,6 @@ public Builder setTableSpecs( return this; } /** - * - * *
      * The table specs read.
      * 
@@ -754,15 +690,14 @@ public Builder addTableSpecs(com.google.cloud.automl.v1beta1.TableSpec 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) { + public Builder addTableSpecs( + int index, com.google.cloud.automl.v1beta1.TableSpec value) { if (tableSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -776,8 +711,6 @@ public Builder addTableSpecs(int index, com.google.cloud.automl.v1beta1.TableSpe return this; } /** - * - * *
      * The table specs read.
      * 
@@ -796,8 +729,6 @@ public Builder addTableSpecs( return this; } /** - * - * *
      * The table specs read.
      * 
@@ -816,8 +747,6 @@ public Builder addTableSpecs( return this; } /** - * - * *
      * The table specs read.
      * 
@@ -828,7 +757,8 @@ public Builder addAllTableSpecs( java.lang.Iterable values) { if (tableSpecsBuilder_ == null) { ensureTableSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tableSpecs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tableSpecs_); onChanged(); } else { tableSpecsBuilder_.addAllMessages(values); @@ -836,8 +766,6 @@ public Builder addAllTableSpecs( return this; } /** - * - * *
      * The table specs read.
      * 
@@ -855,8 +783,6 @@ public Builder clearTableSpecs() { return this; } /** - * - * *
      * The table specs read.
      * 
@@ -874,44 +800,39 @@ public Builder removeTableSpecs(int 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) { + 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) { + public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder( + int index) { if (tableSpecsBuilder_ == null) { - return tableSpecs_.get(index); - } else { + 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() { + public java.util.List + getTableSpecsOrBuilderList() { if (tableSpecsBuilder_ != null) { return tableSpecsBuilder_.getMessageOrBuilderList(); } else { @@ -919,8 +840,6 @@ public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder } } /** - * - * *
      * The table specs read.
      * 
@@ -928,48 +847,42 @@ public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder * 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()); + 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()); + 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() { + 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> + 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()); + 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_; @@ -977,21 +890,19 @@ public com.google.cloud.automl.v1beta1.TableSpec.Builder addTableSpecsBuilder(in 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; - * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1000,22 +911,21 @@ public 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; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1023,71 +933,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1097,12 +1000,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1111,16 +1014,16 @@ public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse getDefaultI 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); - } - }; + 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; @@ -1135,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListTableSpecsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java index 7b79bad7b..4c65ee502 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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(); + java.util.List + getTableSpecsList(); /** - * - * *
    * The table specs read.
    * 
@@ -44,8 +25,6 @@ public interface ListTableSpecsResponseOrBuilder */ com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int index); /** - * - * *
    * The table specs read.
    * 
@@ -54,51 +33,43 @@ public interface ListTableSpecsResponseOrBuilder */ int getTableSpecsCount(); /** - * - * *
    * The table specs read.
    * 
* * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; */ - java.util.List + 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); + 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; - * * @return The nextPageToken. */ 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; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java similarity index 63% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java index 24ade1111..3d45c3f76 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/model.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * API proto representing a trained machine learning model.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.Model} */ -public final class Model extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Model extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Model) ModelOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Model.newBuilder() to construct. private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Model() { name_ = ""; displayName_ = ""; @@ -46,15 +28,16 @@ private Model() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Model(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Model( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,306 +56,224 @@ private Model( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - datasetId_ = s; - break; + datasetId_ = s; + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 64: - { - int rawValue = input.readEnum(); - deploymentState_ = rawValue; - break; + break; + } + case 64: { + int rawValue = input.readEnum(); + + deploymentState_ = rawValue; + break; + } + case 90: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 106: { + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 13) { + subBuilder = ((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_).toBuilder(); + } + modelMetadata_ = + input.readMessage(com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 13; + break; + } + case 114: { + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 14) { + subBuilder = ((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_).toBuilder(); + } + modelMetadata_ = + input.readMessage(com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 14; + break; + } + case 122: { + com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 15) { + subBuilder = ((com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_).toBuilder(); } - case 106: - { - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder subBuilder = - null; - if (modelMetadataCase_ == 13) { - subBuilder = - ((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) - modelMetadata_) - .toBuilder(); - } - modelMetadata_ = - input.readMessage( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) - modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 13; - break; + modelMetadata_ = + input.readMessage(com.google.cloud.automl.v1beta1.TranslationModelMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); } - case 114: - { - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder subBuilder = - null; - if (modelMetadataCase_ == 14) { - subBuilder = - ((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) - modelMetadata_) - .toBuilder(); - } - modelMetadata_ = - input.readMessage( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) - modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 14; - break; + 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(); } - case 122: - { - com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 15) { - subBuilder = - ((com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_) - .toBuilder(); - } - modelMetadata_ = - input.readMessage( - com.google.cloud.automl.v1beta1.TranslationModelMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 15; - break; + 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(); } - 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; + modelMetadataCase_ = 20; + break; + } + case 170: { + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 21) { + subBuilder = ((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_).toBuilder(); + } + modelMetadata_ = + input.readMessage(com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 21; + break; + } + case 178: { + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 22) { + subBuilder = ((com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_).toBuilder(); } - 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; + 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(); } - case 170: - { - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder subBuilder = - null; - if (modelMetadataCase_ == 21) { - subBuilder = - ((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) - modelMetadata_) - .toBuilder(); - } - modelMetadata_ = - input.readMessage( - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) - modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 21; - break; + 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(); } - 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; + 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(); } - 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; + 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(); } - 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; + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + modelMetadataCase_ = 24; + 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); + 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.ModelOuterClass - .internal_static_google_cloud_automl_v1beta1_Model_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ModelOuterClass - .internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.Model.class, - com.google.cloud.automl.v1beta1.Model.Builder.class); + com.google.cloud.automl.v1beta1.Model.class, com.google.cloud.automl.v1beta1.Model.Builder.class); } /** - * - * *
    * Deployment state of the model.
    * 
* * Protobuf enum {@code google.cloud.automl.v1beta1.Model.DeploymentState} */ - public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { + public enum DeploymentState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Should not be used, an un-set enum has this value by default.
      * 
@@ -381,8 +282,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ DEPLOYMENT_STATE_UNSPECIFIED(0), /** - * - * *
      * Model is deployed.
      * 
@@ -391,8 +290,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ DEPLOYED(1), /** - * - * *
      * Model is not deployed.
      * 
@@ -404,8 +301,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Should not be used, an un-set enum has this value by default.
      * 
@@ -414,8 +309,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Model is deployed.
      * 
@@ -424,8 +317,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYED_VALUE = 1; /** - * - * *
      * Model is not deployed.
      * 
@@ -434,6 +325,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNDEPLOYED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -458,42 +350,39 @@ public static DeploymentState valueOf(int value) { */ public static DeploymentState forNumber(int value) { switch (value) { - case 0: - return DEPLOYMENT_STATE_UNSPECIFIED; - case 1: - return DEPLOYED; - case 2: - return UNDEPLOYED; - default: - return null; + case 0: return DEPLOYMENT_STATE_UNSPECIFIED; + case 1: return DEPLOYED; + case 2: return UNDEPLOYED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DeploymentState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeploymentState findValueByNumber(int number) { + return DeploymentState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DeploymentState findValueByNumber(int number) { - return DeploymentState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.automl.v1beta1.Model.getDescriptor().getEnumTypes().get(0); } @@ -502,7 +391,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static DeploymentState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -521,10 +411,8 @@ private DeploymentState(int value) { private int modelMetadataCase_ = 0; private java.lang.Object modelMetadata_; - public enum ModelMetadataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION_MODEL_METADATA(15), IMAGE_CLASSIFICATION_MODEL_METADATA(13), @@ -537,7 +425,6 @@ public enum ModelMetadataCase TEXT_SENTIMENT_MODEL_METADATA(22), MODELMETADATA_NOT_SET(0); private final int value; - private ModelMetadataCase(int value) { this.value = value; } @@ -553,51 +440,37 @@ 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 20: - return IMAGE_OBJECT_DETECTION_MODEL_METADATA; - case 23: - return VIDEO_CLASSIFICATION_MODEL_METADATA; - case 21: - return VIDEO_OBJECT_TRACKING_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: - return null; + case 15: return TRANSLATION_MODEL_METADATA; + case 13: return IMAGE_CLASSIFICATION_MODEL_METADATA; + case 14: return TEXT_CLASSIFICATION_MODEL_METADATA; + case 20: return IMAGE_OBJECT_DETECTION_MODEL_METADATA; + case 23: return VIDEO_CLASSIFICATION_MODEL_METADATA; + case 21: return VIDEO_OBJECT_TRACKING_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: return null; } } - public int getNumber() { return this.value; } }; - public ModelMetadataCase getModelMetadataCase() { - return ModelMetadataCase.forNumber(modelMetadataCase_); + 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; - * - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; * @return Whether the translationModelMetadata field is set. */ @java.lang.Override @@ -605,55 +478,42 @@ public boolean hasTranslationModelMetadata() { return modelMetadataCase_ == 15; } /** - * - * *
    * Metadata for translation models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; * @return The translationModelMetadata. */ @java.lang.Override 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for translation models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder - getTranslationModelMetadataOrBuilder() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 13; /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return Whether the imageClassificationModelMetadata field is set. */ @java.lang.Override @@ -661,58 +521,42 @@ public boolean hasImageClassificationModelMetadata() { return modelMetadataCase_ == 13; } /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return The imageClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - getImageClassificationModelMetadata() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getImageClassificationModelMetadata() { if (modelMetadataCase_ == 13) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_; + 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; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder - getImageClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder() { if (modelMetadataCase_ == 13) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 14; /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return Whether the textClassificationModelMetadata field is set. */ @java.lang.Override @@ -720,58 +564,42 @@ public boolean hasTextClassificationModelMetadata() { return modelMetadataCase_ == 14; } /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return The textClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata - getTextClassificationModelMetadata() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getTextClassificationModelMetadata() { if (modelMetadataCase_ == 14) { - return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; + 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; - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder - getTextClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder() { if (modelMetadataCase_ == 14) { - return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); } public static final int IMAGE_OBJECT_DETECTION_MODEL_METADATA_FIELD_NUMBER = 20; /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return Whether the imageObjectDetectionModelMetadata field is set. */ @java.lang.Override @@ -779,58 +607,42 @@ public boolean hasImageObjectDetectionModelMetadata() { return modelMetadataCase_ == 20; } /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return The imageObjectDetectionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata - getImageObjectDetectionModelMetadata() { + 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.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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder - getImageObjectDetectionModelMetadataOrBuilder() { + 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.ImageObjectDetectionModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } public static final int VIDEO_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 23; /** - * - * *
    * Metadata for video classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; * @return Whether the videoClassificationModelMetadata field is set. */ @java.lang.Override @@ -838,58 +650,42 @@ public boolean hasVideoClassificationModelMetadata() { return modelMetadataCase_ == 23; } /** - * - * *
    * Metadata for video classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; * @return The videoClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata - getVideoClassificationModelMetadata() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for video classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder - getVideoClassificationModelMetadataOrBuilder() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_MODEL_METADATA_FIELD_NUMBER = 21; /** - * - * *
    * Metadata for video object tracking models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; * @return Whether the videoObjectTrackingModelMetadata field is set. */ @java.lang.Override @@ -897,58 +693,42 @@ public boolean hasVideoObjectTrackingModelMetadata() { return modelMetadataCase_ == 21; } /** - * - * *
    * Metadata for video object tracking models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; * @return The videoObjectTrackingModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - getVideoObjectTrackingModelMetadata() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getVideoObjectTrackingModelMetadata() { if (modelMetadataCase_ == 21) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for video object tracking models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder - getVideoObjectTrackingModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder getVideoObjectTrackingModelMetadataOrBuilder() { if (modelMetadataCase_ == 21) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } public static final int TEXT_EXTRACTION_MODEL_METADATA_FIELD_NUMBER = 19; /** - * - * *
    * Metadata for text extraction models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return Whether the textExtractionModelMetadata field is set. */ @java.lang.Override @@ -956,56 +736,42 @@ public boolean hasTextExtractionModelMetadata() { return modelMetadataCase_ == 19; } /** - * - * *
    * Metadata for text extraction models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return The textExtractionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata - getTextExtractionModelMetadata() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for text extraction models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder - getTextExtractionModelMetadataOrBuilder() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); } public static final int TABLES_MODEL_METADATA_FIELD_NUMBER = 24; /** - * - * *
    * Metadata for Tables models.
    * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; - * * @return Whether the tablesModelMetadata field is set. */ @java.lang.Override @@ -1013,26 +779,21 @@ public boolean hasTablesModelMetadata() { return modelMetadataCase_ == 24; } /** - * - * *
    * Metadata for Tables models.
    * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; - * * @return The tablesModelMetadata. */ @java.lang.Override 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for Tables models.
    * 
@@ -1040,26 +801,20 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata getTablesModelMetadat * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder - getTablesModelMetadataOrBuilder() { + 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) 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; - * - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return Whether the textSentimentModelMetadata field is set. */ @java.lang.Override @@ -1067,42 +822,31 @@ public boolean hasTextSentimentModelMetadata() { return modelMetadataCase_ == 22; } /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return The textSentimentModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata - getTextSentimentModelMetadata() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder - getTextSentimentModelMetadataOrBuilder() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); } @@ -1110,15 +854,12 @@ public boolean hasTextSentimentModelMetadata() { 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; - * * @return The name. */ @java.lang.Override @@ -1127,30 +868,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1161,8 +902,6 @@ public com.google.protobuf.ByteString getNameBytes() { 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
@@ -1171,7 +910,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -1180,15 +918,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -1197,15 +934,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1216,15 +954,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { 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; - * * @return The datasetId. */ @java.lang.Override @@ -1233,30 +968,30 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -1267,14 +1002,11 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1282,14 +1014,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return The createTime. */ @java.lang.Override @@ -1297,8 +1026,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
@@ -1313,14 +1040,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1328,14 +1052,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ @java.lang.Override @@ -1343,8 +1064,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
@@ -1359,45 +1078,33 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 8; private int deploymentState_; /** - * - * *
    * 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; - * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override - public int getDeploymentStateValue() { + @java.lang.Override public int getDeploymentStateValue() { return deploymentState_; } /** - * - * *
    * 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; - * * @return The deploymentState. */ - @java.lang.Override - public com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState() { + @java.lang.Override public com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.Model.DeploymentState result = - com.google.cloud.automl.v1beta1.Model.DeploymentState.valueOf(deploymentState_); - return result == null - ? com.google.cloud.automl.v1beta1.Model.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.Model.DeploymentState result = com.google.cloud.automl.v1beta1.Model.DeploymentState.valueOf(deploymentState_); + return result == null ? com.google.cloud.automl.v1beta1.Model.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1409,7 +1116,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1422,45 +1130,35 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } - if (deploymentState_ - != com.google.cloud.automl.v1beta1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (deploymentState_ != com.google.cloud.automl.v1beta1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(8, deploymentState_); } if (updateTime_ != null) { output.writeMessage(11, getUpdateTime()); } if (modelMetadataCase_ == 13) { - output.writeMessage( - 13, (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_); + output.writeMessage(13, (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 14) { - output.writeMessage( - 14, (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_); + output.writeMessage(14, (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 15) { - output.writeMessage( - 15, (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); + output.writeMessage(15, (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 19) { - output.writeMessage( - 19, (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_); + output.writeMessage(19, (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 20) { - output.writeMessage( - 20, (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_); + output.writeMessage(20, (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 21) { - output.writeMessage( - 21, (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_); + output.writeMessage(21, (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 22) { - output.writeMessage( - 22, (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_); + output.writeMessage(22, (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 23) { - output.writeMessage( - 23, (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_); + output.writeMessage(23, (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 24) { output.writeMessage(24, (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_); @@ -1484,64 +1182,52 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, datasetId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } - if (deploymentState_ - != com.google.cloud.automl.v1beta1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, deploymentState_); + if (deploymentState_ != com.google.cloud.automl.v1beta1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, deploymentState_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getUpdateTime()); } if (modelMetadataCase_ == 13) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, - (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 14) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 15) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); + size += 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_); + 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_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 21) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, - (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 22) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_); + 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_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1551,30 +1237,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.Model)) { return super.equals(obj); } com.google.cloud.automl.v1beta1.Model other = (com.google.cloud.automl.v1beta1.Model) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDatasetId().equals(other.getDatasetId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDatasetId() + .equals(other.getDatasetId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (deploymentState_ != other.deploymentState_) return false; if (!getModelMetadataCase().equals(other.getModelMetadataCase())) return false; switch (modelMetadataCase_) { case 15: - if (!getTranslationModelMetadata().equals(other.getTranslationModelMetadata())) - return false; + if (!getTranslationModelMetadata() + .equals(other.getTranslationModelMetadata())) return false; break; case 13: if (!getImageClassificationModelMetadata() @@ -1597,15 +1288,16 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getVideoObjectTrackingModelMetadata())) return false; break; case 19: - if (!getTextExtractionModelMetadata().equals(other.getTextExtractionModelMetadata())) - return false; + if (!getTextExtractionModelMetadata() + .equals(other.getTextExtractionModelMetadata())) return false; break; case 24: - if (!getTablesModelMetadata().equals(other.getTablesModelMetadata())) return false; + if (!getTablesModelMetadata() + .equals(other.getTablesModelMetadata())) return false; break; case 22: - if (!getTextSentimentModelMetadata().equals(other.getTextSentimentModelMetadata())) - return false; + if (!getTextSentimentModelMetadata() + .equals(other.getTextSentimentModelMetadata())) return false; break; case 0: default: @@ -1682,126 +1374,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.Model parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.Model parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Model parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Model parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.automl.v1beta1.Model parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Model 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.Model parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.Model parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Model parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.Model parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Model parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.Model parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Model parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.Model parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.Model prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * API proto representing a trained machine learning model.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.Model} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Model) com.google.cloud.automl.v1beta1.ModelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ModelOuterClass - .internal_static_google_cloud_automl_v1beta1_Model_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ModelOuterClass - .internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.Model.class, - com.google.cloud.automl.v1beta1.Model.Builder.class); + com.google.cloud.automl.v1beta1.Model.class, com.google.cloud.automl.v1beta1.Model.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.Model.newBuilder() @@ -1809,15 +1493,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1847,9 +1532,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ModelOuterClass - .internal_static_google_cloud_automl_v1beta1_Model_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_descriptor; } @java.lang.Override @@ -1868,8 +1553,7 @@ public com.google.cloud.automl.v1beta1.Model build() { @java.lang.Override public com.google.cloud.automl.v1beta1.Model buildPartial() { - com.google.cloud.automl.v1beta1.Model result = - new com.google.cloud.automl.v1beta1.Model(this); + com.google.cloud.automl.v1beta1.Model result = new com.google.cloud.automl.v1beta1.Model(this); if (modelMetadataCase_ == 15) { if (translationModelMetadataBuilder_ == null) { result.modelMetadata_ = modelMetadata_; @@ -1956,39 +1640,38 @@ public com.google.cloud.automl.v1beta1.Model buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.Model) { - return mergeFrom((com.google.cloud.automl.v1beta1.Model) other); + return mergeFrom((com.google.cloud.automl.v1beta1.Model)other); } else { super.mergeFrom(other); return this; @@ -2019,55 +1702,45 @@ 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()); - break; - } - case TEXT_CLASSIFICATION_MODEL_METADATA: - { - mergeTextClassificationModelMetadata(other.getTextClassificationModelMetadata()); - break; - } - case IMAGE_OBJECT_DETECTION_MODEL_METADATA: - { - mergeImageObjectDetectionModelMetadata(other.getImageObjectDetectionModelMetadata()); - break; - } - case VIDEO_CLASSIFICATION_MODEL_METADATA: - { - mergeVideoClassificationModelMetadata(other.getVideoClassificationModelMetadata()); - break; - } - case VIDEO_OBJECT_TRACKING_MODEL_METADATA: - { - mergeVideoObjectTrackingModelMetadata(other.getVideoObjectTrackingModelMetadata()); - 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: - { - break; - } + case TRANSLATION_MODEL_METADATA: { + mergeTranslationModelMetadata(other.getTranslationModelMetadata()); + break; + } + case IMAGE_CLASSIFICATION_MODEL_METADATA: { + mergeImageClassificationModelMetadata(other.getImageClassificationModelMetadata()); + break; + } + case TEXT_CLASSIFICATION_MODEL_METADATA: { + mergeTextClassificationModelMetadata(other.getTextClassificationModelMetadata()); + break; + } + case IMAGE_OBJECT_DETECTION_MODEL_METADATA: { + mergeImageObjectDetectionModelMetadata(other.getImageObjectDetectionModelMetadata()); + break; + } + case VIDEO_CLASSIFICATION_MODEL_METADATA: { + mergeVideoClassificationModelMetadata(other.getVideoClassificationModelMetadata()); + break; + } + case VIDEO_OBJECT_TRACKING_MODEL_METADATA: { + mergeVideoObjectTrackingModelMetadata(other.getVideoObjectTrackingModelMetadata()); + 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: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2097,12 +1770,12 @@ public Builder mergeFrom( } return this; } - private int modelMetadataCase_ = 0; private java.lang.Object modelMetadata_; - - public ModelMetadataCase getModelMetadataCase() { - return ModelMetadataCase.forNumber(modelMetadataCase_); + public ModelMetadataCase + getModelMetadataCase() { + return ModelMetadataCase.forNumber( + modelMetadataCase_); } public Builder clearModelMetadata() { @@ -2112,21 +1785,15 @@ public Builder clearModelMetadata() { return this; } + 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.TranslationModelMetadata, com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder, com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder> translationModelMetadataBuilder_; /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; * @return Whether the translationModelMetadata field is set. */ @java.lang.Override @@ -2134,15 +1801,11 @@ public boolean hasTranslationModelMetadata() { return modelMetadataCase_ == 15; } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; * @return The translationModelMetadata. */ @java.lang.Override @@ -2160,17 +1823,13 @@ public com.google.cloud.automl.v1beta1.TranslationModelMetadata getTranslationMo } } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; */ - public Builder setTranslationModelMetadata( - com.google.cloud.automl.v1beta1.TranslationModelMetadata value) { + public Builder setTranslationModelMetadata(com.google.cloud.automl.v1beta1.TranslationModelMetadata value) { if (translationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2184,14 +1843,11 @@ public Builder setTranslationModelMetadata( return this; } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; */ public Builder setTranslationModelMetadata( com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder builderForValue) { @@ -2205,26 +1861,18 @@ public Builder setTranslationModelMetadata( return this; } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; */ - public Builder mergeTranslationModelMetadata( - com.google.cloud.automl.v1beta1.TranslationModelMetadata value) { + 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(); + 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; } @@ -2239,14 +1887,11 @@ public Builder mergeTranslationModelMetadata( return this; } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; */ public Builder clearTranslationModelMetadata() { if (translationModelMetadataBuilder_ == null) { @@ -2265,32 +1910,24 @@ public Builder clearTranslationModelMetadata() { return this; } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; */ - public com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder - getTranslationModelMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder - getTranslationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder() { if ((modelMetadataCase_ == 15) && (translationModelMetadataBuilder_ != null)) { return translationModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2301,57 +1938,39 @@ public Builder clearTranslationModelMetadata() { } } /** - * - * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * + * .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> + 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(); + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return Whether the imageClassificationModelMetadata field is set. */ @java.lang.Override @@ -2359,48 +1978,35 @@ public boolean hasImageClassificationModelMetadata() { return modelMetadataCase_ == 13; } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return The imageClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - getImageClassificationModelMetadata() { + 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(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); } else { if (modelMetadataCase_ == 13) { return imageClassificationModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); } } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ - public Builder setImageClassificationModelMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata value) { + public Builder setImageClassificationModelMetadata(com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata value) { if (imageClassificationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2414,15 +2020,11 @@ public Builder setImageClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ public Builder setImageClassificationModelMetadata( com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder builderForValue) { @@ -2436,29 +2038,18 @@ public Builder setImageClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ - public Builder mergeImageClassificationModelMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata value) { + 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(); + 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; } @@ -2473,15 +2064,11 @@ public Builder mergeImageClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ public Builder clearImageClassificationModelMetadata() { if (imageClassificationModelMetadataBuilder_ == null) { @@ -2500,97 +2087,67 @@ public Builder clearImageClassificationModelMetadata() { return this; } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder - getImageClassificationModelMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder - getImageClassificationModelMetadataOrBuilder() { + 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(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); } } /** - * - * *
      * Metadata for image classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .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> + 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(); + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return Whether the textClassificationModelMetadata field is set. */ @java.lang.Override @@ -2598,21 +2155,15 @@ public boolean hasTextClassificationModelMetadata() { return modelMetadataCase_ == 14; } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return The textClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata - getTextClassificationModelMetadata() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getTextClassificationModelMetadata() { if (textClassificationModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 14) { return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; @@ -2626,18 +2177,13 @@ public boolean hasTextClassificationModelMetadata() { } } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ - public Builder setTextClassificationModelMetadata( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata value) { + public Builder setTextClassificationModelMetadata(com.google.cloud.automl.v1beta1.TextClassificationModelMetadata value) { if (textClassificationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2651,15 +2197,11 @@ public Builder setTextClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ public Builder setTextClassificationModelMetadata( com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder builderForValue) { @@ -2673,29 +2215,18 @@ public Builder setTextClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ - public Builder mergeTextClassificationModelMetadata( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata value) { + 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(); + 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; } @@ -2710,15 +2241,11 @@ public Builder mergeTextClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ public Builder clearTextClassificationModelMetadata() { if (textClassificationModelMetadataBuilder_ == null) { @@ -2737,34 +2264,24 @@ public Builder clearTextClassificationModelMetadata() { return this; } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder - getTextClassificationModelMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder - getTextClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder() { if ((modelMetadataCase_ == 14) && (textClassificationModelMetadataBuilder_ != null)) { return textClassificationModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2775,58 +2292,39 @@ public Builder clearTextClassificationModelMetadata() { } } /** - * - * *
      * Metadata for text classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .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> + 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(); + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return Whether the imageObjectDetectionModelMetadata field is set. */ @java.lang.Override @@ -2834,48 +2332,35 @@ public boolean hasImageObjectDetectionModelMetadata() { return modelMetadataCase_ == 20; } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return The imageObjectDetectionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata - getImageObjectDetectionModelMetadata() { + 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(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } else { if (modelMetadataCase_ == 20) { return imageObjectDetectionModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ - public Builder setImageObjectDetectionModelMetadata( - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata value) { + public Builder setImageObjectDetectionModelMetadata(com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata value) { if (imageObjectDetectionModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2889,15 +2374,11 @@ public Builder setImageObjectDetectionModelMetadata( return this; } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ public Builder setImageObjectDetectionModelMetadata( com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder builderForValue) { @@ -2911,29 +2392,18 @@ public Builder setImageObjectDetectionModelMetadata( return this; } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ - public Builder mergeImageObjectDetectionModelMetadata( - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata value) { + 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(); + 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; } @@ -2948,15 +2418,11 @@ public Builder mergeImageObjectDetectionModelMetadata( return this; } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ public Builder clearImageObjectDetectionModelMetadata() { if (imageObjectDetectionModelMetadataBuilder_ == null) { @@ -2975,98 +2441,67 @@ public Builder clearImageObjectDetectionModelMetadata() { return this; } /** - * - * *
      * Metadata for image object detection models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder - getImageObjectDetectionModelMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder - getImageObjectDetectionModelMetadataOrBuilder() { + 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(); + 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; - * + * .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> + 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(); + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; * @return Whether the videoClassificationModelMetadata field is set. */ @java.lang.Override @@ -3074,48 +2509,35 @@ public boolean hasVideoClassificationModelMetadata() { return modelMetadataCase_ == 23; } /** - * - * *
      * Metadata for video classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; * @return The videoClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata - getVideoClassificationModelMetadata() { + 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(); + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } else { if (modelMetadataCase_ == 23) { return videoClassificationModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } } /** - * - * *
      * Metadata for video classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; */ - public Builder setVideoClassificationModelMetadata( - com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata value) { + public Builder setVideoClassificationModelMetadata(com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata value) { if (videoClassificationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3129,15 +2551,11 @@ public Builder setVideoClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for video classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; */ public Builder setVideoClassificationModelMetadata( com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder builderForValue) { @@ -3151,29 +2569,18 @@ public Builder setVideoClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for video classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; */ - public Builder mergeVideoClassificationModelMetadata( - com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata value) { + 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(); + 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; } @@ -3188,15 +2595,11 @@ public Builder mergeVideoClassificationModelMetadata( return this; } /** - * - * *
      * Metadata for video classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; */ public Builder clearVideoClassificationModelMetadata() { if (videoClassificationModelMetadataBuilder_ == null) { @@ -3215,97 +2618,67 @@ public Builder clearVideoClassificationModelMetadata() { return this; } /** - * - * *
      * Metadata for video classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; */ - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder - getVideoClassificationModelMetadataBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder - getVideoClassificationModelMetadataOrBuilder() { + 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(); + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } } /** - * - * *
      * Metadata for video classification models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * + * .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> + 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(); + 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>( + 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(); - ; + onChanged();; return videoClassificationModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder> - videoObjectTrackingModelMetadataBuilder_; + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder> videoObjectTrackingModelMetadataBuilder_; /** - * - * *
      * Metadata for video object tracking models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; * @return Whether the videoObjectTrackingModelMetadata field is set. */ @java.lang.Override @@ -3313,48 +2686,35 @@ public boolean hasVideoObjectTrackingModelMetadata() { return modelMetadataCase_ == 21; } /** - * - * *
      * Metadata for video object tracking models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; * @return The videoObjectTrackingModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - getVideoObjectTrackingModelMetadata() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getVideoObjectTrackingModelMetadata() { if (videoObjectTrackingModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 21) { return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } else { if (modelMetadataCase_ == 21) { return videoObjectTrackingModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } } /** - * - * *
      * Metadata for video object tracking models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; */ - public Builder setVideoObjectTrackingModelMetadata( - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata value) { + public Builder setVideoObjectTrackingModelMetadata(com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata value) { if (videoObjectTrackingModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3368,15 +2728,11 @@ public Builder setVideoObjectTrackingModelMetadata( return this; } /** - * - * *
      * Metadata for video object tracking models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; */ public Builder setVideoObjectTrackingModelMetadata( com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder builderForValue) { @@ -3390,29 +2746,18 @@ public Builder setVideoObjectTrackingModelMetadata( return this; } /** - * - * *
      * Metadata for video object tracking models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; */ - public Builder mergeVideoObjectTrackingModelMetadata( - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata value) { + public Builder mergeVideoObjectTrackingModelMetadata(com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata value) { if (videoObjectTrackingModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 21 - && modelMetadata_ - != com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - .getDefaultInstance()) { - modelMetadata_ = - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) - modelMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelMetadataCase_ == 21 && + modelMetadata_ != com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance()) { + modelMetadata_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.newBuilder((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_) + .mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } @@ -3427,15 +2772,11 @@ public Builder mergeVideoObjectTrackingModelMetadata( return this; } /** - * - * *
      * Metadata for video object tracking models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; */ public Builder clearVideoObjectTrackingModelMetadata() { if (videoObjectTrackingModelMetadataBuilder_ == null) { @@ -3454,97 +2795,67 @@ public Builder clearVideoObjectTrackingModelMetadata() { return this; } /** - * - * *
      * Metadata for video object tracking models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; */ - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder - getVideoObjectTrackingModelMetadataBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder getVideoObjectTrackingModelMetadataBuilder() { return getVideoObjectTrackingModelMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for video object tracking models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder - getVideoObjectTrackingModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder getVideoObjectTrackingModelMetadataOrBuilder() { if ((modelMetadataCase_ == 21) && (videoObjectTrackingModelMetadataBuilder_ != null)) { return videoObjectTrackingModelMetadataBuilder_.getMessageOrBuilder(); } else { if (modelMetadataCase_ == 21) { return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } } /** - * - * *
      * Metadata for video object tracking models.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder> + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder> getVideoObjectTrackingModelMetadataFieldBuilder() { if (videoObjectTrackingModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 21)) { - modelMetadata_ = - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); + modelMetadata_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } - videoObjectTrackingModelMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder>( + videoObjectTrackingModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder>( (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 21; - onChanged(); - ; + onChanged();; return videoObjectTrackingModelMetadataBuilder_; } 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return Whether the textExtractionModelMetadata field is set. */ @java.lang.Override @@ -3552,21 +2863,15 @@ public boolean hasTextExtractionModelMetadata() { return modelMetadataCase_ == 19; } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return The textExtractionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata - getTextExtractionModelMetadata() { + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getTextExtractionModelMetadata() { if (textExtractionModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 19) { return (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_; @@ -3580,18 +2885,13 @@ public boolean hasTextExtractionModelMetadata() { } } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ - public Builder setTextExtractionModelMetadata( - com.google.cloud.automl.v1beta1.TextExtractionModelMetadata value) { + public Builder setTextExtractionModelMetadata(com.google.cloud.automl.v1beta1.TextExtractionModelMetadata value) { if (textExtractionModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3605,15 +2905,11 @@ public Builder setTextExtractionModelMetadata( return this; } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ public Builder setTextExtractionModelMetadata( com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder builderForValue) { @@ -3627,28 +2923,18 @@ public Builder setTextExtractionModelMetadata( return this; } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ - public Builder mergeTextExtractionModelMetadata( - com.google.cloud.automl.v1beta1.TextExtractionModelMetadata value) { + public Builder mergeTextExtractionModelMetadata(com.google.cloud.automl.v1beta1.TextExtractionModelMetadata value) { if (textExtractionModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 19 - && modelMetadata_ - != com.google.cloud.automl.v1beta1.TextExtractionModelMetadata - .getDefaultInstance()) { - modelMetadata_ = - com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelMetadataCase_ == 19 && + modelMetadata_ != com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance()) { + modelMetadata_ = com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.newBuilder((com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_) + .mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } @@ -3663,15 +2949,11 @@ public Builder mergeTextExtractionModelMetadata( return this; } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ public Builder clearTextExtractionModelMetadata() { if (textExtractionModelMetadataBuilder_ == null) { @@ -3690,34 +2972,24 @@ public Builder clearTextExtractionModelMetadata() { return this; } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ - public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder - getTextExtractionModelMetadataBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder getTextExtractionModelMetadataBuilder() { return getTextExtractionModelMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder - getTextExtractionModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder() { if ((modelMetadataCase_ == 19) && (textExtractionModelMetadataBuilder_ != null)) { return textExtractionModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3728,56 +3000,39 @@ public Builder clearTextExtractionModelMetadata() { } } /** - * - * *
      * Metadata for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - 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, 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.TextExtractionModelMetadata.getDefaultInstance(); + modelMetadata_ = com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); } - textExtractionModelMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextExtractionModelMetadata, - com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder>( + textExtractionModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 19; - onChanged(); - ; + onChanged();; return textExtractionModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TablesModelMetadata, - com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder> - tablesModelMetadataBuilder_; + com.google.cloud.automl.v1beta1.TablesModelMetadata, com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder, com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder> tablesModelMetadataBuilder_; /** - * - * *
      * Metadata for Tables models.
      * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; - * * @return Whether the tablesModelMetadata field is set. */ @java.lang.Override @@ -3785,14 +3040,11 @@ public boolean hasTablesModelMetadata() { return modelMetadataCase_ == 24; } /** - * - * *
      * Metadata for Tables models.
      * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; - * * @return The tablesModelMetadata. */ @java.lang.Override @@ -3810,16 +3062,13 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata getTablesModelMetadat } } /** - * - * *
      * Metadata for Tables models.
      * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public Builder setTablesModelMetadata( - com.google.cloud.automl.v1beta1.TablesModelMetadata value) { + public Builder setTablesModelMetadata(com.google.cloud.automl.v1beta1.TablesModelMetadata value) { if (tablesModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3833,8 +3082,6 @@ public Builder setTablesModelMetadata( return this; } /** - * - * *
      * Metadata for Tables models.
      * 
@@ -3853,25 +3100,18 @@ public Builder setTablesModelMetadata( return this; } /** - * - * *
      * Metadata for Tables models.
      * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public Builder mergeTablesModelMetadata( - com.google.cloud.automl.v1beta1.TablesModelMetadata value) { + public Builder mergeTablesModelMetadata(com.google.cloud.automl.v1beta1.TablesModelMetadata value) { if (tablesModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 24 - && modelMetadata_ - != com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance()) { - modelMetadata_ = - com.google.cloud.automl.v1beta1.TablesModelMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelMetadataCase_ == 24 && + modelMetadata_ != com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance()) { + modelMetadata_ = com.google.cloud.automl.v1beta1.TablesModelMetadata.newBuilder((com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_) + .mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } @@ -3886,8 +3126,6 @@ public Builder mergeTablesModelMetadata( return this; } /** - * - * *
      * Metadata for Tables models.
      * 
@@ -3911,21 +3149,16 @@ public Builder clearTablesModelMetadata() { return this; } /** - * - * *
      * Metadata for Tables models.
      * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder - getTablesModelMetadataBuilder() { + public com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder getTablesModelMetadataBuilder() { return getTablesModelMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for Tables models.
      * 
@@ -3933,8 +3166,7 @@ public Builder clearTablesModelMetadata() { * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder - getTablesModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder getTablesModelMetadataOrBuilder() { if ((modelMetadataCase_ == 24) && (tablesModelMetadataBuilder_ != null)) { return tablesModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3945,8 +3177,6 @@ public Builder clearTablesModelMetadata() { } } /** - * - * *
      * Metadata for Tables models.
      * 
@@ -3954,46 +3184,32 @@ public Builder clearTablesModelMetadata() { * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - 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, 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(); } - tablesModelMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TablesModelMetadata, - com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder>( + tablesModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 24; - onChanged(); - ; + onChanged();; return tablesModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata, - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder> - textSentimentModelMetadataBuilder_; + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata, com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder, com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder> textSentimentModelMetadataBuilder_; /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return Whether the textSentimentModelMetadata field is set. */ @java.lang.Override @@ -4001,21 +3217,15 @@ public boolean hasTextSentimentModelMetadata() { return modelMetadataCase_ == 22; } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return The textSentimentModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata - getTextSentimentModelMetadata() { + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getTextSentimentModelMetadata() { if (textSentimentModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 22) { return (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_; @@ -4029,18 +3239,13 @@ public boolean hasTextSentimentModelMetadata() { } } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ - public Builder setTextSentimentModelMetadata( - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata value) { + public Builder setTextSentimentModelMetadata(com.google.cloud.automl.v1beta1.TextSentimentModelMetadata value) { if (textSentimentModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4054,15 +3259,11 @@ public Builder setTextSentimentModelMetadata( return this; } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ public Builder setTextSentimentModelMetadata( com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder builderForValue) { @@ -4076,28 +3277,18 @@ public Builder setTextSentimentModelMetadata( return this; } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ - public Builder mergeTextSentimentModelMetadata( - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata value) { + public Builder mergeTextSentimentModelMetadata(com.google.cloud.automl.v1beta1.TextSentimentModelMetadata value) { if (textSentimentModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 22 - && modelMetadata_ - != com.google.cloud.automl.v1beta1.TextSentimentModelMetadata - .getDefaultInstance()) { - modelMetadata_ = - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_) - .mergeFrom(value) - .buildPartial(); + if (modelMetadataCase_ == 22 && + modelMetadata_ != com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance()) { + modelMetadata_ = com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.newBuilder((com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_) + .mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } @@ -4112,15 +3303,11 @@ public Builder mergeTextSentimentModelMetadata( return this; } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ public Builder clearTextSentimentModelMetadata() { if (textSentimentModelMetadataBuilder_ == null) { @@ -4139,34 +3326,24 @@ public Builder clearTextSentimentModelMetadata() { return this; } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ - public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder - getTextSentimentModelMetadataBuilder() { + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder getTextSentimentModelMetadataBuilder() { return getTextSentimentModelMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder - getTextSentimentModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder() { if ((modelMetadataCase_ == 22) && (textSentimentModelMetadataBuilder_ != null)) { return textSentimentModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -4177,59 +3354,46 @@ public Builder clearTextSentimentModelMetadata() { } } /** - * - * *
      * Metadata for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ private com.google.protobuf.SingleFieldBuilderV3< - 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, 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.TextSentimentModelMetadata.getDefaultInstance(); + modelMetadata_ = com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); } - textSentimentModelMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata, - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder>( + textSentimentModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 22; - onChanged(); - ; + onChanged();; return textSentimentModelMetadataBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4238,22 +3402,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4261,64 +3424,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -4326,8 +3482,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private 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
@@ -4336,13 +3490,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -4351,8 +3505,6 @@ 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
@@ -4361,14 +3513,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -4376,8 +3529,6 @@ 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
@@ -4386,22 +3537,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -4410,18 +3559,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * 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
@@ -4430,16 +3576,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -4447,21 +3593,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private 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; - * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -4470,22 +3614,21 @@ 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.
      * 
* * string dataset_id = 3; - * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -4493,64 +3636,57 @@ 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.
      * 
* * string dataset_id = 3; - * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId(java.lang.String value) { + public Builder setDatasetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + datasetId_ = value; onChanged(); return this; } /** - * - * *
      * 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; - * * @return This builder for chaining. */ public Builder clearDatasetId() { - + datasetId_ = getDefaultInstance().getDatasetId(); onChanged(); return this; } /** - * - * *
      * 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; - * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetId_ = value; onChanged(); return this; @@ -4558,47 +3694,34 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -4619,15 +3742,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -4638,8 +3760,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -4650,7 +3770,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4662,8 +3782,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -4682,8 +3800,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -4691,13 +3807,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -4708,14 +3822,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -4723,17 +3834,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4741,47 +3849,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4802,15 +3897,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -4821,8 +3915,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4833,7 +3925,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -4845,8 +3937,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4865,8 +3955,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4874,13 +3962,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 11; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4891,14 +3977,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -4906,17 +3989,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -4924,71 +4004,55 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int deploymentState_ = 0; /** - * - * *
      * 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; - * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override - public int getDeploymentStateValue() { + @java.lang.Override public int getDeploymentStateValue() { return deploymentState_; } /** - * - * *
      * 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; - * * @param value The enum numeric value on the wire for deploymentState to set. * @return This builder for chaining. */ public Builder setDeploymentStateValue(int value) { - + deploymentState_ = value; onChanged(); return this; } /** - * - * *
      * 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; - * * @return The deploymentState. */ @java.lang.Override public com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.Model.DeploymentState result = - com.google.cloud.automl.v1beta1.Model.DeploymentState.valueOf(deploymentState_); - return result == null - ? com.google.cloud.automl.v1beta1.Model.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.Model.DeploymentState result = com.google.cloud.automl.v1beta1.Model.DeploymentState.valueOf(deploymentState_); + return result == null ? com.google.cloud.automl.v1beta1.Model.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * 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; - * * @param value The deploymentState to set. * @return This builder for chaining. */ @@ -4996,32 +4060,29 @@ public Builder setDeploymentState(com.google.cloud.automl.v1beta1.Model.Deployme if (value == null) { throw new NullPointerException(); } - + deploymentState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * 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; - * * @return This builder for chaining. */ public Builder clearDeploymentState() { - + deploymentState_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5031,12 +4092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Model) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Model) private static final com.google.cloud.automl.v1beta1.Model DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Model(); } @@ -5045,16 +4106,16 @@ public static com.google.cloud.automl.v1beta1.Model getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Model parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Model(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Model parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Model(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5069,4 +4130,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Model getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java similarity index 62% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java index fbac3e58b..79a89109d 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/model_evaluation.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Evaluation results of a model.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ModelEvaluation} */ -public final class ModelEvaluation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ModelEvaluation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ModelEvaluation) ModelEvaluationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ModelEvaluation.newBuilder() to construct. private ModelEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ModelEvaluation() { name_ = ""; annotationSpecId_ = ""; @@ -45,15 +27,16 @@ private ModelEvaluation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ModelEvaluation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ModelEvaluation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,254 +55,176 @@ private ModelEvaluation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecId_ = s; - break; + annotationSpecId_ = s; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 48: { + + evaluatedExampleCount_ = input.readInt32(); + break; + } + case 66: { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 8) { + subBuilder = ((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_).toBuilder(); + } + metrics_ = + input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 8; + break; + } + case 74: { + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 9) { + subBuilder = ((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_).toBuilder(); + } + metrics_ = + input.readMessage(com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); } - case 48: - { - evaluatedExampleCount_ = input.readInt32(); - break; + 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(); } - case 66: - { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .Builder - subBuilder = null; - if (metricsCase_ == 8) { - subBuilder = - ((com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics) - metrics_) - .toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics) - metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 8; - break; + 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(); } - case 74: - { - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder subBuilder = - null; - if (metricsCase_ == 9) { - subBuilder = - ((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_) - .toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 9; - break; + 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(); } - 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; + 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(); } - 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; + 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(); } - 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; + metricsCase_ = 13; + break; + } + case 114: { + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 14) { + subBuilder = ((com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_).toBuilder(); } - case 114: - { - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder - subBuilder = null; - if (metricsCase_ == 14) { - subBuilder = - ((com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) - metrics_) - .toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) - metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 14; - break; + metrics_ = + input.readMessage(com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); + metricsCase_ = 14; + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + 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(); } - 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; + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + metricsCase_ = 24; + 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); + 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.ModelEvaluationOuterClass - .internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass - .internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ModelEvaluation.class, - com.google.cloud.automl.v1beta1.ModelEvaluation.Builder.class); + com.google.cloud.automl.v1beta1.ModelEvaluation.class, com.google.cloud.automl.v1beta1.ModelEvaluation.Builder.class); } private int metricsCase_ = 0; private java.lang.Object metrics_; - public enum MetricsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLASSIFICATION_EVALUATION_METRICS(8), REGRESSION_EVALUATION_METRICS(24), @@ -330,7 +235,6 @@ public enum MetricsCase TEXT_EXTRACTION_EVALUATION_METRICS(13), METRICS_NOT_SET(0); private final int value; - private MetricsCase(int value) { this.value = value; } @@ -346,40 +250,30 @@ public static MetricsCase valueOf(int value) { 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 14: - return VIDEO_OBJECT_TRACKING_EVALUATION_METRICS; - case 11: - return TEXT_SENTIMENT_EVALUATION_METRICS; - case 13: - return TEXT_EXTRACTION_EVALUATION_METRICS; - case 0: - return METRICS_NOT_SET; - default: - return null; + 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 14: return VIDEO_OBJECT_TRACKING_EVALUATION_METRICS; + case 11: return TEXT_SENTIMENT_EVALUATION_METRICS; + case 13: return TEXT_EXTRACTION_EVALUATION_METRICS; + case 0: return METRICS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MetricsCase getMetricsCase() { - return MetricsCase.forNumber(metricsCase_); + public MetricsCase + getMetricsCase() { + return MetricsCase.forNumber( + metricsCase_); } public static final int CLASSIFICATION_EVALUATION_METRICS_FIELD_NUMBER = 8; /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -387,10 +281,7 @@ public MetricsCase getMetricsCase() {
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return Whether the classificationEvaluationMetrics field is set. */ @java.lang.Override @@ -398,8 +289,6 @@ public boolean hasClassificationEvaluationMetrics() { return metricsCase_ == 8; } /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -407,25 +296,17 @@ public boolean hasClassificationEvaluationMetrics() {
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return The classificationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - getClassificationEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getClassificationEvaluationMetrics() { if (metricsCase_ == 8) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) - metrics_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance(); } /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -433,36 +314,25 @@ public boolean hasClassificationEvaluationMetrics() {
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetricsOrBuilder - getClassificationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder() { if (metricsCase_ == 8) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) - metrics_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.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; - * - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; * @return Whether the regressionEvaluationMetrics field is set. */ @java.lang.Override @@ -470,64 +340,46 @@ 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; - * - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; * @return The regressionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics - getRegressionEvaluationMetrics() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder - getRegressionEvaluationMetricsOrBuilder() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.getDefaultInstance(); } public static final int TRANSLATION_EVALUATION_METRICS_FIELD_NUMBER = 9; /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return Whether the translationEvaluationMetrics field is set. */ @java.lang.Override @@ -535,58 +387,42 @@ public boolean hasTranslationEvaluationMetrics() { return metricsCase_ == 9; } /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return The translationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics - getTranslationEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getTranslationEvaluationMetrics() { if (metricsCase_ == 9) { - return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; + 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; - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder - getTranslationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder() { if (metricsCase_ == 9) { - return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; } 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ @java.lang.Override @@ -594,60 +430,42 @@ public boolean hasImageObjectDetectionEvaluationMetrics() { return metricsCase_ == 12; } /** - * - * *
    * Model evaluation metrics for image object detection.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return The imageObjectDetectionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics - getImageObjectDetectionEvaluationMetrics() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder - getImageObjectDetectionEvaluationMetricsOrBuilder() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_EVALUATION_METRICS_FIELD_NUMBER = 14; /** - * - * *
    * Model evaluation metrics for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; * @return Whether the videoObjectTrackingEvaluationMetrics field is set. */ @java.lang.Override @@ -655,60 +473,42 @@ public boolean hasVideoObjectTrackingEvaluationMetrics() { return metricsCase_ == 14; } /** - * - * *
    * Model evaluation metrics for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; * @return The videoObjectTrackingEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - getVideoObjectTrackingEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getVideoObjectTrackingEvaluationMetrics() { if (metricsCase_ == 14) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); } /** - * - * *
    * Model evaluation metrics for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder - getVideoObjectTrackingEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder getVideoObjectTrackingEvaluationMetricsOrBuilder() { if (metricsCase_ == 14) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.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; - * - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return Whether the textSentimentEvaluationMetrics field is set. */ @java.lang.Override @@ -716,62 +516,42 @@ public boolean hasTextSentimentEvaluationMetrics() { return metricsCase_ == 11; } /** - * - * *
    * Evaluation metrics for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return The textSentimentEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - getTextSentimentEvaluationMetrics() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder - getTextSentimentEvaluationMetricsOrBuilder() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .getDefaultInstance(); + 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; - * - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return Whether the textExtractionEvaluationMetrics field is set. */ @java.lang.Override @@ -779,42 +559,31 @@ public boolean hasTextExtractionEvaluationMetrics() { return metricsCase_ == 13; } /** - * - * *
    * Evaluation metrics for text extraction models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return The textExtractionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - getTextExtractionEvaluationMetrics() { + 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) 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; - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder - getTextExtractionEvaluationMetricsOrBuilder() { + 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) metrics_; } return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); } @@ -822,8 +591,6 @@ public boolean hasTextExtractionEvaluationMetrics() { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -831,7 +598,6 @@ public boolean hasTextExtractionEvaluationMetrics() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -840,15 +606,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 evaluation.
    * Format:
@@ -856,15 +621,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -875,8 +641,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 2; private volatile java.lang.Object annotationSpecId_; /** - * - * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -889,7 +653,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string annotation_spec_id = 2; - * * @return The annotationSpecId. */ @java.lang.Override @@ -898,15 +661,14 @@ public java.lang.String getAnnotationSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; } } /** - * - * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -919,15 +681,16 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string annotation_spec_id = 2; - * * @return The bytes for annotationSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -938,8 +701,6 @@ 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
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -955,7 +716,6 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
    * 
* * string display_name = 15; - * * @return The displayName. */ @java.lang.Override @@ -964,15 +724,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -988,15 +747,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 15; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1007,14 +767,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1022,14 +779,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ @java.lang.Override @@ -1037,8 +791,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
@@ -1053,8 +805,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EVALUATED_EXAMPLE_COUNT_FIELD_NUMBER = 6; private int evaluatedExampleCount_; /** - * - * *
    * 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
@@ -1067,7 +817,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * int32 evaluated_example_count = 6; - * * @return The evaluatedExampleCount. */ @java.lang.Override @@ -1076,7 +825,6 @@ public int getEvaluatedExampleCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1088,7 +836,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1102,40 +851,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt32(6, evaluatedExampleCount_); } if (metricsCase_ == 8) { - output.writeMessage( - 8, - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) - metrics_); + output.writeMessage(8, (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_); } if (metricsCase_ == 9) { - output.writeMessage( - 9, (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); + output.writeMessage(9, (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); } if (metricsCase_ == 11) { - output.writeMessage( - 11, - (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) - metrics_); + output.writeMessage(11, (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_); } if (metricsCase_ == 12) { - output.writeMessage( - 12, (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_); + output.writeMessage(12, (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_); } if (metricsCase_ == 13) { - output.writeMessage( - 13, (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_); + output.writeMessage(13, (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_); } if (metricsCase_ == 14) { - output.writeMessage( - 14, (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_); + output.writeMessage(14, (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, displayName_); } if (metricsCase_ == 24) { - output.writeMessage( - 24, - (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) metrics_); + output.writeMessage(24, (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) metrics_); } unknownFields.writeTo(output); } @@ -1153,54 +890,43 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annotationSpecId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (evaluatedExampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, evaluatedExampleCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, evaluatedExampleCount_); } if (metricsCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) - metrics_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_); } if (metricsCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); } if (metricsCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, - (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) - metrics_); + 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_); + 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_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_); } if (metricsCase_ == 14) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) metrics_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1210,22 +936,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ModelEvaluation)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ModelEvaluation other = - (com.google.cloud.automl.v1beta1.ModelEvaluation) obj; + com.google.cloud.automl.v1beta1.ModelEvaluation other = (com.google.cloud.automl.v1beta1.ModelEvaluation) obj; - if (!getName().equals(other.getName())) return false; - if (!getAnnotationSpecId().equals(other.getAnnotationSpecId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + 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; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (getEvaluatedExampleCount() != other.getEvaluatedExampleCount()) return false; + if (getEvaluatedExampleCount() + != other.getEvaluatedExampleCount()) return false; if (!getMetricsCase().equals(other.getMetricsCase())) return false; switch (metricsCase_) { case 8: @@ -1233,12 +963,12 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClassificationEvaluationMetrics())) return false; break; case 24: - if (!getRegressionEvaluationMetrics().equals(other.getRegressionEvaluationMetrics())) - return false; + if (!getRegressionEvaluationMetrics() + .equals(other.getRegressionEvaluationMetrics())) return false; break; case 9: - if (!getTranslationEvaluationMetrics().equals(other.getTranslationEvaluationMetrics())) - return false; + if (!getTranslationEvaluationMetrics() + .equals(other.getTranslationEvaluationMetrics())) return false; break; case 12: if (!getImageObjectDetectionEvaluationMetrics() @@ -1249,8 +979,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getVideoObjectTrackingEvaluationMetrics())) return false; break; case 11: - if (!getTextSentimentEvaluationMetrics().equals(other.getTextSentimentEvaluationMetrics())) - return false; + if (!getTextSentimentEvaluationMetrics() + .equals(other.getTextSentimentEvaluationMetrics())) return false; break; case 13: if (!getTextExtractionEvaluationMetrics() @@ -1319,127 +1049,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ModelEvaluation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ModelEvaluation 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.ModelEvaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ModelEvaluation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Evaluation results of a model.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ModelEvaluation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ModelEvaluation) com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass - .internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass - .internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ModelEvaluation.class, - com.google.cloud.automl.v1beta1.ModelEvaluation.Builder.class); + com.google.cloud.automl.v1beta1.ModelEvaluation.class, com.google.cloud.automl.v1beta1.ModelEvaluation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ModelEvaluation.newBuilder() @@ -1447,15 +1168,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1479,9 +1201,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass - .internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; } @java.lang.Override @@ -1500,8 +1222,7 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ModelEvaluation buildPartial() { - com.google.cloud.automl.v1beta1.ModelEvaluation result = - new com.google.cloud.automl.v1beta1.ModelEvaluation(this); + com.google.cloud.automl.v1beta1.ModelEvaluation result = new com.google.cloud.automl.v1beta1.ModelEvaluation(this); if (metricsCase_ == 8) { if (classificationEvaluationMetricsBuilder_ == null) { result.metrics_ = metrics_; @@ -1569,39 +1290,38 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ModelEvaluation) { - return mergeFrom((com.google.cloud.automl.v1beta1.ModelEvaluation) other); + return mergeFrom((com.google.cloud.automl.v1beta1.ModelEvaluation)other); } else { super.mergeFrom(other); return this; @@ -1609,8 +1329,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ModelEvaluation other) { - if (other == com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1630,47 +1349,37 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ModelEvaluation other) setEvaluatedExampleCount(other.getEvaluatedExampleCount()); } switch (other.getMetricsCase()) { - case CLASSIFICATION_EVALUATION_METRICS: - { - 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 VIDEO_OBJECT_TRACKING_EVALUATION_METRICS: - { - mergeVideoObjectTrackingEvaluationMetrics( - other.getVideoObjectTrackingEvaluationMetrics()); - break; - } - case TEXT_SENTIMENT_EVALUATION_METRICS: - { - mergeTextSentimentEvaluationMetrics(other.getTextSentimentEvaluationMetrics()); - break; - } - case TEXT_EXTRACTION_EVALUATION_METRICS: - { - mergeTextExtractionEvaluationMetrics(other.getTextExtractionEvaluationMetrics()); - break; - } - case METRICS_NOT_SET: - { - break; - } + case CLASSIFICATION_EVALUATION_METRICS: { + 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 VIDEO_OBJECT_TRACKING_EVALUATION_METRICS: { + mergeVideoObjectTrackingEvaluationMetrics(other.getVideoObjectTrackingEvaluationMetrics()); + break; + } + case TEXT_SENTIMENT_EVALUATION_METRICS: { + mergeTextSentimentEvaluationMetrics(other.getTextSentimentEvaluationMetrics()); + break; + } + case TEXT_EXTRACTION_EVALUATION_METRICS: { + mergeTextExtractionEvaluationMetrics(other.getTextExtractionEvaluationMetrics()); + break; + } + case METRICS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1700,12 +1409,12 @@ public Builder mergeFrom( } return this; } - private int metricsCase_ = 0; private java.lang.Object metrics_; - - public MetricsCase getMetricsCase() { - return MetricsCase.forNumber(metricsCase_); + public MetricsCase + getMetricsCase() { + return MetricsCase.forNumber( + metricsCase_); } public Builder clearMetrics() { @@ -1715,16 +1424,10 @@ public Builder clearMetrics() { 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_; + 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.
@@ -1732,10 +1435,7 @@ public Builder clearMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return Whether the classificationEvaluationMetrics field is set. */ @java.lang.Override @@ -1743,8 +1443,6 @@ public boolean hasClassificationEvaluationMetrics() { return metricsCase_ == 8; } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1752,34 +1450,24 @@ public boolean hasClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return The classificationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - getClassificationEvaluationMetrics() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .getDefaultInstance(); + 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(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance(); } } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1787,12 +1475,9 @@ public boolean hasClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ - public Builder setClassificationEvaluationMetrics( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics value) { + public Builder setClassificationEvaluationMetrics(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics value) { if (classificationEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1806,8 +1491,6 @@ public Builder setClassificationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1815,13 +1498,10 @@ public Builder setClassificationEvaluationMetrics(
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ public Builder setClassificationEvaluationMetrics( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder builderForValue) { if (classificationEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -1832,8 +1512,6 @@ public Builder setClassificationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1841,25 +1519,14 @@ public Builder setClassificationEvaluationMetrics(
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ - public Builder mergeClassificationEvaluationMetrics( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics value) { + 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(); + 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; } @@ -1874,8 +1541,6 @@ public Builder mergeClassificationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1883,9 +1548,7 @@ public Builder mergeClassificationEvaluationMetrics(
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ public Builder clearClassificationEvaluationMetrics() { if (classificationEvaluationMetricsBuilder_ == null) { @@ -1904,8 +1567,6 @@ public Builder clearClassificationEvaluationMetrics() { return this; } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1913,18 +1574,12 @@ public Builder clearClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .Builder - getClassificationEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder getClassificationEvaluationMetricsBuilder() { return getClassificationEvaluationMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1932,29 +1587,20 @@ public Builder clearClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetricsOrBuilder - getClassificationEvaluationMetricsOrBuilder() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance(); } } /** - * - * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1962,61 +1608,37 @@ public Builder clearClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .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> + 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(); + 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_, + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; * @return Whether the regressionEvaluationMetrics field is set. */ @java.lang.Override @@ -2024,53 +1646,39 @@ 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; - * - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; * @return The regressionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics - getRegressionEvaluationMetrics() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics - .getDefaultInstance(); + 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(); + 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; - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; */ - public Builder setRegressionEvaluationMetrics( - com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics value) { + public Builder setRegressionEvaluationMetrics(com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics value) { if (regressionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2084,21 +1692,16 @@ public Builder setRegressionEvaluationMetrics( 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; - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; */ public Builder setRegressionEvaluationMetrics( - com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder builderForValue) { if (regressionEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -2109,32 +1712,20 @@ public Builder setRegressionEvaluationMetrics( 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; - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; */ - public Builder mergeRegressionEvaluationMetrics( - com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics value) { + 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(); + 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; } @@ -2149,17 +1740,13 @@ public Builder mergeRegressionEvaluationMetrics( 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; - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; */ public Builder clearRegressionEvaluationMetrics() { if (regressionEvaluationMetricsBuilder_ == null) { @@ -2178,107 +1765,73 @@ public Builder clearRegressionEvaluationMetrics() { 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; - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; */ - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder - getRegressionEvaluationMetricsBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder - getRegressionEvaluationMetricsOrBuilder() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics - .getDefaultInstance(); + 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; - * + * .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> + 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(); + 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_, + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return Whether the translationEvaluationMetrics field is set. */ @java.lang.Override @@ -2286,21 +1839,15 @@ public boolean hasTranslationEvaluationMetrics() { return metricsCase_ == 9; } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return The translationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics - getTranslationEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getTranslationEvaluationMetrics() { if (translationEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 9) { return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; @@ -2314,18 +1861,13 @@ public boolean hasTranslationEvaluationMetrics() { } } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ - public Builder setTranslationEvaluationMetrics( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics value) { + public Builder setTranslationEvaluationMetrics(com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics value) { if (translationEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2339,15 +1881,11 @@ public Builder setTranslationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ public Builder setTranslationEvaluationMetrics( com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder builderForValue) { @@ -2361,28 +1899,18 @@ public Builder setTranslationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ - public Builder mergeTranslationEvaluationMetrics( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics value) { + 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(); + 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; } @@ -2397,15 +1925,11 @@ public Builder mergeTranslationEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ public Builder clearTranslationEvaluationMetrics() { if (translationEvaluationMetricsBuilder_ == null) { @@ -2424,34 +1948,24 @@ public Builder clearTranslationEvaluationMetrics() { return this; } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder - getTranslationEvaluationMetricsBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder - getTranslationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder() { if ((metricsCase_ == 9) && (translationEvaluationMetricsBuilder_ != null)) { return translationEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -2462,58 +1976,39 @@ public Builder clearTranslationEvaluationMetrics() { } } /** - * - * *
      * Model evaluation metrics for translation.
      * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .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> + 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(); + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ @java.lang.Override @@ -2521,48 +2016,35 @@ public boolean hasImageObjectDetectionEvaluationMetrics() { return metricsCase_ == 12; } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return The imageObjectDetectionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics - getImageObjectDetectionEvaluationMetrics() { + 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(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } else { if (metricsCase_ == 12) { return imageObjectDetectionEvaluationMetricsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ - public Builder setImageObjectDetectionEvaluationMetrics( - com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics value) { + public Builder setImageObjectDetectionEvaluationMetrics(com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics value) { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2576,19 +2058,14 @@ public Builder setImageObjectDetectionEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ public Builder setImageObjectDetectionEvaluationMetrics( - com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder builderForValue) { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -2599,29 +2076,18 @@ public Builder setImageObjectDetectionEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ - public Builder mergeImageObjectDetectionEvaluationMetrics( - com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics value) { + 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(); + 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; } @@ -2636,15 +2102,11 @@ public Builder mergeImageObjectDetectionEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ public Builder clearImageObjectDetectionEvaluationMetrics() { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { @@ -2663,98 +2125,67 @@ public Builder clearImageObjectDetectionEvaluationMetrics() { return this; } /** - * - * *
      * Model evaluation metrics for image object detection.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder - getImageObjectDetectionEvaluationMetricsBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder - getImageObjectDetectionEvaluationMetricsOrBuilder() { + 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(); + 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; - * + * .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> + 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(); + 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>( + 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(); - ; + onChanged();; return imageObjectDetectionEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder> - videoObjectTrackingEvaluationMetricsBuilder_; + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder> videoObjectTrackingEvaluationMetricsBuilder_; /** - * - * *
      * Model evaluation metrics for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; * @return Whether the videoObjectTrackingEvaluationMetrics field is set. */ @java.lang.Override @@ -2762,48 +2193,35 @@ public boolean hasVideoObjectTrackingEvaluationMetrics() { return metricsCase_ == 14; } /** - * - * *
      * Model evaluation metrics for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; * @return The videoObjectTrackingEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - getVideoObjectTrackingEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getVideoObjectTrackingEvaluationMetrics() { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 14) { return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); } else { if (metricsCase_ == 14) { return videoObjectTrackingEvaluationMetricsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); } } /** - * - * *
      * Model evaluation metrics for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; */ - public Builder setVideoObjectTrackingEvaluationMetrics( - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics value) { + public Builder setVideoObjectTrackingEvaluationMetrics(com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics value) { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2817,19 +2235,14 @@ public Builder setVideoObjectTrackingEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; */ public Builder setVideoObjectTrackingEvaluationMetrics( - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder builderForValue) { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -2840,29 +2253,18 @@ public Builder setVideoObjectTrackingEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; */ - public Builder mergeVideoObjectTrackingEvaluationMetrics( - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics value) { + public Builder mergeVideoObjectTrackingEvaluationMetrics(com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics value) { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 14 - && metrics_ - != com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - .getDefaultInstance()) { - metrics_ = - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.newBuilder( - (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) - metrics_) - .mergeFrom(value) - .buildPartial(); + if (metricsCase_ == 14 && + metrics_ != com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance()) { + metrics_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.newBuilder((com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_) + .mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -2877,15 +2279,11 @@ public Builder mergeVideoObjectTrackingEvaluationMetrics( return this; } /** - * - * *
      * Model evaluation metrics for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; */ public Builder clearVideoObjectTrackingEvaluationMetrics() { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { @@ -2904,100 +2302,67 @@ public Builder clearVideoObjectTrackingEvaluationMetrics() { return this; } /** - * - * *
      * Model evaluation metrics for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; */ - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder - getVideoObjectTrackingEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder getVideoObjectTrackingEvaluationMetricsBuilder() { return getVideoObjectTrackingEvaluationMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Model evaluation metrics for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder - getVideoObjectTrackingEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder getVideoObjectTrackingEvaluationMetricsOrBuilder() { if ((metricsCase_ == 14) && (videoObjectTrackingEvaluationMetricsBuilder_ != null)) { return videoObjectTrackingEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { if (metricsCase_ == 14) { return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); } } /** - * - * *
      * Model evaluation metrics for video object tracking.
      * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder> getVideoObjectTrackingEvaluationMetricsFieldBuilder() { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 14)) { - metrics_ = - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - .getDefaultInstance(); + metrics_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); } - videoObjectTrackingEvaluationMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder>( + videoObjectTrackingEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 14; - onChanged(); - ; + onChanged();; return videoObjectTrackingEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .Builder, - com.google.cloud.automl.v1beta1.TextSentimentProto - .TextSentimentEvaluationMetricsOrBuilder> - textSentimentEvaluationMetricsBuilder_; + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder> textSentimentEvaluationMetricsBuilder_; /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return Whether the textSentimentEvaluationMetrics field is set. */ @java.lang.Override @@ -3005,49 +2370,35 @@ public boolean hasTextSentimentEvaluationMetrics() { return metricsCase_ == 11; } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return The textSentimentEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - getTextSentimentEvaluationMetrics() { + 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.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.getDefaultInstance(); } else { if (metricsCase_ == 11) { return textSentimentEvaluationMetricsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ - public Builder setTextSentimentEvaluationMetrics( - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics value) { + public Builder setTextSentimentEvaluationMetrics(com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics value) { if (textSentimentEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3061,19 +2412,14 @@ public Builder setTextSentimentEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ public Builder setTextSentimentEvaluationMetrics( - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder builderForValue) { if (textSentimentEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -3084,31 +2430,18 @@ public Builder setTextSentimentEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ - public Builder mergeTextSentimentEvaluationMetrics( - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics value) { + public Builder mergeTextSentimentEvaluationMetrics(com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics value) { if (textSentimentEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 11 - && metrics_ - != com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .getDefaultInstance()) { - metrics_ = - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .newBuilder( - (com.google.cloud.automl.v1beta1.TextSentimentProto - .TextSentimentEvaluationMetrics) - metrics_) - .mergeFrom(value) - .buildPartial(); + if (metricsCase_ == 11 && + metrics_ != com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.getDefaultInstance()) { + metrics_ = com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.newBuilder((com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_) + .mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -3123,15 +2456,11 @@ public Builder mergeTextSentimentEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ public Builder clearTextSentimentEvaluationMetrics() { if (textSentimentEvaluationMetricsBuilder_ == null) { @@ -3150,105 +2479,67 @@ public Builder clearTextSentimentEvaluationMetrics() { return this; } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder - getTextSentimentEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder getTextSentimentEvaluationMetricsBuilder() { return getTextSentimentEvaluationMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Evaluation metrics for text sentiment models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto - .TextSentimentEvaluationMetricsOrBuilder - getTextSentimentEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder() { if ((metricsCase_ == 11) && (textSentimentEvaluationMetricsBuilder_ != null)) { return textSentimentEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { if (metricsCase_ == 11) { - return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) - metrics_; + return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .getDefaultInstance(); + 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; - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .Builder, - com.google.cloud.automl.v1beta1.TextSentimentProto - .TextSentimentEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder> getTextSentimentEvaluationMetricsFieldBuilder() { if (textSentimentEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 11)) { - metrics_ = - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .getDefaultInstance(); + metrics_ = com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.getDefaultInstance(); } - textSentimentEvaluationMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - .Builder, - com.google.cloud.automl.v1beta1.TextSentimentProto - .TextSentimentEvaluationMetricsOrBuilder>( - (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) - metrics_, + textSentimentEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder>( + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 11; - onChanged(); - ; + onChanged();; return textSentimentEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics, - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder, - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder> - textExtractionEvaluationMetricsBuilder_; + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder> textExtractionEvaluationMetricsBuilder_; /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return Whether the textExtractionEvaluationMetrics field is set. */ @java.lang.Override @@ -3256,21 +2547,15 @@ public boolean hasTextExtractionEvaluationMetrics() { return metricsCase_ == 13; } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return The textExtractionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - getTextExtractionEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics() { if (textExtractionEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 13) { return (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_; @@ -3284,18 +2569,13 @@ public boolean hasTextExtractionEvaluationMetrics() { } } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ - public Builder setTextExtractionEvaluationMetrics( - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics value) { + public Builder setTextExtractionEvaluationMetrics(com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics value) { if (textExtractionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3309,15 +2589,11 @@ public Builder setTextExtractionEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ public Builder setTextExtractionEvaluationMetrics( com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder builderForValue) { @@ -3331,28 +2607,18 @@ public Builder setTextExtractionEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ - public Builder mergeTextExtractionEvaluationMetrics( - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics value) { + public Builder mergeTextExtractionEvaluationMetrics(com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics value) { if (textExtractionEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 13 - && metrics_ - != com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - .getDefaultInstance()) { - metrics_ = - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.newBuilder( - (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_) - .mergeFrom(value) - .buildPartial(); + if (metricsCase_ == 13 && + metrics_ != com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance()) { + metrics_ = com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.newBuilder((com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_) + .mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -3367,15 +2633,11 @@ public Builder mergeTextExtractionEvaluationMetrics( return this; } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ public Builder clearTextExtractionEvaluationMetrics() { if (textExtractionEvaluationMetricsBuilder_ == null) { @@ -3394,34 +2656,24 @@ public Builder clearTextExtractionEvaluationMetrics() { return this; } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder - getTextExtractionEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder getTextExtractionEvaluationMetricsBuilder() { return getTextExtractionEvaluationMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder - getTextExtractionEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder() { if ((metricsCase_ == 13) && (textExtractionEvaluationMetricsBuilder_ != null)) { return textExtractionEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -3432,46 +2684,33 @@ public Builder clearTextExtractionEvaluationMetrics() { } } /** - * - * *
      * Evaluation metrics for text extraction models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - 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, 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.TextExtractionEvaluationMetrics.getDefaultInstance(); + metrics_ = com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); } - textExtractionEvaluationMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics, - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder, - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder>( + textExtractionEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 13; - onChanged(); - ; + onChanged();; return textExtractionEvaluationMetricsBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -3479,13 +2718,13 @@ public Builder clearTextExtractionEvaluationMetrics() {
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3494,8 +2733,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -3503,14 +2740,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3518,8 +2756,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -3527,22 +2763,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -3550,18 +2784,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -3569,16 +2800,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3586,8 +2817,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object annotationSpecId_ = ""; /** - * - * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -3600,13 +2829,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string annotation_spec_id = 2; - * * @return The annotationSpecId. */ public java.lang.String getAnnotationSpecId() { java.lang.Object ref = annotationSpecId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; @@ -3615,8 +2844,6 @@ public java.lang.String getAnnotationSpecId() { } } /** - * - * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -3629,14 +2856,15 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 2; - * * @return The bytes for annotationSpecId. */ - public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -3644,8 +2872,6 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { } } /** - * - * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -3658,22 +2884,20 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
      * 
* * string annotation_spec_id = 2; - * * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId(java.lang.String value) { + public Builder setAnnotationSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -3686,18 +2910,15 @@ public Builder setAnnotationSpecId(java.lang.String value) {
      * 
* * string annotation_spec_id = 2; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { - + annotationSpecId_ = getDefaultInstance().getAnnotationSpecId(); onChanged(); return this; } /** - * - * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -3710,16 +2931,16 @@ public Builder clearAnnotationSpecId() {
      * 
* * string annotation_spec_id = 2; - * * @param value The bytes for annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecId_ = value; onChanged(); return this; @@ -3727,8 +2948,6 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -3744,13 +2963,13 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 15; - * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3759,8 +2978,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -3776,14 +2993,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 15; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -3791,8 +3009,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -3808,22 +3024,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 15; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -3839,18 +3053,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 15; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -3866,16 +3077,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 15; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3883,47 +3094,34 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3944,15 +3142,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3963,8 +3160,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3975,7 +3170,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3987,8 +3182,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -4007,8 +3200,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -4016,13 +3207,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -4033,14 +3222,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -4048,26 +3234,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - private int evaluatedExampleCount_; + private int evaluatedExampleCount_ ; /** - * - * *
      * 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
@@ -4080,7 +3261,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * int32 evaluated_example_count = 6; - * * @return The evaluatedExampleCount. */ @java.lang.Override @@ -4088,8 +3268,6 @@ public int getEvaluatedExampleCount() { return evaluatedExampleCount_; } /** - * - * *
      * 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
@@ -4102,19 +3280,16 @@ public int getEvaluatedExampleCount() {
      * 
* * int32 evaluated_example_count = 6; - * * @param value The evaluatedExampleCount to set. * @return This builder for chaining. */ public Builder setEvaluatedExampleCount(int value) { - + evaluatedExampleCount_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -4127,18 +3302,17 @@ public Builder setEvaluatedExampleCount(int value) {
      * 
* * int32 evaluated_example_count = 6; - * * @return This builder for chaining. */ public Builder clearEvaluatedExampleCount() { - + evaluatedExampleCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4148,12 +3322,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ModelEvaluation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ModelEvaluation) private static final com.google.cloud.automl.v1beta1.ModelEvaluation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ModelEvaluation(); } @@ -4162,16 +3336,16 @@ public static com.google.cloud.automl.v1beta1.ModelEvaluation getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModelEvaluation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModelEvaluation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelEvaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelEvaluation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4186,4 +3360,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ModelEvaluation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java index f1b473442..f1c849ce8 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/model_evaluation.proto package com.google.cloud.automl.v1beta1; -public interface ModelEvaluationOrBuilder - extends +public interface ModelEvaluationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ModelEvaluation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -33,16 +15,11 @@ public interface ModelEvaluationOrBuilder
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return Whether the classificationEvaluationMetrics field is set. */ boolean hasClassificationEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -50,17 +27,11 @@ public interface ModelEvaluationOrBuilder
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; * @return The classificationEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - getClassificationEvaluationMetrics(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getClassificationEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -68,279 +39,179 @@ public interface ModelEvaluationOrBuilder
    * is CATEGORY DataType.
    * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetricsOrBuilder - getClassificationEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder(); /** - * - * *
    * 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; - * - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; * @return Whether the regressionEvaluationMetrics field is set. */ 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; - * - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; * @return The regressionEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics - getRegressionEvaluationMetrics(); + 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; - * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; */ - com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder - getRegressionEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder getRegressionEvaluationMetricsOrBuilder(); /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return Whether the translationEvaluationMetrics field is set. */ boolean hasTranslationEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; * @return The translationEvaluationMetrics. */ com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getTranslationEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for translation.
    * 
* - * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; */ - com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder - getTranslationEvaluationMetricsOrBuilder(); + 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; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ boolean hasImageObjectDetectionEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for image object detection.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; * @return The imageObjectDetectionEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics - getImageObjectDetectionEvaluationMetrics(); + 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; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder - getImageObjectDetectionEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder(); /** - * - * *
    * Model evaluation metrics for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; * @return Whether the videoObjectTrackingEvaluationMetrics field is set. */ boolean hasVideoObjectTrackingEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; * @return The videoObjectTrackingEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - getVideoObjectTrackingEvaluationMetrics(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getVideoObjectTrackingEvaluationMetrics(); /** - * - * *
    * Model evaluation metrics for video object tracking.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder - getVideoObjectTrackingEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder getVideoObjectTrackingEvaluationMetricsOrBuilder(); /** - * - * *
    * Evaluation metrics for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return Whether the textSentimentEvaluationMetrics field is set. */ boolean hasTextSentimentEvaluationMetrics(); /** - * - * *
    * Evaluation metrics for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * @return The textSentimentEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - getTextSentimentEvaluationMetrics(); + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics(); /** - * - * *
    * Evaluation metrics for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; */ - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder - getTextSentimentEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder(); /** - * - * *
    * Evaluation metrics for text extraction models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return Whether the textExtractionEvaluationMetrics field is set. */ boolean hasTextExtractionEvaluationMetrics(); /** - * - * *
    * Evaluation metrics for text extraction models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * @return The textExtractionEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - getTextExtractionEvaluationMetrics(); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics(); /** - * - * *
    * Evaluation metrics for text extraction models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; */ - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder - getTextExtractionEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder(); /** - * - * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -348,13 +219,10 @@ public interface ModelEvaluationOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -362,14 +230,12 @@ public interface ModelEvaluationOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -382,13 +248,10 @@ public interface ModelEvaluationOrBuilder
    * 
* * string annotation_spec_id = 2; - * * @return The annotationSpecId. */ java.lang.String getAnnotationSpecId(); /** - * - * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -401,14 +264,12 @@ public interface ModelEvaluationOrBuilder
    * 
* * string annotation_spec_id = 2; - * * @return The bytes for annotationSpecId. */ - com.google.protobuf.ByteString getAnnotationSpecIdBytes(); + com.google.protobuf.ByteString + getAnnotationSpecIdBytes(); /** - * - * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -424,13 +285,10 @@ public interface ModelEvaluationOrBuilder
    * 
* * string display_name = 15; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -446,38 +304,30 @@ public interface ModelEvaluationOrBuilder
    * 
* * string display_name = 15; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp when this model evaluation was created.
    * 
@@ -487,8 +337,6 @@ public interface ModelEvaluationOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * 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
@@ -501,7 +349,6 @@ public interface ModelEvaluationOrBuilder
    * 
* * int32 evaluated_example_count = 6; - * * @return The evaluatedExampleCount. */ int getEvaluatedExampleCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java new file mode 100644 index 000000000..e984018c0 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java @@ -0,0 +1,114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/model_evaluation.proto + +package com.google.cloud.automl.v1beta1; + +public final class ModelEvaluationOuterClass { + private ModelEvaluationOuterClass() {} + 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_ModelEvaluation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/automl/v1beta1/model_eval" + + "uation.proto\022\033google.cloud.automl.v1beta" + + "1\032\031google/api/resource.proto\0320google/clo" + + "ud/automl/v1beta1/classification.proto\032+" + + "google/cloud/automl/v1beta1/detection.pr" + + "oto\032,google/cloud/automl/v1beta1/regress" + + "ion.proto\032(google/cloud/automl/v1beta1/t" + + "ables.proto\0321google/cloud/automl/v1beta1" + + "/text_extraction.proto\0320google/cloud/aut" + + "oml/v1beta1/text_sentiment.proto\032-google" + + "/cloud/automl/v1beta1/translation.proto\032" + + "\037google/protobuf/timestamp.proto\032\034google" + + "/api/annotations.proto\"\261\010\n\017ModelEvaluati" + + "on\022i\n!classification_evaluation_metrics\030" + + "\010 \001(\0132<.google.cloud.automl.v1beta1.Clas" + + "sificationEvaluationMetricsH\000\022a\n\035regress" + + "ion_evaluation_metrics\030\030 \001(\01328.google.cl" + + "oud.automl.v1beta1.RegressionEvaluationM" + + "etricsH\000\022c\n\036translation_evaluation_metri" + + "cs\030\t \001(\01329.google.cloud.automl.v1beta1.T" + + "ranslationEvaluationMetricsH\000\022w\n)image_o" + + "bject_detection_evaluation_metrics\030\014 \001(\013" + + "2B.google.cloud.automl.v1beta1.ImageObje" + + "ctDetectionEvaluationMetricsH\000\022u\n(video_" + + "object_tracking_evaluation_metrics\030\016 \001(\013" + + "2A.google.cloud.automl.v1beta1.VideoObje" + + "ctTrackingEvaluationMetricsH\000\022h\n!text_se" + + "ntiment_evaluation_metrics\030\013 \001(\0132;.googl" + + "e.cloud.automl.v1beta1.TextSentimentEval" + + "uationMetricsH\000\022j\n\"text_extraction_evalu" + + "ation_metrics\030\r \001(\0132<.google.cloud.autom" + + "l.v1beta1.TextExtractionEvaluationMetric" + + "sH\000\022\014\n\004name\030\001 \001(\t\022\032\n\022annotation_spec_id\030" + + "\002 \001(\t\022\024\n\014display_name\030\017 \001(\t\022/\n\013create_ti" + + "me\030\005 \001(\0132\032.google.protobuf.Timestamp\022\037\n\027" + + "evaluated_example_count\030\006 \001(\005:\207\001\352A\203\001\n%au" + + "toml.googleapis.com/ModelEvaluation\022Zpro" + + "jects/{project}/locations/{location}/mod" + + "els/{model}/modelEvaluations/{model_eval" + + "uation}B\t\n\007metricsB\245\001\n\037com.google.cloud." + + "automl.v1beta1P\001ZAgoogle.golang.org/genp" + + "roto/googleapis/cloud/automl/v1beta1;aut" + + "oml\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Goog" + + "le::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.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(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor, + new java.lang.String[] { "ClassificationEvaluationMetrics", "RegressionEvaluationMetrics", "TranslationEvaluationMetrics", "ImageObjectDetectionEvaluationMetrics", "VideoObjectTrackingEvaluationMetrics", "TextSentimentEvaluationMetrics", "TextExtractionEvaluationMetrics", "Name", "AnnotationSpecId", "DisplayName", "CreateTime", "EvaluatedExampleCount", "Metrics", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.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(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java similarity index 78% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java index 72a76d121..966a9ed07 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ModelExportOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ModelExportOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,117 +54,106 @@ private ModelExportOutputConfig( 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 10: { + com.google.cloud.automl.v1beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1beta1.GcsDestination) destination_).toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = - com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put(params__.getKey(), params__.getValue()); - break; + 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(); } - 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; + destinationCase_ = 1; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - modelFormat_ = s; - break; + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.class, com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), GCR_DESTINATION(3), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -197,30 +169,25 @@ public static DestinationCase valueOf(int 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; + 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 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:
@@ -233,7 +200,6 @@ public DestinationCase getDestinationCase() {
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -241,8 +207,6 @@ 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:
@@ -255,19 +219,16 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override 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) 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:
@@ -284,15 +245,13 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   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) 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:
@@ -301,7 +260,6 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
    * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; - * * @return Whether the gcrDestination field is set. */ @java.lang.Override @@ -309,8 +267,6 @@ 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:
@@ -319,19 +275,16 @@ public boolean hasGcrDestination() {
    * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; - * * @return The gcrDestination. */ @java.lang.Override 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) 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:
@@ -344,7 +297,7 @@ public com.google.cloud.automl.v1beta1.GcrDestination getGcrDestination() {
   @java.lang.Override
   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) destination_;
     }
     return com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance();
   }
@@ -352,8 +305,6 @@ public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestination
   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
@@ -400,7 +351,6 @@ public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestination
    * 
* * string model_format = 4; - * * @return The modelFormat. */ @java.lang.Override @@ -409,15 +359,14 @@ public java.lang.String getModelFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -464,15 +413,16 @@ public java.lang.String getModelFormat() {
    * 
* * string model_format = 4; - * * @return The bytes for modelFormat. */ @java.lang.Override - public com.google.protobuf.ByteString getModelFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelFormat_ = b; return b; } else { @@ -481,23 +431,24 @@ public com.google.protobuf.ByteString getModelFormatBytes() { } 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, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> 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() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -506,8 +457,6 @@ 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
@@ -519,22 +468,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 2;
    */
+
   @java.lang.Override
-  public boolean containsParams(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsParams(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetParams().getMap().containsKey(key);
   }
-  /** Use {@link #getParamsMap()} instead. */
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Override
   @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
@@ -547,12 +496,11 @@ public java.util.Map getParams() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
+
   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
@@ -565,16 +513,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-  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();
+
+  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
@@ -587,11 +535,12 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> params = 2;
    */
   @java.lang.Override
-  public java.lang.String getParamsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetParams().getMap();
+
+  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();
     }
@@ -599,7 +548,6 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -611,12 +559,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  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);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        2);
     if (destinationCase_ == 3) {
       output.writeMessage(3, (com.google.cloud.automl.v1beta1.GcrDestination) destination_);
     }
@@ -633,24 +586,22 @@ public int getSerializedSize() {
 
     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__);
+      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_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.automl.v1beta1.GcrDestination) destination_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelFormat_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modelFormat_);
@@ -663,23 +614,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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;
+    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 (!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;
+        if (!getGcsDestination()
+            .equals(other.getGcsDestination())) return false;
         break;
       case 3:
-        if (!getGcrDestination().equals(other.getGcrDestination())) return false;
+        if (!getGcrDestination()
+            .equals(other.getGcrDestination())) return false;
         break;
       case 0:
       default:
@@ -719,147 +673,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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)
+      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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.automl.v1beta1.ModelExportOutputConfig prototype) {
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.class, com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ModelExportOutputConfig.newBuilder() @@ -867,15 +813,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -888,9 +835,9 @@ public Builder clear() { } @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; + 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 @@ -909,8 +856,7 @@ public com.google.cloud.automl.v1beta1.ModelExportOutputConfig build() { @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); + com.google.cloud.automl.v1beta1.ModelExportOutputConfig result = new com.google.cloud.automl.v1beta1.ModelExportOutputConfig(this); int from_bitField0_ = bitField0_; if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { @@ -938,39 +884,38 @@ public com.google.cloud.automl.v1beta1.ModelExportOutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ModelExportOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -978,28 +923,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ModelExportOutputConfig other) { - if (other == com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance()) return this; if (!other.getModelFormat().isEmpty()) { modelFormat_ = other.modelFormat_; onChanged(); } - internalGetMutableParams().mergeFrom(other.internalGetParams()); + 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; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case GCR_DESTINATION: { + mergeGcrDestination(other.getGcrDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1020,8 +962,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ModelExportOutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.ModelExportOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1030,12 +971,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -1048,13 +989,8 @@ public Builder clearDestination() { 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_; + 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:
@@ -1067,7 +1003,6 @@ public Builder clearDestination() {
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -1075,8 +1010,6 @@ 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:
@@ -1089,7 +1022,6 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -1107,8 +1039,6 @@ public 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:
@@ -1136,8 +1066,6 @@ public Builder setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination
       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:
@@ -1163,8 +1091,6 @@ public Builder setGcsDestination(
       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:
@@ -1180,14 +1106,10 @@ public Builder setGcsDestination(
      */
     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();
+        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;
         }
@@ -1202,8 +1124,6 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestinatio
       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:
@@ -1234,8 +1154,6 @@ public Builder clearGcsDestination() {
       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:
@@ -1253,8 +1171,6 @@ public com.google.cloud.automl.v1beta1.GcsDestination.Builder getGcsDestinationB
       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:
@@ -1280,8 +1196,6 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder 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:
@@ -1296,38 +1210,27 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
      * .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>
+        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>(
+        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();
-      ;
+      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_;
+        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:
@@ -1336,7 +1239,6 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
      * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; - * * @return Whether the gcrDestination field is set. */ @java.lang.Override @@ -1344,8 +1246,6 @@ 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:
@@ -1354,7 +1254,6 @@ public boolean hasGcrDestination() {
      * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; - * * @return The gcrDestination. */ @java.lang.Override @@ -1372,8 +1271,6 @@ public 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:
@@ -1397,8 +1294,6 @@ public Builder setGcrDestination(com.google.cloud.automl.v1beta1.GcrDestination
       return this;
     }
     /**
-     *
-     *
      * 
      * The GCR location where model image is to be pushed to. This location
      * may only be set for the following model formats:
@@ -1420,8 +1315,6 @@ public Builder setGcrDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * The GCR location where model image is to be pushed to. This location
      * may only be set for the following model formats:
@@ -1433,14 +1326,10 @@ public Builder setGcrDestination(
      */
     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();
+        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;
         }
@@ -1455,8 +1344,6 @@ public Builder mergeGcrDestination(com.google.cloud.automl.v1beta1.GcrDestinatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The GCR location where model image is to be pushed to. This location
      * may only be set for the following model formats:
@@ -1483,8 +1370,6 @@ public Builder clearGcrDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The GCR location where model image is to be pushed to. This location
      * may only be set for the following model formats:
@@ -1498,8 +1383,6 @@ public com.google.cloud.automl.v1beta1.GcrDestination.Builder getGcrDestinationB
       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:
@@ -1521,8 +1404,6 @@ public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestination
       }
     }
     /**
-     *
-     *
      * 
      * The GCR location where model image is to be pushed to. This location
      * may only be set for the following model formats:
@@ -1533,34 +1414,26 @@ public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestination
      * .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>
+        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>(
+        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();
-      ;
+      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
@@ -1607,13 +1480,13 @@ public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestination
      * 
* * string model_format = 4; - * * @return The modelFormat. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelFormat_ = s; return s; @@ -1622,8 +1495,6 @@ public 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
@@ -1670,14 +1541,15 @@ public java.lang.String getModelFormat() {
      * 
* * string model_format = 4; - * * @return The bytes for modelFormat. */ - public com.google.protobuf.ByteString getModelFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelFormat_ = b; return b; } else { @@ -1685,8 +1557,6 @@ public com.google.protobuf.ByteString getModelFormatBytes() { } } /** - * - * *
      * 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
@@ -1733,22 +1603,20 @@ public com.google.protobuf.ByteString getModelFormatBytes() {
      * 
* * string model_format = 4; - * * @param value The modelFormat to set. * @return This builder for chaining. */ - public Builder setModelFormat(java.lang.String value) { + public Builder setModelFormat( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -1795,18 +1663,15 @@ public Builder setModelFormat(java.lang.String value) {
      * 
* * string model_format = 4; - * * @return This builder for chaining. */ 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
@@ -1853,36 +1718,37 @@ public Builder clearModelFormat() {
      * 
* * string model_format = 4; - * * @param value The bytes for modelFormat to set. * @return This builder for chaining. */ - public Builder setModelFormatBytes(com.google.protobuf.ByteString value) { + public Builder setModelFormatBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelFormat_ = value; onChanged(); return this; } - private com.google.protobuf.MapField params_; - - private com.google.protobuf.MapField internalGetParams() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } - private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged(); - ; + internalGetMutableParams() { + onChanged();; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1894,8 +1760,6 @@ 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
@@ -1907,22 +1771,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 2;
      */
+
     @java.lang.Override
-    public boolean containsParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsParams(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetParams().getMap().containsKey(key);
     }
-    /** Use {@link #getParamsMap()} instead. */
+    /**
+     * Use {@link #getParamsMap()} instead.
+     */
     @java.lang.Override
     @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
@@ -1935,12 +1799,11 @@ public java.util.Map getParams() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
+
     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
@@ -1953,17 +1816,16 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
+
     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();
+        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
@@ -1976,11 +1838,12 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 2;
      */
     @java.lang.Override
-    public java.lang.String getParamsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetParams().getMap();
+
+    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();
       }
@@ -1988,12 +1851,11 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap().clear();
+      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
@@ -2005,21 +1867,23 @@ public Builder clearParams() {
      *
      * map<string, string> params = 2;
      */
-    public Builder removeParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableParams().getMutableMap().remove(key);
+
+    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. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableParams() {
+    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
@@ -2031,19 +1895,16 @@ public java.util.Map getMutableParams() {
      *
      * 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);
+    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
@@ -2055,13 +1916,16 @@ public Builder putParams(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> params = 2;
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+
+    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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2071,12 +1935,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -2085,16 +1949,16 @@ public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig getDefault
     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);
-        }
-      };
+  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;
@@ -2109,4 +1973,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.ModelExportOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java
similarity index 89%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java
index 1b77d30a7..e07bc86f0 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+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:
@@ -38,13 +20,10 @@ public interface ModelExportOutputConfigOrBuilder
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ 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:
@@ -57,13 +36,10 @@ public interface ModelExportOutputConfigOrBuilder
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ 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:
@@ -80,8 +56,6 @@ public interface ModelExportOutputConfigOrBuilder
   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:
@@ -90,13 +64,10 @@ public interface ModelExportOutputConfigOrBuilder
    * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; - * * @return Whether the gcrDestination field is set. */ boolean hasGcrDestination(); /** - * - * *
    * The GCR location where model image is to be pushed to. This location
    * may only be set for the following model formats:
@@ -105,13 +76,10 @@ public interface ModelExportOutputConfigOrBuilder
    * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; - * * @return The gcrDestination. */ 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:
@@ -124,8 +92,6 @@ public interface ModelExportOutputConfigOrBuilder
   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
@@ -172,13 +138,10 @@ public interface ModelExportOutputConfigOrBuilder
    * 
* * string model_format = 4; - * * @return The modelFormat. */ 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
@@ -225,14 +188,12 @@ public interface ModelExportOutputConfigOrBuilder
    * 
* * string model_format = 4; - * * @return The bytes for modelFormat. */ - com.google.protobuf.ByteString getModelFormatBytes(); + 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
@@ -246,8 +207,6 @@ public interface ModelExportOutputConfigOrBuilder
    */
   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
@@ -259,13 +218,15 @@ public interface ModelExportOutputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  boolean containsParams(java.lang.String key);
-  /** Use {@link #getParamsMap()} instead. */
+  boolean containsParams(
+      java.lang.String key);
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getParams();
+  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
@@ -277,10 +238,9 @@ public interface ModelExportOutputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.util.Map getParamsMap();
+  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
@@ -292,10 +252,11 @@ public interface ModelExportOutputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  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
@@ -307,8 +268,9 @@ public interface ModelExportOutputConfigOrBuilder
    *
    * map<string, string> params = 2;
    */
-  java.lang.String getParamsOrThrow(java.lang.String key);
 
-  public com.google.cloud.automl.v1beta1.ModelExportOutputConfig.DestinationCase
-      getDestinationCase();
+  java.lang.String getParamsOrThrow(
+      java.lang.String key);
+
+  public com.google.cloud.automl.v1beta1.ModelExportOutputConfig.DestinationCase getDestinationCase();
 }
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java
similarity index 100%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java
similarity index 66%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java
index e63f75501..c78911ac3 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java
@@ -1,351 +1,220 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1beta1/model.proto
 
 package com.google.cloud.automl.v1beta1;
 
-public interface ModelOrBuilder
-    extends
+public interface ModelOrBuilder extends
     // @@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; - * - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; * @return Whether the translationModelMetadata field is set. */ boolean hasTranslationModelMetadata(); /** - * - * *
    * Metadata for translation models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; * @return The translationModelMetadata. */ com.google.cloud.automl.v1beta1.TranslationModelMetadata getTranslationModelMetadata(); /** - * - * *
    * Metadata for translation models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; - * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; */ - com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder - getTranslationModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder(); /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return Whether the imageClassificationModelMetadata field is set. */ boolean hasImageClassificationModelMetadata(); /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; * @return The imageClassificationModelMetadata. */ - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - getImageClassificationModelMetadata(); + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getImageClassificationModelMetadata(); /** - * - * *
    * Metadata for image classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; */ - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder - getImageClassificationModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder(); /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return Whether the textClassificationModelMetadata field is set. */ boolean hasTextClassificationModelMetadata(); /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; * @return The textClassificationModelMetadata. */ - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata - getTextClassificationModelMetadata(); + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getTextClassificationModelMetadata(); /** - * - * *
    * Metadata for text classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; */ - com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder - getTextClassificationModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder(); /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return Whether the imageObjectDetectionModelMetadata field is set. */ boolean hasImageObjectDetectionModelMetadata(); /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * @return The imageObjectDetectionModelMetadata. */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata - getImageObjectDetectionModelMetadata(); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata(); /** - * - * *
    * Metadata for image object detection models.
    * 
* - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder - getImageObjectDetectionModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder(); /** - * - * *
    * Metadata for video classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; * @return Whether the videoClassificationModelMetadata field is set. */ boolean hasVideoClassificationModelMetadata(); /** - * - * *
    * Metadata for video classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; * @return The videoClassificationModelMetadata. */ - com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata - getVideoClassificationModelMetadata(); + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata getVideoClassificationModelMetadata(); /** - * - * *
    * Metadata for video classification models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; - * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; */ - com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder - getVideoClassificationModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder getVideoClassificationModelMetadataOrBuilder(); /** - * - * *
    * Metadata for video object tracking models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; * @return Whether the videoObjectTrackingModelMetadata field is set. */ boolean hasVideoObjectTrackingModelMetadata(); /** - * - * *
    * Metadata for video object tracking models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; * @return The videoObjectTrackingModelMetadata. */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - getVideoObjectTrackingModelMetadata(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getVideoObjectTrackingModelMetadata(); /** - * - * *
    * Metadata for video object tracking models.
    * 
* - * - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; - * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder - getVideoObjectTrackingModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder getVideoObjectTrackingModelMetadataOrBuilder(); /** - * - * *
    * Metadata for text extraction models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return Whether the textExtractionModelMetadata field is set. */ boolean hasTextExtractionModelMetadata(); /** - * - * *
    * Metadata for text extraction models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * @return The textExtractionModelMetadata. */ com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getTextExtractionModelMetadata(); /** - * - * *
    * Metadata for text extraction models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; */ - com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder - getTextExtractionModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder(); /** - * - * *
    * Metadata for Tables models.
    * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; - * * @return Whether the tablesModelMetadata field is set. */ boolean hasTablesModelMetadata(); /** - * - * *
    * Metadata for Tables models.
    * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; - * * @return The tablesModelMetadata. */ com.google.cloud.automl.v1beta1.TablesModelMetadata getTablesModelMetadata(); /** - * - * *
    * Metadata for Tables models.
    * 
@@ -355,77 +224,55 @@ public interface ModelOrBuilder com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder getTablesModelMetadataOrBuilder(); /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return Whether the textSentimentModelMetadata field is set. */ boolean hasTextSentimentModelMetadata(); /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * @return The textSentimentModelMetadata. */ com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getTextSentimentModelMetadata(); /** - * - * *
    * Metadata for text sentiment models.
    * 
* - * - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; */ - com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder - getTextSentimentModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder(); /** - * - * *
    * Output only. Resource name of the model.
    * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the model.
    * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * 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
@@ -434,13 +281,10 @@ public interface ModelOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ 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
@@ -449,65 +293,52 @@ public interface ModelOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * 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; - * * @return The datasetId. */ 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.
    * 
* * string dataset_id = 3; - * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString getDatasetIdBytes(); + com.google.protobuf.ByteString + getDatasetIdBytes(); /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
@@ -517,32 +348,24 @@ public interface ModelOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Timestamp when this model was last updated.
    * 
@@ -552,28 +375,22 @@ public interface ModelOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * 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; - * * @return The enum numeric value on the wire for deploymentState. */ int getDeploymentStateValue(); /** - * - * *
    * 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; - * * @return The deploymentState. */ com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java new file mode 100644 index 000000000..db6056552 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java @@ -0,0 +1,114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/model.proto + +package com.google.cloud.automl.v1beta1; + +public final class ModelOuterClass { + private ModelOuterClass() {} + 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_Model_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Model_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/model.prot" + + "o\022\033google.cloud.automl.v1beta1\032\031google/a" + + "pi/resource.proto\032\'google/cloud/automl/v" + + "1beta1/image.proto\032(google/cloud/automl/" + + "v1beta1/tables.proto\032&google/cloud/autom" + + "l/v1beta1/text.proto\032-google/cloud/autom" + + "l/v1beta1/translation.proto\032\'google/clou" + + "d/automl/v1beta1/video.proto\032\037google/pro" + + "tobuf/timestamp.proto\032\034google/api/annota" + + "tions.proto\"\314\n\n\005Model\022[\n\032translation_mod" + + "el_metadata\030\017 \001(\01325.google.cloud.automl." + + "v1beta1.TranslationModelMetadataH\000\022l\n#im" + + "age_classification_model_metadata\030\r \001(\0132" + + "=.google.cloud.automl.v1beta1.ImageClass" + + "ificationModelMetadataH\000\022j\n\"text_classif" + + "ication_model_metadata\030\016 \001(\0132<.google.cl" + + "oud.automl.v1beta1.TextClassificationMod" + + "elMetadataH\000\022o\n%image_object_detection_m" + + "odel_metadata\030\024 \001(\0132>.google.cloud.autom" + + "l.v1beta1.ImageObjectDetectionModelMetad" + + "ataH\000\022l\n#video_classification_model_meta" + + "data\030\027 \001(\0132=.google.cloud.automl.v1beta1" + + ".VideoClassificationModelMetadataH\000\022m\n$v" + + "ideo_object_tracking_model_metadata\030\025 \001(" + + "\0132=.google.cloud.automl.v1beta1.VideoObj" + + "ectTrackingModelMetadataH\000\022b\n\036text_extra" + + "ction_model_metadata\030\023 \001(\01328.google.clou" + + "d.automl.v1beta1.TextExtractionModelMeta" + + "dataH\000\022Q\n\025tables_model_metadata\030\030 \001(\01320." + + "google.cloud.automl.v1beta1.TablesModelM" + + "etadataH\000\022`\n\035text_sentiment_model_metada" + + "ta\030\026 \001(\01327.google.cloud.automl.v1beta1.T" + + "extSentimentModelMetadataH\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.protob" + + "uf.Timestamp\022/\n\013update_time\030\013 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022L\n\020deployment_stat" + + "e\030\010 \001(\01622.google.cloud.automl.v1beta1.Mo" + + "del.DeploymentState\"Q\n\017DeploymentState\022 " + + "\n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\014\n\010DEPL" + + "OYED\020\001\022\016\n\nUNDEPLOYED\020\002:X\352AU\n\033automl.goog" + + "leapis.com/Model\0226projects/{project}/loc" + + "ations/{location}/models/{model}B\020\n\016mode" + + "l_metadataB\245\001\n\037com.google.cloud.automl.v" + + "1beta1P\001ZAgoogle.golang.org/genproto/goo" + + "gleapis/cloud/automl/v1beta1;automl\312\002\033Go" + + "ogle\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Clou" + + "d::AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.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(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_Model_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Model_descriptor, + new java.lang.String[] { "TranslationModelMetadata", "ImageClassificationModelMetadata", "TextClassificationModelMetadata", "ImageObjectDetectionModelMetadata", "VideoClassificationModelMetadata", "VideoObjectTrackingModelMetadata", "TextExtractionModelMetadata", "TablesModelMetadata", "TextSentimentModelMetadata", "Name", "DisplayName", "DatasetId", "CreateTime", "UpdateTime", "DeploymentState", "ModelMetadata", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.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(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java similarity index 68% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java index f56ba38e4..c6af43430 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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
@@ -31,29 +14,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.NormalizedVertex}
  */
-public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private NormalizedVertex() {}
+  private NormalizedVertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,61 +56,56 @@ private NormalizedVertex(
           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;
+          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);
+      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;
+  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
+    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);
+            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; - * * @return The x. */ @java.lang.Override @@ -137,14 +116,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Required. Vertical coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -153,7 +129,6 @@ public float getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (x_ != 0F) { output.writeFloat(1, x_); } @@ -182,10 +158,12 @@ public int getSerializedSize() { size = 0; if (x_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (y_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,18 +173,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (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; } @@ -219,112 +198,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + 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) + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -335,23 +309,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.NormalizedVertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.NormalizedVertex.class, com.google.cloud.automl.v1beta1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.NormalizedVertex.newBuilder()
@@ -359,15 +331,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -379,9 +352,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -400,8 +373,7 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.NormalizedVertex result = new com.google.cloud.automl.v1beta1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -412,39 +384,38 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.NormalizedVertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -452,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.NormalizedVertex other) {
-      if (other == com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance()) return this;
       if (other.getX() != 0F) {
         setX(other.getX());
       }
@@ -489,16 +459,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * Required. Horizontal coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -506,51 +473,42 @@ public float getX() { return x_; } /** - * - * *
      * Required. Horizontal coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * Required. Horizontal coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -558,43 +516,37 @@ public float getY() { return y_; } /** - * - * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -604,12 +556,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -618,16 +570,16 @@ public static com.google.cloud.automl.v1beta1.NormalizedVertex getDefaultInstanc 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); - } - }; + 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; @@ -642,4 +594,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..954f6483a --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,29 @@ +// 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; + * @return The x. + */ + float getX(); + + /** + *
+   * Required. Vertical coordinate.
+   * 
+ * + * float y = 2; + * @return The y. + */ + float getY(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java index efce081f3..0147be495 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/operations.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Metadata used across all long running operations returned by AutoML API.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { partialFailures_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,253 +54,186 @@ private OperationMetadata( case 0: done = true; break; - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - partialFailures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - partialFailures_.add( - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); - break; + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + partialFailures_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + partialFailures_.add( + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 8) { + subBuilder = ((com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_).toBuilder(); } - 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; + 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(); } - case 82: - { - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder subBuilder = - null; - if (detailsCase_ == 10) { - subBuilder = - ((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_) - .toBuilder(); - } - details_ = - input.readMessage( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 10; - break; + detailsCase_ = 8; + break; + } + case 82: { + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 10) { + subBuilder = ((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_).toBuilder(); } - case 104: - { - progressPercent_ = input.readInt32(); - break; + details_ = + input.readMessage(com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); } - 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; + detailsCase_ = 10; + break; + } + case 104: { + + 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(); } - 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; + 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(); } - 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; + 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(); } - 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; + 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(); } - 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; + 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(); } - 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; + 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(); } - 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; + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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)) { + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); @@ -326,28 +242,23 @@ private OperationMetadata( makeExtensionsImmutable(); } } - - 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 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 + 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); + com.google.cloud.automl.v1beta1.OperationMetadata.class, com.google.cloud.automl.v1beta1.OperationMetadata.Builder.class); } private int detailsCase_ = 0; private java.lang.Object details_; - public enum DetailsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DELETE_DETAILS(8), DEPLOY_MODEL_DETAILS(24), @@ -360,7 +271,6 @@ public enum DetailsCase EXPORT_EVALUATED_EXAMPLES_DETAILS(26), DETAILS_NOT_SET(0); private final int value; - private DetailsCase(int value) { this.value = value; } @@ -376,50 +286,37 @@ 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: - return null; + 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: return null; } } - public int getNumber() { return this.value; } }; - public DetailsCase getDetailsCase() { - return DetailsCase.forNumber(detailsCase_); + public DetailsCase + getDetailsCase() { + return DetailsCase.forNumber( + detailsCase_); } public static final int DELETE_DETAILS_FIELD_NUMBER = 8; /** - * - * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; - * * @return Whether the deleteDetails field is set. */ @java.lang.Override @@ -427,26 +324,21 @@ public boolean hasDeleteDetails() { return detailsCase_ == 8; } /** - * - * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; - * * @return The deleteDetails. */ @java.lang.Override 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.DeleteOperationMetadata) details_; } return com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of a Delete operation.
    * 
@@ -454,25 +346,20 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDeleteDetails( * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder - getDeleteDetailsOrBuilder() { + 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.DeleteOperationMetadata) details_; } return com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); } public static final int DEPLOY_MODEL_DETAILS_FIELD_NUMBER = 24; /** - * - * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; * @return Whether the deployModelDetails field is set. */ @java.lang.Override @@ -480,54 +367,42 @@ public boolean hasDeployModelDetails() { return detailsCase_ == 24; } /** - * - * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; * @return The deployModelDetails. */ @java.lang.Override 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) details_; } return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder - getDeployModelDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); } public static final int UNDEPLOY_MODEL_DETAILS_FIELD_NUMBER = 25; /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return Whether the undeployModelDetails field is set. */ @java.lang.Override @@ -535,54 +410,42 @@ public boolean hasUndeployModelDetails() { return detailsCase_ == 25; } /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return The undeployModelDetails. */ @java.lang.Override 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) details_; } return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder - getUndeployModelDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); } public static final int CREATE_MODEL_DETAILS_FIELD_NUMBER = 10; /** - * - * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; * @return Whether the createModelDetails field is set. */ @java.lang.Override @@ -590,53 +453,42 @@ public boolean hasCreateModelDetails() { return detailsCase_ == 10; } /** - * - * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; * @return The createModelDetails. */ @java.lang.Override 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) details_; } return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder - getCreateModelDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); } public static final int IMPORT_DATA_DETAILS_FIELD_NUMBER = 15; /** - * - * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * * @return Whether the importDataDetails field is set. */ @java.lang.Override @@ -644,26 +496,21 @@ public boolean hasImportDataDetails() { return detailsCase_ == 15; } /** - * - * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * * @return The importDataDetails. */ @java.lang.Override 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) details_; } return com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of ImportData operation.
    * 
@@ -671,25 +518,20 @@ public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getImportData * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder - getImportDataDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); } public static final int BATCH_PREDICT_DETAILS_FIELD_NUMBER = 16; /** - * - * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; * @return Whether the batchPredictDetails field is set. */ @java.lang.Override @@ -697,53 +539,42 @@ public boolean hasBatchPredictDetails() { return detailsCase_ == 16; } /** - * - * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; * @return The batchPredictDetails. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getBatchPredictDetails() { if (detailsCase_ == 16) { - return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; + return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; } return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder - getBatchPredictDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder() { if (detailsCase_ == 16) { - return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; + return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; } return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); } public static final int EXPORT_DATA_DETAILS_FIELD_NUMBER = 21; /** - * - * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * * @return Whether the exportDataDetails field is set. */ @java.lang.Override @@ -751,26 +582,21 @@ public boolean hasExportDataDetails() { return detailsCase_ == 21; } /** - * - * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * * @return The exportDataDetails. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getExportDataDetails() { if (detailsCase_ == 21) { - return (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_; + return (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_; } return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of ExportData operation.
    * 
@@ -778,25 +604,20 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getExportData * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder - getExportDataDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); } public static final int EXPORT_MODEL_DETAILS_FIELD_NUMBER = 22; /** - * - * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; * @return Whether the exportModelDetails field is set. */ @java.lang.Override @@ -804,55 +625,42 @@ public boolean hasExportModelDetails() { return detailsCase_ == 22; } /** - * - * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; * @return The exportModelDetails. */ @java.lang.Override 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) details_; } return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder - getExportModelDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); } 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; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * @return Whether the exportEvaluatedExamplesDetails field is set. */ @java.lang.Override @@ -860,60 +668,44 @@ public boolean hasExportEvaluatedExamplesDetails() { return detailsCase_ == 26; } /** - * - * *
    * Details of ExportEvaluatedExamples operation.
    * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * @return The exportEvaluatedExamplesDetails. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - getExportEvaluatedExamplesDetails() { + 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) details_; } - return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of ExportEvaluatedExamples operation.
    * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder - getExportEvaluatedExamplesDetailsOrBuilder() { + 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) details_; } - return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); } 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; - * * @return The progressPercent. */ @java.lang.Override @@ -924,8 +716,6 @@ public int getProgressPercent() { 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.
@@ -940,8 +730,6 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -952,13 +740,11 @@ public java.util.List getPartialFailuresList() {
    * repeated .google.rpc.Status partial_failures = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPartialFailuresOrBuilderList() {
     return partialFailures_;
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -973,8 +759,6 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -989,8 +773,6 @@ public com.google.rpc.Status getPartialFailures(int index) {
     return partialFailures_.get(index);
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -1001,21 +783,19 @@ public com.google.rpc.Status getPartialFailures(int index) {
    * repeated .google.rpc.Status partial_failures = 2;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
+  public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
+      int index) {
     return partialFailures_.get(index);
   }
 
   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; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1023,14 +803,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -1038,8 +815,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when the operation was created.
    * 
@@ -1054,14 +829,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1069,14 +841,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ @java.lang.Override @@ -1084,8 +853,6 @@ 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.
    * 
@@ -1098,7 +865,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1110,7 +876,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -1124,39 +891,31 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(8, (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_); } if (detailsCase_ == 10) { - output.writeMessage( - 10, (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_); + 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_); + output.writeMessage(15, (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_); } if (detailsCase_ == 16) { - output.writeMessage( - 16, (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_); + output.writeMessage(16, (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_); } if (detailsCase_ == 21) { - output.writeMessage( - 21, (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_); + output.writeMessage(21, (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_); } if (detailsCase_ == 22) { - output.writeMessage( - 22, (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_); + output.writeMessage(22, (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_); } if (detailsCase_ == 24) { - output.writeMessage( - 24, (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_); + output.writeMessage(24, (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_); } if (detailsCase_ == 25) { - output.writeMessage( - 25, (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_); + output.writeMessage(25, (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_); } if (detailsCase_ == 26) { - output.writeMessage( - 26, (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_); + output.writeMessage(26, (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_); } unknownFields.writeTo(output); } @@ -1168,62 +927,56 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < partialFailures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, partialFailures_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, partialFailures_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1233,53 +986,64 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (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 (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + 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; + if (!getDeleteDetails() + .equals(other.getDeleteDetails())) return false; break; case 24: - if (!getDeployModelDetails().equals(other.getDeployModelDetails())) return false; + if (!getDeployModelDetails() + .equals(other.getDeployModelDetails())) return false; break; case 25: - if (!getUndeployModelDetails().equals(other.getUndeployModelDetails())) return false; + if (!getUndeployModelDetails() + .equals(other.getUndeployModelDetails())) return false; break; case 10: - if (!getCreateModelDetails().equals(other.getCreateModelDetails())) return false; + if (!getCreateModelDetails() + .equals(other.getCreateModelDetails())) return false; break; case 15: - if (!getImportDataDetails().equals(other.getImportDataDetails())) return false; + if (!getImportDataDetails() + .equals(other.getImportDataDetails())) return false; break; case 16: - if (!getBatchPredictDetails().equals(other.getBatchPredictDetails())) return false; + if (!getBatchPredictDetails() + .equals(other.getBatchPredictDetails())) return false; break; case 21: - if (!getExportDataDetails().equals(other.getExportDataDetails())) return false; + if (!getExportDataDetails() + .equals(other.getExportDataDetails())) return false; break; case 22: - if (!getExportModelDetails().equals(other.getExportModelDetails())) return false; + if (!getExportModelDetails() + .equals(other.getExportModelDetails())) return false; break; case 26: - if (!getExportEvaluatedExamplesDetails().equals(other.getExportEvaluatedExamplesDetails())) - return false; + if (!getExportEvaluatedExamplesDetails() + .equals(other.getExportEvaluatedExamplesDetails())) return false; break; case 0: default: @@ -1355,126 +1119,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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 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 + 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); + com.google.cloud.automl.v1beta1.OperationMetadata.class, com.google.cloud.automl.v1beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.OperationMetadata.newBuilder() @@ -1482,17 +1237,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPartialFailuresFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1522,9 +1277,9 @@ public Builder clear() { } @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; + 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 @@ -1543,8 +1298,7 @@ public com.google.cloud.automl.v1beta1.OperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.OperationMetadata result = new com.google.cloud.automl.v1beta1.OperationMetadata(this); int from_bitField0_ = bitField0_; if (detailsCase_ == 8) { if (deleteDetailsBuilder_ == null) { @@ -1638,39 +1392,38 @@ public com.google.cloud.automl.v1beta1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1678,8 +1431,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.OperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.OperationMetadata.getDefaultInstance()) return this; if (other.getProgressPercent() != 0) { setProgressPercent(other.getProgressPercent()); } @@ -1701,10 +1453,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.OperationMetadata other partialFailuresBuilder_ = null; partialFailures_ = other.partialFailures_; bitField0_ = (bitField0_ & ~0x00000001); - partialFailuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialFailuresFieldBuilder() - : null; + partialFailuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialFailuresFieldBuilder() : null; } else { partialFailuresBuilder_.addAllMessages(other.partialFailures_); } @@ -1717,55 +1468,45 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.OperationMetadata other 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; - } + 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(); @@ -1786,8 +1527,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1796,12 +1536,12 @@ public Builder mergeFrom( } return this; } - private int detailsCase_ = 0; private java.lang.Object details_; - - public DetailsCase getDetailsCase() { - return DetailsCase.forNumber(detailsCase_); + public DetailsCase + getDetailsCase() { + return DetailsCase.forNumber( + detailsCase_); } public Builder clearDetails() { @@ -1814,19 +1554,13 @@ public Builder clearDetails() { 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_; + 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; - * * @return Whether the deleteDetails field is set. */ @java.lang.Override @@ -1834,14 +1568,11 @@ public boolean hasDeleteDetails() { return detailsCase_ == 8; } /** - * - * *
      * Details of a Delete operation.
      * 
* * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; - * * @return The deleteDetails. */ @java.lang.Override @@ -1859,8 +1590,6 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDeleteDetails( } } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1881,8 +1610,6 @@ public Builder setDeleteDetails(com.google.cloud.automl.v1beta1.DeleteOperationM return this; } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1901,25 +1628,18 @@ public Builder setDeleteDetails( 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) { + 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(); + 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; } @@ -1934,8 +1654,6 @@ public Builder mergeDeleteDetails( return this; } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1959,21 +1677,16 @@ public Builder clearDeleteDetails() { return this; } /** - * - * *
      * Details of a Delete operation.
      * 
* * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; */ - public com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder - getDeleteDetailsBuilder() { + public com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder getDeleteDetailsBuilder() { return getDeleteDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -1981,8 +1694,7 @@ public Builder clearDeleteDetails() { * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder - getDeleteDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder getDeleteDetailsOrBuilder() { if ((detailsCase_ == 8) && (deleteDetailsBuilder_ != null)) { return deleteDetailsBuilder_.getMessageOrBuilder(); } else { @@ -1993,8 +1705,6 @@ public Builder clearDeleteDetails() { } } /** - * - * *
      * Details of a Delete operation.
      * 
@@ -2002,45 +1712,32 @@ public Builder clearDeleteDetails() { * .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> + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; * @return Whether the deployModelDetails field is set. */ @java.lang.Override @@ -2048,15 +1745,11 @@ public boolean hasDeployModelDetails() { return detailsCase_ == 24; } /** - * - * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; * @return The deployModelDetails. */ @java.lang.Override @@ -2074,17 +1767,13 @@ public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDeployMod } } /** - * - * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; */ - public Builder setDeployModelDetails( - com.google.cloud.automl.v1beta1.DeployModelOperationMetadata value) { + public Builder setDeployModelDetails(com.google.cloud.automl.v1beta1.DeployModelOperationMetadata value) { if (deployModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2098,14 +1787,11 @@ public Builder setDeployModelDetails( return this; } /** - * - * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; */ public Builder setDeployModelDetails( com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder builderForValue) { @@ -2119,27 +1805,18 @@ public Builder setDeployModelDetails( return this; } /** - * - * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; */ - public Builder mergeDeployModelDetails( - com.google.cloud.automl.v1beta1.DeployModelOperationMetadata value) { + 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(); + 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; } @@ -2154,14 +1831,11 @@ public Builder mergeDeployModelDetails( return this; } /** - * - * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; */ public Builder clearDeployModelDetails() { if (deployModelDetailsBuilder_ == null) { @@ -2180,32 +1854,24 @@ public Builder clearDeployModelDetails() { return this; } /** - * - * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; */ - public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder - getDeployModelDetailsBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder - getDeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder() { if ((detailsCase_ == 24) && (deployModelDetailsBuilder_ != null)) { return deployModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2216,57 +1882,39 @@ public Builder clearDeployModelDetails() { } } /** - * - * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * + * .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> + 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(); + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return Whether the undeployModelDetails field is set. */ @java.lang.Override @@ -2274,21 +1922,15 @@ public boolean hasUndeployModelDetails() { return detailsCase_ == 25; } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return The undeployModelDetails. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata - getUndeployModelDetails() { + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata getUndeployModelDetails() { if (undeployModelDetailsBuilder_ == null) { if (detailsCase_ == 25) { return (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_; @@ -2302,18 +1944,13 @@ public boolean hasUndeployModelDetails() { } } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; */ - public Builder setUndeployModelDetails( - com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata value) { + public Builder setUndeployModelDetails(com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata value) { if (undeployModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2327,15 +1964,11 @@ public Builder setUndeployModelDetails( return this; } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; */ public Builder setUndeployModelDetails( com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder builderForValue) { @@ -2349,28 +1982,18 @@ public Builder setUndeployModelDetails( return this; } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; */ - public Builder mergeUndeployModelDetails( - com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata value) { + 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(); + 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; } @@ -2385,15 +2008,11 @@ public Builder mergeUndeployModelDetails( return this; } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; */ public Builder clearUndeployModelDetails() { if (undeployModelDetailsBuilder_ == null) { @@ -2412,34 +2031,24 @@ public Builder clearUndeployModelDetails() { return this; } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; */ - public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder - getUndeployModelDetailsBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder - getUndeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder() { if ((detailsCase_ == 25) && (undeployModelDetailsBuilder_ != null)) { return undeployModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2450,57 +2059,39 @@ public Builder clearUndeployModelDetails() { } } /** - * - * *
      * Details of an UndeployModel operation.
      * 
* - * - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .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> + 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(); + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; * @return Whether the createModelDetails field is set. */ @java.lang.Override @@ -2508,15 +2099,11 @@ public boolean hasCreateModelDetails() { return detailsCase_ == 10; } /** - * - * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; * @return The createModelDetails. */ @java.lang.Override @@ -2534,17 +2121,13 @@ public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getCreateMod } } /** - * - * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; */ - public Builder setCreateModelDetails( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata value) { + public Builder setCreateModelDetails(com.google.cloud.automl.v1beta1.CreateModelOperationMetadata value) { if (createModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2558,14 +2141,11 @@ public Builder setCreateModelDetails( return this; } /** - * - * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; */ public Builder setCreateModelDetails( com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder builderForValue) { @@ -2579,27 +2159,18 @@ public Builder setCreateModelDetails( return this; } /** - * - * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; */ - public Builder mergeCreateModelDetails( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata value) { + 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(); + 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; } @@ -2614,14 +2185,11 @@ public Builder mergeCreateModelDetails( return this; } /** - * - * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; */ public Builder clearCreateModelDetails() { if (createModelDetailsBuilder_ == null) { @@ -2640,32 +2208,24 @@ public Builder clearCreateModelDetails() { return this; } /** - * - * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; */ - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder - getCreateModelDetailsBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder - getCreateModelDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder() { if ((detailsCase_ == 10) && (createModelDetailsBuilder_ != null)) { return createModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2676,56 +2236,39 @@ public Builder clearCreateModelDetails() { } } /** - * - * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .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> + 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(); + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; * @return Whether the importDataDetails field is set. */ @java.lang.Override @@ -2733,15 +2276,11 @@ public boolean hasImportDataDetails() { return detailsCase_ == 15; } /** - * - * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * - * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; * @return The importDataDetails. */ @java.lang.Override @@ -2759,17 +2298,13 @@ public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getImportData } } /** - * - * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ - public Builder setImportDataDetails( - com.google.cloud.automl.v1beta1.ImportDataOperationMetadata value) { + public Builder setImportDataDetails(com.google.cloud.automl.v1beta1.ImportDataOperationMetadata value) { if (importDataDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2783,14 +2318,11 @@ public Builder setImportDataDetails( return this; } /** - * - * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ public Builder setImportDataDetails( com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder builderForValue) { @@ -2804,27 +2336,18 @@ public Builder setImportDataDetails( return this; } /** - * - * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ - public Builder mergeImportDataDetails( - com.google.cloud.automl.v1beta1.ImportDataOperationMetadata value) { + 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(); + 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; } @@ -2839,14 +2362,11 @@ public Builder mergeImportDataDetails( return this; } /** - * - * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ public Builder clearImportDataDetails() { if (importDataDetailsBuilder_ == null) { @@ -2865,32 +2385,24 @@ public Builder clearImportDataDetails() { return this; } /** - * - * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ - public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder - getImportDataDetailsBuilder() { + 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; - * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder - getImportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder getImportDataDetailsOrBuilder() { if ((detailsCase_ == 15) && (importDataDetailsBuilder_ != null)) { return importDataDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2901,56 +2413,39 @@ public Builder clearImportDataDetails() { } } /** - * - * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * + * .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> + 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(); + 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>( + 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(); - ; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; * @return Whether the batchPredictDetails field is set. */ @java.lang.Override @@ -2958,15 +2453,11 @@ public boolean hasBatchPredictDetails() { return detailsCase_ == 16; } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; * @return The batchPredictDetails. */ @java.lang.Override @@ -2984,17 +2475,13 @@ public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getBatchPre } } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; */ - public Builder setBatchPredictDetails( - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata value) { + public Builder setBatchPredictDetails(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata value) { if (batchPredictDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3008,14 +2495,11 @@ public Builder setBatchPredictDetails( return this; } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; */ public Builder setBatchPredictDetails( com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder builderForValue) { @@ -3029,27 +2513,18 @@ public Builder setBatchPredictDetails( return this; } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; */ - public Builder mergeBatchPredictDetails( - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata value) { + 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(); + 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; } @@ -3064,14 +2539,11 @@ public Builder mergeBatchPredictDetails( return this; } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; */ public Builder clearBatchPredictDetails() { if (batchPredictDetailsBuilder_ == null) { @@ -3090,32 +2562,24 @@ public Builder clearBatchPredictDetails() { return this; } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; */ - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder - getBatchPredictDetailsBuilder() { + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder getBatchPredictDetailsBuilder() { return getBatchPredictDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder - getBatchPredictDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder() { if ((detailsCase_ == 16) && (batchPredictDetailsBuilder_ != null)) { return batchPredictDetailsBuilder_.getMessageOrBuilder(); } else { @@ -3126,56 +2590,39 @@ public Builder clearBatchPredictDetails() { } } /** - * - * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .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> + 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(); + 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>( + 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; } detailsCase_ = 16; - onChanged(); - ; + onChanged();; return batchPredictDetailsBuilder_; } 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; * @return Whether the exportDataDetails field is set. */ @java.lang.Override @@ -3183,15 +2630,11 @@ public boolean hasExportDataDetails() { return detailsCase_ == 21; } /** - * - * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; * @return The exportDataDetails. */ @java.lang.Override @@ -3209,17 +2652,13 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getExportData } } /** - * - * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; */ - public Builder setExportDataDetails( - com.google.cloud.automl.v1beta1.ExportDataOperationMetadata value) { + public Builder setExportDataDetails(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata value) { if (exportDataDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3233,14 +2672,11 @@ public Builder setExportDataDetails( return this; } /** - * - * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; */ public Builder setExportDataDetails( com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder builderForValue) { @@ -3254,27 +2690,18 @@ public Builder setExportDataDetails( return this; } /** - * - * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; */ - public Builder mergeExportDataDetails( - com.google.cloud.automl.v1beta1.ExportDataOperationMetadata value) { + 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(); + 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; } @@ -3289,14 +2716,11 @@ public Builder mergeExportDataDetails( return this; } /** - * - * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; */ public Builder clearExportDataDetails() { if (exportDataDetailsBuilder_ == null) { @@ -3315,32 +2739,24 @@ public Builder clearExportDataDetails() { return this; } /** - * - * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; */ - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder - getExportDataDetailsBuilder() { + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder getExportDataDetailsBuilder() { return getExportDataDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder - getExportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder getExportDataDetailsOrBuilder() { if ((detailsCase_ == 21) && (exportDataDetailsBuilder_ != null)) { return exportDataDetailsBuilder_.getMessageOrBuilder(); } else { @@ -3351,56 +2767,39 @@ public Builder clearExportDataDetails() { } } /** - * - * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * + * .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> + 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(); + 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>( + 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(); - ; + onChanged();; return exportDataDetailsBuilder_; } 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; * @return Whether the exportModelDetails field is set. */ @java.lang.Override @@ -3408,15 +2807,11 @@ public boolean hasExportModelDetails() { return detailsCase_ == 22; } /** - * - * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; * @return The exportModelDetails. */ @java.lang.Override @@ -3434,17 +2829,13 @@ public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getExportMod } } /** - * - * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; */ - public Builder setExportModelDetails( - com.google.cloud.automl.v1beta1.ExportModelOperationMetadata value) { + public Builder setExportModelDetails(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata value) { if (exportModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3458,14 +2849,11 @@ public Builder setExportModelDetails( return this; } /** - * - * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; */ public Builder setExportModelDetails( com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder builderForValue) { @@ -3479,27 +2867,18 @@ public Builder setExportModelDetails( return this; } /** - * - * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; */ - public Builder mergeExportModelDetails( - com.google.cloud.automl.v1beta1.ExportModelOperationMetadata value) { + 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(); + 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; } @@ -3514,14 +2893,11 @@ public Builder mergeExportModelDetails( return this; } /** - * - * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; */ public Builder clearExportModelDetails() { if (exportModelDetailsBuilder_ == null) { @@ -3540,32 +2916,24 @@ public Builder clearExportModelDetails() { return this; } /** - * - * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; */ - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder - getExportModelDetailsBuilder() { + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder getExportModelDetailsBuilder() { return getExportModelDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder - getExportModelDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder() { if ((detailsCase_ == 22) && (exportModelDetailsBuilder_ != null)) { return exportModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -3576,57 +2944,39 @@ public Builder clearExportModelDetails() { } } /** - * - * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * + * .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> + 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(); + 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>( + 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(); - ; + onChanged();; return exportModelDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata, - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder, - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder> - exportEvaluatedExamplesDetailsBuilder_; + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder> exportEvaluatedExamplesDetailsBuilder_; /** - * - * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * @return Whether the exportEvaluatedExamplesDetails field is set. */ @java.lang.Override @@ -3634,49 +2984,35 @@ public boolean hasExportEvaluatedExamplesDetails() { return detailsCase_ == 26; } /** - * - * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * @return The exportEvaluatedExamplesDetails. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - getExportEvaluatedExamplesDetails() { + 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.ExportEvaluatedExamplesOperationMetadata) details_; } - return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 26) { return exportEvaluatedExamplesDetailsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; */ - public Builder setExportEvaluatedExamplesDetails( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata value) { + public Builder setExportEvaluatedExamplesDetails(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata value) { if (exportEvaluatedExamplesDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3690,19 +3026,14 @@ public Builder setExportEvaluatedExamplesDetails( return this; } /** - * - * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; */ public Builder setExportEvaluatedExamplesDetails( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder builderForValue) { if (exportEvaluatedExamplesDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3713,29 +3044,18 @@ public Builder setExportEvaluatedExamplesDetails( return this; } /** - * - * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; */ - public Builder mergeExportEvaluatedExamplesDetails( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata value) { + public Builder mergeExportEvaluatedExamplesDetails(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata value) { if (exportEvaluatedExamplesDetailsBuilder_ == null) { - if (detailsCase_ == 26 - && details_ - != com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 26 && + details_ != com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.newBuilder((com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -3750,15 +3070,11 @@ public Builder mergeExportEvaluatedExamplesDetails( return this; } /** - * - * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; */ public Builder clearExportEvaluatedExamplesDetails() { if (exportEvaluatedExamplesDetailsBuilder_ == null) { @@ -3777,94 +3093,67 @@ public Builder clearExportEvaluatedExamplesDetails() { return this; } /** - * - * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder - getExportEvaluatedExamplesDetailsBuilder() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder getExportEvaluatedExamplesDetailsBuilder() { return getExportEvaluatedExamplesDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder - getExportEvaluatedExamplesDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder getExportEvaluatedExamplesDetailsOrBuilder() { if ((detailsCase_ == 26) && (exportEvaluatedExamplesDetailsBuilder_ != null)) { return exportEvaluatedExamplesDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 26) { - return (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) - details_; + return (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_; } - return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; */ private com.google.protobuf.SingleFieldBuilderV3< - 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, 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.ExportEvaluatedExamplesOperationMetadata - .getDefaultInstance(); + details_ = com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); } - exportEvaluatedExamplesDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata, - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder, - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder>( + exportEvaluatedExamplesDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 26; - onChanged(); - ; + onChanged();; return exportEvaluatedExamplesDetailsBuilder_; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; - * * @return The progressPercent. */ @java.lang.Override @@ -3872,60 +3161,50 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; } private java.util.List partialFailures_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePartialFailuresIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { partialFailures_ = new java.util.ArrayList(partialFailures_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - partialFailuresBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailuresBuilder_; /** - * - * *
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3943,8 +3222,6 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3962,8 +3239,6 @@ public int getPartialFailuresCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3981,8 +3256,6 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3992,7 +3265,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder setPartialFailures(int index, com.google.rpc.Status value) {
+    public Builder setPartialFailures(
+        int index, com.google.rpc.Status value) {
       if (partialFailuresBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4006,8 +3280,6 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4017,7 +3289,8 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder setPartialFailures(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setPartialFailures(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.set(index, builderForValue.build());
@@ -4028,8 +3301,6 @@ public Builder setPartialFailures(int index, com.google.rpc.Status.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4053,8 +3324,6 @@ public Builder addPartialFailures(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4064,7 +3333,8 @@ public Builder addPartialFailures(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(int index, com.google.rpc.Status value) {
+    public Builder addPartialFailures(
+        int index, com.google.rpc.Status value) {
       if (partialFailuresBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4078,8 +3348,6 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4089,7 +3357,8 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialFailures(
+        com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.add(builderForValue.build());
@@ -4100,8 +3369,6 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4111,7 +3378,8 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue)
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialFailures(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.add(index, builderForValue.build());
@@ -4122,8 +3390,6 @@ public Builder addPartialFailures(int index, com.google.rpc.Status.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4137,7 +3403,8 @@ public Builder addAllPartialFailures(
         java.lang.Iterable values) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialFailures_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, partialFailures_);
         onChanged();
       } else {
         partialFailuresBuilder_.addAllMessages(values);
@@ -4145,8 +3412,6 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4167,8 +3432,6 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4189,8 +3452,6 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4200,12 +3461,11 @@ public Builder removePartialFailures(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) {
+    public com.google.rpc.Status.Builder getPartialFailuresBuilder(
+        int index) {
       return getPartialFailuresFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4215,16 +3475,14 @@ public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
+    public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
+        int index) {
       if (partialFailuresBuilder_ == null) {
-        return partialFailures_.get(index);
-      } else {
+        return partialFailures_.get(index);  } else {
         return partialFailuresBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4234,8 +3492,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public java.util.List
-        getPartialFailuresOrBuilderList() {
+    public java.util.List 
+         getPartialFailuresOrBuilderList() {
       if (partialFailuresBuilder_ != null) {
         return partialFailuresBuilder_.getMessageOrBuilderList();
       } else {
@@ -4243,8 +3501,6 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4255,12 +3511,10 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
      * repeated .google.rpc.Status partial_failures = 2;
      */
     public com.google.rpc.Status.Builder addPartialFailuresBuilder() {
-      return getPartialFailuresFieldBuilder()
-          .addBuilder(com.google.rpc.Status.getDefaultInstance());
+      return getPartialFailuresFieldBuilder().addBuilder(
+          com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4270,13 +3524,12 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder() {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.Status.Builder addPartialFailuresBuilder(int index) {
-      return getPartialFailuresFieldBuilder()
-          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addPartialFailuresBuilder(
+        int index) {
+      return getPartialFailuresFieldBuilder().addBuilder(
+          index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4286,19 +3539,16 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public java.util.List getPartialFailuresBuilderList() {
+    public java.util.List 
+         getPartialFailuresBuilderList() {
       return getPartialFailuresFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getPartialFailuresFieldBuilder() {
       if (partialFailuresBuilder_ == null) {
-        partialFailuresBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
+        partialFailuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
                 partialFailures_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -4310,47 +3560,34 @@ public java.util.List getPartialFailuresBuilderLi
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4371,15 +3608,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -4390,8 +3626,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4402,7 +3636,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4414,8 +3648,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4434,8 +3666,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4443,13 +3673,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4460,14 +3688,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when the operation was created.
      * 
@@ -4475,17 +3700,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4493,47 +3715,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4554,15 +3763,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -4573,8 +3781,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4585,7 +3791,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -4597,8 +3803,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4617,8 +3821,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4626,13 +3828,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 4; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4643,14 +3843,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -4658,24 +3855,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4685,12 +3879,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.OperationMetadata) private static final com.google.cloud.automl.v1beta1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.OperationMetadata(); } @@ -4699,16 +3893,16 @@ public static com.google.cloud.automl.v1beta1.OperationMetadata getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4723,4 +3917,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java similarity index 77% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java index 939243f18..3b44334ac 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/operations.proto package com.google.cloud.automl.v1beta1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@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; - * * @return Whether the deleteDetails field is set. */ boolean hasDeleteDetails(); /** - * - * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; - * * @return The deleteDetails. */ com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDeleteDetails(); /** - * - * *
    * Details of a Delete operation.
    * 
@@ -59,332 +35,233 @@ public interface OperationMetadataOrBuilder com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder getDeleteDetailsOrBuilder(); /** - * - * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; * @return Whether the deployModelDetails field is set. */ boolean hasDeployModelDetails(); /** - * - * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; * @return The deployModelDetails. */ com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDeployModelDetails(); /** - * - * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; - * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; */ - com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder - getDeployModelDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder(); /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return Whether the undeployModelDetails field is set. */ boolean hasUndeployModelDetails(); /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; * @return The undeployModelDetails. */ com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata getUndeployModelDetails(); /** - * - * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; - * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; */ - com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder - getUndeployModelDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder(); /** - * - * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; * @return Whether the createModelDetails field is set. */ boolean hasCreateModelDetails(); /** - * - * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; * @return The createModelDetails. */ com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getCreateModelDetails(); /** - * - * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; */ - com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder - getCreateModelDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder(); /** - * - * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * * @return Whether the importDataDetails field is set. */ boolean hasImportDataDetails(); /** - * - * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; - * * @return The importDataDetails. */ 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(); + com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder getImportDataDetailsOrBuilder(); /** - * - * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; * @return Whether the batchPredictDetails field is set. */ boolean hasBatchPredictDetails(); /** - * - * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; * @return The batchPredictDetails. */ com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getBatchPredictDetails(); /** - * - * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; - * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; */ - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder - getBatchPredictDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder(); /** - * - * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * * @return Whether the exportDataDetails field is set. */ boolean hasExportDataDetails(); /** - * - * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; - * * @return The exportDataDetails. */ 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(); + com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder getExportDataDetailsOrBuilder(); /** - * - * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; * @return Whether the exportModelDetails field is set. */ boolean hasExportModelDetails(); /** - * - * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; * @return The exportModelDetails. */ com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getExportModelDetails(); /** - * - * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; - * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; */ - com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder - getExportModelDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder(); /** - * - * *
    * Details of ExportEvaluatedExamples operation.
    * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * @return Whether the exportEvaluatedExamplesDetails field is set. */ boolean hasExportEvaluatedExamplesDetails(); /** - * - * *
    * Details of ExportEvaluatedExamples operation.
    * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * @return The exportEvaluatedExamplesDetails. */ - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata - getExportEvaluatedExamplesDetails(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata getExportEvaluatedExamplesDetails(); /** - * - * *
    * Details of ExportEvaluatedExamples operation.
    * 
* - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; - * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; */ - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder - getExportEvaluatedExamplesDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder getExportEvaluatedExamplesDetailsOrBuilder(); /** - * - * *
    * Output only. Progress of operation. Range: [0, 100].
    * Not used currently.
    * 
* * int32 progress_percent = 13; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -394,10 +271,9 @@ public interface OperationMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List getPartialFailuresList();
+  java.util.List 
+      getPartialFailuresList();
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -409,8 +285,6 @@ public interface OperationMetadataOrBuilder
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -422,8 +296,6 @@ public interface OperationMetadataOrBuilder
    */
   int getPartialFailuresCount();
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -433,10 +305,9 @@ public interface OperationMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List getPartialFailuresOrBuilderList();
+  java.util.List 
+      getPartialFailuresOrBuilderList();
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -446,35 +317,28 @@ public interface OperationMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
@@ -484,32 +348,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when the operation was updated for the last time.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java new file mode 100644 index 000000000..35499f823 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java @@ -0,0 +1,270 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public final class Operations { + private Operations() {} + 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_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; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/automl/v1beta1/operations" + + ".proto\022\033google.cloud.automl.v1beta1\032$goo" + + "gle/cloud/automl/v1beta1/io.proto\032\'googl" + + "e/cloud/automl/v1beta1/model.proto\0322goog" + + "le/cloud/automl/v1beta1/model_evaluation" + + ".proto\032\033google/protobuf/empty.proto\032\037goo" + + "gle/protobuf/timestamp.proto\032\027google/rpc" + + "/status.proto\032\034google/api/annotations.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\245\001\n" + + "\037com.google.cloud.automl.v1beta1P\001ZAgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "automl/v1beta1;automl\312\002\033Google\\Cloud\\Aut" + + "oMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1b" + + "eta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + 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(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_OperationMetadata_fieldAccessorTable = 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_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.cloud.automl.v1beta1.Io.getDescriptor(); + com.google.cloud.automl.v1beta1.ModelOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java similarity index 75% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java index 4dd7b0095..8bbcf0c85 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * *  For Translation:
  *         CSV file `translation.csv`, with each line in format:
@@ -53,29 +36,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.OutputConfig}
  */
-public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class OutputConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.OutputConfig)
     OutputConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use OutputConfig.newBuilder() to construct.
   private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private OutputConfig() {}
+  private OutputConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new OutputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private OutputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -94,89 +78,75 @@ private OutputConfig(
           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 10: {
+            com.google.cloud.automl.v1beta1.GcsDestination.Builder subBuilder = null;
+            if (destinationCase_ == 1) {
+              subBuilder = ((com.google.cloud.automl.v1beta1.GcsDestination) destination_).toBuilder();
             }
-          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;
+            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();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      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_OutputConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1beta1.Io
-        .internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable
+    return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1beta1.OutputConfig.class,
-            com.google.cloud.automl.v1beta1.OutputConfig.Builder.class);
+            com.google.cloud.automl.v1beta1.OutputConfig.class, com.google.cloud.automl.v1beta1.OutputConfig.Builder.class);
   }
 
   private int destinationCase_ = 0;
   private java.lang.Object destination_;
-
   public enum DestinationCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_DESTINATION(1),
     BIGQUERY_DESTINATION(2),
     DESTINATION_NOT_SET(0);
     private final int value;
-
     private DestinationCase(int value) {
       this.value = value;
     }
@@ -192,30 +162,25 @@ public static DestinationCase valueOf(int 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;
+        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 DestinationCase
+  getDestinationCase() {
+    return DestinationCase.forNumber(
+        destinationCase_);
   }
 
   public static final int GCS_DESTINATION_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -226,7 +191,6 @@ public DestinationCase getDestinationCase() {
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -234,8 +198,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -246,19 +208,16 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override 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) destination_; } return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -273,21 +232,18 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   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) 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; - * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -295,26 +251,21 @@ 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; - * * @return The bigqueryDestination. */ @java.lang.Override 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } /** - * - * *
    * The BigQuery location where the output is to be written to.
    * 
@@ -322,16 +273,14 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { + 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,7 +292,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -360,14 +310,12 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -377,21 +325,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.OutputConfig other = - (com.google.cloud.automl.v1beta1.OutputConfig) obj; + com.google.cloud.automl.v1beta1.OutputConfig other = (com.google.cloud.automl.v1beta1.OutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 2: - if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + if (!getBigqueryDestination() + .equals(other.getBigqueryDestination())) return false; break; case 0: default: @@ -424,104 +373,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.OutputConfig 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.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * *  For Translation:
    *         CSV file `translation.csv`, with each line in format:
@@ -554,23 +496,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.OutputConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.OutputConfig)
       com.google.cloud.automl.v1beta1.OutputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1beta1.Io
-          .internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1beta1.Io
-          .internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1beta1.OutputConfig.class,
-              com.google.cloud.automl.v1beta1.OutputConfig.Builder.class);
+              com.google.cloud.automl.v1beta1.OutputConfig.class, com.google.cloud.automl.v1beta1.OutputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.OutputConfig.newBuilder()
@@ -578,15 +518,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -596,9 +537,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1beta1.Io
-          .internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -617,8 +558,7 @@ public com.google.cloud.automl.v1beta1.OutputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1beta1.OutputConfig buildPartial() {
-      com.google.cloud.automl.v1beta1.OutputConfig result =
-          new com.google.cloud.automl.v1beta1.OutputConfig(this);
+      com.google.cloud.automl.v1beta1.OutputConfig result = new com.google.cloud.automl.v1beta1.OutputConfig(this);
       if (destinationCase_ == 1) {
         if (gcsDestinationBuilder_ == null) {
           result.destination_ = destination_;
@@ -642,39 +582,38 @@ public com.google.cloud.automl.v1beta1.OutputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.OutputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1beta1.OutputConfig) other);
+        return mergeFrom((com.google.cloud.automl.v1beta1.OutputConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -684,20 +623,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.OutputConfig other) {
       if (other == com.google.cloud.automl.v1beta1.OutputConfig.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;
-          }
+        case GCS_DESTINATION: {
+          mergeGcsDestination(other.getGcsDestination());
+          break;
+        }
+        case BIGQUERY_DESTINATION: {
+          mergeBigqueryDestination(other.getBigqueryDestination());
+          break;
+        }
+        case DESTINATION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -727,12 +663,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-
-    public DestinationCase getDestinationCase() {
-      return DestinationCase.forNumber(destinationCase_);
+    public DestinationCase
+        getDestinationCase() {
+      return DestinationCase.forNumber(
+          destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -742,14 +678,10 @@ public Builder clearDestination() {
       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_;
+        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 output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -760,7 +692,6 @@ public Builder clearDestination() {
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -768,8 +699,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -780,7 +709,6 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -798,8 +726,6 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -825,8 +751,6 @@ public Builder setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -850,8 +774,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -865,14 +787,10 @@ public Builder setGcsDestination(
      */
     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();
+        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;
         }
@@ -887,8 +805,6 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestinatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -917,8 +833,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -934,8 +848,6 @@ public com.google.cloud.automl.v1beta1.GcsDestination.Builder getGcsDestinationB
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -959,8 +871,6 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
       }
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -973,44 +883,32 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
      * .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>
+        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>(
+        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();
-      ;
+      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_;
+        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; - * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -1018,14 +916,11 @@ 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; - * * @return The bigqueryDestination. */ @java.lang.Override @@ -1043,16 +938,13 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio } } /** - * - * *
      * 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) { + public Builder setBigqueryDestination(com.google.cloud.automl.v1beta1.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1066,8 +958,6 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1086,25 +976,18 @@ public Builder setBigqueryDestination( 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) { + 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(); + 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; } @@ -1119,8 +1002,6 @@ public Builder mergeBigqueryDestination( return this; } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1144,21 +1025,16 @@ public Builder clearBigqueryDestination() { 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() { + public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder getBigqueryDestinationBuilder() { return getBigqueryDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1166,8 +1042,7 @@ public Builder clearBigqueryDestination() { * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { return bigqueryDestinationBuilder_.getMessageOrBuilder(); } else { @@ -1178,8 +1053,6 @@ public Builder clearBigqueryDestination() { } } /** - * - * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1187,32 +1060,26 @@ public Builder clearBigqueryDestination() { * .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> + 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>( + 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(); - ; + onChanged();; return bigqueryDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1222,12 +1089,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.OutputConfig) private static final com.google.cloud.automl.v1beta1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.OutputConfig(); } @@ -1236,16 +1103,16 @@ public static com.google.cloud.automl.v1beta1.OutputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1260,4 +1127,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java similarity index 81% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java index 82e55f6d1..415d873dc 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -36,13 +18,10 @@ public interface OutputConfigOrBuilder
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -53,13 +32,10 @@ public interface OutputConfigOrBuilder
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination(); /** - * - * *
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -74,32 +50,24 @@ public interface OutputConfigOrBuilder
   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; - * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** - * - * *
    * The BigQuery location where the output is to be written to.
    * 
* * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; - * * @return The bigqueryDestination. */ com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination(); /** - * - * *
    * The BigQuery location where the output is to be written to.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java similarity index 69% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java index a88f75161..ec5cfb688 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictRequest} */ -public final class PredictRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PredictRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.PredictRequest) PredictRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PredictRequest.newBuilder() to construct. private PredictRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PredictRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PredictRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PredictRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,100 +54,90 @@ private PredictRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.automl.v1beta1.ExamplePayload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); } - case 18: - { - com.google.cloud.automl.v1beta1.ExamplePayload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.automl.v1beta1.ExamplePayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); - } - - break; + payload_ = input.readMessage(com.google.cloud.automl.v1beta1.ExamplePayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = - com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put(params__.getKey(), params__.getValue()); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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_PredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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_PredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.PredictRequest.class, - com.google.cloud.automl.v1beta1.PredictRequest.Builder.class); + com.google.cloud.automl.v1beta1.PredictRequest.class, com.google.cloud.automl.v1beta1.PredictRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -173,31 +146,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -208,17 +179,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.cloud.automl.v1beta1.ExamplePayload payload_; /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the payload field is set. */ @java.lang.Override @@ -226,36 +192,25 @@ public boolean hasPayload() { return payload_ != null; } /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The payload. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayload getPayload() { - return payload_ == null - ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() - : payload_; + return payload_ == null ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : payload_; } /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPayloadOrBuilder() { @@ -263,23 +218,24 @@ public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPayloadOrBuild } public static final int PARAMS_FIELD_NUMBER = 3; - 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_PredictRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_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() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -288,8 +244,6 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -312,22 +266,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 3;
    */
+
   @java.lang.Override
-  public boolean containsParams(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsParams(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetParams().getMap().containsKey(key);
   }
-  /** Use {@link #getParamsMap()} instead. */
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getParams() {
     return getParamsMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -351,12 +305,11 @@ public java.util.Map getParams() {
    * map<string, string> params = 3;
    */
   @java.lang.Override
+
   public java.util.Map getParamsMap() {
     return internalGetParams().getMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -380,16 +333,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 3;
    */
   @java.lang.Override
-  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();
+
+  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, any string must be up to 25000
    * characters long.
@@ -413,11 +366,12 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> params = 3;
    */
   @java.lang.Override
-  public java.lang.String getParamsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetParams().getMap();
+
+  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();
     }
@@ -425,7 +379,6 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -437,15 +390,20 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     if (payload_ != null) {
       output.writeMessage(2, getPayload());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 3);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        3);
     unknownFields.writeTo(output);
   }
 
@@ -459,17 +417,18 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (payload_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload());
-    }
-    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(3, params__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getPayload());
+    }
+    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(3, params__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -479,20 +438,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1beta1.PredictRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1beta1.PredictRequest other =
-        (com.google.cloud.automl.v1beta1.PredictRequest) obj;
+    com.google.cloud.automl.v1beta1.PredictRequest other = (com.google.cloud.automl.v1beta1.PredictRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasPayload() != other.hasPayload()) return false;
     if (hasPayload()) {
-      if (!getPayload().equals(other.getPayload())) return false;
+      if (!getPayload()
+          .equals(other.getPayload())) return false;
     }
-    if (!internalGetParams().equals(other.internalGetParams())) return false;
+    if (!internalGetParams().equals(
+        other.internalGetParams())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -519,147 +480,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.PredictRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictRequest 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.PredictRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.automl.v1beta1.PredictRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.automl.v1beta1.PredictRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1beta1.PredictRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.PredictRequest) com.google.cloud.automl.v1beta1.PredictRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.PredictionServiceProto - .internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableParams(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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_PredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.PredictRequest.class, - com.google.cloud.automl.v1beta1.PredictRequest.Builder.class); + com.google.cloud.automl.v1beta1.PredictRequest.class, com.google.cloud.automl.v1beta1.PredictRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.PredictRequest.newBuilder() @@ -667,15 +621,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -692,9 +647,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.PredictionServiceProto - .internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; } @java.lang.Override @@ -713,8 +668,7 @@ public com.google.cloud.automl.v1beta1.PredictRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.PredictRequest buildPartial() { - com.google.cloud.automl.v1beta1.PredictRequest result = - new com.google.cloud.automl.v1beta1.PredictRequest(this); + com.google.cloud.automl.v1beta1.PredictRequest result = new com.google.cloud.automl.v1beta1.PredictRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (payloadBuilder_ == null) { @@ -732,39 +686,38 @@ public com.google.cloud.automl.v1beta1.PredictRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PredictRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.PredictRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.PredictRequest)other); } else { super.mergeFrom(other); return this; @@ -780,7 +733,8 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.PredictRequest other) { if (other.hasPayload()) { mergePayload(other.getPayload()); } - internalGetMutableParams().mergeFrom(other.internalGetParams()); + internalGetMutableParams().mergeFrom( + other.internalGetParams()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -809,27 +763,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -838,23 +787,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -862,67 +808,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -930,61 +863,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.automl.v1beta1.ExamplePayload payload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExamplePayload, - com.google.cloud.automl.v1beta1.ExamplePayload.Builder, - com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> - payloadBuilder_; + com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> payloadBuilder_; /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The payload. */ public com.google.cloud.automl.v1beta1.ExamplePayload getPayload() { if (payloadBuilder_ == null) { - return payload_ == null - ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() - : payload_; + return payload_ == null ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : payload_; } else { return payloadBuilder_.getMessage(); } } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPayload(com.google.cloud.automl.v1beta1.ExamplePayload value) { if (payloadBuilder_ == null) { @@ -1000,16 +914,12 @@ public Builder setPayload(com.google.cloud.automl.v1beta1.ExamplePayload value) return this; } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPayload( com.google.cloud.automl.v1beta1.ExamplePayload.Builder builderForValue) { @@ -1023,24 +933,18 @@ public Builder setPayload( return this; } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePayload(com.google.cloud.automl.v1beta1.ExamplePayload value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = - com.google.cloud.automl.v1beta1.ExamplePayload.newBuilder(payload_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1beta1.ExamplePayload.newBuilder(payload_).mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1052,16 +956,12 @@ public Builder mergePayload(com.google.cloud.automl.v1beta1.ExamplePayload value return this; } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -1075,87 +975,72 @@ public Builder clearPayload() { return this; } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.ExamplePayload.Builder getPayloadBuilder() { - + onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { - return payload_ == null - ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() - : payload_; + return payload_ == null ? + com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : payload_; } } /** - * - * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExamplePayload, - com.google.cloud.automl.v1beta1.ExamplePayload.Builder, - com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> + com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { - payloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExamplePayload, - com.google.cloud.automl.v1beta1.ExamplePayload.Builder, - com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>( - getPayload(), getParentForChildren(), isClean()); + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>( + getPayload(), + getParentForChildren(), + isClean()); payload_ = null; } return payloadBuilder_; } - private com.google.protobuf.MapField params_; - - private com.google.protobuf.MapField internalGetParams() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } - private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged(); - ; + internalGetMutableParams() { + onChanged();; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1167,8 +1052,6 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1191,22 +1074,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 3;
      */
+
     @java.lang.Override
-    public boolean containsParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsParams(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetParams().getMap().containsKey(key);
     }
-    /** Use {@link #getParamsMap()} instead. */
+    /**
+     * Use {@link #getParamsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getParams() {
       return getParamsMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1230,12 +1113,11 @@ public java.util.Map getParams() {
      * map<string, string> params = 3;
      */
     @java.lang.Override
+
     public java.util.Map getParamsMap() {
       return internalGetParams().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1259,17 +1141,16 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 3;
      */
     @java.lang.Override
+
     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();
+        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, any string must be up to 25000
      * characters long.
@@ -1293,11 +1174,12 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 3;
      */
     @java.lang.Override
-    public java.lang.String getParamsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetParams().getMap();
+
+    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();
       }
@@ -1305,12 +1187,11 @@ public java.lang.String getParamsOrThrow(java.lang.String key) {
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap().clear();
+      internalGetMutableParams().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1333,21 +1214,23 @@ public Builder clearParams() {
      *
      * map<string, string> params = 3;
      */
-    public Builder removeParams(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableParams().getMutableMap().remove(key);
+
+    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. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableParams() {
+    public java.util.Map
+    getMutableParams() {
       return internalGetMutableParams().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1370,19 +1253,16 @@ public java.util.Map getMutableParams() {
      *
      * map<string, string> params = 3;
      */
-    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);
+    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, any string must be up to 25000
      * characters long.
@@ -1405,13 +1285,16 @@ public Builder putParams(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> params = 3;
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+
+    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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1421,12 +1304,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.PredictRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictRequest)
   private static final com.google.cloud.automl.v1beta1.PredictRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.PredictRequest();
   }
@@ -1435,16 +1318,16 @@ public static com.google.cloud.automl.v1beta1.PredictRequest getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public PredictRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new PredictRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public PredictRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new PredictRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1459,4 +1342,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.PredictRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java
similarity index 79%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java
index f1641e9d1..21c48f3a3 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java
@@ -1,104 +1,63 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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 PredictRequestOrBuilder
-    extends
+public interface PredictRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.PredictRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Name of the model requested to serve the prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the payload field is set. */ boolean hasPayload(); /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The payload. */ com.google.cloud.automl.v1beta1.ExamplePayload getPayload(); /** - * - * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPayloadOrBuilder(); /** - * - * *
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -123,8 +82,6 @@ public interface PredictRequestOrBuilder
    */
   int getParamsCount();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -147,13 +104,15 @@ public interface PredictRequestOrBuilder
    *
    * map<string, string> params = 3;
    */
-  boolean containsParams(java.lang.String key);
-  /** Use {@link #getParamsMap()} instead. */
+  boolean containsParams(
+      java.lang.String key);
+  /**
+   * Use {@link #getParamsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getParams();
+  java.util.Map
+  getParams();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -176,10 +135,9 @@ public interface PredictRequestOrBuilder
    *
    * map<string, string> params = 3;
    */
-  java.util.Map getParamsMap();
+  java.util.Map
+  getParamsMap();
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -202,10 +160,11 @@ public interface PredictRequestOrBuilder
    *
    * map<string, string> params = 3;
    */
-  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getParamsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -228,5 +187,7 @@ public interface PredictRequestOrBuilder
    *
    * map<string, string> params = 3;
    */
-  java.lang.String getParamsOrThrow(java.lang.String key);
+
+  java.lang.String getParamsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java
similarity index 75%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java
index b4dabf495..f6e3f157d 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1beta1/prediction_service.proto
 
 package com.google.cloud.automl.v1beta1;
 
 /**
- *
- *
  * 
  * Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictResponse} */ -public final class PredictResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PredictResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.PredictResponse) PredictResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PredictResponse.newBuilder() to construct. private PredictResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PredictResponse() { payload_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PredictResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PredictResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,63 +54,55 @@ private PredictResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - payload_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - payload_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.AnnotationPayload.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + payload_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; + payload_.add( + input.readMessage(com.google.cloud.automl.v1beta1.AnnotationPayload.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - com.google.cloud.automl.v1beta1.ExamplePayload.Builder subBuilder = null; - if (preprocessedInput_ != null) { - subBuilder = preprocessedInput_.toBuilder(); - } - preprocessedInput_ = - input.readMessage( - com.google.cloud.automl.v1beta1.ExamplePayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(preprocessedInput_); - preprocessedInput_ = subBuilder.buildPartial(); - } - - break; + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 26: { + com.google.cloud.automl.v1beta1.ExamplePayload.Builder subBuilder = null; + if (preprocessedInput_ != null) { + subBuilder = preprocessedInput_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + preprocessedInput_ = input.readMessage(com.google.cloud.automl.v1beta1.ExamplePayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(preprocessedInput_); + preprocessedInput_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { payload_ = java.util.Collections.unmodifiableList(payload_); @@ -136,38 +111,34 @@ private PredictResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.PredictionServiceProto - .internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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_PredictResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.PredictResponse.class, - com.google.cloud.automl.v1beta1.PredictResponse.Builder.class); + com.google.cloud.automl.v1beta1.PredictResponse.class, com.google.cloud.automl.v1beta1.PredictResponse.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private java.util.List payload_; /** - * - * *
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -180,8 +151,6 @@ public java.util.List getPayl
     return payload_;
   }
   /**
-   *
-   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -190,13 +159,11 @@ public java.util.List getPayl
    * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPayloadOrBuilderList() {
     return payload_;
   }
   /**
-   *
-   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -209,8 +176,6 @@ public int getPayloadCount() {
     return payload_.size();
   }
   /**
-   *
-   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -223,8 +188,6 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index) {
     return payload_.get(index);
   }
   /**
-   *
-   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -233,15 +196,14 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index) {
    * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(int index) {
+  public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
+      int index) {
     return payload_.get(index);
   }
 
   public static final int PREPROCESSED_INPUT_FIELD_NUMBER = 3;
   private com.google.cloud.automl.v1beta1.ExamplePayload preprocessedInput_;
   /**
-   *
-   *
    * 
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -251,7 +213,6 @@ public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBu
    * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; - * * @return Whether the preprocessedInput field is set. */ @java.lang.Override @@ -259,8 +220,6 @@ public boolean hasPreprocessedInput() { return preprocessedInput_ != null; } /** - * - * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -270,18 +229,13 @@ public boolean hasPreprocessedInput() {
    * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; - * * @return The preprocessedInput. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayload getPreprocessedInput() { - return preprocessedInput_ == null - ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() - : preprocessedInput_; + return preprocessedInput_ == null ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : preprocessedInput_; } /** - * - * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -298,23 +252,24 @@ public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPreprocessedIn
   }
 
   public static final int METADATA_FIELD_NUMBER = 2;
-
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.automl.v1beta1.PredictionServiceProto
-                .internal_static_google_cloud_automl_v1beta1_PredictResponse_MetadataEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_MetadataEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
-  private com.google.protobuf.MapField metadata_;
-
-  private com.google.protobuf.MapField internalGetMetadata() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> metadata_;
+  private com.google.protobuf.MapField
+  internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
@@ -323,8 +278,6 @@ public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -343,22 +296,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 2;
    */
+
   @java.lang.Override
-  public boolean containsMetadata(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsMetadata(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /** Use {@link #getMetadataMap()} instead. */
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -378,12 +331,11 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
+
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -403,17 +355,16 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
+
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -433,11 +384,12 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
-  public java.lang.String getMetadataOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+
+  public java.lang.String getMetadataOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -445,7 +397,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -457,12 +408,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < payload_.size(); i++) {
       output.writeMessage(1, payload_.get(i));
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetMetadata(),
+        MetadataDefaultEntryHolder.defaultEntry,
+        2);
     if (preprocessedInput_ != null) {
       output.writeMessage(3, getPreprocessedInput());
     }
@@ -476,20 +432,22 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < payload_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, payload_.get(i));
-    }
-    for (java.util.Map.Entry entry :
-        internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry metadata__ =
-          MetadataDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metadata__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, payload_.get(i));
+    }
+    for (java.util.Map.Entry entry
+         : internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, metadata__);
     }
     if (preprocessedInput_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPreprocessedInput());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getPreprocessedInput());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -499,20 +457,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1beta1.PredictResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1beta1.PredictResponse other =
-        (com.google.cloud.automl.v1beta1.PredictResponse) obj;
+    com.google.cloud.automl.v1beta1.PredictResponse other = (com.google.cloud.automl.v1beta1.PredictResponse) obj;
 
-    if (!getPayloadList().equals(other.getPayloadList())) return false;
+    if (!getPayloadList()
+        .equals(other.getPayloadList())) return false;
     if (hasPreprocessedInput() != other.hasPreprocessedInput()) return false;
     if (hasPreprocessedInput()) {
-      if (!getPreprocessedInput().equals(other.getPreprocessedInput())) return false;
+      if (!getPreprocessedInput()
+          .equals(other.getPreprocessedInput())) return false;
     }
-    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
+    if (!internalGetMetadata().equals(
+        other.internalGetMetadata())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -541,147 +501,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.PredictResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictResponse 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.PredictResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.automl.v1beta1.PredictResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.automl.v1beta1.PredictResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.automl.v1beta1.PredictResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.PredictResponse) com.google.cloud.automl.v1beta1.PredictResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.PredictionServiceProto - .internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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_PredictResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.PredictResponse.class, - com.google.cloud.automl.v1beta1.PredictResponse.Builder.class); + com.google.cloud.automl.v1beta1.PredictResponse.class, com.google.cloud.automl.v1beta1.PredictResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.PredictResponse.newBuilder() @@ -689,17 +642,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPayloadFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -720,9 +673,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.PredictionServiceProto - .internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; } @java.lang.Override @@ -741,8 +694,7 @@ public com.google.cloud.automl.v1beta1.PredictResponse build() { @java.lang.Override public com.google.cloud.automl.v1beta1.PredictResponse buildPartial() { - com.google.cloud.automl.v1beta1.PredictResponse result = - new com.google.cloud.automl.v1beta1.PredictResponse(this); + com.google.cloud.automl.v1beta1.PredictResponse result = new com.google.cloud.automl.v1beta1.PredictResponse(this); int from_bitField0_ = bitField0_; if (payloadBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -768,39 +720,38 @@ public com.google.cloud.automl.v1beta1.PredictResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PredictResponse) { - return mergeFrom((com.google.cloud.automl.v1beta1.PredictResponse) other); + return mergeFrom((com.google.cloud.automl.v1beta1.PredictResponse)other); } else { super.mergeFrom(other); return this; @@ -808,8 +759,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.PredictResponse other) { - if (other == com.google.cloud.automl.v1beta1.PredictResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.PredictResponse.getDefaultInstance()) return this; if (payloadBuilder_ == null) { if (!other.payload_.isEmpty()) { if (payload_.isEmpty()) { @@ -828,10 +778,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.PredictResponse other) payloadBuilder_ = null; payload_ = other.payload_; bitField0_ = (bitField0_ & ~0x00000001); - payloadBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPayloadFieldBuilder() - : null; + payloadBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPayloadFieldBuilder() : null; } else { payloadBuilder_.addAllMessages(other.payload_); } @@ -840,7 +789,8 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.PredictResponse other) if (other.hasPreprocessedInput()) { mergePreprocessedInput(other.getPreprocessedInput()); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -869,29 +819,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List payload_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePayloadIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - payload_ = - new java.util.ArrayList(payload_); + payload_ = new java.util.ArrayList(payload_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.AnnotationPayload, - com.google.cloud.automl.v1beta1.AnnotationPayload.Builder, - com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder> - payloadBuilder_; + com.google.cloud.automl.v1beta1.AnnotationPayload, com.google.cloud.automl.v1beta1.AnnotationPayload.Builder, com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder> payloadBuilder_; /** - * - * *
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -907,8 +849,6 @@ public java.util.List getPayl
       }
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -924,8 +864,6 @@ public int getPayloadCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -941,8 +879,6 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -950,7 +886,8 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public Builder setPayload(int index, com.google.cloud.automl.v1beta1.AnnotationPayload value) {
+    public Builder setPayload(
+        int index, com.google.cloud.automl.v1beta1.AnnotationPayload value) {
       if (payloadBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -964,8 +901,6 @@ public Builder setPayload(int index, com.google.cloud.automl.v1beta1.AnnotationP
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -985,8 +920,6 @@ public Builder setPayload(
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1008,8 +941,6 @@ public Builder addPayload(com.google.cloud.automl.v1beta1.AnnotationPayload valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1017,7 +948,8 @@ public Builder addPayload(com.google.cloud.automl.v1beta1.AnnotationPayload valu
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public Builder addPayload(int index, com.google.cloud.automl.v1beta1.AnnotationPayload value) {
+    public Builder addPayload(
+        int index, com.google.cloud.automl.v1beta1.AnnotationPayload value) {
       if (payloadBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1031,8 +963,6 @@ public Builder addPayload(int index, com.google.cloud.automl.v1beta1.AnnotationP
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1052,8 +982,6 @@ public Builder addPayload(
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1073,8 +1001,6 @@ public Builder addPayload(
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1086,7 +1012,8 @@ public Builder addAllPayload(
         java.lang.Iterable values) {
       if (payloadBuilder_ == null) {
         ensurePayloadIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, payload_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, payload_);
         onChanged();
       } else {
         payloadBuilder_.addAllMessages(values);
@@ -1094,8 +1021,6 @@ public Builder addAllPayload(
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1114,8 +1039,6 @@ public Builder clearPayload() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1134,8 +1057,6 @@ public Builder removePayload(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1143,12 +1064,11 @@ public Builder removePayload(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder getPayloadBuilder(int index) {
+    public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder getPayloadBuilder(
+        int index) {
       return getPayloadFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1159,14 +1079,11 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder getPayloadBuild
     public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
         int index) {
       if (payloadBuilder_ == null) {
-        return payload_.get(index);
-      } else {
+        return payload_.get(index);  } else {
         return payloadBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1174,8 +1091,8 @@ public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBu
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public java.util.List
-        getPayloadOrBuilderList() {
+    public java.util.List 
+         getPayloadOrBuilderList() {
       if (payloadBuilder_ != null) {
         return payloadBuilder_.getMessageOrBuilderList();
       } else {
@@ -1183,8 +1100,6 @@ public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBu
       }
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1193,12 +1108,10 @@ public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBu
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
     public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuilder() {
-      return getPayloadFieldBuilder()
-          .addBuilder(com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance());
+      return getPayloadFieldBuilder().addBuilder(
+          com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1206,14 +1119,12 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuild
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuilder(int index) {
-      return getPayloadFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance());
+    public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuilder(
+        int index) {
+      return getPayloadFieldBuilder().addBuilder(
+          index, com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1221,23 +1132,20 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuild
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public java.util.List
-        getPayloadBuilderList() {
+    public java.util.List 
+         getPayloadBuilderList() {
       return getPayloadFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.automl.v1beta1.AnnotationPayload,
-            com.google.cloud.automl.v1beta1.AnnotationPayload.Builder,
-            com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder>
+        com.google.cloud.automl.v1beta1.AnnotationPayload, com.google.cloud.automl.v1beta1.AnnotationPayload.Builder, com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder> 
         getPayloadFieldBuilder() {
       if (payloadBuilder_ == null) {
-        payloadBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.automl.v1beta1.AnnotationPayload,
-                com.google.cloud.automl.v1beta1.AnnotationPayload.Builder,
-                com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder>(
-                payload_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        payloadBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.automl.v1beta1.AnnotationPayload, com.google.cloud.automl.v1beta1.AnnotationPayload.Builder, com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder>(
+                payload_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         payload_ = null;
       }
       return payloadBuilder_;
@@ -1245,13 +1153,8 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuild
 
     private com.google.cloud.automl.v1beta1.ExamplePayload preprocessedInput_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1beta1.ExamplePayload,
-            com.google.cloud.automl.v1beta1.ExamplePayload.Builder,
-            com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>
-        preprocessedInputBuilder_;
+        com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> preprocessedInputBuilder_;
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1261,15 +1164,12 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuild
      * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; - * * @return Whether the preprocessedInput field is set. */ public boolean hasPreprocessedInput() { return preprocessedInputBuilder_ != null || preprocessedInput_ != null; } /** - * - * *
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1279,21 +1179,16 @@ public boolean hasPreprocessedInput() {
      * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; - * * @return The preprocessedInput. */ public com.google.cloud.automl.v1beta1.ExamplePayload getPreprocessedInput() { if (preprocessedInputBuilder_ == null) { - return preprocessedInput_ == null - ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() - : preprocessedInput_; + return preprocessedInput_ == null ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : preprocessedInput_; } else { return preprocessedInputBuilder_.getMessage(); } } /** - * - * *
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1318,8 +1213,6 @@ public Builder setPreprocessedInput(com.google.cloud.automl.v1beta1.ExamplePaylo
       return this;
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1342,8 +1235,6 @@ public Builder setPreprocessedInput(
       return this;
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1358,9 +1249,7 @@ public Builder mergePreprocessedInput(com.google.cloud.automl.v1beta1.ExamplePay
       if (preprocessedInputBuilder_ == null) {
         if (preprocessedInput_ != null) {
           preprocessedInput_ =
-              com.google.cloud.automl.v1beta1.ExamplePayload.newBuilder(preprocessedInput_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.automl.v1beta1.ExamplePayload.newBuilder(preprocessedInput_).mergeFrom(value).buildPartial();
         } else {
           preprocessedInput_ = value;
         }
@@ -1372,8 +1261,6 @@ public Builder mergePreprocessedInput(com.google.cloud.automl.v1beta1.ExamplePay
       return this;
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1396,8 +1283,6 @@ public Builder clearPreprocessedInput() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1409,13 +1294,11 @@ public Builder clearPreprocessedInput() {
      * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3;
      */
     public com.google.cloud.automl.v1beta1.ExamplePayload.Builder getPreprocessedInputBuilder() {
-
+      
       onChanged();
       return getPreprocessedInputFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1430,14 +1313,11 @@ public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPreprocessedIn
       if (preprocessedInputBuilder_ != null) {
         return preprocessedInputBuilder_.getMessageOrBuilder();
       } else {
-        return preprocessedInput_ == null
-            ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance()
-            : preprocessedInput_;
+        return preprocessedInput_ == null ?
+            com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : preprocessedInput_;
       }
     }
     /**
-     *
-     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1449,38 +1329,35 @@ public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPreprocessedIn
      * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1beta1.ExamplePayload,
-            com.google.cloud.automl.v1beta1.ExamplePayload.Builder,
-            com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>
+        com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> 
         getPreprocessedInputFieldBuilder() {
       if (preprocessedInputBuilder_ == null) {
-        preprocessedInputBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.automl.v1beta1.ExamplePayload,
-                com.google.cloud.automl.v1beta1.ExamplePayload.Builder,
-                com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>(
-                getPreprocessedInput(), getParentForChildren(), isClean());
+        preprocessedInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>(
+                getPreprocessedInput(),
+                getParentForChildren(),
+                isClean());
         preprocessedInput_ = null;
       }
       return preprocessedInputBuilder_;
     }
 
-    private com.google.protobuf.MapField metadata_;
-
-    private com.google.protobuf.MapField internalGetMetadata() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> metadata_;
+    private com.google.protobuf.MapField
+    internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableMetadata() {
-      onChanged();
-      ;
+    internalGetMutableMetadata() {
+      onChanged();;
       if (metadata_ == null) {
-        metadata_ =
-            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ = com.google.protobuf.MapField.newMapField(
+            MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -1492,8 +1369,6 @@ public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1512,22 +1387,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 2;
      */
+
     @java.lang.Override
-    public boolean containsMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /** Use {@link #getMetadataMap()} instead. */
+    /**
+     * Use {@link #getMetadataMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1547,12 +1422,11 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
+
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1572,17 +1446,16 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
+
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1602,11 +1475,12 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
-    public java.lang.String getMetadataOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+
+    public java.lang.String getMetadataOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1614,12 +1488,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap().clear();
+      internalGetMutableMetadata().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1638,21 +1511,23 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 2;
      */
-    public Builder removeMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().remove(key);
+
+    public Builder removeMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMetadata() {
+    public java.util.Map
+    getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1671,19 +1546,16 @@ public java.util.Map getMutableMetadata() {
      *
      * map<string, string> metadata = 2;
      */
-    public Builder putMetadata(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().put(key, value);
+    public Builder putMetadata(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1702,13 +1574,16 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> metadata = 2;
      */
-    public Builder putAllMetadata(java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap().putAll(values);
+
+    public Builder putAllMetadata(
+        java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1718,12 +1593,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.PredictResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictResponse)
   private static final com.google.cloud.automl.v1beta1.PredictResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.PredictResponse();
   }
@@ -1732,16 +1607,16 @@ public static com.google.cloud.automl.v1beta1.PredictResponse getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public PredictResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new PredictResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public PredictResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new PredictResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1756,4 +1631,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.PredictResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java
similarity index 86%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java
index e5e695268..1290833ce 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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 PredictResponseOrBuilder
-    extends
+public interface PredictResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.PredictResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -33,10 +15,9 @@ public interface PredictResponseOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
    */
-  java.util.List getPayloadList();
+  java.util.List 
+      getPayloadList();
   /**
-   *
-   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -46,8 +27,6 @@ public interface PredictResponseOrBuilder
    */
   com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index);
   /**
-   *
-   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -57,8 +36,6 @@ public interface PredictResponseOrBuilder
    */
   int getPayloadCount();
   /**
-   *
-   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -66,11 +43,9 @@ public interface PredictResponseOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
    */
-  java.util.List
+  java.util.List 
       getPayloadOrBuilderList();
   /**
-   *
-   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -78,11 +53,10 @@ public interface PredictResponseOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
    */
-  com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(int index);
+  com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -92,13 +66,10 @@ public interface PredictResponseOrBuilder
    * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; - * * @return Whether the preprocessedInput field is set. */ boolean hasPreprocessedInput(); /** - * - * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -108,13 +79,10 @@ public interface PredictResponseOrBuilder
    * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; - * * @return The preprocessedInput. */ com.google.cloud.automl.v1beta1.ExamplePayload getPreprocessedInput(); /** - * - * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -128,8 +96,6 @@ public interface PredictResponseOrBuilder
   com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPreprocessedInputOrBuilder();
 
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -150,8 +116,6 @@ public interface PredictResponseOrBuilder
    */
   int getMetadataCount();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -170,13 +134,15 @@ public interface PredictResponseOrBuilder
    *
    * map<string, string> metadata = 2;
    */
-  boolean containsMetadata(java.lang.String key);
-  /** Use {@link #getMetadataMap()} instead. */
+  boolean containsMetadata(
+      java.lang.String key);
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMetadata();
+  java.util.Map
+  getMetadata();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -195,10 +161,9 @@ public interface PredictResponseOrBuilder
    *
    * map<string, string> metadata = 2;
    */
-  java.util.Map getMetadataMap();
+  java.util.Map
+  getMetadataMap();
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -217,10 +182,11 @@ public interface PredictResponseOrBuilder
    *
    * map<string, string> metadata = 2;
    */
-  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getMetadataOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -239,5 +205,7 @@ public interface PredictResponseOrBuilder
    *
    * map<string, string> metadata = 2;
    */
-  java.lang.String getMetadataOrThrow(java.lang.String key);
+
+  java.lang.String getMetadataOrThrow(
+      java.lang.String key);
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java
new file mode 100644
index 000000000..4a4ad5f3d
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java
@@ -0,0 +1,207 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1beta1/prediction_service.proto
+
+package com.google.cloud.automl.v1beta1;
+
+public final class PredictionServiceProto {
+  private PredictionServiceProto() {}
+  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_PredictRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_PredictRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_PredictRequest_ParamsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_PredictResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    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;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n4google/cloud/automl/v1beta1/prediction" +
+      "_service.proto\022\033google.cloud.automl.v1be" +
+      "ta1\032\034google/api/annotations.proto\032\027googl" +
+      "e/api/client.proto\032\037google/api/field_beh" +
+      "avior.proto\032\031google/api/resource.proto\0324" +
+      "google/cloud/automl/v1beta1/annotation_p" +
+      "ayload.proto\032,google/cloud/automl/v1beta" +
+      "1/data_items.proto\032$google/cloud/automl/" +
+      "v1beta1/io.proto\032,google/cloud/automl/v1" +
+      "beta1/operations.proto\032#google/longrunni" +
+      "ng/operations.proto\"\376\001\n\016PredictRequest\0221" +
+      "\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis." +
+      "com/Model\022A\n\007payload\030\002 \001(\0132+.google.clou" +
+      "d.automl.v1beta1.ExamplePayloadB\003\340A\002\022G\n\006" +
+      "params\030\003 \003(\01327.google.cloud.automl.v1bet" +
+      "a1.PredictRequest.ParamsEntry\032-\n\013ParamsE" +
+      "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\002\n" +
+      "\017PredictResponse\022?\n\007payload\030\001 \003(\0132..goog" +
+      "le.cloud.automl.v1beta1.AnnotationPayloa" +
+      "d\022G\n\022preprocessed_input\030\003 \001(\0132+.google.c" +
+      "loud.automl.v1beta1.ExamplePayload\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\"\356\002\n\023BatchPredictRequest\0221\n\004name\030\001 \001(\tB" +
+      "#\340A\002\372A\035\n\033automl.googleapis.com/Model\022O\n\014" +
+      "input_config\030\003 \001(\01324.google.cloud.automl" +
+      ".v1beta1.BatchPredictInputConfigB\003\340A\002\022Q\n" +
+      "\routput_config\030\004 \001(\01325.google.cloud.auto" +
+      "ml.v1beta1.BatchPredictOutputConfigB\003\340A\002" +
+      "\022Q\n\006params\030\005 \003(\0132<.google.cloud.automl.v" +
+      "1beta1.BatchPredictRequest.ParamsEntryB\003" +
+      "\340A\002\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" +
+      "\030\002 \001(\t:\0028\001\"\226\001\n\022BatchPredictResult\022O\n\010met" +
+      "adata\030\001 \003(\0132=.google.cloud.automl.v1beta" +
+      "1.BatchPredictResult.MetadataEntry\032/\n\rMe" +
+      "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" +
+      "\0028\0012\236\004\n\021PredictionService\022\276\001\n\007Predict\022+." +
+      "google.cloud.automl.v1beta1.PredictReque" +
+      "st\032,.google.cloud.automl.v1beta1.Predict" +
+      "Response\"X\202\323\344\223\002<\"7/v1beta1/{name=project" +
+      "s/*/locations/*/models/*}:predict:\001*\332A\023n" +
+      "ame,payload,params\022\374\001\n\014BatchPredict\0220.go" +
+      "ogle.cloud.automl.v1beta1.BatchPredictRe" +
+      "quest\032\035.google.longrunning.Operation\"\232\001\202" +
+      "\323\344\223\002A\"
      * Output only. Root Mean Squared Error (RMSE).
      * 
* * float root_mean_squared_error = 1; - * * @return The rootMeanSquaredError. */ float getRootMeanSquaredError(); /** - * - * *
      * Output only. Mean Absolute Error (MAE).
      * 
* * float mean_absolute_error = 2; - * * @return The meanAbsoluteError. */ float getMeanAbsoluteError(); /** - * - * *
      * Output only. Mean absolute percentage error. Only set if all ground truth
      * values are are positive.
      * 
* * float mean_absolute_percentage_error = 3; - * * @return The meanAbsolutePercentageError. */ float getMeanAbsolutePercentageError(); /** - * - * *
      * Output only. R squared.
      * 
* * float r_squared = 4; - * * @return The rSquared. */ float getRSquared(); /** - * - * *
      * Output only. Root mean squared log error.
      * 
* * float root_mean_squared_log_error = 5; - * * @return The rootMeanSquaredLogError. */ float getRootMeanSquaredLogError(); } /** - * - * *
    * Metrics for regression problems.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.RegressionEvaluationMetrics} */ - public static final class RegressionEvaluationMetrics - extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + private static final long serialVersionUID = 0L; // Use RegressionEvaluationMetrics.newBuilder() to construct. private RegressionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RegressionEvaluationMetrics() {} + private RegressionEvaluationMetrics() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RegressionEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RegressionEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -149,77 +118,71 @@ private RegressionEvaluationMetrics( 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; - } - case 45: - { - rootMeanSquaredLogError_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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; + } + case 45: { + + rootMeanSquaredLogError_ = 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); + 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; + 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 + 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); + 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; - * * @return The rootMeanSquaredError. */ @java.lang.Override @@ -230,14 +193,11 @@ public float getRootMeanSquaredError() { public static final int MEAN_ABSOLUTE_ERROR_FIELD_NUMBER = 2; private float meanAbsoluteError_; /** - * - * *
      * Output only. Mean Absolute Error (MAE).
      * 
* * float mean_absolute_error = 2; - * * @return The meanAbsoluteError. */ @java.lang.Override @@ -248,15 +208,12 @@ public float getMeanAbsoluteError() { 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; - * * @return The meanAbsolutePercentageError. */ @java.lang.Override @@ -267,14 +224,11 @@ public float getMeanAbsolutePercentageError() { public static final int R_SQUARED_FIELD_NUMBER = 4; private float rSquared_; /** - * - * *
      * Output only. R squared.
      * 
* * float r_squared = 4; - * * @return The rSquared. */ @java.lang.Override @@ -285,14 +239,11 @@ public float getRSquared() { public static final int ROOT_MEAN_SQUARED_LOG_ERROR_FIELD_NUMBER = 5; private float rootMeanSquaredLogError_; /** - * - * *
      * Output only. Root mean squared log error.
      * 
* * float root_mean_squared_log_error = 5; - * * @return The rootMeanSquaredLogError. */ @java.lang.Override @@ -301,7 +252,6 @@ public float getRootMeanSquaredLogError() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (rootMeanSquaredError_ != 0F) { output.writeFloat(1, rootMeanSquaredError_); } @@ -339,20 +290,24 @@ public int getSerializedSize() { size = 0; if (rootMeanSquaredError_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, rootMeanSquaredError_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, rootMeanSquaredError_); } if (meanAbsoluteError_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, meanAbsoluteError_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, meanAbsoluteError_); } if (meanAbsolutePercentageError_ != 0F) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize(3, meanAbsolutePercentageError_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, meanAbsolutePercentageError_); } if (rSquared_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rSquared_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, rSquared_); } if (rootMeanSquaredLogError_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, rootMeanSquaredLogError_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, rootMeanSquaredLogError_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -362,25 +317,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics)) { + 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; + 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; + != java.lang.Float.floatToIntBits( + other.getRootMeanSquaredError())) return false; if (java.lang.Float.floatToIntBits(getMeanAbsoluteError()) - != java.lang.Float.floatToIntBits(other.getMeanAbsoluteError())) return false; + != java.lang.Float.floatToIntBits( + other.getMeanAbsoluteError())) return false; if (java.lang.Float.floatToIntBits(getMeanAbsolutePercentageError()) - != java.lang.Float.floatToIntBits(other.getMeanAbsolutePercentageError())) return false; + != java.lang.Float.floatToIntBits( + other.getMeanAbsolutePercentageError())) return false; if (java.lang.Float.floatToIntBits(getRSquared()) - != java.lang.Float.floatToIntBits(other.getRSquared())) return false; + != java.lang.Float.floatToIntBits( + other.getRSquared())) return false; if (java.lang.Float.floatToIntBits(getRootMeanSquaredLogError()) - != java.lang.Float.floatToIntBits(other.getRootMeanSquaredLogError())) return false; + != java.lang.Float.floatToIntBits( + other.getRootMeanSquaredLogError())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -393,115 +351,107 @@ public int hashCode() { 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getRootMeanSquaredError()); hash = (37 * hash) + MEAN_ABSOLUTE_ERROR_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAbsoluteError()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getMeanAbsolutePercentageError()); hash = (37 * hash) + R_SQUARED_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRSquared()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRSquared()); hash = (37 * hash) + ROOT_MEAN_SQUARED_LOG_ERROR_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRootMeanSquaredLogError()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRootMeanSquaredLogError()); 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 { + 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 { + 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 { + 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 { + 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 { + 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 { + 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) + 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 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) + 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 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) + 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); + 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -511,50 +461,44 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -572,22 +516,19 @@ public Builder clear() { } @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; + 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(); + 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(); + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -595,10 +536,8 @@ public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetri } @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); + 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_; @@ -612,55 +551,46 @@ public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetri public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -691,14 +621,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -708,16 +635,13 @@ public Builder mergeFrom( return this; } - private float rootMeanSquaredError_; + private float rootMeanSquaredError_ ; /** - * - * *
        * Output only. Root Mean Squared Error (RMSE).
        * 
* * float root_mean_squared_error = 1; - * * @return The rootMeanSquaredError. */ @java.lang.Override @@ -725,51 +649,42 @@ public float getRootMeanSquaredError() { return rootMeanSquaredError_; } /** - * - * *
        * Output only. Root Mean Squared Error (RMSE).
        * 
* * float root_mean_squared_error = 1; - * * @param value The rootMeanSquaredError to set. * @return This builder for chaining. */ public Builder setRootMeanSquaredError(float value) { - + rootMeanSquaredError_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Root Mean Squared Error (RMSE).
        * 
* * float root_mean_squared_error = 1; - * * @return This builder for chaining. */ public Builder clearRootMeanSquaredError() { - + rootMeanSquaredError_ = 0F; onChanged(); return this; } - private float meanAbsoluteError_; + private float meanAbsoluteError_ ; /** - * - * *
        * Output only. Mean Absolute Error (MAE).
        * 
* * float mean_absolute_error = 2; - * * @return The meanAbsoluteError. */ @java.lang.Override @@ -777,52 +692,43 @@ public float getMeanAbsoluteError() { return meanAbsoluteError_; } /** - * - * *
        * Output only. Mean Absolute Error (MAE).
        * 
* * float mean_absolute_error = 2; - * * @param value The meanAbsoluteError to set. * @return This builder for chaining. */ public Builder setMeanAbsoluteError(float value) { - + meanAbsoluteError_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Mean Absolute Error (MAE).
        * 
* * float mean_absolute_error = 2; - * * @return This builder for chaining. */ public Builder clearMeanAbsoluteError() { - + meanAbsoluteError_ = 0F; onChanged(); return this; } - private float meanAbsolutePercentageError_; + 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; - * * @return The meanAbsolutePercentageError. */ @java.lang.Override @@ -830,53 +736,44 @@ 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; - * * @param value The meanAbsolutePercentageError to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearMeanAbsolutePercentageError() { - + meanAbsolutePercentageError_ = 0F; onChanged(); return this; } - private float rSquared_; + private float rSquared_ ; /** - * - * *
        * Output only. R squared.
        * 
* * float r_squared = 4; - * * @return The rSquared. */ @java.lang.Override @@ -884,51 +781,42 @@ public float getRSquared() { return rSquared_; } /** - * - * *
        * Output only. R squared.
        * 
* * float r_squared = 4; - * * @param value The rSquared to set. * @return This builder for chaining. */ public Builder setRSquared(float value) { - + rSquared_ = value; onChanged(); return this; } /** - * - * *
        * Output only. R squared.
        * 
* * float r_squared = 4; - * * @return This builder for chaining. */ public Builder clearRSquared() { - + rSquared_ = 0F; onChanged(); return this; } - private float rootMeanSquaredLogError_; + private float rootMeanSquaredLogError_ ; /** - * - * *
        * Output only. Root mean squared log error.
        * 
* * float root_mean_squared_log_error = 5; - * * @return The rootMeanSquaredLogError. */ @java.lang.Override @@ -936,41 +824,34 @@ public float getRootMeanSquaredLogError() { return rootMeanSquaredLogError_; } /** - * - * *
        * Output only. Root mean squared log error.
        * 
* * float root_mean_squared_log_error = 5; - * * @param value The rootMeanSquaredLogError to set. * @return This builder for chaining. */ public Builder setRootMeanSquaredLogError(float value) { - + rootMeanSquaredLogError_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Root mean squared log error.
        * 
* * float root_mean_squared_log_error = 5; - * * @return This builder for chaining. */ public Builder clearRootMeanSquaredLogError() { - + rootMeanSquaredLogError_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -983,33 +864,30 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics(); } - public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics - getDefaultInstance() { + 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); - } - }; + 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; @@ -1021,57 +899,51 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics - getDefaultInstanceForType() { + 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_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() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor 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\"\273\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(\002\022#\n\033root_mean_squared_" - + "log_error\030\005 \001(\002B\264\001\n\037com.google.cloud.aut" - + "oml.v1beta1B\017RegressionProtoZAgoogle.gol" - + "ang.org/genproto/googleapis/cloud/automl" - + "/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1" - + "beta1\352\002\036Google::Cloud::AutoML::V1beta1b\006" - + "proto3" + "\n,google/cloud/automl/v1beta1/regression" + + ".proto\022\033google.cloud.automl.v1beta1\032\034goo" + + "gle/api/annotations.proto\"\273\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(\002\022#\n\033root_mean_squared_" + + "log_error\030\005 \001(\002B\264\001\n\037com.google.cloud.aut" + + "oml.v1beta1B\017RegressionProtoZAgoogle.gol" + + "ang.org/genproto/googleapis/cloud/automl" + + "/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1" + + "beta1\352\002\036Google::Cloud::AutoML::V1beta1b\006" + + "proto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); 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", - "RootMeanSquaredLogError", - }); + 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", "RootMeanSquaredLogError", }); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java similarity index 79% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java index c2bf94b96..debdfb1a6 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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(); @@ -44,15 +26,16 @@ private Row() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Row(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Row( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,38 +55,38 @@ private Row( 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 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columnSpecIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - 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; + columnSpecIds_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + values_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { columnSpecIds_ = columnSpecIds_.getUnmodifiableView(); @@ -115,27 +98,22 @@ private Row( 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; + 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 + 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); + 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
@@ -147,15 +125,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string column_spec_ids = 2; - * * @return A list containing the columnSpecIds. */ - public com.google.protobuf.ProtocolStringList getColumnSpecIdsList() { + 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
@@ -167,15 +143,12 @@ public com.google.protobuf.ProtocolStringList getColumnSpecIdsList() {
    * 
* * repeated string column_spec_ids = 2; - * * @return The count of columnSpecIds. */ 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
@@ -187,7 +160,6 @@ public int getColumnSpecIdsCount() {
    * 
* * repeated string column_spec_ids = 2; - * * @param index The index of the element to return. * @return The columnSpecIds at the given index. */ @@ -195,8 +167,6 @@ 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
@@ -208,19 +178,17 @@ public java.lang.String getColumnSpecIds(int index) {
    * 
* * repeated string column_spec_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the columnSpecIds at the given index. */ - public com.google.protobuf.ByteString getColumnSpecIdsBytes(int index) { + 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
@@ -236,8 +204,6 @@ 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
@@ -249,12 +215,11 @@ public java.util.List getValuesList() {
    * repeated .google.protobuf.Value values = 3;
    */
   @java.lang.Override
-  public java.util.List getValuesOrBuilderList() {
+  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
@@ -270,8 +235,6 @@ 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
@@ -287,8 +250,6 @@ 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
@@ -300,12 +261,12 @@ public com.google.protobuf.Value getValues(int index) {
    * repeated .google.protobuf.Value values = 3;
    */
   @java.lang.Override
-  public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(int index) {
+  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;
@@ -317,7 +278,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  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));
     }
@@ -342,7 +304,8 @@ public int getSerializedSize() {
       size += 1 * getColumnSpecIdsList().size();
     }
     for (int i = 0; i < values_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, values_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, values_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -352,15 +315,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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 (!getColumnSpecIdsList()
+        .equals(other.getColumnSpecIdsList())) return false;
+    if (!getValuesList()
+        .equals(other.getValuesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -385,126 +350,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.Row parseFrom(java.nio.ByteBuffer data)
+  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)
+      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)
+  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)
+      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);
+    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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+    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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.Row.class, com.google.cloud.automl.v1beta1.Row.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.Row.newBuilder() @@ -512,17 +469,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getValuesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -538,9 +495,9 @@ public Builder clear() { } @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; + 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 @@ -583,39 +540,38 @@ public com.google.cloud.automl.v1beta1.Row buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.Row)other); } else { super.mergeFrom(other); return this; @@ -652,10 +608,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Row other) { valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000002); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValuesFieldBuilder() - : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -689,21 +644,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList columnSpecIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + 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
@@ -715,15 +665,13 @@ private void ensureColumnSpecIdsIsMutable() {
      * 
* * repeated string column_spec_ids = 2; - * * @return A list containing the columnSpecIds. */ - public com.google.protobuf.ProtocolStringList getColumnSpecIdsList() { + 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
@@ -735,15 +683,12 @@ public com.google.protobuf.ProtocolStringList getColumnSpecIdsList() {
      * 
* * repeated string column_spec_ids = 2; - * * @return The count of columnSpecIds. */ 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
@@ -755,7 +700,6 @@ public int getColumnSpecIdsCount() {
      * 
* * repeated string column_spec_ids = 2; - * * @param index The index of the element to return. * @return The columnSpecIds at the given index. */ @@ -763,8 +707,6 @@ 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
@@ -776,16 +718,14 @@ public java.lang.String getColumnSpecIds(int index) {
      * 
* * repeated string column_spec_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the columnSpecIds at the given index. */ - public com.google.protobuf.ByteString getColumnSpecIdsBytes(int index) { + 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
@@ -797,23 +737,21 @@ public com.google.protobuf.ByteString getColumnSpecIdsBytes(int index) {
      * 
* * repeated string column_spec_ids = 2; - * * @param index The index to set the value at. * @param value The columnSpecIds to set. * @return This builder for chaining. */ - public Builder setColumnSpecIds(int index, java.lang.String value) { + public Builder setColumnSpecIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureColumnSpecIdsIsMutable(); + 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
@@ -825,22 +763,20 @@ public Builder setColumnSpecIds(int index, java.lang.String value) {
      * 
* * repeated string column_spec_ids = 2; - * * @param value The columnSpecIds to add. * @return This builder for chaining. */ - public Builder addColumnSpecIds(java.lang.String value) { + public Builder addColumnSpecIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureColumnSpecIdsIsMutable(); + 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
@@ -852,19 +788,18 @@ public Builder addColumnSpecIds(java.lang.String value) {
      * 
* * repeated string column_spec_ids = 2; - * * @param values The columnSpecIds to add. * @return This builder for chaining. */ - public Builder addAllColumnSpecIds(java.lang.Iterable values) { + public Builder addAllColumnSpecIds( + java.lang.Iterable values) { ensureColumnSpecIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnSpecIds_); + 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
@@ -876,7 +811,6 @@ public Builder addAllColumnSpecIds(java.lang.Iterable values)
      * 
* * repeated string column_spec_ids = 2; - * * @return This builder for chaining. */ public Builder clearColumnSpecIds() { @@ -886,8 +820,6 @@ public Builder clearColumnSpecIds() { 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
@@ -899,39 +831,34 @@ public Builder clearColumnSpecIds() {
      * 
* * repeated string column_spec_ids = 2; - * * @param value The bytes of the columnSpecIds to add. * @return This builder for chaining. */ - public Builder addColumnSpecIdsBytes(com.google.protobuf.ByteString value) { + public Builder addColumnSpecIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureColumnSpecIdsIsMutable(); columnSpecIds_.add(value); onChanged(); return this; } - private java.util.List values_ = java.util.Collections.emptyList(); - + 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_; + 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
@@ -950,8 +877,6 @@ public 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
@@ -970,8 +895,6 @@ public 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
@@ -990,8 +913,6 @@ public 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
@@ -1002,7 +923,8 @@ public com.google.protobuf.Value getValues(int index) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder setValues(int index, com.google.protobuf.Value value) {
+    public Builder setValues(
+        int index, com.google.protobuf.Value value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1016,8 +938,6 @@ public Builder setValues(int index, com.google.protobuf.Value 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
@@ -1028,7 +948,8 @@ public Builder setValues(int index, com.google.protobuf.Value value) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder setValues(int index, com.google.protobuf.Value.Builder builderForValue) {
+    public Builder setValues(
+        int index, com.google.protobuf.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.set(index, builderForValue.build());
@@ -1039,8 +960,6 @@ public Builder setValues(int index, com.google.protobuf.Value.Builder builderFor
       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
@@ -1065,8 +984,6 @@ public Builder addValues(com.google.protobuf.Value 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
@@ -1077,7 +994,8 @@ public Builder addValues(com.google.protobuf.Value value) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder addValues(int index, com.google.protobuf.Value value) {
+    public Builder addValues(
+        int index, com.google.protobuf.Value value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1091,8 +1009,6 @@ public Builder addValues(int index, com.google.protobuf.Value 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
@@ -1103,7 +1019,8 @@ public Builder addValues(int index, com.google.protobuf.Value value) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder addValues(com.google.protobuf.Value.Builder builderForValue) {
+    public Builder addValues(
+        com.google.protobuf.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(builderForValue.build());
@@ -1114,8 +1031,6 @@ public Builder addValues(com.google.protobuf.Value.Builder builderForValue) {
       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
@@ -1126,7 +1041,8 @@ public Builder addValues(com.google.protobuf.Value.Builder builderForValue) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder addValues(int index, com.google.protobuf.Value.Builder builderForValue) {
+    public Builder addValues(
+        int index, com.google.protobuf.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(index, builderForValue.build());
@@ -1137,8 +1053,6 @@ public Builder addValues(int index, com.google.protobuf.Value.Builder builderFor
       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
@@ -1149,10 +1063,12 @@ public Builder addValues(int index, com.google.protobuf.Value.Builder builderFor
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder addAllValues(java.lang.Iterable values) {
+    public Builder addAllValues(
+        java.lang.Iterable values) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, values_);
         onChanged();
       } else {
         valuesBuilder_.addAllMessages(values);
@@ -1160,8 +1076,6 @@ public Builder addAllValues(java.lang.Iterable
      * 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
@@ -1183,8 +1097,6 @@ public Builder clearValues() {
       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
@@ -1206,8 +1118,6 @@ public Builder removeValues(int 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
@@ -1218,12 +1128,11 @@ public Builder removeValues(int index) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public com.google.protobuf.Value.Builder getValuesBuilder(int index) {
+    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
@@ -1234,16 +1143,14 @@ public com.google.protobuf.Value.Builder getValuesBuilder(int index) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(int index) {
+    public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
+        int index) {
       if (valuesBuilder_ == null) {
-        return values_.get(index);
-      } else {
+        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
@@ -1254,7 +1161,8 @@ public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(int index) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public java.util.List getValuesOrBuilderList() {
+    public java.util.List 
+         getValuesOrBuilderList() {
       if (valuesBuilder_ != null) {
         return valuesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1262,8 +1170,6 @@ public java.util.List getValuesOrB
       }
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1275,11 +1181,10 @@ public java.util.List getValuesOrB
      * repeated .google.protobuf.Value values = 3;
      */
     public com.google.protobuf.Value.Builder addValuesBuilder() {
-      return getValuesFieldBuilder().addBuilder(com.google.protobuf.Value.getDefaultInstance());
+      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
@@ -1290,13 +1195,12 @@ public com.google.protobuf.Value.Builder addValuesBuilder() {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public com.google.protobuf.Value.Builder addValuesBuilder(int index) {
-      return getValuesFieldBuilder()
-          .addBuilder(index, com.google.protobuf.Value.getDefaultInstance());
+    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
@@ -1307,29 +1211,27 @@ public com.google.protobuf.Value.Builder addValuesBuilder(int index) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public java.util.List getValuesBuilderList() {
+    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>
+        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());
+        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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1339,12 +1241,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -1353,16 +1255,16 @@ 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);
-        }
-      };
+  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;
@@ -1377,4 +1279,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.Row getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java
similarity index 81%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java
index 7649c5f78..8a22570f1 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+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
@@ -37,13 +19,11 @@ public interface RowOrBuilder
    * 
* * repeated string column_spec_ids = 2; - * * @return A list containing the columnSpecIds. */ - java.util.List getColumnSpecIdsList(); + 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
@@ -55,13 +35,10 @@ public interface RowOrBuilder
    * 
* * repeated string column_spec_ids = 2; - * * @return The count of columnSpecIds. */ 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
@@ -73,14 +50,11 @@ public interface RowOrBuilder
    * 
* * repeated string column_spec_ids = 2; - * * @param index The index of the element to return. * @return The columnSpecIds at the given index. */ 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
@@ -92,15 +66,13 @@ public interface RowOrBuilder
    * 
* * repeated string column_spec_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the columnSpecIds at the given index. */ - com.google.protobuf.ByteString getColumnSpecIdsBytes(int index); + 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
@@ -111,10 +83,9 @@ public interface RowOrBuilder
    *
    * repeated .google.protobuf.Value values = 3;
    */
-  java.util.List getValuesList();
+  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
@@ -127,8 +98,6 @@ public interface RowOrBuilder
    */
   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
@@ -141,8 +110,6 @@ public interface RowOrBuilder
    */
   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
@@ -153,10 +120,9 @@ public interface RowOrBuilder
    *
    * repeated .google.protobuf.Value values = 3;
    */
-  java.util.List getValuesOrBuilderList();
+  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
@@ -167,5 +133,6 @@ public interface RowOrBuilder
    *
    * repeated .google.protobuf.Value values = 3;
    */
-  com.google.protobuf.ValueOrBuilder getValuesOrBuilder(int index);
+  com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java
similarity index 72%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java
index 4e89a16ee..7965e2ec2 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StringStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StringStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,33 +54,29 @@ private StringStats( 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + topUnigramStats_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { topUnigramStats_ = java.util.Collections.unmodifiableList(topUnigramStats_); @@ -106,99 +85,85 @@ private StringStats( 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; + 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 + 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); + com.google.cloud.automl.v1beta1.StringStats.class, com.google.cloud.automl.v1beta1.StringStats.Builder.class); } - public interface UnigramStatsOrBuilder - extends + public interface UnigramStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.StringStats.UnigramStats) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The unigram.
      * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The unigram.
      * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
      * The number of occurrences of this unigram in the series.
      * 
* * int64 count = 2; - * * @return The count. */ 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 + 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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UnigramStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UnigramStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -217,63 +182,57 @@ private UnigramStats( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + 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; + 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); + 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; + 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 + 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); + 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; - * * @return The value. */ @java.lang.Override @@ -282,29 +241,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -315,14 +274,11 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** - * - * *
      * The number of occurrences of this unigram in the series.
      * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -331,7 +287,6 @@ public long getCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,7 +298,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -363,7 +319,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -373,16 +330,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getValue() + .equals(other.getValue())) return false; + if (getCount() + != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -397,101 +355,95 @@ public int 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 = (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 { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -501,32 +453,27 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() @@ -534,15 +481,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -554,9 +502,9 @@ public Builder clear() { } @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; + 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 @@ -575,8 +523,7 @@ public com.google.cloud.automl.v1beta1.StringStats.UnigramStats build() { @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); + com.google.cloud.automl.v1beta1.StringStats.UnigramStats result = new com.google.cloud.automl.v1beta1.StringStats.UnigramStats(this); result.value_ = value_; result.count_ = count_; onBuilt(); @@ -587,41 +534,38 @@ public com.google.cloud.automl.v1beta1.StringStats.UnigramStats buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.StringStats.UnigramStats)other); } else { super.mergeFrom(other); return this; @@ -629,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } 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 == com.google.cloud.automl.v1beta1.StringStats.UnigramStats.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -657,8 +600,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.StringStats.UnigramStats) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.StringStats.UnigramStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -670,20 +612,18 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** - * - * *
        * The unigram.
        * 
* * string value = 1; - * * @return The value. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -692,21 +632,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * The unigram.
        * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -714,76 +653,66 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The unigram.
        * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The unigram.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The unigram.
        * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long count_; + private long count_ ; /** - * - * *
        * The number of occurrences of this unigram in the series.
        * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -791,41 +720,34 @@ public long getCount() { return count_; } /** - * - * *
        * The number of occurrences of this unigram in the series.
        * 
* * int64 count = 2; - * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** - * - * *
        * The number of occurrences of this unigram in the series.
        * 
* * int64 count = 2; - * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -838,12 +760,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -852,16 +774,16 @@ public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats getDefaul 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); - } - }; + 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; @@ -876,91 +798,75 @@ public com.google.protobuf.Parser getParserForType() { 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ @java.lang.Override - public java.util.List - getTopUnigramStatsList() { + 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ @java.lang.Override - public java.util.List + 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ @java.lang.Override 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ @java.lang.Override 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder - getTopUnigramStatsOrBuilder(int index) { + 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; @@ -972,7 +878,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -986,7 +893,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < topUnigramStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topUnigramStats_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, topUnigramStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -996,15 +904,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.StringStats other = (com.google.cloud.automl.v1beta1.StringStats) obj; - if (!getTopUnigramStatsList().equals(other.getTopUnigramStatsList())) return false; + if (!getTopUnigramStatsList() + .equals(other.getTopUnigramStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1025,127 +933,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.StringStats parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.StringStats.class, com.google.cloud.automl.v1beta1.StringStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.StringStats.newBuilder() @@ -1153,17 +1052,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTopUnigramStatsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1177,9 +1076,9 @@ public Builder clear() { } @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; + 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 @@ -1198,8 +1097,7 @@ public com.google.cloud.automl.v1beta1.StringStats build() { @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); + 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)) { @@ -1218,39 +1116,38 @@ public com.google.cloud.automl.v1beta1.StringStats buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.StringStats)other); } else { super.mergeFrom(other); return this; @@ -1277,10 +1174,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.StringStats other) { topUnigramStatsBuilder_ = null; topUnigramStats_ = other.topUnigramStats_; bitField0_ = (bitField0_ & ~0x00000001); - topUnigramStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTopUnigramStatsFieldBuilder() - : null; + topUnigramStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTopUnigramStatsFieldBuilder() : null; } else { topUnigramStatsBuilder_.addAllMessages(other.topUnigramStats_); } @@ -1314,40 +1210,29 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - topUnigramStats_ = java.util.Collections.emptyList(); - + private java.util.List topUnigramStats_ = + java.util.Collections.emptyList(); private void ensureTopUnigramStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - topUnigramStats_ = - new java.util.ArrayList( - topUnigramStats_); + 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_; + 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ - public java.util.List - getTopUnigramStatsList() { + public java.util.List getTopUnigramStatsList() { if (topUnigramStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(topUnigramStats_); } else { @@ -1355,15 +1240,12 @@ private void ensureTopUnigramStatsIsMutable() { } } /** - * - * *
      * 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ public int getTopUnigramStatsCount() { if (topUnigramStatsBuilder_ == null) { @@ -1373,15 +1255,12 @@ public 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; - * + * 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) { @@ -1391,15 +1270,12 @@ public com.google.cloud.automl.v1beta1.StringStats.UnigramStats getTopUnigramSta } } /** - * - * *
      * 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ public Builder setTopUnigramStats( int index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { @@ -1416,19 +1292,15 @@ public Builder setTopUnigramStats( 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; - * + * 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) { + int index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) { if (topUnigramStatsBuilder_ == null) { ensureTopUnigramStatsIsMutable(); topUnigramStats_.set(index, builderForValue.build()); @@ -1439,18 +1311,14 @@ public Builder setTopUnigramStats( 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ - public Builder addTopUnigramStats( - com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { + public Builder addTopUnigramStats(com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { if (topUnigramStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1464,15 +1332,12 @@ public Builder addTopUnigramStats( 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ public Builder addTopUnigramStats( int index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { @@ -1489,15 +1354,12 @@ public Builder addTopUnigramStats( 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ public Builder addTopUnigramStats( com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) { @@ -1511,19 +1373,15 @@ public Builder addTopUnigramStats( 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; - * + * 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) { + int index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) { if (topUnigramStatsBuilder_ == null) { ensureTopUnigramStatsIsMutable(); topUnigramStats_.add(index, builderForValue.build()); @@ -1534,22 +1392,19 @@ public Builder addTopUnigramStats( 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ public Builder addAllTopUnigramStats( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (topUnigramStatsBuilder_ == null) { ensureTopUnigramStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topUnigramStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topUnigramStats_); onChanged(); } else { topUnigramStatsBuilder_.addAllMessages(values); @@ -1557,15 +1412,12 @@ public Builder addAllTopUnigramStats( 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ public Builder clearTopUnigramStats() { if (topUnigramStatsBuilder_ == null) { @@ -1578,15 +1430,12 @@ public Builder clearTopUnigramStats() { 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ public Builder removeTopUnigramStats(int index) { if (topUnigramStatsBuilder_ == null) { @@ -1599,53 +1448,42 @@ public Builder removeTopUnigramStats(int 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ - public com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder - getTopUnigramStatsBuilder(int index) { + 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ - public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder - getTopUnigramStatsOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder getTopUnigramStatsOrBuilder( + int index) { if (topUnigramStatsBuilder_ == null) { - return topUnigramStats_.get(index); - } else { + 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ - public java.util.List< - ? extends com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder> - getTopUnigramStatsOrBuilderList() { + public java.util.List + getTopUnigramStatsOrBuilderList() { if (topUnigramStatsBuilder_ != null) { return topUnigramStatsBuilder_.getMessageOrBuilderList(); } else { @@ -1653,66 +1491,48 @@ public Builder removeTopUnigramStats(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; - * + * 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()); + 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; - * + * 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()); + 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ - public java.util.List - getTopUnigramStatsBuilderList() { + 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> + 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>( + 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(), @@ -1721,9 +1541,9 @@ public Builder removeTopUnigramStats(int index) { } return topUnigramStatsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1733,12 +1553,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1747,16 +1567,16 @@ 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); - } - }; + 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; @@ -1771,4 +1591,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.StringStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java similarity index 65% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java index aa4802c2c..4d96a5283 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java @@ -1,87 +1,57 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ - java.util.List getTopUnigramStatsList(); + 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; - * + * 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; - * + * 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ - java.util.List + 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; - * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; */ com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder getTopUnigramStatsOrBuilder( int index); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java similarity index 63% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java index c43923cbe..807b01906 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use StructStats.newBuilder() to construct. private StructStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StructStats() {} + private StructStats() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StructStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StructStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,91 +53,82 @@ private StructStats( 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fieldStats_ = com.google.protobuf.MapField.newMapField( + FieldStatsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + 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); + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetFieldStats(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + 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 = + 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()); - } - + .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< + java.lang.String, com.google.cloud.automl.v1beta1.DataStats> fieldStats_; private com.google.protobuf.MapField - fieldStats_; - - private com.google.protobuf.MapField - internalGetFieldStats() { + internalGetFieldStats() { if (fieldStats_ == null) { - return com.google.protobuf.MapField.emptyMapField(FieldStatsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + FieldStatsDefaultEntryHolder.defaultEntry); } return fieldStats_; } @@ -162,8 +137,6 @@ 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.
@@ -171,23 +144,22 @@ public int getFieldStatsCount() {
    *
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
+
   @java.lang.Override
-  public boolean containsFieldStats(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsFieldStats(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetFieldStats().getMap().containsKey(key);
   }
-  /** Use {@link #getFieldStatsMap()} instead. */
+  /**
+   * Use {@link #getFieldStatsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map
-      getFieldStats() {
+  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.
@@ -196,13 +168,11 @@ public boolean containsFieldStats(java.lang.String key) {
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
   @java.lang.Override
-  public java.util.Map
-      getFieldStatsMap() {
+
+  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.
@@ -211,18 +181,16 @@ public boolean containsFieldStats(java.lang.String key) {
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
   @java.lang.Override
+
   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.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.
@@ -231,10 +199,10 @@ public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrDefault(
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+
+  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)) {
@@ -244,7 +212,6 @@ public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(java.lang.
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -256,9 +223,14 @@ public final boolean isInitialized() {
   }
 
   @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);
+  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);
   }
 
@@ -268,16 +240,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetFieldStats().getMap().entrySet()) {
+    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__);
+      fieldStats__ = FieldStatsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, fieldStats__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -287,15 +258,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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;
+    com.google.cloud.automl.v1beta1.StructStats other = (com.google.cloud.automl.v1beta1.StructStats) obj;
 
-    if (!internalGetFieldStats().equals(other.internalGetFieldStats())) return false;
+    if (!internalGetFieldStats().equals(
+        other.internalGetFieldStats())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -316,147 +287,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.StructStats parseFrom(java.nio.ByteBuffer data)
+  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)
+      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)
+      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);
+    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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetFieldStats(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableFieldStats(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.StructStats.class, com.google.cloud.automl.v1beta1.StructStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.StructStats.newBuilder() @@ -464,15 +428,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +446,9 @@ public Builder clear() { } @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; + 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 @@ -502,8 +467,7 @@ public com.google.cloud.automl.v1beta1.StructStats build() { @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); + 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(); @@ -515,39 +479,38 @@ public com.google.cloud.automl.v1beta1.StructStats buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.StructStats)other); } else { super.mergeFrom(other); return this; @@ -556,7 +519,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { 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()); + internalGetMutableFieldStats().mergeFrom( + other.internalGetFieldStats()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -585,31 +549,24 @@ public Builder mergeFrom( } 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() { + java.lang.String, com.google.cloud.automl.v1beta1.DataStats> fieldStats_; + private com.google.protobuf.MapField + 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(); - ; + private com.google.protobuf.MapField + internalGetMutableFieldStats() { + onChanged();; if (fieldStats_ == null) { - fieldStats_ = - com.google.protobuf.MapField.newMapField(FieldStatsDefaultEntryHolder.defaultEntry); + fieldStats_ = com.google.protobuf.MapField.newMapField( + FieldStatsDefaultEntryHolder.defaultEntry); } if (!fieldStats_.isMutable()) { fieldStats_ = fieldStats_.copy(); @@ -621,8 +578,6 @@ 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.
@@ -630,23 +585,22 @@ public int getFieldStatsCount() {
      *
      * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
      */
+
     @java.lang.Override
-    public boolean containsFieldStats(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsFieldStats(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetFieldStats().getMap().containsKey(key);
     }
-    /** Use {@link #getFieldStatsMap()} instead. */
+    /**
+     * Use {@link #getFieldStatsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
-    public java.util.Map
-        getFieldStats() {
+    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.
@@ -655,13 +609,11 @@ public boolean containsFieldStats(java.lang.String key) {
      * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
      */
     @java.lang.Override
-    public java.util.Map
-        getFieldStatsMap() {
+
+    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.
@@ -670,18 +622,16 @@ public boolean containsFieldStats(java.lang.String key) {
      * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
      */
     @java.lang.Override
+
     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.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.
@@ -690,10 +640,10 @@ public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrDefault(
      * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
      */
     @java.lang.Override
-    public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+
+    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)) {
@@ -703,12 +653,11 @@ public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(java.lang.
     }
 
     public Builder clearFieldStats() {
-      internalGetMutableFieldStats().getMutableMap().clear();
+      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.
@@ -716,22 +665,23 @@ public Builder clearFieldStats() {
      *
      * 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);
+
+    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. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
     public java.util.Map
-        getMutableFieldStats() {
+    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.
@@ -740,19 +690,15 @@ public Builder removeFieldStats(java.lang.String key) {
      * 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);
+        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.
@@ -760,14 +706,16 @@ public Builder putFieldStats(
      *
      * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
      */
+
     public Builder putAllFieldStats(
         java.util.Map values) {
-      internalGetMutableFieldStats().getMutableMap().putAll(values);
+      internalGetMutableFieldStats().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -777,12 +725,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -791,16 +739,16 @@ 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);
-        }
-      };
+  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;
@@ -815,4 +763,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.StructStats getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java
similarity index 66%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java
index 8e438d41d..ad2f60cc4 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+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.
@@ -35,8 +17,6 @@ public interface StructStatsOrBuilder
    */
   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.
@@ -44,13 +24,15 @@ public interface StructStatsOrBuilder
    *
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
-  boolean containsFieldStats(java.lang.String key);
-  /** Use {@link #getFieldStatsMap()} instead. */
+  boolean containsFieldStats(
+      java.lang.String key);
+  /**
+   * Use {@link #getFieldStatsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getFieldStats();
+  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.
@@ -58,10 +40,9 @@ public interface StructStatsOrBuilder
    *
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
-  java.util.Map getFieldStatsMap();
+  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.
@@ -69,11 +50,11 @@ public interface StructStatsOrBuilder
    *
    * 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);
+      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.
@@ -81,5 +62,7 @@ com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrDefault(
    *
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
-  com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(java.lang.String key);
+
+  com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java
similarity index 64%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java
index 1c2729de3..777069148 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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 +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; +private static final long serialVersionUID = 0L; // Use StructType.newBuilder() to construct. private StructType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StructType() {} + private StructType() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StructType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StructType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,90 +53,82 @@ private StructType( 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = com.google.protobuf.MapField.newMapField( + FieldsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + 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); + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetFields(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + 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 = + 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()); - } - + .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< + java.lang.String, com.google.cloud.automl.v1beta1.DataType> fields_; private com.google.protobuf.MapField - fields_; - - private com.google.protobuf.MapField - internalGetFields() { + internalGetFields() { if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + FieldsDefaultEntryHolder.defaultEntry); } return fields_; } @@ -161,8 +137,6 @@ 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
@@ -171,22 +145,22 @@ public int getFieldsCount() {
    *
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
+
   @java.lang.Override
-  public boolean containsFields(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsFields(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetFields().getMap().containsKey(key);
   }
-  /** Use {@link #getFieldsMap()} instead. */
+  /**
+   * Use {@link #getFieldsMap()} instead.
+   */
   @java.lang.Override
   @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
@@ -196,12 +170,11 @@ public java.util.Map
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
   @java.lang.Override
+
   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
@@ -211,18 +184,16 @@ public java.util.Map
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
   @java.lang.Override
+
   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.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
@@ -232,10 +203,10 @@ public com.google.cloud.automl.v1beta1.DataType getFieldsOrDefault(
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+
+  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)) {
@@ -245,7 +216,6 @@ public com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(java.lang.Strin
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -257,9 +227,14 @@ public final boolean isInitialized() {
   }
 
   @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);
+  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);
   }
 
@@ -269,16 +244,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetFields().getMap().entrySet()) {
+    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__);
+      fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, fields__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -288,15 +262,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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;
+    com.google.cloud.automl.v1beta1.StructType other = (com.google.cloud.automl.v1beta1.StructType) obj;
 
-    if (!internalGetFields().equals(other.internalGetFields())) return false;
+    if (!internalGetFields().equals(
+        other.internalGetFields())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -317,147 +291,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.StructType parseFrom(java.nio.ByteBuffer data)
+  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)
+      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)
+      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);
+    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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetFields(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableFields(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.StructType.class, com.google.cloud.automl.v1beta1.StructType.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.StructType.newBuilder() @@ -465,15 +432,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +450,9 @@ public Builder clear() { } @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; + 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 @@ -503,8 +471,7 @@ public com.google.cloud.automl.v1beta1.StructType build() { @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); + 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(); @@ -516,39 +483,38 @@ public com.google.cloud.automl.v1beta1.StructType buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.StructType)other); } else { super.mergeFrom(other); return this; @@ -557,7 +523,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { 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()); + internalGetMutableFields().mergeFrom( + other.internalGetFields()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -586,26 +553,24 @@ public Builder mergeFrom( } return this; } - private int bitField0_; + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.DataType> fields_; private com.google.protobuf.MapField - fields_; - - private com.google.protobuf.MapField - internalGetFields() { + internalGetFields() { if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + FieldsDefaultEntryHolder.defaultEntry); } return fields_; } - private com.google.protobuf.MapField - internalGetMutableFields() { - onChanged(); - ; + internalGetMutableFields() { + onChanged();; if (fields_ == null) { - fields_ = com.google.protobuf.MapField.newMapField(FieldsDefaultEntryHolder.defaultEntry); + fields_ = com.google.protobuf.MapField.newMapField( + FieldsDefaultEntryHolder.defaultEntry); } if (!fields_.isMutable()) { fields_ = fields_.copy(); @@ -617,8 +582,6 @@ 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
@@ -627,22 +590,22 @@ public int getFieldsCount() {
      *
      * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      */
+
     @java.lang.Override
-    public boolean containsFields(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsFields(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetFields().getMap().containsKey(key);
     }
-    /** Use {@link #getFieldsMap()} instead. */
+    /**
+     * Use {@link #getFieldsMap()} instead.
+     */
     @java.lang.Override
     @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
@@ -652,13 +615,11 @@ public java.util.Map
      * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      */
     @java.lang.Override
-    public java.util.Map
-        getFieldsMap() {
+
+    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
@@ -668,18 +629,16 @@ public java.util.Map
      * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      */
     @java.lang.Override
+
     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.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
@@ -689,10 +648,10 @@ public com.google.cloud.automl.v1beta1.DataType getFieldsOrDefault(
      * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      */
     @java.lang.Override
-    public com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+
+    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)) {
@@ -702,12 +661,11 @@ public com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(java.lang.Strin
     }
 
     public Builder clearFields() {
-      internalGetMutableFields().getMutableMap().clear();
+      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
@@ -716,22 +674,23 @@ public Builder clearFields() {
      *
      * 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);
+
+    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. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
     public java.util.Map
-        getMutableFields() {
+    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
@@ -740,19 +699,16 @@ public Builder removeFields(java.lang.String key) {
      *
      * 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);
+    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
@@ -761,14 +717,16 @@ public Builder putFields(java.lang.String key, com.google.cloud.automl.v1beta1.D
      *
      * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      */
+
     public Builder putAllFields(
         java.util.Map values) {
-      internalGetMutableFields().getMutableMap().putAll(values);
+      internalGetMutableFields().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -778,12 +736,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -792,16 +750,16 @@ 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);
-        }
-      };
+  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;
@@ -816,4 +774,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.StructType getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java
similarity index 66%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java
index 2c8e42cc5..2334c6a27 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+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
@@ -36,8 +18,6 @@ public interface StructTypeOrBuilder
    */
   int getFieldsCount();
   /**
-   *
-   *
    * 
    * Unordered map of struct field names to their data types.
    * Fields cannot be added or removed via Update. Their names and
@@ -46,13 +26,15 @@ public interface StructTypeOrBuilder
    *
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
-  boolean containsFields(java.lang.String key);
-  /** Use {@link #getFieldsMap()} instead. */
+  boolean containsFields(
+      java.lang.String key);
+  /**
+   * Use {@link #getFieldsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getFields();
+  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
@@ -61,10 +43,9 @@ public interface StructTypeOrBuilder
    *
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
-  java.util.Map getFieldsMap();
+  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
@@ -73,11 +54,11 @@ public interface StructTypeOrBuilder
    *
    * 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);
+      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
@@ -86,5 +67,7 @@ com.google.cloud.automl.v1beta1.DataType getFieldsOrDefault(
    *
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
-  com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(java.lang.String key);
+
+  com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java
similarity index 77%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java
index 927c2bf8d..65887d79a 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
@@ -35,16 +18,15 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.TableSpec}
  */
-public final class TableSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+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_ = "";
@@ -54,15 +36,16 @@ private TableSpec() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TableSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TableSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -82,67 +65,62 @@ private TableSpec(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              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 32:
-            {
-              validRowCount_ = input.readInt64();
-              break;
-            }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                inputConfigs_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              inputConfigs_.add(
-                  input.readMessage(
-                      com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry));
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            timeColumnSpecId_ = s;
+            break;
+          }
+          case 24: {
 
-              etag_ = s;
-              break;
-            }
-          case 56:
-            {
-              columnCount_ = input.readInt64();
-              break;
+            rowCount_ = input.readInt64();
+            break;
+          }
+          case 32: {
+
+            validRowCount_ = input.readInt64();
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              inputConfigs_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_);
@@ -151,27 +129,22 @@ private TableSpec(
       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;
+  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
+    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);
+            com.google.cloud.automl.v1beta1.TableSpec.class, com.google.cloud.automl.v1beta1.TableSpec.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The resource name of the table spec.
    * Form:
@@ -179,7 +152,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -188,15 +160,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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:
@@ -204,15 +175,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -223,8 +195,6 @@ public com.google.protobuf.ByteString getNameBytes() { 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
@@ -237,7 +207,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string time_column_spec_id = 2; - * * @return The timeColumnSpecId. */ @java.lang.Override @@ -246,15 +215,14 @@ public java.lang.String getTimeColumnSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -267,15 +235,16 @@ public java.lang.String getTimeColumnSpecId() {
    * 
* * string time_column_spec_id = 2; - * * @return The bytes for timeColumnSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString getTimeColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); timeColumnSpecId_ = b; return b; } else { @@ -286,14 +255,11 @@ public com.google.protobuf.ByteString getTimeColumnSpecIdBytes() { 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; - * * @return The rowCount. */ @java.lang.Override @@ -304,15 +270,12 @@ public long getRowCount() { public static final int VALID_ROW_COUNT_FIELD_NUMBER = 4; private long validRowCount_; /** - * - * *
    * Output only. The number of valid rows (i.e. without values that don't match
    * DataType-s of their columns).
    * 
* * int64 valid_row_count = 4; - * * @return The validRowCount. */ @java.lang.Override @@ -323,15 +286,12 @@ public long getValidRowCount() { 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; - * * @return The columnCount. */ @java.lang.Override @@ -342,8 +302,6 @@ public long getColumnCount() { 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.
@@ -356,8 +314,6 @@ public java.util.List getInputConfi
     return inputConfigs_;
   }
   /**
-   *
-   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -366,13 +322,11 @@ public java.util.List getInputConfi
    * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getInputConfigsOrBuilderList() {
     return inputConfigs_;
   }
   /**
-   *
-   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -385,8 +339,6 @@ public int getInputConfigsCount() {
     return inputConfigs_.size();
   }
   /**
-   *
-   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -399,8 +351,6 @@ 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.
@@ -409,22 +359,20 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index) {
    * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index) {
+  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; - * * @return The etag. */ @java.lang.Override @@ -433,30 +381,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -465,7 +413,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -477,7 +424,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -515,19 +463,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timeColumnSpecId_); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, rowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, rowCount_); } if (validRowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, validRowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, validRowCount_); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, inputConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); } if (columnCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, columnCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, columnCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -537,21 +489,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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 (getValidRowCount() != other.getValidRowCount()) return false; - if (getColumnCount() != other.getColumnCount()) return false; - if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; - if (!getEtag().equals(other.getEtag())) return false; + 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 (getValidRowCount() + != other.getValidRowCount()) 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; } @@ -568,11 +526,14 @@ public int 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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRowCount()); hash = (37 * hash) + VALID_ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValidRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValidRowCount()); hash = (37 * hash) + COLUMN_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColumnCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getColumnCount()); if (getInputConfigsCount() > 0) { hash = (37 * hash) + INPUT_CONFIGS_FIELD_NUMBER; hash = (53 * hash) + getInputConfigsList().hashCode(); @@ -584,104 +545,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.TableSpec parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -696,23 +650,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.TableSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.TableSpec.class, com.google.cloud.automl.v1beta1.TableSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.TableSpec.newBuilder()
@@ -720,17 +672,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getInputConfigsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -756,9 +708,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -777,8 +729,7 @@ public com.google.cloud.automl.v1beta1.TableSpec build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.TableSpec result = new com.google.cloud.automl.v1beta1.TableSpec(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.timeColumnSpecId_ = timeColumnSpecId_;
@@ -803,39 +754,38 @@ public com.google.cloud.automl.v1beta1.TableSpec buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.TableSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -879,10 +829,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TableSpec other) {
             inputConfigsBuilder_ = null;
             inputConfigs_ = other.inputConfigs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            inputConfigsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getInputConfigsFieldBuilder()
-                    : null;
+            inputConfigsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getInputConfigsFieldBuilder() : null;
           } else {
             inputConfigsBuilder_.addAllMessages(other.inputConfigs_);
           }
@@ -920,13 +869,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the table spec.
      * Form:
@@ -934,13 +880,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -949,8 +895,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the table spec.
      * Form:
@@ -958,14 +902,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -973,8 +918,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the table spec.
      * Form:
@@ -982,22 +925,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the table spec.
      * Form:
@@ -1005,18 +946,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the table spec.
      * Form:
@@ -1024,16 +962,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1041,8 +979,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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
@@ -1055,13 +991,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string time_column_spec_id = 2; - * * @return The timeColumnSpecId. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeColumnSpecId_ = s; return s; @@ -1070,8 +1006,6 @@ public 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
@@ -1084,14 +1018,15 @@ public java.lang.String getTimeColumnSpecId() {
      * 
* * string time_column_spec_id = 2; - * * @return The bytes for timeColumnSpecId. */ - public com.google.protobuf.ByteString getTimeColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); timeColumnSpecId_ = b; return b; } else { @@ -1099,8 +1034,6 @@ public com.google.protobuf.ByteString getTimeColumnSpecIdBytes() { } } /** - * - * *
      * 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
@@ -1113,22 +1046,20 @@ public com.google.protobuf.ByteString getTimeColumnSpecIdBytes() {
      * 
* * string time_column_spec_id = 2; - * * @param value The timeColumnSpecId to set. * @return This builder for chaining. */ - public Builder setTimeColumnSpecId(java.lang.String value) { + public Builder setTimeColumnSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -1141,18 +1072,15 @@ public Builder setTimeColumnSpecId(java.lang.String value) {
      * 
* * string time_column_spec_id = 2; - * * @return This builder for chaining. */ 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
@@ -1165,31 +1093,28 @@ public Builder clearTimeColumnSpecId() {
      * 
* * string time_column_spec_id = 2; - * * @param value The bytes for timeColumnSpecId to set. * @return This builder for chaining. */ - public Builder setTimeColumnSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder setTimeColumnSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeColumnSpecId_ = value; onChanged(); return this; } - private long rowCount_; + private long rowCount_ ; /** - * - * *
      * Output only. The number of rows (i.e. examples) in the table.
      * 
* * int64 row_count = 3; - * * @return The rowCount. */ @java.lang.Override @@ -1197,52 +1122,43 @@ public long getRowCount() { return rowCount_; } /** - * - * *
      * Output only. The number of rows (i.e. examples) in the table.
      * 
* * int64 row_count = 3; - * * @param value The rowCount to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearRowCount() { - + rowCount_ = 0L; onChanged(); return this; } - private long validRowCount_; + private long validRowCount_ ; /** - * - * *
      * Output only. The number of valid rows (i.e. without values that don't match
      * DataType-s of their columns).
      * 
* * int64 valid_row_count = 4; - * * @return The validRowCount. */ @java.lang.Override @@ -1250,54 +1166,45 @@ public long getValidRowCount() { return validRowCount_; } /** - * - * *
      * Output only. The number of valid rows (i.e. without values that don't match
      * DataType-s of their columns).
      * 
* * int64 valid_row_count = 4; - * * @param value The validRowCount to set. * @return This builder for chaining. */ public Builder setValidRowCount(long value) { - + validRowCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of valid rows (i.e. without values that don't match
      * DataType-s of their columns).
      * 
* * int64 valid_row_count = 4; - * * @return This builder for chaining. */ public Builder clearValidRowCount() { - + validRowCount_ = 0L; onChanged(); return this; } - private long columnCount_; + private long columnCount_ ; /** - * - * *
      * Output only. The number of columns of the table. That is, the number of
      * child ColumnSpec-s.
      * 
* * int64 column_count = 7; - * * @return The columnCount. */ @java.lang.Override @@ -1305,63 +1212,50 @@ 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; - * * @param value The columnCount to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearColumnCount() { - + columnCount_ = 0L; onChanged(); return this; } private java.util.List inputConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - inputConfigs_ = - new java.util.ArrayList(inputConfigs_); + inputConfigs_ = new java.util.ArrayList(inputConfigs_); bitField0_ |= 0x00000001; - } + } } 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_; + 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.
@@ -1377,8 +1271,6 @@ public java.util.List getInputConfi
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1394,8 +1286,6 @@ public int getInputConfigsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1411,8 +1301,6 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1420,7 +1308,8 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      */
-    public Builder setInputConfigs(int index, com.google.cloud.automl.v1beta1.InputConfig value) {
+    public Builder setInputConfigs(
+        int index, com.google.cloud.automl.v1beta1.InputConfig value) {
       if (inputConfigsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1434,8 +1323,6 @@ public Builder setInputConfigs(int index, com.google.cloud.automl.v1beta1.InputC
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1455,8 +1342,6 @@ public Builder setInputConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1478,8 +1363,6 @@ public Builder addInputConfigs(com.google.cloud.automl.v1beta1.InputConfig value
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1487,7 +1370,8 @@ public Builder addInputConfigs(com.google.cloud.automl.v1beta1.InputConfig value
      *
      * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      */
-    public Builder addInputConfigs(int index, com.google.cloud.automl.v1beta1.InputConfig value) {
+    public Builder addInputConfigs(
+        int index, com.google.cloud.automl.v1beta1.InputConfig value) {
       if (inputConfigsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1501,8 +1385,6 @@ public Builder addInputConfigs(int index, com.google.cloud.automl.v1beta1.InputC
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1522,8 +1404,6 @@ public Builder addInputConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1543,8 +1423,6 @@ public Builder addInputConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1556,7 +1434,8 @@ public Builder addAllInputConfigs(
         java.lang.Iterable values) {
       if (inputConfigsBuilder_ == null) {
         ensureInputConfigsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, inputConfigs_);
         onChanged();
       } else {
         inputConfigsBuilder_.addAllMessages(values);
@@ -1564,8 +1443,6 @@ public Builder addAllInputConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1584,8 +1461,6 @@ public Builder clearInputConfigs() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1604,8 +1479,6 @@ public Builder removeInputConfigs(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1613,12 +1486,11 @@ public Builder removeInputConfigs(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      */
-    public com.google.cloud.automl.v1beta1.InputConfig.Builder getInputConfigsBuilder(int index) {
+    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.
@@ -1629,14 +1501,11 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder getInputConfigsBuilde
     public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(
         int index) {
       if (inputConfigsBuilder_ == null) {
-        return inputConfigs_.get(index);
-      } else {
+        return inputConfigs_.get(index);  } else {
         return inputConfigsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1644,8 +1513,8 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBui
      *
      * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      */
-    public java.util.List
-        getInputConfigsOrBuilderList() {
+    public java.util.List 
+         getInputConfigsOrBuilderList() {
       if (inputConfigsBuilder_ != null) {
         return inputConfigsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1653,8 +1522,6 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBui
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1663,12 +1530,10 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBui
      * 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());
+      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.
@@ -1676,13 +1541,12 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder addInputConfigsBuilde
      *
      * 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());
+    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.
@@ -1690,23 +1554,20 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder addInputConfigsBuilde
      *
      * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      */
-    public java.util.List
-        getInputConfigsBuilderList() {
+    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>
+        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_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        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_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         inputConfigs_ = null;
       }
       return inputConfigsBuilder_;
@@ -1714,21 +1575,19 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder addInputConfigsBuilde
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; - * * @return The etag. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -1737,22 +1596,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1760,71 +1618,64 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1834,12 +1685,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1848,16 +1699,16 @@ 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); - } - }; + 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; @@ -1872,4 +1723,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TableSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java similarity index 81% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java index b57b8be45..875081478 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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:
@@ -33,13 +15,10 @@ public interface TableSpecOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the table spec.
    * Form:
@@ -47,14 +26,12 @@ public interface TableSpecOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + 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
@@ -67,13 +44,10 @@ public interface TableSpecOrBuilder
    * 
* * string time_column_spec_id = 2; - * * @return The timeColumnSpecId. */ 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
@@ -86,55 +60,44 @@ public interface TableSpecOrBuilder
    * 
* * string time_column_spec_id = 2; - * * @return The bytes for timeColumnSpecId. */ - com.google.protobuf.ByteString getTimeColumnSpecIdBytes(); + com.google.protobuf.ByteString + getTimeColumnSpecIdBytes(); /** - * - * *
    * Output only. The number of rows (i.e. examples) in the table.
    * 
* * int64 row_count = 3; - * * @return The rowCount. */ long getRowCount(); /** - * - * *
    * Output only. The number of valid rows (i.e. without values that don't match
    * DataType-s of their columns).
    * 
* * int64 valid_row_count = 4; - * * @return The validRowCount. */ long getValidRowCount(); /** - * - * *
    * Output only. The number of columns of the table. That is, the number of
    * child ColumnSpec-s.
    * 
* * int64 column_count = 7; - * * @return The columnCount. */ long getColumnCount(); /** - * - * *
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -142,10 +105,9 @@ public interface TableSpecOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
    */
-  java.util.List getInputConfigsList();
+  java.util.List 
+      getInputConfigsList();
   /**
-   *
-   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -155,8 +117,6 @@ public interface TableSpecOrBuilder
    */
   com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index);
   /**
-   *
-   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -166,8 +126,6 @@ public interface TableSpecOrBuilder
    */
   int getInputConfigsCount();
   /**
-   *
-   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -175,11 +133,9 @@ public interface TableSpecOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
    */
-  java.util.List
+  java.util.List 
       getInputConfigsOrBuilderList();
   /**
-   *
-   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -187,32 +143,28 @@ public interface TableSpecOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
    */
-  com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index);
+  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; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 6; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java new file mode 100644 index 000000000..403b7b567 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java @@ -0,0 +1,73 @@ +// 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\031goo" + + "gle/api/resource.proto\032$google/cloud/aut" + + "oml/v1beta1/io.proto\032\034google/api/annotat" + + "ions.proto\"\301\002\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\027\n\017valid_row_count\030\004 \001(\003\022\024\n\014colum" + + "n_count\030\007 \001(\003\022?\n\rinput_configs\030\005 \003(\0132(.g" + + "oogle.cloud.automl.v1beta1.InputConfig\022\014" + + "\n\004etag\030\006 \001(\t:x\352Au\n\037automl.googleapis.com" + + "/TableSpec\022Rprojects/{project}/locations" + + "/{location}/datasets/{dataset}/tableSpec" + + "s/{table_spec}B\245\001\n\037com.google.cloud.auto" + + "ml.v1beta1P\001ZAgoogle.golang.org/genproto" + + "/googleapis/cloud/automl/v1beta1;automl\312" + + "\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Google::" + + "Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Io.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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", "ValidRowCount", "ColumnCount", "InputConfigs", "Etag", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Io.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java new file mode 100644 index 000000000..96f409a0c --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java @@ -0,0 +1,159 @@ +// 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\0320google/" + + "cloud/automl/v1beta1/classification.prot" + + "o\032-google/cloud/automl/v1beta1/column_sp" + + "ec.proto\032,google/cloud/automl/v1beta1/da" + + "ta_items.proto\032,google/cloud/automl/v1be" + + "ta1/data_stats.proto\032(google/cloud/autom" + + "l/v1beta1/ranges.proto\032,google/cloud/aut" + + "oml/v1beta1/regression.proto\032*google/clo" + + "ud/automl/v1beta1/temporal.proto\032\034google" + + "/protobuf/struct.proto\032\037google/protobuf/" + + "timestamp.proto\032\034google/api/annotations." + + "proto\"\260\003\n\025TablesDatasetMetadata\022\035\n\025prima" + + "ry_table_spec_id\030\001 \001(\t\022\035\n\025target_column_" + + "spec_id\030\002 \001(\t\022\035\n\025weight_column_spec_id\030\003" + + " \001(\t\022\035\n\025ml_use_column_spec_id\030\004 \001(\t\022t\n\032t" + + "arget_column_correlations\030\006 \003(\0132P.google" + + ".cloud.automl.v1beta1.TablesDatasetMetad" + + "ata.TargetColumnCorrelationsEntry\0225\n\021sta" + + "ts_update_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestamp\032n\n\035TargetColumnCorrelationsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.google.c" + + "loud.automl.v1beta1.CorrelationStats:\0028\001" + + "\"\226\004\n\023TablesModelMetadata\022-\n#optimization" + + "_objective_recall_value\030\021 \001(\002H\000\0220\n&optim" + + "ization_objective_precision_value\030\022 \001(\002H" + + "\000\022C\n\022target_column_spec\030\002 \001(\0132\'.google.c" + + "loud.automl.v1beta1.ColumnSpec\022K\n\032input_" + + "feature_column_specs\030\003 \003(\0132\'.google.clou" + + "d.automl.v1beta1.ColumnSpec\022\036\n\026optimizat" + + "ion_objective\030\004 \001(\t\022T\n\030tables_model_colu" + + "mn_info\030\005 \003(\01322.google.cloud.automl.v1be" + + "ta1.TablesModelColumnInfo\022%\n\035train_budge" + + "t_milli_node_hours\030\006 \001(\003\022#\n\033train_cost_m" + + "illi_node_hours\030\007 \001(\003\022\036\n\026disable_early_s" + + "topping\030\014 \001(\010B*\n(additional_optimization" + + "_objective_config\"\375\001\n\020TablesAnnotation\022\r" + + "\n\005score\030\001 \001(\002\022E\n\023prediction_interval\030\004 \001" + + "(\0132(.google.cloud.automl.v1beta1.DoubleR" + + "ange\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Va" + + "lue\022T\n\030tables_model_column_info\030\003 \003(\01322." + + "google.cloud.automl.v1beta1.TablesModelC" + + "olumnInfo\022\026\n\016baseline_score\030\005 \001(\002\"j\n\025Tab" + + "lesModelColumnInfo\022\030\n\020column_spec_name\030\001" + + " \001(\t\022\033\n\023column_display_name\030\002 \001(\t\022\032\n\022fea" + + "ture_importance\030\003 \001(\002B\245\001\n\037com.google.clo" + + "ud.automl.v1beta1P\001ZAgoogle.golang.org/g" + + "enproto/googleapis/cloud/automl/v1beta1;" + + "automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036G" + + "oogle::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.cloud.automl.v1beta1.ColumnSpecOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.DataItems.getDescriptor(), + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.RangesProto.getDescriptor(), + com.google.cloud.automl.v1beta1.RegressionProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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[] { "OptimizationObjectiveRecallValue", "OptimizationObjectivePrecisionValue", "TargetColumnSpec", "InputFeatureColumnSpecs", "OptimizationObjective", "TablesModelColumnInfo", "TrainBudgetMilliNodeHours", "TrainCostMilliNodeHours", "DisableEarlyStopping", "AdditionalOptimizationObjectiveConfig", }); + 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", "BaselineScore", }); + 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.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + com.google.cloud.automl.v1beta1.ColumnSpecOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.DataItems.getDescriptor(); + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.RangesProto.getDescriptor(); + com.google.cloud.automl.v1beta1.RegressionProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java similarity index 77% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java index 937e3e749..30c496192 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TablesAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TablesAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,73 +54,65 @@ private TablesAnnotation( case 0: done = true; break; - case 13: - { - score_ = input.readFloat(); - break; + case 13: { + + score_ = input.readFloat(); + break; + } + case 18: { + com.google.protobuf.Value.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); } - 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; + value_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tablesModelColumnInfo_ = - new java.util.ArrayList< - com.google.cloud.automl.v1beta1.TablesModelColumnInfo>(); - mutable_bitField0_ |= 0x00000001; - } - tablesModelColumnInfo_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.TablesModelColumnInfo.parser(), - extensionRegistry)); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tablesModelColumnInfo_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - 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; + 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(); } - case 45: - { - baselineScore_ = input.readFloat(); - break; + predictionInterval_ = input.readMessage(com.google.cloud.automl.v1beta1.DoubleRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(predictionInterval_); + predictionInterval_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 45: { + + baselineScore_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { tablesModelColumnInfo_ = java.util.Collections.unmodifiableList(tablesModelColumnInfo_); @@ -146,27 +121,22 @@ private TablesAnnotation( 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TablesAnnotation.class, com.google.cloud.automl.v1beta1.TablesAnnotation.Builder.class); } 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.
@@ -176,7 +146,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * float score = 1; - * * @return The score. */ @java.lang.Override @@ -187,8 +156,6 @@ public float getScore() { 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]
@@ -197,7 +164,6 @@ public float getScore() {
    * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; - * * @return Whether the predictionInterval field is set. */ @java.lang.Override @@ -205,8 +171,6 @@ public boolean hasPredictionInterval() { return predictionInterval_ != null; } /** - * - * *
    * Output only. Only populated when
    * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -215,18 +179,13 @@ public boolean hasPredictionInterval() {
    * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; - * * @return The predictionInterval. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DoubleRange getPredictionInterval() { - return predictionInterval_ == null - ? com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance() - : predictionInterval_; + 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]
@@ -244,8 +203,6 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
   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].
@@ -256,7 +213,6 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
    * 
* * .google.protobuf.Value value = 2; - * * @return Whether the value field is set. */ @java.lang.Override @@ -264,8 +220,6 @@ public boolean hasValue() { return value_ != null; } /** - * - * *
    * The predicted value of the row's
    * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -276,7 +230,6 @@ public boolean hasValue() {
    * 
* * .google.protobuf.Value value = 2; - * * @return The value. */ @java.lang.Override @@ -284,8 +237,6 @@ 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].
@@ -303,11 +254,8 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
   }
 
   public static final int TABLES_MODEL_COLUMN_INFO_FIELD_NUMBER = 3;
-  private java.util.List
-      tablesModelColumnInfo_;
+  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]
@@ -319,17 +267,13 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ @java.lang.Override - public java.util.List - getTablesModelColumnInfoList() { + 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]
@@ -341,17 +285,14 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ @java.lang.Override - public java.util.List + 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]
@@ -363,16 +304,13 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ @java.lang.Override 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]
@@ -384,16 +322,13 @@ public int getTablesModelColumnInfoCount() {
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ @java.lang.Override 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]
@@ -405,20 +340,17 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColum
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder - getTablesModelColumnInfoOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( + int index) { return tablesModelColumnInfo_.get(index); } public static final int BASELINE_SCORE_FIELD_NUMBER = 5; private float baselineScore_; /** - * - * *
    * Output only. Stores the prediction score for the baseline example, which
    * is defined as the example with all values set to their baseline values.
@@ -430,7 +362,6 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColum
    * 
* * float baseline_score = 5; - * * @return The baselineScore. */ @java.lang.Override @@ -439,7 +370,6 @@ public float getBaselineScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -451,7 +381,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (score_ != 0F) { output.writeFloat(1, score_); } @@ -477,21 +408,24 @@ public int getSerializedSize() { size = 0; if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, score_); } if (value_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + 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)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, tablesModelColumnInfo_.get(i)); } if (predictionInterval_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPredictionInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPredictionInterval()); } if (baselineScore_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, baselineScore_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, baselineScore_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -501,27 +435,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (hasPredictionInterval() != other.hasPredictionInterval()) return false; if (hasPredictionInterval()) { - if (!getPredictionInterval().equals(other.getPredictionInterval())) return false; + if (!getPredictionInterval() + .equals(other.getPredictionInterval())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; } - if (!getTablesModelColumnInfoList().equals(other.getTablesModelColumnInfoList())) return false; + if (!getTablesModelColumnInfoList() + .equals(other.getTablesModelColumnInfoList())) return false; if (java.lang.Float.floatToIntBits(getBaselineScore()) - != java.lang.Float.floatToIntBits(other.getBaselineScore())) return false; + != java.lang.Float.floatToIntBits( + other.getBaselineScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -534,7 +472,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); if (hasPredictionInterval()) { hash = (37 * hash) + PREDICTION_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getPredictionInterval().hashCode(); @@ -548,133 +487,125 @@ public int hashCode() { hash = (53 * hash) + getTablesModelColumnInfoList().hashCode(); } hash = (37 * hash) + BASELINE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBaselineScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBaselineScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TablesAnnotation.class, com.google.cloud.automl.v1beta1.TablesAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TablesAnnotation.newBuilder() @@ -682,17 +613,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTablesModelColumnInfoFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -722,9 +653,9 @@ public Builder clear() { } @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; + 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 @@ -743,8 +674,7 @@ public com.google.cloud.automl.v1beta1.TablesAnnotation build() { @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); + com.google.cloud.automl.v1beta1.TablesAnnotation result = new com.google.cloud.automl.v1beta1.TablesAnnotation(this); int from_bitField0_ = bitField0_; result.score_ = score_; if (predictionIntervalBuilder_ == null) { @@ -775,39 +705,38 @@ public com.google.cloud.automl.v1beta1.TablesAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TablesAnnotation)other); } else { super.mergeFrom(other); return this; @@ -815,8 +744,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesAnnotation other) { - if (other == com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance()) return this; if (other.getScore() != 0F) { setScore(other.getScore()); } @@ -844,10 +772,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesAnnotation other) tablesModelColumnInfoBuilder_ = null; tablesModelColumnInfo_ = other.tablesModelColumnInfo_; bitField0_ = (bitField0_ & ~0x00000001); - tablesModelColumnInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTablesModelColumnInfoFieldBuilder() - : null; + tablesModelColumnInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTablesModelColumnInfoFieldBuilder() : null; } else { tablesModelColumnInfoBuilder_.addAllMessages(other.tablesModelColumnInfo_); } @@ -884,13 +811,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private float score_; + 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.
@@ -900,7 +824,6 @@ public Builder mergeFrom(
      * 
* * float score = 1; - * * @return The score. */ @java.lang.Override @@ -908,8 +831,6 @@ 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.
@@ -919,19 +840,16 @@ public float getScore() {
      * 
* * float score = 1; - * * @param value The score to set. * @return This builder for chaining. */ 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.
@@ -941,11 +859,10 @@ public Builder setScore(float value) {
      * 
* * float score = 1; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -953,13 +870,8 @@ public Builder clearScore() { 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_; + 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]
@@ -968,15 +880,12 @@ public Builder clearScore() {
      * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; - * * @return Whether the predictionInterval field is set. */ public boolean hasPredictionInterval() { return predictionIntervalBuilder_ != null || predictionInterval_ != null; } /** - * - * *
      * Output only. Only populated when
      * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -985,21 +894,16 @@ public boolean hasPredictionInterval() {
      * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; - * * @return The predictionInterval. */ public com.google.cloud.automl.v1beta1.DoubleRange getPredictionInterval() { if (predictionIntervalBuilder_ == null) { - return predictionInterval_ == null - ? com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance() - : predictionInterval_; + 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]
@@ -1023,8 +927,6 @@ public Builder setPredictionInterval(com.google.cloud.automl.v1beta1.DoubleRange
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Only populated when
      * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -1046,8 +948,6 @@ public Builder setPredictionInterval(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Only populated when
      * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -1061,9 +961,7 @@ public Builder mergePredictionInterval(com.google.cloud.automl.v1beta1.DoubleRan
       if (predictionIntervalBuilder_ == null) {
         if (predictionInterval_ != null) {
           predictionInterval_ =
-              com.google.cloud.automl.v1beta1.DoubleRange.newBuilder(predictionInterval_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.automl.v1beta1.DoubleRange.newBuilder(predictionInterval_).mergeFrom(value).buildPartial();
         } else {
           predictionInterval_ = value;
         }
@@ -1075,8 +973,6 @@ public Builder mergePredictionInterval(com.google.cloud.automl.v1beta1.DoubleRan
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Only populated when
      * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -1098,8 +994,6 @@ public Builder clearPredictionInterval() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Only populated when
      * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -1110,13 +1004,11 @@ public Builder clearPredictionInterval() {
      * .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]
@@ -1130,14 +1022,11 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
       if (predictionIntervalBuilder_ != null) {
         return predictionIntervalBuilder_.getMessageOrBuilder();
       } else {
-        return predictionInterval_ == null
-            ? com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance()
-            : predictionInterval_;
+        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]
@@ -1148,17 +1037,14 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
      * .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>
+        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());
+        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_;
@@ -1166,13 +1052,8 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
 
     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_;
+        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].
@@ -1183,15 +1064,12 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
      * 
* * .google.protobuf.Value value = 2; - * * @return Whether the value field is set. */ 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].
@@ -1202,7 +1080,6 @@ public boolean hasValue() {
      * 
* * .google.protobuf.Value value = 2; - * * @return The value. */ public com.google.protobuf.Value getValue() { @@ -1213,8 +1090,6 @@ public com.google.protobuf.Value getValue() { } } /** - * - * *
      * The predicted value of the row's
      * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -1240,8 +1115,6 @@ public Builder setValue(com.google.protobuf.Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The predicted value of the row's
      * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -1253,7 +1126,8 @@ public Builder setValue(com.google.protobuf.Value value) {
      *
      * .google.protobuf.Value value = 2;
      */
-    public Builder setValue(com.google.protobuf.Value.Builder builderForValue) {
+    public Builder setValue(
+        com.google.protobuf.Value.Builder builderForValue) {
       if (valueBuilder_ == null) {
         value_ = builderForValue.build();
         onChanged();
@@ -1264,8 +1138,6 @@ public Builder setValue(com.google.protobuf.Value.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The predicted value of the row's
      * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -1280,7 +1152,8 @@ public Builder setValue(com.google.protobuf.Value.Builder builderForValue) {
     public Builder mergeValue(com.google.protobuf.Value value) {
       if (valueBuilder_ == null) {
         if (value_ != null) {
-          value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial();
+          value_ =
+            com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial();
         } else {
           value_ = value;
         }
@@ -1292,8 +1165,6 @@ public Builder mergeValue(com.google.protobuf.Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The predicted value of the row's
      * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -1317,8 +1188,6 @@ public Builder clearValue() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The predicted value of the row's
      * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -1331,13 +1200,11 @@ public Builder clearValue() {
      * .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].
@@ -1353,12 +1220,11 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
       if (valueBuilder_ != null) {
         return valueBuilder_.getMessageOrBuilder();
       } else {
-        return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_;
+        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].
@@ -1371,42 +1237,32 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
      * .google.protobuf.Value value = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Value,
-            com.google.protobuf.Value.Builder,
-            com.google.protobuf.ValueOrBuilder>
+        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());
+        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 java.util.List tablesModelColumnInfo_ =
+      java.util.Collections.emptyList();
     private void ensureTablesModelColumnInfoIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        tablesModelColumnInfo_ =
-            new java.util.ArrayList(
-                tablesModelColumnInfo_);
+        tablesModelColumnInfo_ = new java.util.ArrayList(tablesModelColumnInfo_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     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_;
+        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]
@@ -1418,12 +1274,9 @@ private void ensureTablesModelColumnInfoIsMutable() {
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ - public java.util.List - getTablesModelColumnInfoList() { + public java.util.List getTablesModelColumnInfoList() { if (tablesModelColumnInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(tablesModelColumnInfo_); } else { @@ -1431,8 +1284,6 @@ private void ensureTablesModelColumnInfoIsMutable() { } } /** - * - * *
      * Output only. Auxiliary information for each of the model's
      * [input_feature_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
@@ -1444,9 +1295,7 @@ private void ensureTablesModelColumnInfoIsMutable() {
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ public int getTablesModelColumnInfoCount() { if (tablesModelColumnInfoBuilder_ == null) { @@ -1456,8 +1305,6 @@ public 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]
@@ -1469,12 +1316,9 @@ public int getTablesModelColumnInfoCount() {
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo( - int index) { + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo(int index) { if (tablesModelColumnInfoBuilder_ == null) { return tablesModelColumnInfo_.get(index); } else { @@ -1482,8 +1326,6 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColum } } /** - * - * *
      * Output only. Auxiliary information for each of the model's
      * [input_feature_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
@@ -1495,9 +1337,7 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColum
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ public Builder setTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { @@ -1514,8 +1354,6 @@ public Builder setTablesModelColumnInfo( 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]
@@ -1527,9 +1365,7 @@ public Builder setTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ public Builder setTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -1543,8 +1379,6 @@ public Builder setTablesModelColumnInfo( 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]
@@ -1556,12 +1390,9 @@ public Builder setTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ - public Builder addTablesModelColumnInfo( - com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { + public Builder addTablesModelColumnInfo(com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { if (tablesModelColumnInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1575,8 +1406,6 @@ public Builder addTablesModelColumnInfo( 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]
@@ -1588,9 +1417,7 @@ public Builder addTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ public Builder addTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { @@ -1607,8 +1434,6 @@ public Builder addTablesModelColumnInfo( 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]
@@ -1620,9 +1445,7 @@ public Builder addTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ public Builder addTablesModelColumnInfo( com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -1636,8 +1459,6 @@ public Builder addTablesModelColumnInfo( 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]
@@ -1649,9 +1470,7 @@ public Builder addTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ public Builder addTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -1665,8 +1484,6 @@ public Builder addTablesModelColumnInfo( 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]
@@ -1678,16 +1495,14 @@ public Builder addTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ public Builder addAllTablesModelColumnInfo( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (tablesModelColumnInfoBuilder_ == null) { ensureTablesModelColumnInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tablesModelColumnInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tablesModelColumnInfo_); onChanged(); } else { tablesModelColumnInfoBuilder_.addAllMessages(values); @@ -1695,8 +1510,6 @@ public Builder addAllTablesModelColumnInfo( 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]
@@ -1708,9 +1521,7 @@ public Builder addAllTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ public Builder clearTablesModelColumnInfo() { if (tablesModelColumnInfoBuilder_ == null) { @@ -1723,8 +1534,6 @@ public Builder clearTablesModelColumnInfo() { 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]
@@ -1736,9 +1545,7 @@ public Builder clearTablesModelColumnInfo() {
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ public Builder removeTablesModelColumnInfo(int index) { if (tablesModelColumnInfoBuilder_ == null) { @@ -1751,8 +1558,6 @@ public Builder removeTablesModelColumnInfo(int 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]
@@ -1764,17 +1569,13 @@ public Builder removeTablesModelColumnInfo(int index) {
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder - getTablesModelColumnInfoBuilder(int index) { + 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]
@@ -1786,21 +1587,16 @@ public Builder removeTablesModelColumnInfo(int index) {
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder - getTablesModelColumnInfoOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( + int index) { if (tablesModelColumnInfoBuilder_ == null) { - return tablesModelColumnInfo_.get(index); - } else { + 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]
@@ -1812,12 +1608,10 @@ public Builder removeTablesModelColumnInfo(int index) {
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ - public java.util.List - getTablesModelColumnInfoOrBuilderList() { + public java.util.List + getTablesModelColumnInfoOrBuilderList() { if (tablesModelColumnInfoBuilder_ != null) { return tablesModelColumnInfoBuilder_.getMessageOrBuilderList(); } else { @@ -1825,8 +1619,6 @@ public Builder removeTablesModelColumnInfo(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]
@@ -1838,18 +1630,13 @@ public Builder removeTablesModelColumnInfo(int index) {
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * 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()); + 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]
@@ -1861,19 +1648,14 @@ public Builder removeTablesModelColumnInfo(int index) {
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * 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()); + 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]
@@ -1885,26 +1667,18 @@ public Builder removeTablesModelColumnInfo(int index) {
      * would be populated, then this whole field is not.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ - public java.util.List - getTablesModelColumnInfoBuilderList() { + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -1914,10 +1688,8 @@ public Builder removeTablesModelColumnInfo(int index) { return tablesModelColumnInfoBuilder_; } - private float baselineScore_; + private float baselineScore_ ; /** - * - * *
      * Output only. Stores the prediction score for the baseline example, which
      * is defined as the example with all values set to their baseline values.
@@ -1929,7 +1701,6 @@ public Builder removeTablesModelColumnInfo(int index) {
      * 
* * float baseline_score = 5; - * * @return The baselineScore. */ @java.lang.Override @@ -1937,8 +1708,6 @@ public float getBaselineScore() { return baselineScore_; } /** - * - * *
      * Output only. Stores the prediction score for the baseline example, which
      * is defined as the example with all values set to their baseline values.
@@ -1950,19 +1719,16 @@ public float getBaselineScore() {
      * 
* * float baseline_score = 5; - * * @param value The baselineScore to set. * @return This builder for chaining. */ public Builder setBaselineScore(float value) { - + baselineScore_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Stores the prediction score for the baseline example, which
      * is defined as the example with all values set to their baseline values.
@@ -1974,18 +1740,17 @@ public Builder setBaselineScore(float value) {
      * 
* * float baseline_score = 5; - * * @return This builder for chaining. */ public Builder clearBaselineScore() { - + baselineScore_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1995,12 +1760,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -2009,16 +1774,16 @@ public static com.google.cloud.automl.v1beta1.TablesAnnotation getDefaultInstanc 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); - } - }; + 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; @@ -2033,4 +1798,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TablesAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java similarity index 87% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java index 674df0db9..e59c4ae84 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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.
@@ -35,14 +17,11 @@ public interface TablesAnnotationOrBuilder
    * 
* * float score = 1; - * * @return The score. */ float getScore(); /** - * - * *
    * Output only. Only populated when
    * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -51,13 +30,10 @@ public interface TablesAnnotationOrBuilder
    * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; - * * @return Whether the predictionInterval field is set. */ boolean hasPredictionInterval(); /** - * - * *
    * Output only. Only populated when
    * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -66,13 +42,10 @@ public interface TablesAnnotationOrBuilder
    * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; - * * @return The predictionInterval. */ com.google.cloud.automl.v1beta1.DoubleRange getPredictionInterval(); /** - * - * *
    * Output only. Only populated when
    * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -85,8 +58,6 @@ public interface TablesAnnotationOrBuilder
   com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionIntervalOrBuilder();
 
   /**
-   *
-   *
    * 
    * The predicted value of the row's
    * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -97,13 +68,10 @@ public interface TablesAnnotationOrBuilder
    * 
* * .google.protobuf.Value value = 2; - * * @return Whether the value field is set. */ boolean hasValue(); /** - * - * *
    * The predicted value of the row's
    * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -114,13 +82,10 @@ public interface TablesAnnotationOrBuilder
    * 
* * .google.protobuf.Value value = 2; - * * @return The value. */ com.google.protobuf.Value getValue(); /** - * - * *
    * The predicted value of the row's
    * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -135,8 +100,6 @@ public interface TablesAnnotationOrBuilder
   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]
@@ -148,14 +111,11 @@ public interface TablesAnnotationOrBuilder
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ - java.util.List + 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]
@@ -167,13 +127,10 @@ public interface TablesAnnotationOrBuilder
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * 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]
@@ -185,13 +142,10 @@ public interface TablesAnnotationOrBuilder
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * 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]
@@ -203,14 +157,11 @@ public interface TablesAnnotationOrBuilder
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ - java.util.List + 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]
@@ -222,15 +173,12 @@ public interface TablesAnnotationOrBuilder
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; */ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( int index); /** - * - * *
    * Output only. Stores the prediction score for the baseline example, which
    * is defined as the example with all values set to their baseline values.
@@ -242,7 +190,6 @@ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelCol
    * 
* * float baseline_score = 5; - * * @return The baselineScore. */ float getBaselineScore(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java similarity index 75% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java index 0747fe2d2..671d0c9c7 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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_ = ""; @@ -46,15 +28,16 @@ private TablesDatasetMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TablesDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TablesDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,125 +57,108 @@ private TablesDatasetMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - primaryTableSpecId_ = s; - break; - } - case 18: - { - 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(); + targetColumnSpecId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - weightColumnSpecId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + weightColumnSpecId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - mlUseColumnSpecId_ = s; - break; + mlUseColumnSpecId_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targetColumnCorrelations_ = com.google.protobuf.MapField.newMapField( + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - targetColumnCorrelations_ = - com.google.protobuf.MapField.newMapField( - TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - 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; + com.google.protobuf.MapEntry + 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(); } - 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; + statsUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(statsUpdateTime_); + statsUpdateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetTargetColumnCorrelations(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.class, com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder.class); } 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; - * * @return The primaryTableSpecId. */ @java.lang.Override @@ -201,29 +167,29 @@ public java.lang.String getPrimaryTableSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for primaryTableSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString getPrimaryTableSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); primaryTableSpecId_ = b; return b; } else { @@ -234,8 +200,6 @@ public com.google.protobuf.ByteString getPrimaryTableSpecIdBytes() { 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.
@@ -250,7 +214,6 @@ public com.google.protobuf.ByteString getPrimaryTableSpecIdBytes() {
    * 
* * string target_column_spec_id = 2; - * * @return The targetColumnSpecId. */ @java.lang.Override @@ -259,15 +222,14 @@ public java.lang.String getTargetColumnSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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.
@@ -282,15 +244,16 @@ public java.lang.String getTargetColumnSpecId() {
    * 
* * string target_column_spec_id = 2; - * * @return The bytes for targetColumnSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetColumnSpecId_ = b; return b; } else { @@ -301,8 +264,6 @@ public com.google.protobuf.ByteString getTargetColumnSpecIdBytes() { 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
@@ -316,7 +277,6 @@ public com.google.protobuf.ByteString getTargetColumnSpecIdBytes() {
    * 
* * string weight_column_spec_id = 3; - * * @return The weightColumnSpecId. */ @java.lang.Override @@ -325,15 +285,14 @@ public java.lang.String getWeightColumnSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -347,15 +306,16 @@ public java.lang.String getWeightColumnSpecId() {
    * 
* * string weight_column_spec_id = 3; - * * @return The bytes for weightColumnSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString getWeightColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); weightColumnSpecId_ = b; return b; } else { @@ -366,8 +326,6 @@ public com.google.protobuf.ByteString getWeightColumnSpecIdBytes() { 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,
@@ -385,7 +343,6 @@ public com.google.protobuf.ByteString getWeightColumnSpecIdBytes() {
    * 
* * string ml_use_column_spec_id = 4; - * * @return The mlUseColumnSpecId. */ @java.lang.Override @@ -394,15 +351,14 @@ public java.lang.String getMlUseColumnSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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,
@@ -420,15 +376,16 @@ public java.lang.String getMlUseColumnSpecId() {
    * 
* * string ml_use_column_spec_id = 4; - * * @return The bytes for mlUseColumnSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString getMlUseColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mlUseColumnSpecId_ = b; return b; } else { @@ -437,29 +394,21 @@ public com.google.protobuf.ByteString getMlUseColumnSpecIdBytes() { } 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 = + 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()); + .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() { + java.lang.String, com.google.cloud.automl.v1beta1.CorrelationStats> targetColumnCorrelations_; + private com.google.protobuf.MapField + internalGetTargetColumnCorrelations() { if (targetColumnCorrelations_ == null) { return com.google.protobuf.MapField.emptyMapField( TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); @@ -471,8 +420,6 @@ public int getTargetColumnCorrelationsCount() { return internalGetTargetColumnCorrelations().getMap().size(); } /** - * - * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -484,27 +431,24 @@ public int getTargetColumnCorrelationsCount() {
    * for the timestamp at which these stats were last updated.
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ + @java.lang.Override - public boolean containsTargetColumnCorrelations(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsTargetColumnCorrelations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetTargetColumnCorrelations().getMap().containsKey(key); } - /** Use {@link #getTargetColumnCorrelationsMap()} instead. */ + /** + * Use {@link #getTargetColumnCorrelationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getTargetColumnCorrelations() { + public java.util.Map getTargetColumnCorrelations() { return getTargetColumnCorrelationsMap(); } /** - * - * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -516,18 +460,14 @@ public boolean containsTargetColumnCorrelations(java.lang.String key) {
    * for the timestamp at which these stats were last updated.
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ @java.lang.Override - public java.util.Map - getTargetColumnCorrelationsMap() { + + public java.util.Map getTargetColumnCorrelationsMap() { return internalGetTargetColumnCorrelations().getMap(); } /** - * - * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -539,23 +479,19 @@ public boolean containsTargetColumnCorrelations(java.lang.String key) {
    * for the timestamp at which these stats were last updated.
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ @java.lang.Override + 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.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
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -567,16 +503,13 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelati
    * for the timestamp at which these stats were last updated.
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ @java.lang.Override + public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetTargetColumnCorrelations().getMap(); if (!map.containsKey(key)) { @@ -588,8 +521,6 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelati public static final int STATS_UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp statsUpdateTime_; /** - * - * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
@@ -600,7 +531,6 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelati
    * 
* * .google.protobuf.Timestamp stats_update_time = 7; - * * @return Whether the statsUpdateTime field is set. */ @java.lang.Override @@ -608,8 +538,6 @@ public boolean hasStatsUpdateTime() { return statsUpdateTime_ != null; } /** - * - * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
@@ -620,18 +548,13 @@ public boolean hasStatsUpdateTime() {
    * 
* * .google.protobuf.Timestamp stats_update_time = 7; - * * @return The statsUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStatsUpdateTime() { - return statsUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : statsUpdateTime_; + return statsUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : statsUpdateTime_; } /** - * - * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
@@ -649,7 +572,6 @@ public com.google.protobuf.TimestampOrBuilder getStatsUpdateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -661,7 +583,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryTableSpecId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, primaryTableSpecId_);
     }
@@ -674,7 +597,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mlUseColumnSpecId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mlUseColumnSpecId_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
         output,
         internalGetTargetColumnCorrelations(),
         TargetColumnCorrelationsDefaultEntryHolder.defaultEntry,
@@ -703,21 +627,19 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mlUseColumnSpecId_)) {
       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__);
+    for (java.util.Map.Entry entry
+         : internalGetTargetColumnCorrelations().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      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 += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getStatsUpdateTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -727,23 +649,27 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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;
+    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 (!getStatsUpdateTime()
+          .equals(other.getStatsUpdateTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -778,147 +704,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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)
+      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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.automl.v1beta1.TablesDatasetMetadata prototype) {
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetTargetColumnCorrelations(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableTargetColumnCorrelations(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.class, com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TablesDatasetMetadata.newBuilder() @@ -926,15 +844,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -957,9 +876,9 @@ public Builder clear() { } @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; + 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 @@ -978,8 +897,7 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadata build() { @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); + com.google.cloud.automl.v1beta1.TablesDatasetMetadata result = new com.google.cloud.automl.v1beta1.TablesDatasetMetadata(this); int from_bitField0_ = bitField0_; result.primaryTableSpecId_ = primaryTableSpecId_; result.targetColumnSpecId_ = targetColumnSpecId_; @@ -1000,39 +918,38 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TablesDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -1040,8 +957,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesDatasetMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance()) return this; if (!other.getPrimaryTableSpecId().isEmpty()) { primaryTableSpecId_ = other.primaryTableSpecId_; onChanged(); @@ -1058,8 +974,8 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesDatasetMetadata o mlUseColumnSpecId_ = other.mlUseColumnSpecId_; onChanged(); } - internalGetMutableTargetColumnCorrelations() - .mergeFrom(other.internalGetTargetColumnCorrelations()); + internalGetMutableTargetColumnCorrelations().mergeFrom( + other.internalGetTargetColumnCorrelations()); if (other.hasStatsUpdateTime()) { mergeStatsUpdateTime(other.getStatsUpdateTime()); } @@ -1082,8 +998,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1092,25 +1007,22 @@ public Builder mergeFrom( } 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; - * * @return The primaryTableSpecId. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); primaryTableSpecId_ = s; return s; @@ -1119,21 +1031,20 @@ public java.lang.String getPrimaryTableSpecId() { } } /** - * - * *
      * Output only. The table_spec_id of the primary table of this dataset.
      * 
* * string primary_table_spec_id = 1; - * * @return The bytes for primaryTableSpecId. */ - public com.google.protobuf.ByteString getPrimaryTableSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); primaryTableSpecId_ = b; return b; } else { @@ -1141,61 +1052,54 @@ public com.google.protobuf.ByteString getPrimaryTableSpecIdBytes() { } } /** - * - * *
      * Output only. The table_spec_id of the primary table of this dataset.
      * 
* * string primary_table_spec_id = 1; - * * @param value The primaryTableSpecId to set. * @return This builder for chaining. */ - public Builder setPrimaryTableSpecId(java.lang.String value) { + public Builder setPrimaryTableSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for primaryTableSpecId to set. * @return This builder for chaining. */ - public Builder setPrimaryTableSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder setPrimaryTableSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryTableSpecId_ = value; onChanged(); return this; @@ -1203,8 +1107,6 @@ public Builder setPrimaryTableSpecIdBytes(com.google.protobuf.ByteString value) private java.lang.Object targetColumnSpecId_ = ""; /** - * - * *
      * column_spec_id of the primary table's column that should be used as the
      * training & prediction target.
@@ -1219,13 +1121,13 @@ public Builder setPrimaryTableSpecIdBytes(com.google.protobuf.ByteString value)
      * 
* * string target_column_spec_id = 2; - * * @return The targetColumnSpecId. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetColumnSpecId_ = s; return s; @@ -1234,8 +1136,6 @@ public java.lang.String getTargetColumnSpecId() { } } /** - * - * *
      * column_spec_id of the primary table's column that should be used as the
      * training & prediction target.
@@ -1250,14 +1150,15 @@ public java.lang.String getTargetColumnSpecId() {
      * 
* * string target_column_spec_id = 2; - * * @return The bytes for targetColumnSpecId. */ - public com.google.protobuf.ByteString getTargetColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetColumnSpecId_ = b; return b; } else { @@ -1265,8 +1166,6 @@ public com.google.protobuf.ByteString getTargetColumnSpecIdBytes() { } } /** - * - * *
      * column_spec_id of the primary table's column that should be used as the
      * training & prediction target.
@@ -1281,22 +1180,20 @@ public com.google.protobuf.ByteString getTargetColumnSpecIdBytes() {
      * 
* * string target_column_spec_id = 2; - * * @param value The targetColumnSpecId to set. * @return This builder for chaining. */ - public Builder setTargetColumnSpecId(java.lang.String value) { + public Builder setTargetColumnSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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.
@@ -1311,18 +1208,15 @@ public Builder setTargetColumnSpecId(java.lang.String value) {
      * 
* * string target_column_spec_id = 2; - * * @return This builder for chaining. */ 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.
@@ -1337,16 +1231,16 @@ public Builder clearTargetColumnSpecId() {
      * 
* * string target_column_spec_id = 2; - * * @param value The bytes for targetColumnSpecId to set. * @return This builder for chaining. */ - public Builder setTargetColumnSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder setTargetColumnSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetColumnSpecId_ = value; onChanged(); return this; @@ -1354,8 +1248,6 @@ public Builder setTargetColumnSpecIdBytes(com.google.protobuf.ByteString value) 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
@@ -1369,13 +1261,13 @@ public Builder setTargetColumnSpecIdBytes(com.google.protobuf.ByteString value)
      * 
* * string weight_column_spec_id = 3; - * * @return The weightColumnSpecId. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); weightColumnSpecId_ = s; return s; @@ -1384,8 +1276,6 @@ public 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
@@ -1399,14 +1289,15 @@ public java.lang.String getWeightColumnSpecId() {
      * 
* * string weight_column_spec_id = 3; - * * @return The bytes for weightColumnSpecId. */ - public com.google.protobuf.ByteString getWeightColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); weightColumnSpecId_ = b; return b; } else { @@ -1414,8 +1305,6 @@ public com.google.protobuf.ByteString getWeightColumnSpecIdBytes() { } } /** - * - * *
      * 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
@@ -1429,22 +1318,20 @@ public com.google.protobuf.ByteString getWeightColumnSpecIdBytes() {
      * 
* * string weight_column_spec_id = 3; - * * @param value The weightColumnSpecId to set. * @return This builder for chaining. */ - public Builder setWeightColumnSpecId(java.lang.String value) { + public Builder setWeightColumnSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -1458,18 +1345,15 @@ public Builder setWeightColumnSpecId(java.lang.String value) {
      * 
* * string weight_column_spec_id = 3; - * * @return This builder for chaining. */ 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
@@ -1483,16 +1367,16 @@ public Builder clearWeightColumnSpecId() {
      * 
* * string weight_column_spec_id = 3; - * * @param value The bytes for weightColumnSpecId to set. * @return This builder for chaining. */ - public Builder setWeightColumnSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder setWeightColumnSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + weightColumnSpecId_ = value; onChanged(); return this; @@ -1500,8 +1384,6 @@ public Builder setWeightColumnSpecIdBytes(com.google.protobuf.ByteString value) 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,
@@ -1519,13 +1401,13 @@ public Builder setWeightColumnSpecIdBytes(com.google.protobuf.ByteString value)
      * 
* * string ml_use_column_spec_id = 4; - * * @return The mlUseColumnSpecId. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mlUseColumnSpecId_ = s; return s; @@ -1534,8 +1416,6 @@ public 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,
@@ -1553,14 +1433,15 @@ public java.lang.String getMlUseColumnSpecId() {
      * 
* * string ml_use_column_spec_id = 4; - * * @return The bytes for mlUseColumnSpecId. */ - public com.google.protobuf.ByteString getMlUseColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mlUseColumnSpecId_ = b; return b; } else { @@ -1568,8 +1449,6 @@ public com.google.protobuf.ByteString getMlUseColumnSpecIdBytes() { } } /** - * - * *
      * 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,
@@ -1587,22 +1466,20 @@ public com.google.protobuf.ByteString getMlUseColumnSpecIdBytes() {
      * 
* * string ml_use_column_spec_id = 4; - * * @param value The mlUseColumnSpecId to set. * @return This builder for chaining. */ - public Builder setMlUseColumnSpecId(java.lang.String value) { + public Builder setMlUseColumnSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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,
@@ -1620,18 +1497,15 @@ public Builder setMlUseColumnSpecId(java.lang.String value) {
      * 
* * string ml_use_column_spec_id = 4; - * * @return This builder for chaining. */ 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,
@@ -1649,44 +1523,37 @@ public Builder clearMlUseColumnSpecId() {
      * 
* * string ml_use_column_spec_id = 4; - * * @param value The bytes for mlUseColumnSpecId to set. * @return This builder for chaining. */ - public Builder setMlUseColumnSpecIdBytes(com.google.protobuf.ByteString value) { + public Builder setMlUseColumnSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + 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() { + java.lang.String, com.google.cloud.automl.v1beta1.CorrelationStats> targetColumnCorrelations_; + private com.google.protobuf.MapField + 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(); - ; + private com.google.protobuf.MapField + internalGetMutableTargetColumnCorrelations() { + onChanged();; if (targetColumnCorrelations_ == null) { - targetColumnCorrelations_ = - com.google.protobuf.MapField.newMapField( - TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); + targetColumnCorrelations_ = com.google.protobuf.MapField.newMapField( + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); } if (!targetColumnCorrelations_.isMutable()) { targetColumnCorrelations_ = targetColumnCorrelations_.copy(); @@ -1698,8 +1565,6 @@ public int getTargetColumnCorrelationsCount() { return internalGetTargetColumnCorrelations().getMap().size(); } /** - * - * *
      * Output only. Correlations between
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1711,27 +1576,24 @@ public int getTargetColumnCorrelationsCount() {
      * for the timestamp at which these stats were last updated.
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ + @java.lang.Override - public boolean containsTargetColumnCorrelations(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsTargetColumnCorrelations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetTargetColumnCorrelations().getMap().containsKey(key); } - /** Use {@link #getTargetColumnCorrelationsMap()} instead. */ + /** + * Use {@link #getTargetColumnCorrelationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getTargetColumnCorrelations() { + public java.util.Map getTargetColumnCorrelations() { return getTargetColumnCorrelationsMap(); } /** - * - * *
      * Output only. Correlations between
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1743,18 +1605,14 @@ public boolean containsTargetColumnCorrelations(java.lang.String key) {
      * for the timestamp at which these stats were last updated.
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ @java.lang.Override - public java.util.Map - getTargetColumnCorrelationsMap() { + + public java.util.Map getTargetColumnCorrelationsMap() { return internalGetTargetColumnCorrelations().getMap(); } /** - * - * *
      * Output only. Correlations between
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1766,23 +1624,19 @@ public boolean containsTargetColumnCorrelations(java.lang.String key) {
      * for the timestamp at which these stats were last updated.
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ @java.lang.Override + 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.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
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1794,16 +1648,13 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelati
      * for the timestamp at which these stats were last updated.
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ @java.lang.Override + public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetTargetColumnCorrelations().getMap(); if (!map.containsKey(key)) { @@ -1813,12 +1664,11 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelati } public Builder clearTargetColumnCorrelations() { - internalGetMutableTargetColumnCorrelations().getMutableMap().clear(); + internalGetMutableTargetColumnCorrelations().getMutableMap() + .clear(); return this; } /** - * - * *
      * Output only. Correlations between
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1830,26 +1680,25 @@ public Builder clearTargetColumnCorrelations() {
      * for the timestamp at which these stats were last updated.
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * 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); + + 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. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableTargetColumnCorrelations() { + getMutableTargetColumnCorrelations() { return internalGetMutableTargetColumnCorrelations().getMutableMap(); } /** - * - * *
      * Output only. Correlations between
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1861,24 +1710,18 @@ public Builder removeTargetColumnCorrelations(java.lang.String key) {
      * for the timestamp at which these stats were last updated.
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * 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); + 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
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1890,25 +1733,20 @@ public Builder putTargetColumnCorrelations(
      * for the timestamp at which these stats were last updated.
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ + public Builder putAllTargetColumnCorrelations( java.util.Map values) { - internalGetMutableTargetColumnCorrelations().getMutableMap().putAll(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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> statsUpdateTimeBuilder_; /** - * - * *
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1919,15 +1757,12 @@ public Builder putAllTargetColumnCorrelations(
      * 
* * .google.protobuf.Timestamp stats_update_time = 7; - * * @return Whether the statsUpdateTime field is set. */ public boolean hasStatsUpdateTime() { return statsUpdateTimeBuilder_ != null || statsUpdateTime_ != null; } /** - * - * *
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1938,21 +1773,16 @@ public boolean hasStatsUpdateTime() {
      * 
* * .google.protobuf.Timestamp stats_update_time = 7; - * * @return The statsUpdateTime. */ public com.google.protobuf.Timestamp getStatsUpdateTime() { if (statsUpdateTimeBuilder_ == null) { - return statsUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : statsUpdateTime_; + return statsUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : statsUpdateTime_; } else { return statsUpdateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1978,8 +1808,6 @@ public Builder setStatsUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1991,7 +1819,8 @@ public Builder setStatsUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp stats_update_time = 7;
      */
-    public Builder setStatsUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStatsUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (statsUpdateTimeBuilder_ == null) {
         statsUpdateTime_ = builderForValue.build();
         onChanged();
@@ -2002,8 +1831,6 @@ public Builder setStatsUpdateTime(com.google.protobuf.Timestamp.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -2019,9 +1846,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();
+            com.google.protobuf.Timestamp.newBuilder(statsUpdateTime_).mergeFrom(value).buildPartial();
         } else {
           statsUpdateTime_ = value;
         }
@@ -2033,8 +1858,6 @@ public Builder mergeStatsUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -2058,8 +1881,6 @@ public Builder clearStatsUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -2072,13 +1893,11 @@ public Builder clearStatsUpdateTime() {
      * .google.protobuf.Timestamp stats_update_time = 7;
      */
     public com.google.protobuf.Timestamp.Builder getStatsUpdateTimeBuilder() {
-
+      
       onChanged();
       return getStatsUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -2094,14 +1913,11 @@ public com.google.protobuf.TimestampOrBuilder getStatsUpdateTimeOrBuilder() {
       if (statsUpdateTimeBuilder_ != null) {
         return statsUpdateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return statsUpdateTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : statsUpdateTime_;
+        return statsUpdateTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : statsUpdateTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -2114,24 +1930,21 @@ public com.google.protobuf.TimestampOrBuilder getStatsUpdateTimeOrBuilder() {
      * .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>
+        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());
+        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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2141,12 +1954,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -2155,16 +1968,16 @@ public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata getDefaultIn
     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);
-        }
-      };
+  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;
@@ -2179,4 +1992,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java
similarity index 83%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java
index 8de254bf8..2882e2eac 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+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; - * * @return The primaryTableSpecId. */ java.lang.String getPrimaryTableSpecId(); /** - * - * *
    * Output only. The table_spec_id of the primary table of this dataset.
    * 
* * string primary_table_spec_id = 1; - * * @return The bytes for primaryTableSpecId. */ - com.google.protobuf.ByteString getPrimaryTableSpecIdBytes(); + com.google.protobuf.ByteString + getPrimaryTableSpecIdBytes(); /** - * - * *
    * column_spec_id of the primary table's column that should be used as the
    * training & prediction target.
@@ -65,13 +42,10 @@ public interface TablesDatasetMetadataOrBuilder
    * 
* * string target_column_spec_id = 2; - * * @return The targetColumnSpecId. */ java.lang.String getTargetColumnSpecId(); /** - * - * *
    * column_spec_id of the primary table's column that should be used as the
    * training & prediction target.
@@ -86,14 +60,12 @@ public interface TablesDatasetMetadataOrBuilder
    * 
* * string target_column_spec_id = 2; - * * @return The bytes for targetColumnSpecId. */ - com.google.protobuf.ByteString getTargetColumnSpecIdBytes(); + 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
@@ -107,13 +79,10 @@ public interface TablesDatasetMetadataOrBuilder
    * 
* * string weight_column_spec_id = 3; - * * @return The weightColumnSpecId. */ 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
@@ -127,14 +96,12 @@ public interface TablesDatasetMetadataOrBuilder
    * 
* * string weight_column_spec_id = 3; - * * @return The bytes for weightColumnSpecId. */ - com.google.protobuf.ByteString getWeightColumnSpecIdBytes(); + 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,
@@ -152,13 +119,10 @@ public interface TablesDatasetMetadataOrBuilder
    * 
* * string ml_use_column_spec_id = 4; - * * @return The mlUseColumnSpecId. */ 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,
@@ -176,14 +140,12 @@ public interface TablesDatasetMetadataOrBuilder
    * 
* * string ml_use_column_spec_id = 4; - * * @return The bytes for mlUseColumnSpecId. */ - com.google.protobuf.ByteString getMlUseColumnSpecIdBytes(); + com.google.protobuf.ByteString + getMlUseColumnSpecIdBytes(); /** - * - * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -195,14 +157,10 @@ public interface TablesDatasetMetadataOrBuilder
    * for the timestamp at which these stats were last updated.
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ int getTargetColumnCorrelationsCount(); /** - * - * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -214,18 +172,17 @@ public interface TablesDatasetMetadataOrBuilder
    * for the timestamp at which these stats were last updated.
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + */ + boolean containsTargetColumnCorrelations( + java.lang.String key); + /** + * Use {@link #getTargetColumnCorrelationsMap()} instead. */ - boolean containsTargetColumnCorrelations(java.lang.String key); - /** Use {@link #getTargetColumnCorrelationsMap()} instead. */ @java.lang.Deprecated java.util.Map - getTargetColumnCorrelations(); + getTargetColumnCorrelations(); /** - * - * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -237,15 +194,11 @@ public interface TablesDatasetMetadataOrBuilder
    * for the timestamp at which these stats were last updated.
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ java.util.Map - getTargetColumnCorrelationsMap(); + getTargetColumnCorrelationsMap(); /** - * - * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -257,15 +210,13 @@ public interface TablesDatasetMetadataOrBuilder
    * for the timestamp at which these stats were last updated.
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * 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); + java.lang.String key, + com.google.cloud.automl.v1beta1.CorrelationStats defaultValue); /** - * - * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -277,16 +228,13 @@ com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrDe
    * for the timestamp at which these stats were last updated.
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; - * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; */ + com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrThrow( java.lang.String key); /** - * - * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
@@ -297,13 +245,10 @@ com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrTh
    * 
* * .google.protobuf.Timestamp stats_update_time = 7; - * * @return Whether the statsUpdateTime field is set. */ boolean hasStatsUpdateTime(); /** - * - * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
@@ -314,13 +259,10 @@ com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrTh
    * 
* * .google.protobuf.Timestamp stats_update_time = 7; - * * @return The statsUpdateTime. */ com.google.protobuf.Timestamp getStatsUpdateTime(); /** - * - * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java
similarity index 74%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java
index 52353260f..901a1aab8 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.TablesModelColumnInfo}
  */
-public final class TablesModelColumnInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+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_ = "";
@@ -45,15 +27,16 @@ private TablesModelColumnInfo() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TablesModelColumnInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TablesModelColumnInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,71 +55,64 @@ private TablesModelColumnInfo(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              columnSpecName_ = s;
-              break;
-            }
-          case 18:
-            {
-              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;
+            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);
+      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;
+  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
+    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);
+            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; - * * @return The columnSpecName. */ @java.lang.Override @@ -145,30 +121,30 @@ public java.lang.String getColumnSpecName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for columnSpecName. */ @java.lang.Override - public com.google.protobuf.ByteString getColumnSpecNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnSpecName_ = b; return b; } else { @@ -179,15 +155,12 @@ public com.google.protobuf.ByteString getColumnSpecNameBytes() { 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; - * * @return The columnDisplayName. */ @java.lang.Override @@ -196,30 +169,30 @@ public java.lang.String getColumnDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for columnDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getColumnDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnDisplayName_ = b; return b; } else { @@ -230,8 +203,6 @@ public com.google.protobuf.ByteString getColumnDisplayNameBytes() { public static final int FEATURE_IMPORTANCE_FIELD_NUMBER = 3; private float featureImportance_; /** - * - * *
    * Output only. When given as part of a Model (always populated):
    * Measurement of how much model predictions correctness on the TEST data
@@ -252,7 +223,6 @@ public com.google.protobuf.ByteString getColumnDisplayNameBytes() {
    * 
* * float feature_importance = 3; - * * @return The featureImportance. */ @java.lang.Override @@ -261,7 +231,6 @@ public float getFeatureImportance() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +242,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnSpecName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnSpecName_); } @@ -299,7 +269,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, columnDisplayName_); } if (featureImportance_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, featureImportance_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, featureImportance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -309,18 +280,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; + != java.lang.Float.floatToIntBits( + other.getFeatureImportance())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,111 +310,104 @@ public int 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 = (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 { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TablesModelColumnInfo prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -449,23 +415,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.TablesModelColumnInfo}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.TablesModelColumnInfo.class, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.TablesModelColumnInfo.newBuilder()
@@ -473,15 +437,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -495,9 +460,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -516,8 +481,7 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.TablesModelColumnInfo result = new com.google.cloud.automl.v1beta1.TablesModelColumnInfo(this);
       result.columnSpecName_ = columnSpecName_;
       result.columnDisplayName_ = columnDisplayName_;
       result.featureImportance_ = featureImportance_;
@@ -529,39 +493,38 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.TablesModelColumnInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -569,8 +532,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelColumnInfo other) {
-      if (other == com.google.cloud.automl.v1beta1.TablesModelColumnInfo.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.automl.v1beta1.TablesModelColumnInfo.getDefaultInstance()) return this;
       if (!other.getColumnSpecName().isEmpty()) {
         columnSpecName_ = other.columnSpecName_;
         onChanged();
@@ -601,8 +563,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1beta1.TablesModelColumnInfo) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1beta1.TablesModelColumnInfo) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -614,21 +575,19 @@ public Builder mergeFrom(
 
     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; - * * @return The columnSpecName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnSpecName_ = s; return s; @@ -637,22 +596,21 @@ public 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; - * * @return The bytes for columnSpecName. */ - public com.google.protobuf.ByteString getColumnSpecNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnSpecName_ = b; return b; } else { @@ -660,64 +618,57 @@ public com.google.protobuf.ByteString getColumnSpecNameBytes() { } } /** - * - * *
      * Output only. The name of the ColumnSpec describing the column. Not
      * populated when this proto is outputted to BigQuery.
      * 
* * string column_spec_name = 1; - * * @param value The columnSpecName to set. * @return This builder for chaining. */ - public Builder setColumnSpecName(java.lang.String value) { + public Builder setColumnSpecName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for columnSpecName to set. * @return This builder for chaining. */ - public Builder setColumnSpecNameBytes(com.google.protobuf.ByteString value) { + public Builder setColumnSpecNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + columnSpecName_ = value; onChanged(); return this; @@ -725,21 +676,19 @@ public Builder setColumnSpecNameBytes(com.google.protobuf.ByteString value) { 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; - * * @return The columnDisplayName. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnDisplayName_ = s; return s; @@ -748,22 +697,21 @@ public 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; - * * @return The bytes for columnDisplayName. */ - public com.google.protobuf.ByteString getColumnDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnDisplayName_ = b; return b; } else { @@ -771,73 +719,64 @@ public com.google.protobuf.ByteString getColumnDisplayNameBytes() { } } /** - * - * *
      * Output only. The display name of the column (same as the display_name of
      * its ColumnSpec).
      * 
* * string column_display_name = 2; - * * @param value The columnDisplayName to set. * @return This builder for chaining. */ - public Builder setColumnDisplayName(java.lang.String value) { + public Builder setColumnDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; - * * @return This builder for chaining. */ 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; - * * @param value The bytes for columnDisplayName to set. * @return This builder for chaining. */ - public Builder setColumnDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setColumnDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + columnDisplayName_ = value; onChanged(); return this; } - private float featureImportance_; + private float featureImportance_ ; /** - * - * *
      * Output only. When given as part of a Model (always populated):
      * Measurement of how much model predictions correctness on the TEST data
@@ -858,7 +797,6 @@ public Builder setColumnDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * float feature_importance = 3; - * * @return The featureImportance. */ @java.lang.Override @@ -866,8 +804,6 @@ public float getFeatureImportance() { return featureImportance_; } /** - * - * *
      * Output only. When given as part of a Model (always populated):
      * Measurement of how much model predictions correctness on the TEST data
@@ -888,19 +824,16 @@ public float getFeatureImportance() {
      * 
* * float feature_importance = 3; - * * @param value The featureImportance to set. * @return This builder for chaining. */ public Builder setFeatureImportance(float value) { - + featureImportance_ = value; onChanged(); return this; } /** - * - * *
      * Output only. When given as part of a Model (always populated):
      * Measurement of how much model predictions correctness on the TEST data
@@ -921,18 +854,17 @@ public Builder setFeatureImportance(float value) {
      * 
* * float feature_importance = 3; - * * @return This builder for chaining. */ public Builder clearFeatureImportance() { - + featureImportance_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -942,12 +874,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -956,16 +888,16 @@ public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo getDefaultIn 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); - } - }; + 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; @@ -980,4 +912,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java similarity index 74% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java index 4b234297d..f2e7c117c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java @@ -1,85 +1,57 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return The columnSpecName. */ 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; - * * @return The bytes for columnSpecName. */ - com.google.protobuf.ByteString getColumnSpecNameBytes(); + 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; - * * @return The columnDisplayName. */ 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; - * * @return The bytes for columnDisplayName. */ - com.google.protobuf.ByteString getColumnDisplayNameBytes(); + com.google.protobuf.ByteString + getColumnDisplayNameBytes(); /** - * - * *
    * Output only. When given as part of a Model (always populated):
    * Measurement of how much model predictions correctness on the TEST data
@@ -100,7 +72,6 @@ public interface TablesModelColumnInfoOrBuilder
    * 
* * float feature_importance = 3; - * * @return The featureImportance. */ float getFeatureImportance(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java similarity index 81% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java index 71592001a..a6a8387ab 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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_ = ""; @@ -45,15 +27,16 @@ private TablesModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TablesModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TablesModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,95 +56,82 @@ private TablesModelMetadata( 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 18: { + com.google.cloud.automl.v1beta1.ColumnSpec.Builder subBuilder = null; + if (targetColumnSpec_ != null) { + subBuilder = targetColumnSpec_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - inputFeatureColumnSpecs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - inputFeatureColumnSpecs_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.ColumnSpec.parser(), extensionRegistry)); - break; + targetColumnSpec_ = input.readMessage(com.google.cloud.automl.v1beta1.ColumnSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetColumnSpec_); + targetColumnSpec_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - optimizationObjective_ = s; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tablesModelColumnInfo_ = - new java.util.ArrayList< - com.google.cloud.automl.v1beta1.TablesModelColumnInfo>(); - mutable_bitField0_ |= 0x00000002; - } - 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; - } - case 96: - { - disableEarlyStopping_ = input.readBool(); - break; - } - case 141: - { - additionalOptimizationObjectiveConfigCase_ = 17; - additionalOptimizationObjectiveConfig_ = input.readFloat(); - break; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + inputFeatureColumnSpecs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 149: - { - additionalOptimizationObjectiveConfigCase_ = 18; - additionalOptimizationObjectiveConfig_ = input.readFloat(); - break; + 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_ & 0x00000002) != 0)) { + tablesModelColumnInfo_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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; + } + case 96: { + + disableEarlyStopping_ = input.readBool(); + break; + } + case 141: { + additionalOptimizationObjectiveConfigCase_ = 17; + additionalOptimizationObjectiveConfig_ = input.readFloat(); + break; + } + case 149: { + additionalOptimizationObjectiveConfigCase_ = 18; + additionalOptimizationObjectiveConfig_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { inputFeatureColumnSpecs_ = java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_); @@ -173,34 +143,28 @@ private TablesModelMetadata( 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TablesModelMetadata.class, com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder.class); } private int additionalOptimizationObjectiveConfigCase_ = 0; private java.lang.Object additionalOptimizationObjectiveConfig_; - public enum AdditionalOptimizationObjectiveConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { OPTIMIZATION_OBJECTIVE_RECALL_VALUE(17), OPTIMIZATION_OBJECTIVE_PRECISION_VALUE(18), ADDITIONALOPTIMIZATIONOBJECTIVECONFIG_NOT_SET(0); private final int value; - private AdditionalOptimizationObjectiveConfigCase(int value) { this.value = value; } @@ -216,38 +180,31 @@ public static AdditionalOptimizationObjectiveConfigCase valueOf(int value) { public static AdditionalOptimizationObjectiveConfigCase forNumber(int value) { switch (value) { - case 17: - return OPTIMIZATION_OBJECTIVE_RECALL_VALUE; - case 18: - return OPTIMIZATION_OBJECTIVE_PRECISION_VALUE; - case 0: - return ADDITIONALOPTIMIZATIONOBJECTIVECONFIG_NOT_SET; - default: - return null; + case 17: return OPTIMIZATION_OBJECTIVE_RECALL_VALUE; + case 18: return OPTIMIZATION_OBJECTIVE_PRECISION_VALUE; + case 0: return ADDITIONALOPTIMIZATIONOBJECTIVECONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AdditionalOptimizationObjectiveConfigCase getAdditionalOptimizationObjectiveConfigCase() { + public AdditionalOptimizationObjectiveConfigCase + getAdditionalOptimizationObjectiveConfigCase() { return AdditionalOptimizationObjectiveConfigCase.forNumber( additionalOptimizationObjectiveConfigCase_); } public static final int OPTIMIZATION_OBJECTIVE_RECALL_VALUE_FIELD_NUMBER = 17; /** - * - * *
    * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_recall_value = 17; - * * @return Whether the optimizationObjectiveRecallValue field is set. */ @java.lang.Override @@ -255,15 +212,12 @@ public boolean hasOptimizationObjectiveRecallValue() { return additionalOptimizationObjectiveConfigCase_ == 17; } /** - * - * *
    * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_recall_value = 17; - * * @return The optimizationObjectiveRecallValue. */ @java.lang.Override @@ -276,15 +230,12 @@ public float getOptimizationObjectiveRecallValue() { public static final int OPTIMIZATION_OBJECTIVE_PRECISION_VALUE_FIELD_NUMBER = 18; /** - * - * *
    * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_precision_value = 18; - * * @return Whether the optimizationObjectivePrecisionValue field is set. */ @java.lang.Override @@ -292,15 +243,12 @@ public boolean hasOptimizationObjectivePrecisionValue() { return additionalOptimizationObjectiveConfigCase_ == 18; } /** - * - * *
    * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_precision_value = 18; - * * @return The optimizationObjectivePrecisionValue. */ @java.lang.Override @@ -314,8 +262,6 @@ public float getOptimizationObjectivePrecisionValue() { 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.
@@ -329,7 +275,6 @@ public float getOptimizationObjectivePrecisionValue() {
    * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; - * * @return Whether the targetColumnSpec field is set. */ @java.lang.Override @@ -337,8 +282,6 @@ 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.
@@ -352,18 +295,13 @@ public boolean hasTargetColumnSpec() {
    * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; - * * @return The targetColumnSpec. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ColumnSpec getTargetColumnSpec() { - return targetColumnSpec_ == null - ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() - : targetColumnSpec_; + 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.
@@ -386,8 +324,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOr
   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.
@@ -409,13 +345,10 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOr
    * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
    */
   @java.lang.Override
-  public java.util.List
-      getInputFeatureColumnSpecsList() {
+  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.
@@ -437,13 +370,11 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOr
    * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
    */
   @java.lang.Override
-  public java.util.List
+  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.
@@ -469,8 +400,6 @@ 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.
@@ -496,8 +425,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getInputFeatureColumnSpecs(int
     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.
@@ -527,8 +454,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumn
   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
@@ -553,7 +478,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumn
    * 
* * string optimization_objective = 4; - * * @return The optimizationObjective. */ @java.lang.Override @@ -562,15 +486,14 @@ public java.lang.String getOptimizationObjective() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -595,15 +518,16 @@ public java.lang.String getOptimizationObjective() {
    * 
* * string optimization_objective = 4; - * * @return The bytes for optimizationObjective. */ @java.lang.Override - public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); optimizationObjective_ = b; return b; } else { @@ -612,92 +536,73 @@ public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { } public static final int TABLES_MODEL_COLUMN_INFO_FIELD_NUMBER = 5; - private java.util.List - tablesModelColumnInfo_; + 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ @java.lang.Override - public java.util.List - getTablesModelColumnInfoList() { + 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ @java.lang.Override - public java.util.List + 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ @java.lang.Override 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ @java.lang.Override 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder - getTablesModelColumnInfoOrBuilder(int index) { + 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_; /** - * - * *
    * Required. The train budget of creating this model, expressed in milli node
    * hours i.e. 1,000 value in this field means 1 node hour.
@@ -713,7 +618,6 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColum
    * 
* * int64 train_budget_milli_node_hours = 6; - * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -724,8 +628,6 @@ public long getTrainBudgetMilliNodeHours() { 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
@@ -733,7 +635,6 @@ public long getTrainBudgetMilliNodeHours() {
    * 
* * int64 train_cost_milli_node_hours = 7; - * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -744,8 +645,6 @@ public long getTrainCostMilliNodeHours() { public static final int DISABLE_EARLY_STOPPING_FIELD_NUMBER = 12; private boolean disableEarlyStopping_; /** - * - * *
    * Use the entire training budget. This disables the early stopping feature.
    * By default, the early stopping feature is enabled, which means that AutoML
@@ -753,7 +652,6 @@ public long getTrainCostMilliNodeHours() {
    * 
* * bool disable_early_stopping = 12; - * * @return The disableEarlyStopping. */ @java.lang.Override @@ -762,7 +660,6 @@ public boolean getDisableEarlyStopping() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -774,7 +671,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (targetColumnSpec_ != null) { output.writeMessage(2, getTargetColumnSpec()); } @@ -797,10 +695,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeBool(12, disableEarlyStopping_); } if (additionalOptimizationObjectiveConfigCase_ == 17) { - output.writeFloat(17, (float) ((java.lang.Float) additionalOptimizationObjectiveConfig_)); + output.writeFloat( + 17, (float)((java.lang.Float) additionalOptimizationObjectiveConfig_)); } if (additionalOptimizationObjectiveConfigCase_ == 18) { - output.writeFloat(18, (float) ((java.lang.Float) additionalOptimizationObjectiveConfig_)); + output.writeFloat( + 18, (float)((java.lang.Float) additionalOptimizationObjectiveConfig_)); } unknownFields.writeTo(output); } @@ -812,39 +712,41 @@ public int getSerializedSize() { size = 0; if (targetColumnSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTargetColumnSpec()); + 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)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, inputFeatureColumnSpecs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(optimizationObjective_)) { 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)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, tablesModelColumnInfo_.get(i)); } if (trainBudgetMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, trainBudgetMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, trainBudgetMilliNodeHours_); } if (trainCostMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, trainCostMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, trainCostMilliNodeHours_); } if (disableEarlyStopping_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, disableEarlyStopping_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, disableEarlyStopping_); } if (additionalOptimizationObjectiveConfigCase_ == 17) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 17, (float) ((java.lang.Float) additionalOptimizationObjectiveConfig_)); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 17, (float)((java.lang.Float) additionalOptimizationObjectiveConfig_)); } if (additionalOptimizationObjectiveConfigCase_ == 18) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 18, (float) ((java.lang.Float) additionalOptimizationObjectiveConfig_)); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 18, (float)((java.lang.Float) additionalOptimizationObjectiveConfig_)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -854,37 +756,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (getDisableEarlyStopping() != other.getDisableEarlyStopping()) return false; - if (!getAdditionalOptimizationObjectiveConfigCase() - .equals(other.getAdditionalOptimizationObjectiveConfigCase())) return false; + 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 (getDisableEarlyStopping() + != other.getDisableEarlyStopping()) return false; + if (!getAdditionalOptimizationObjectiveConfigCase().equals(other.getAdditionalOptimizationObjectiveConfigCase())) return false; switch (additionalOptimizationObjectiveConfigCase_) { case 17: if (java.lang.Float.floatToIntBits(getOptimizationObjectiveRecallValue()) - != java.lang.Float.floatToIntBits(other.getOptimizationObjectiveRecallValue())) - return false; + != java.lang.Float.floatToIntBits( + other.getOptimizationObjectiveRecallValue())) return false; break; case 18: if (java.lang.Float.floatToIntBits(getOptimizationObjectivePrecisionValue()) - != java.lang.Float.floatToIntBits(other.getOptimizationObjectivePrecisionValue())) - return false; + != java.lang.Float.floatToIntBits( + other.getOptimizationObjectivePrecisionValue())) return false; break; case 0: default: @@ -915,20 +821,24 @@ public int hashCode() { 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 = (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 = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTrainCostMilliNodeHours()); hash = (37 * hash) + DISABLE_EARLY_STOPPING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableEarlyStopping()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableEarlyStopping()); switch (additionalOptimizationObjectiveConfigCase_) { case 17: hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_RECALL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getOptimizationObjectiveRecallValue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getOptimizationObjectiveRecallValue()); break; case 18: hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_PRECISION_VALUE_FIELD_NUMBER; - hash = - (53 * hash) + java.lang.Float.floatToIntBits(getOptimizationObjectivePrecisionValue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getOptimizationObjectivePrecisionValue()); break; case 0: default: @@ -939,126 +849,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TablesModelMetadata.class, com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TablesModelMetadata.newBuilder() @@ -1066,18 +967,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getInputFeatureColumnSpecsFieldBuilder(); getTablesModelColumnInfoFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1113,9 +1014,9 @@ public Builder clear() { } @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; + 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 @@ -1134,8 +1035,7 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata build() { @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); + com.google.cloud.automl.v1beta1.TablesModelMetadata result = new com.google.cloud.automl.v1beta1.TablesModelMetadata(this); int from_bitField0_ = bitField0_; if (additionalOptimizationObjectiveConfigCase_ == 17) { result.additionalOptimizationObjectiveConfig_ = additionalOptimizationObjectiveConfig_; @@ -1150,8 +1050,7 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata buildPartial() { } if (inputFeatureColumnSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - inputFeatureColumnSpecs_ = - java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_); + inputFeatureColumnSpecs_ = java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_); bitField0_ = (bitField0_ & ~0x00000001); } result.inputFeatureColumnSpecs_ = inputFeatureColumnSpecs_; @@ -1171,8 +1070,7 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata buildPartial() { result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; result.disableEarlyStopping_ = disableEarlyStopping_; - result.additionalOptimizationObjectiveConfigCase_ = - additionalOptimizationObjectiveConfigCase_; + result.additionalOptimizationObjectiveConfigCase_ = additionalOptimizationObjectiveConfigCase_; onBuilt(); return result; } @@ -1181,39 +1079,38 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TablesModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -1221,8 +1118,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance()) return this; if (other.hasTargetColumnSpec()) { mergeTargetColumnSpec(other.getTargetColumnSpec()); } @@ -1244,10 +1140,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelMetadata oth inputFeatureColumnSpecsBuilder_ = null; inputFeatureColumnSpecs_ = other.inputFeatureColumnSpecs_; bitField0_ = (bitField0_ & ~0x00000001); - inputFeatureColumnSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputFeatureColumnSpecsFieldBuilder() - : null; + inputFeatureColumnSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputFeatureColumnSpecsFieldBuilder() : null; } else { inputFeatureColumnSpecsBuilder_.addAllMessages(other.inputFeatureColumnSpecs_); } @@ -1275,10 +1170,9 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelMetadata oth tablesModelColumnInfoBuilder_ = null; tablesModelColumnInfo_ = other.tablesModelColumnInfo_; bitField0_ = (bitField0_ & ~0x00000002); - tablesModelColumnInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTablesModelColumnInfoFieldBuilder() - : null; + tablesModelColumnInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTablesModelColumnInfoFieldBuilder() : null; } else { tablesModelColumnInfoBuilder_.addAllMessages(other.tablesModelColumnInfo_); } @@ -1294,20 +1188,17 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelMetadata oth setDisableEarlyStopping(other.getDisableEarlyStopping()); } switch (other.getAdditionalOptimizationObjectiveConfigCase()) { - case OPTIMIZATION_OBJECTIVE_RECALL_VALUE: - { - setOptimizationObjectiveRecallValue(other.getOptimizationObjectiveRecallValue()); - break; - } - case OPTIMIZATION_OBJECTIVE_PRECISION_VALUE: - { - setOptimizationObjectivePrecisionValue(other.getOptimizationObjectivePrecisionValue()); - break; - } - case ADDITIONALOPTIMIZATIONOBJECTIVECONFIG_NOT_SET: - { - break; - } + case OPTIMIZATION_OBJECTIVE_RECALL_VALUE: { + setOptimizationObjectiveRecallValue(other.getOptimizationObjectiveRecallValue()); + break; + } + case OPTIMIZATION_OBJECTIVE_PRECISION_VALUE: { + setOptimizationObjectivePrecisionValue(other.getOptimizationObjectivePrecisionValue()); + break; + } + case ADDITIONALOPTIMIZATIONOBJECTIVECONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1328,8 +1219,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TablesModelMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TablesModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1338,10 +1228,8 @@ public Builder mergeFrom( } return this; } - private int additionalOptimizationObjectiveConfigCase_ = 0; private java.lang.Object additionalOptimizationObjectiveConfig_; - public AdditionalOptimizationObjectiveConfigCase getAdditionalOptimizationObjectiveConfigCase() { return AdditionalOptimizationObjectiveConfigCase.forNumber( @@ -1358,30 +1246,24 @@ public Builder clearAdditionalOptimizationObjectiveConfig() { private int bitField0_; /** - * - * *
      * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_recall_value = 17; - * * @return Whether the optimizationObjectiveRecallValue field is set. */ public boolean hasOptimizationObjectiveRecallValue() { return additionalOptimizationObjectiveConfigCase_ == 17; } /** - * - * *
      * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_recall_value = 17; - * * @return The optimizationObjectiveRecallValue. */ public float getOptimizationObjectiveRecallValue() { @@ -1391,15 +1273,12 @@ public float getOptimizationObjectiveRecallValue() { return 0F; } /** - * - * *
      * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_recall_value = 17; - * * @param value The optimizationObjectiveRecallValue to set. * @return This builder for chaining. */ @@ -1410,15 +1289,12 @@ public Builder setOptimizationObjectiveRecallValue(float value) { return this; } /** - * - * *
      * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_recall_value = 17; - * * @return This builder for chaining. */ public Builder clearOptimizationObjectiveRecallValue() { @@ -1431,30 +1307,24 @@ public Builder clearOptimizationObjectiveRecallValue() { } /** - * - * *
      * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_precision_value = 18; - * * @return Whether the optimizationObjectivePrecisionValue field is set. */ public boolean hasOptimizationObjectivePrecisionValue() { return additionalOptimizationObjectiveConfigCase_ == 18; } /** - * - * *
      * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_precision_value = 18; - * * @return The optimizationObjectivePrecisionValue. */ public float getOptimizationObjectivePrecisionValue() { @@ -1464,15 +1334,12 @@ public float getOptimizationObjectivePrecisionValue() { return 0F; } /** - * - * *
      * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_precision_value = 18; - * * @param value The optimizationObjectivePrecisionValue to set. * @return This builder for chaining. */ @@ -1483,15 +1350,12 @@ public Builder setOptimizationObjectivePrecisionValue(float value) { return this; } /** - * - * *
      * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_precision_value = 18; - * * @return This builder for chaining. */ public Builder clearOptimizationObjectivePrecisionValue() { @@ -1505,13 +1369,8 @@ public Builder clearOptimizationObjectivePrecisionValue() { 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_; + 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.
@@ -1525,15 +1384,12 @@ public Builder clearOptimizationObjectivePrecisionValue() {
      * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; - * * @return Whether the targetColumnSpec field is set. */ 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.
@@ -1547,21 +1403,16 @@ public boolean hasTargetColumnSpec() {
      * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; - * * @return The targetColumnSpec. */ public com.google.cloud.automl.v1beta1.ColumnSpec getTargetColumnSpec() { if (targetColumnSpecBuilder_ == null) { - return targetColumnSpec_ == null - ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() - : targetColumnSpec_; + 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.
@@ -1590,8 +1441,6 @@ public Builder setTargetColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec va
       return this;
     }
     /**
-     *
-     *
      * 
      * Column spec of the dataset's primary table's column the model is
      * predicting. Snapshotted when model creation started.
@@ -1618,8 +1467,6 @@ public Builder setTargetColumnSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * Column spec of the dataset's primary table's column the model is
      * predicting. Snapshotted when model creation started.
@@ -1638,9 +1485,7 @@ public Builder mergeTargetColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec
       if (targetColumnSpecBuilder_ == null) {
         if (targetColumnSpec_ != null) {
           targetColumnSpec_ =
-              com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder(targetColumnSpec_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder(targetColumnSpec_).mergeFrom(value).buildPartial();
         } else {
           targetColumnSpec_ = value;
         }
@@ -1652,8 +1497,6 @@ public Builder mergeTargetColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec
       return this;
     }
     /**
-     *
-     *
      * 
      * Column spec of the dataset's primary table's column the model is
      * predicting. Snapshotted when model creation started.
@@ -1680,8 +1523,6 @@ public Builder clearTargetColumnSpec() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Column spec of the dataset's primary table's column the model is
      * predicting. Snapshotted when model creation started.
@@ -1697,13 +1538,11 @@ public Builder clearTargetColumnSpec() {
      * .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.
@@ -1722,14 +1561,11 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOr
       if (targetColumnSpecBuilder_ != null) {
         return targetColumnSpecBuilder_.getMessageOrBuilder();
       } else {
-        return targetColumnSpec_ == null
-            ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance()
-            : targetColumnSpec_;
+        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.
@@ -1745,43 +1581,32 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOr
      * .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>
+        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());
+        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();
-
+      java.util.Collections.emptyList();
     private void ensureInputFeatureColumnSpecsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        inputFeatureColumnSpecs_ =
-            new java.util.ArrayList(
-                inputFeatureColumnSpecs_);
+        inputFeatureColumnSpecs_ = new java.util.ArrayList(inputFeatureColumnSpecs_);
         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>
-        inputFeatureColumnSpecsBuilder_;
+        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.
@@ -1802,8 +1627,7 @@ private void ensureInputFeatureColumnSpecsIsMutable() {
      *
      * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
      */
-    public java.util.List
-        getInputFeatureColumnSpecsList() {
+    public java.util.List getInputFeatureColumnSpecsList() {
       if (inputFeatureColumnSpecsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_);
       } else {
@@ -1811,8 +1635,6 @@ private void ensureInputFeatureColumnSpecsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * 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.
@@ -1841,8 +1663,6 @@ public 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.
@@ -1871,8 +1691,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getInputFeatureColumnSpecs(int
       }
     }
     /**
-     *
-     *
      * 
      * 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.
@@ -1908,8 +1726,6 @@ public Builder setInputFeatureColumnSpecs(
       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.
@@ -1942,8 +1758,6 @@ public Builder setInputFeatureColumnSpecs(
       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.
@@ -1978,8 +1792,6 @@ public Builder addInputFeatureColumnSpecs(com.google.cloud.automl.v1beta1.Column
       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.
@@ -2015,8 +1827,6 @@ public Builder addInputFeatureColumnSpecs(
       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.
@@ -2049,8 +1859,6 @@ public Builder addInputFeatureColumnSpecs(
       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.
@@ -2083,8 +1891,6 @@ public Builder addInputFeatureColumnSpecs(
       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.
@@ -2109,7 +1915,8 @@ public Builder addAllInputFeatureColumnSpecs(
         java.lang.Iterable values) {
       if (inputFeatureColumnSpecsBuilder_ == null) {
         ensureInputFeatureColumnSpecsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputFeatureColumnSpecs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, inputFeatureColumnSpecs_);
         onChanged();
       } else {
         inputFeatureColumnSpecsBuilder_.addAllMessages(values);
@@ -2117,8 +1924,6 @@ public Builder addAllInputFeatureColumnSpecs(
       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.
@@ -2150,8 +1955,6 @@ public Builder clearInputFeatureColumnSpecs() {
       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.
@@ -2183,8 +1986,6 @@ public Builder removeInputFeatureColumnSpecs(int 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.
@@ -2210,8 +2011,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder getInputFeatureColumnS
       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.
@@ -2235,14 +2034,11 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder getInputFeatureColumnS
     public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOrBuilder(
         int index) {
       if (inputFeatureColumnSpecsBuilder_ == null) {
-        return inputFeatureColumnSpecs_.get(index);
-      } else {
+        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.
@@ -2263,8 +2059,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumn
      *
      * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
      */
-    public java.util.List
-        getInputFeatureColumnSpecsOrBuilderList() {
+    public java.util.List 
+         getInputFeatureColumnSpecsOrBuilderList() {
       if (inputFeatureColumnSpecsBuilder_ != null) {
         return inputFeatureColumnSpecsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2272,8 +2068,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumn
       }
     }
     /**
-     *
-     *
      * 
      * 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.
@@ -2295,12 +2089,10 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumn
      * 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());
+      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.
@@ -2323,12 +2115,10 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnS
      */
     public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnSpecsBuilder(
         int index) {
-      return getInputFeatureColumnSpecsFieldBuilder()
-          .addBuilder(index, com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance());
+      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.
@@ -2349,22 +2139,16 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnS
      *
      * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
      */
-    public java.util.List
-        getInputFeatureColumnSpecsBuilderList() {
+    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>
+        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>(
+        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_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2376,8 +2160,6 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnS
 
     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
@@ -2402,13 +2184,13 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnS
      * 
* * string optimization_objective = 4; - * * @return The optimizationObjective. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); optimizationObjective_ = s; return s; @@ -2417,8 +2199,6 @@ public 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
@@ -2443,14 +2223,15 @@ public java.lang.String getOptimizationObjective() {
      * 
* * string optimization_objective = 4; - * * @return The bytes for optimizationObjective. */ - public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); optimizationObjective_ = b; return b; } else { @@ -2458,8 +2239,6 @@ public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { } } /** - * - * *
      * Objective function the model is optimizing towards. The training process
      * creates a model that maximizes/minimizes the value of the objective
@@ -2484,22 +2263,20 @@ public com.google.protobuf.ByteString getOptimizationObjectiveBytes() {
      * 
* * string optimization_objective = 4; - * * @param value The optimizationObjective to set. * @return This builder for chaining. */ - public Builder setOptimizationObjective(java.lang.String value) { + public Builder setOptimizationObjective( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -2524,18 +2301,15 @@ public Builder setOptimizationObjective(java.lang.String value) {
      * 
* * string optimization_objective = 4; - * * @return This builder for chaining. */ 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
@@ -2560,53 +2334,42 @@ public Builder clearOptimizationObjective() {
      * 
* * string optimization_objective = 4; - * * @param value The bytes for optimizationObjective to set. * @return This builder for chaining. */ - public Builder setOptimizationObjectiveBytes(com.google.protobuf.ByteString value) { + public Builder setOptimizationObjectiveBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + optimizationObjective_ = value; onChanged(); return this; } - private java.util.List - tablesModelColumnInfo_ = java.util.Collections.emptyList(); - + private java.util.List tablesModelColumnInfo_ = + java.util.Collections.emptyList(); private void ensureTablesModelColumnInfoIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - tablesModelColumnInfo_ = - new java.util.ArrayList( - tablesModelColumnInfo_); + tablesModelColumnInfo_ = new java.util.ArrayList(tablesModelColumnInfo_); bitField0_ |= 0x00000002; - } + } } 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_; + 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ - public java.util.List - getTablesModelColumnInfoList() { + public java.util.List getTablesModelColumnInfoList() { if (tablesModelColumnInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(tablesModelColumnInfo_); } else { @@ -2614,16 +2377,12 @@ private void ensureTablesModelColumnInfoIsMutable() { } } /** - * - * *
      * 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ public int getTablesModelColumnInfoCount() { if (tablesModelColumnInfoBuilder_ == null) { @@ -2633,19 +2392,14 @@ public 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo( - int index) { + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo(int index) { if (tablesModelColumnInfoBuilder_ == null) { return tablesModelColumnInfo_.get(index); } else { @@ -2653,16 +2407,12 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColum } } /** - * - * *
      * 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ public Builder setTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { @@ -2679,16 +2429,12 @@ public Builder setTablesModelColumnInfo( 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ public Builder setTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -2702,19 +2448,14 @@ public Builder setTablesModelColumnInfo( 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ - public Builder addTablesModelColumnInfo( - com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { + public Builder addTablesModelColumnInfo(com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { if (tablesModelColumnInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2728,16 +2469,12 @@ public Builder addTablesModelColumnInfo( 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ public Builder addTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { @@ -2754,16 +2491,12 @@ public Builder addTablesModelColumnInfo( 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ public Builder addTablesModelColumnInfo( com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -2777,16 +2510,12 @@ public Builder addTablesModelColumnInfo( 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ public Builder addTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -2800,23 +2529,19 @@ public Builder addTablesModelColumnInfo( 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ public Builder addAllTablesModelColumnInfo( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (tablesModelColumnInfoBuilder_ == null) { ensureTablesModelColumnInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tablesModelColumnInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tablesModelColumnInfo_); onChanged(); } else { tablesModelColumnInfoBuilder_.addAllMessages(values); @@ -2824,16 +2549,12 @@ public Builder addAllTablesModelColumnInfo( 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ public Builder clearTablesModelColumnInfo() { if (tablesModelColumnInfoBuilder_ == null) { @@ -2846,16 +2567,12 @@ public Builder clearTablesModelColumnInfo() { 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ public Builder removeTablesModelColumnInfo(int index) { if (tablesModelColumnInfoBuilder_ == null) { @@ -2868,55 +2585,42 @@ public Builder removeTablesModelColumnInfo(int 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder - getTablesModelColumnInfoBuilder(int index) { + 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder - getTablesModelColumnInfoOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( + int index) { if (tablesModelColumnInfoBuilder_ == null) { - return tablesModelColumnInfo_.get(index); - } else { + 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ - public java.util.List - getTablesModelColumnInfoOrBuilderList() { + public java.util.List + getTablesModelColumnInfoOrBuilderList() { if (tablesModelColumnInfoBuilder_ != null) { return tablesModelColumnInfoBuilder_.getMessageOrBuilderList(); } else { @@ -2924,68 +2628,48 @@ public Builder removeTablesModelColumnInfo(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; - * + * 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()); + 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; - * + * 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()); + 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ - public java.util.List - getTablesModelColumnInfoBuilderList() { + 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> + 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>( + 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_ & 0x00000002) != 0), getParentForChildren(), @@ -2995,10 +2679,8 @@ public Builder removeTablesModelColumnInfo(int index) { return tablesModelColumnInfoBuilder_; } - private long trainBudgetMilliNodeHours_; + private long trainBudgetMilliNodeHours_ ; /** - * - * *
      * Required. The train budget of creating this model, expressed in milli node
      * hours i.e. 1,000 value in this field means 1 node hour.
@@ -3014,7 +2696,6 @@ public Builder removeTablesModelColumnInfo(int index) {
      * 
* * int64 train_budget_milli_node_hours = 6; - * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -3022,8 +2703,6 @@ public long getTrainBudgetMilliNodeHours() { return trainBudgetMilliNodeHours_; } /** - * - * *
      * Required. The train budget of creating this model, expressed in milli node
      * hours i.e. 1,000 value in this field means 1 node hour.
@@ -3039,19 +2718,16 @@ public long getTrainBudgetMilliNodeHours() {
      * 
* * int64 train_budget_milli_node_hours = 6; - * * @param value The trainBudgetMilliNodeHours to set. * @return This builder for chaining. */ public Builder setTrainBudgetMilliNodeHours(long value) { - + trainBudgetMilliNodeHours_ = value; onChanged(); return this; } /** - * - * *
      * Required. The train budget of creating this model, expressed in milli node
      * hours i.e. 1,000 value in this field means 1 node hour.
@@ -3067,20 +2743,17 @@ public Builder setTrainBudgetMilliNodeHours(long value) {
      * 
* * int64 train_budget_milli_node_hours = 6; - * * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; } - private long trainCostMilliNodeHours_; + 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
@@ -3088,7 +2761,6 @@ public Builder clearTrainBudgetMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; - * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -3096,8 +2768,6 @@ 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
@@ -3105,19 +2775,16 @@ public long getTrainCostMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; - * * @param value The trainCostMilliNodeHours to set. * @return This builder for chaining. */ 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
@@ -3125,20 +2792,17 @@ public Builder setTrainCostMilliNodeHours(long value) {
      * 
* * int64 train_cost_milli_node_hours = 7; - * * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + trainCostMilliNodeHours_ = 0L; onChanged(); return this; } - private boolean disableEarlyStopping_; + private boolean disableEarlyStopping_ ; /** - * - * *
      * Use the entire training budget. This disables the early stopping feature.
      * By default, the early stopping feature is enabled, which means that AutoML
@@ -3146,7 +2810,6 @@ public Builder clearTrainCostMilliNodeHours() {
      * 
* * bool disable_early_stopping = 12; - * * @return The disableEarlyStopping. */ @java.lang.Override @@ -3154,8 +2817,6 @@ public boolean getDisableEarlyStopping() { return disableEarlyStopping_; } /** - * - * *
      * Use the entire training budget. This disables the early stopping feature.
      * By default, the early stopping feature is enabled, which means that AutoML
@@ -3163,19 +2824,16 @@ public boolean getDisableEarlyStopping() {
      * 
* * bool disable_early_stopping = 12; - * * @param value The disableEarlyStopping to set. * @return This builder for chaining. */ public Builder setDisableEarlyStopping(boolean value) { - + disableEarlyStopping_ = value; onChanged(); return this; } /** - * - * *
      * Use the entire training budget. This disables the early stopping feature.
      * By default, the early stopping feature is enabled, which means that AutoML
@@ -3183,18 +2841,17 @@ public Builder setDisableEarlyStopping(boolean value) {
      * 
* * bool disable_early_stopping = 12; - * * @return This builder for chaining. */ public Builder clearDisableEarlyStopping() { - + disableEarlyStopping_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3204,12 +2861,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -3218,16 +2875,16 @@ public static com.google.cloud.automl.v1beta1.TablesModelMetadata getDefaultInst 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); - } - }; + 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; @@ -3242,4 +2899,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TablesModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java similarity index 90% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java index a9e1098cd..333f420fa 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java @@ -1,85 +1,55 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +public interface TablesModelMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TablesModelMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_recall_value = 17; - * * @return Whether the optimizationObjectiveRecallValue field is set. */ boolean hasOptimizationObjectiveRecallValue(); /** - * - * *
    * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_recall_value = 17; - * * @return The optimizationObjectiveRecallValue. */ float getOptimizationObjectiveRecallValue(); /** - * - * *
    * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_precision_value = 18; - * * @return Whether the optimizationObjectivePrecisionValue field is set. */ boolean hasOptimizationObjectivePrecisionValue(); /** - * - * *
    * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_precision_value = 18; - * * @return The optimizationObjectivePrecisionValue. */ float getOptimizationObjectivePrecisionValue(); /** - * - * *
    * Column spec of the dataset's primary table's column the model is
    * predicting. Snapshotted when model creation started.
@@ -93,13 +63,10 @@ public interface TablesModelMetadataOrBuilder
    * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; - * * @return Whether the targetColumnSpec field is set. */ boolean hasTargetColumnSpec(); /** - * - * *
    * Column spec of the dataset's primary table's column the model is
    * predicting. Snapshotted when model creation started.
@@ -113,13 +80,10 @@ public interface TablesModelMetadataOrBuilder
    * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; - * * @return The targetColumnSpec. */ 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.
@@ -137,8 +101,6 @@ public interface TablesModelMetadataOrBuilder
   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.
@@ -159,10 +121,9 @@ public interface TablesModelMetadataOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
    */
-  java.util.List getInputFeatureColumnSpecsList();
+  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.
@@ -185,8 +146,6 @@ public interface TablesModelMetadataOrBuilder
    */
   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.
@@ -209,8 +168,6 @@ public interface TablesModelMetadataOrBuilder
    */
   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.
@@ -231,11 +188,9 @@ public interface TablesModelMetadataOrBuilder
    *
    * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
    */
-  java.util.List
+  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.
@@ -260,8 +215,6 @@ com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOr
       int index);
 
   /**
-   *
-   *
    * 
    * Objective function the model is optimizing towards. The training process
    * creates a model that maximizes/minimizes the value of the objective
@@ -286,13 +239,10 @@ com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOr
    * 
* * string optimization_objective = 4; - * * @return The optimizationObjective. */ 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
@@ -317,78 +267,61 @@ com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOr
    * 
* * string optimization_objective = 4; - * * @return The bytes for optimizationObjective. */ - com.google.protobuf.ByteString getOptimizationObjectiveBytes(); + 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ - java.util.List + 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; - * + * 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; - * + * 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ - java.util.List + 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; - * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; */ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( int index); /** - * - * *
    * Required. The train budget of creating this model, expressed in milli node
    * hours i.e. 1,000 value in this field means 1 node hour.
@@ -404,14 +337,11 @@ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelCol
    * 
* * int64 train_budget_milli_node_hours = 6; - * * @return The trainBudgetMilliNodeHours. */ 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
@@ -419,14 +349,11 @@ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelCol
    * 
* * int64 train_cost_milli_node_hours = 7; - * * @return The trainCostMilliNodeHours. */ long getTrainCostMilliNodeHours(); /** - * - * *
    * Use the entire training budget. This disables the early stopping feature.
    * By default, the early stopping feature is enabled, which means that AutoML
@@ -434,12 +361,9 @@ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelCol
    * 
* * bool disable_early_stopping = 12; - * * @return The disableEarlyStopping. */ boolean getDisableEarlyStopping(); - public com.google.cloud.automl.v1beta1.TablesModelMetadata - .AdditionalOptimizationObjectiveConfigCase - getAdditionalOptimizationObjectiveConfigCase(); + public com.google.cloud.automl.v1beta1.TablesModelMetadata.AdditionalOptimizationObjectiveConfigCase getAdditionalOptimizationObjectiveConfigCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java new file mode 100644 index 000000000..83a87333a --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java @@ -0,0 +1,60 @@ +// 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\036googl" + + "e/protobuf/duration.proto\032\034google/api/an" + + "notations.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\245\001\n\037com.google.cloud.au" + + "toml.v1beta1P\001ZAgoogle.golang.org/genpro" + + "to/googleapis/cloud/automl/v1beta1;autom" + + "l\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Google" + + "::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java similarity index 61% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java index 1a4c8f6ce..22b3e922c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextClassificationDatasetMetadata} */ -public final class TextClassificationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextClassificationDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) TextClassificationDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextClassificationDatasetMetadata.newBuilder() to construct. - private TextClassificationDatasetMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextClassificationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextClassificationDatasetMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextClassificationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextClassificationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,89 +53,72 @@ private TextClassificationDatasetMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + classificationType_ = rawValue; + 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); + 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_TextClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TextProto - .internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.class, - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.class, com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 1; private int classificationType_; /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The classificationType. */ - @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - getClassificationType() { + @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( - classificationType_); - return result == null - ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); + return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,11 +130,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (classificationType_ - != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - .CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, classificationType_); } unknownFields.writeTo(output); @@ -181,11 +144,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ - != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - .CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, classificationType_); + if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,13 +156,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata other = - (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) obj; + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata other = (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -223,145 +183,134 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TextClassificationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata 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.TextClassificationDatasetMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - 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.TextClassificationDatasetMetadata 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.TextClassificationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Dataset metadata for classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextClassificationDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.TextProto - .internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TextProto - .internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.class, - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.class, com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,14 +320,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TextProto - .internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance(); } @@ -393,8 +341,7 @@ public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata build() @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata result = - new com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata(this); + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata result = new com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -404,50 +351,46 @@ public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TextClassificationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) other); + return mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata other) { + if (other == com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance()) return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -470,9 +413,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,102 +425,80 @@ public Builder mergeFrom( private int classificationType_ = 0; /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The classificationType. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - getClassificationType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( - classificationType_); - return result == null - ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); + return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @param value The classificationType to set. * @return This builder for chaining. */ - public Builder setClassificationType( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { + public Builder setClassificationType(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -589,32 +508,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) - private static final com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata(); } - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -626,8 +543,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java similarity index 56% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java index e325c9c8d..7d81a97bf 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/text.proto package com.google.cloud.automl.v1beta1; -public interface TextClassificationDatasetMetadataOrBuilder - extends +public interface TextClassificationDatasetMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** - * - * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; - * * @return The classificationType. */ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java similarity index 63% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java index de41d144a..06f102c97 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.TextClassificationModelMetadata} */ -public final class TextClassificationModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextClassificationModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextClassificationModelMetadata) TextClassificationModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextClassificationModelMetadata.newBuilder() to construct. - private TextClassificationModelMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextClassificationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextClassificationModelMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextClassificationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextClassificationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,89 +53,72 @@ private TextClassificationModelMetadata( case 0: done = true; break; - case 24: - { - int rawValue = input.readEnum(); + case 24: { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + classificationType_ = rawValue; + 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); + 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_TextClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TextProto - .internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.class, - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.class, com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 3; private int classificationType_; /** - * - * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; - * * @return The classificationType. */ - @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - getClassificationType() { + @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( - classificationType_); - return result == null - ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); + return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,11 +130,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (classificationType_ - != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - .CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, classificationType_); } unknownFields.writeTo(output); @@ -181,11 +144,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ - != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - .CLASSIFICATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, classificationType_); + if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,13 +156,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TextClassificationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata other = - (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) obj; + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata other = (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -223,127 +183,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TextClassificationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata 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.TextClassificationModelMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextClassificationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.TextClassificationModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextClassificationModelMetadata) com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.TextProto - .internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TextProto - .internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.class, - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.class, com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.newBuilder() @@ -351,15 +301,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -369,14 +320,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TextProto - .internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); } @@ -391,8 +341,7 @@ public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata buildPartial() { - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata result = - new com.google.cloud.automl.v1beta1.TextClassificationModelMetadata(this); + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata result = new com.google.cloud.automl.v1beta1.TextClassificationModelMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -402,50 +351,46 @@ public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TextClassificationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) other); + return mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextClassificationModelMetadata other) { + if (other == com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance()) return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -468,9 +413,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -482,102 +425,80 @@ public Builder mergeFrom( private int classificationType_ = 0; /** - * - * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; - * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override - public int getClassificationTypeValue() { + @java.lang.Override public int getClassificationTypeValue() { return classificationType_; } /** - * - * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; - * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; - * * @return The classificationType. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType - getClassificationType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( - classificationType_); - return result == null - ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED - : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); + return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; - * * @param value The classificationType to set. * @return This builder for chaining. */ - public Builder setClassificationType( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { + public Builder setClassificationType(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; - * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -587,32 +508,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextClassificationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextClassificationModelMetadata) - private static final com.google.cloud.automl.v1beta1.TextClassificationModelMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.TextClassificationModelMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextClassificationModelMetadata(); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -624,8 +543,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java similarity index 58% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java index ff15e530c..79b956456 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/text.proto package com.google.cloud.automl.v1beta1; -public interface TextClassificationModelMetadataOrBuilder - extends +public interface TextClassificationModelMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextClassificationModelMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; - * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** - * - * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; - * * @return The classificationType. */ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java new file mode 100644 index 000000000..245f04103 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java @@ -0,0 +1,90 @@ +// 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.google/cloud/automl/v1beta1/text_segme" + + "nt.proto\032\034google/api/annotations.proto\"y" + + "\n\030TextExtractionAnnotation\022@\n\014text_segme" + + "nt\030\003 \001(\0132(.google.cloud.automl.v1beta1.T" + + "extSegmentH\000\022\r\n\005score\030\001 \001(\002B\014\n\nannotatio" + + "n\"\227\002\n\037TextExtractionEvaluationMetrics\022\016\n" + + "\006au_prc\030\001 \001(\002\022w\n\032confidence_metrics_entr" + + "ies\030\002 \003(\0132S.google.cloud.automl.v1beta1." + + "TextExtractionEvaluationMetrics.Confiden" + + "ceMetricsEntry\032k\n\026ConfidenceMetricsEntry" + + "\022\034\n\024confidence_threshold\030\001 \001(\002\022\016\n\006recall" + + "\030\003 \001(\002\022\021\n\tprecision\030\004 \001(\002\022\020\n\010f1_score\030\005 " + + "\001(\002B\245\001\n\037com.google.cloud.automl.v1beta1P" + + "\001ZAgoogle.golang.org/genproto/googleapis" + + "/cloud/automl/v1beta1;automl\312\002\033Google\\Cl" + + "oud\\AutoMl\\V1beta1\352\002\036Google::Cloud::Auto" + + "ML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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[] { "TextSegment", "Score", "Annotation", }); + 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.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java similarity index 70% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java index 2ba72ef9d..baee52c53 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use TextExtractionAnnotation.newBuilder() to construct. private TextExtractionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextExtractionAnnotation() {} + private TextExtractionAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextExtractionAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextExtractionAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,73 +52,65 @@ private TextExtractionAnnotation( case 0: done = true; break; - case 13: - { - score_ = input.readFloat(); - break; + case 13: { + + score_ = input.readFloat(); + break; + } + case 26: { + com.google.cloud.automl.v1beta1.TextSegment.Builder subBuilder = null; + if (annotationCase_ == 3) { + subBuilder = ((com.google.cloud.automl.v1beta1.TextSegment) annotation_).toBuilder(); } - case 26: - { - com.google.cloud.automl.v1beta1.TextSegment.Builder subBuilder = null; - if (annotationCase_ == 3) { - subBuilder = - ((com.google.cloud.automl.v1beta1.TextSegment) annotation_).toBuilder(); - } - annotation_ = - input.readMessage( - com.google.cloud.automl.v1beta1.TextSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextSegment) annotation_); - annotation_ = subBuilder.buildPartial(); - } - annotationCase_ = 3; - break; + annotation_ = + input.readMessage(com.google.cloud.automl.v1beta1.TextSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextSegment) annotation_); + annotation_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + annotationCase_ = 3; + 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); + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.class, com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder.class); } private int annotationCase_ = 0; private java.lang.Object annotation_; - public enum AnnotationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT_SEGMENT(3), ANNOTATION_NOT_SET(0); private final int value; - private AnnotationCase(int value) { this.value = value; } @@ -150,35 +126,30 @@ public static AnnotationCase valueOf(int value) { public static AnnotationCase forNumber(int value) { switch (value) { - case 3: - return TEXT_SEGMENT; - case 0: - return ANNOTATION_NOT_SET; - default: - return null; + case 3: return TEXT_SEGMENT; + case 0: return ANNOTATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AnnotationCase getAnnotationCase() { - return AnnotationCase.forNumber(annotationCase_); + public AnnotationCase + getAnnotationCase() { + return AnnotationCase.forNumber( + annotationCase_); } public static final int TEXT_SEGMENT_FIELD_NUMBER = 3; /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; - * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -186,27 +157,22 @@ public boolean hasTextSegment() { return annotationCase_ == 3; } /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; - * * @return The textSegment. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() { if (annotationCase_ == 3) { - return (com.google.cloud.automl.v1beta1.TextSegment) annotation_; + return (com.google.cloud.automl.v1beta1.TextSegment) annotation_; } return com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance(); } /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
@@ -217,7 +183,7 @@ public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() {
   @java.lang.Override
   public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuilder() {
     if (annotationCase_ == 3) {
-      return (com.google.cloud.automl.v1beta1.TextSegment) annotation_;
+       return (com.google.cloud.automl.v1beta1.TextSegment) annotation_;
     }
     return com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance();
   }
@@ -225,15 +191,12 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
   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; - * * @return The score. */ @java.lang.Override @@ -242,7 +205,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (score_ != 0F) { output.writeFloat(1, score_); } @@ -271,12 +234,12 @@ public int getSerializedSize() { size = 0; if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, score_); } if (annotationCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.automl.v1beta1.TextSegment) annotation_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.automl.v1beta1.TextSegment) annotation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -286,20 +249,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!getAnnotationCase().equals(other.getAnnotationCase())) return false; switch (annotationCase_) { case 3: - if (!getTextSegment().equals(other.getTextSegment())) return false; + if (!getTextSegment() + .equals(other.getTextSegment())) return false; break; case 0: default: @@ -316,7 +280,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); switch (annotationCase_) { case 3: hash = (37 * hash) + TEXT_SEGMENT_FIELD_NUMBER; @@ -331,127 +296,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextExtractionAnnotation prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.class, com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextExtractionAnnotation.newBuilder() @@ -459,15 +414,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +435,9 @@ public Builder clear() { } @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; + 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 @@ -500,8 +456,7 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotation build() { @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); + com.google.cloud.automl.v1beta1.TextExtractionAnnotation result = new com.google.cloud.automl.v1beta1.TextExtractionAnnotation(this); if (annotationCase_ == 3) { if (textSegmentBuilder_ == null) { result.annotation_ = annotation_; @@ -519,39 +474,38 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextExtractionAnnotation)other); } else { super.mergeFrom(other); return this; @@ -559,21 +513,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextExtractionAnnotation other) { - if (other == com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance()) return this; if (other.getScore() != 0F) { setScore(other.getScore()); } switch (other.getAnnotationCase()) { - case TEXT_SEGMENT: - { - mergeTextSegment(other.getTextSegment()); - break; - } - case ANNOTATION_NOT_SET: - { - break; - } + case TEXT_SEGMENT: { + mergeTextSegment(other.getTextSegment()); + break; + } + case ANNOTATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -594,8 +545,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -604,12 +554,12 @@ public Builder mergeFrom( } return this; } - private int annotationCase_ = 0; private java.lang.Object annotation_; - - public AnnotationCase getAnnotationCase() { - return AnnotationCase.forNumber(annotationCase_); + public AnnotationCase + getAnnotationCase() { + return AnnotationCase.forNumber( + annotationCase_); } public Builder clearAnnotation() { @@ -619,21 +569,16 @@ public Builder clearAnnotation() { return this; } + 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_; + com.google.cloud.automl.v1beta1.TextSegment, com.google.cloud.automl.v1beta1.TextSegment.Builder, com.google.cloud.automl.v1beta1.TextSegmentOrBuilder> textSegmentBuilder_; /** - * - * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; - * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -641,15 +586,12 @@ public boolean hasTextSegment() { return annotationCase_ == 3; } /** - * - * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; - * * @return The textSegment. */ @java.lang.Override @@ -667,8 +609,6 @@ public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() { } } /** - * - * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -690,8 +630,6 @@ public Builder setTextSegment(com.google.cloud.automl.v1beta1.TextSegment value)
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -711,8 +649,6 @@ public Builder setTextSegment(
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -722,13 +658,10 @@ public Builder setTextSegment(
      */
     public Builder mergeTextSegment(com.google.cloud.automl.v1beta1.TextSegment value) {
       if (textSegmentBuilder_ == null) {
-        if (annotationCase_ == 3
-            && annotation_ != com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance()) {
-          annotation_ =
-              com.google.cloud.automl.v1beta1.TextSegment.newBuilder(
-                      (com.google.cloud.automl.v1beta1.TextSegment) annotation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (annotationCase_ == 3 &&
+            annotation_ != com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance()) {
+          annotation_ = com.google.cloud.automl.v1beta1.TextSegment.newBuilder((com.google.cloud.automl.v1beta1.TextSegment) annotation_)
+              .mergeFrom(value).buildPartial();
         } else {
           annotation_ = value;
         }
@@ -743,8 +676,6 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1beta1.TextSegment valu
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -769,8 +700,6 @@ public Builder clearTextSegment() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -782,8 +711,6 @@ public com.google.cloud.automl.v1beta1.TextSegment.Builder getTextSegmentBuilder
       return getTextSegmentFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -803,8 +730,6 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
       }
     }
     /**
-     *
-     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -813,41 +738,32 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
      * .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>
+        com.google.cloud.automl.v1beta1.TextSegment, com.google.cloud.automl.v1beta1.TextSegment.Builder, com.google.cloud.automl.v1beta1.TextSegmentOrBuilder> 
         getTextSegmentFieldBuilder() {
       if (textSegmentBuilder_ == null) {
         if (!(annotationCase_ == 3)) {
           annotation_ = com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance();
         }
-        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>(
+        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>(
                 (com.google.cloud.automl.v1beta1.TextSegment) annotation_,
                 getParentForChildren(),
                 isClean());
         annotation_ = null;
       }
       annotationCase_ = 3;
-      onChanged();
-      ;
+      onChanged();;
       return textSegmentBuilder_;
     }
 
-    private float score_;
+    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; - * * @return The score. */ @java.lang.Override @@ -855,45 +771,39 @@ 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; - * * @param value The score to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -903,12 +813,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -917,16 +827,16 @@ public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation getDefaul 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); - } - }; + 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; @@ -941,4 +851,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TextExtractionAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java index 53f020bca..187383558 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +public interface TextExtractionAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextExtractionAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; - * * @return Whether the textSegment field is set. */ boolean hasTextSegment(); /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; - * * @return The textSegment. */ com.google.cloud.automl.v1beta1.TextSegment getTextSegment(); /** - * - * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
@@ -62,19 +38,15 @@ public interface TextExtractionAnnotationOrBuilder
   com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuilder();
 
   /**
-   *
-   *
    * 
    * 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; - * * @return The score. */ float getScore(); - public com.google.cloud.automl.v1beta1.TextExtractionAnnotation.AnnotationCase - getAnnotationCase(); + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation.AnnotationCase getAnnotationCase(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java index 129646dc2..97ed5e292 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use TextExtractionDatasetMetadata.newBuilder() to construct. private TextExtractionDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextExtractionDatasetMetadata() {} + private TextExtractionDatasetMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextExtractionDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextExtractionDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private TextExtractionDatasetMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata other = (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.class, com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,14 +274,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance(); } @@ -324,8 +295,7 @@ public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata build() { @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); + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata result = new com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata(this); onBuilt(); return result; } @@ -334,39 +304,38 @@ public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -374,9 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,9 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -407,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -419,13 +384,12 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata(); } @@ -434,16 +398,16 @@ public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getD 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); - } - }; + 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; @@ -458,4 +422,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java new file mode 100644 index 000000000..b9172dd3e --- /dev/null +++ b/owl-bot-staging/v1beta1/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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java similarity index 60% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java index b34cded99..5d0e5a8df 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use TextExtractionEvaluationMetrics.newBuilder() to construct. - private TextExtractionEvaluationMetrics( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextExtractionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextExtractionEvaluationMetrics() { confidenceMetricsEntries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextExtractionEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextExtractionEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,73 +54,60 @@ private TextExtractionEvaluationMetrics( case 0: done = true; break; - case 13: - { - auPrc_ = input.readFloat(); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - new java.util.ArrayList< - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntry>(); - mutable_bitField0_ |= 0x00000001; - } - confidenceMetricsEntries_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntry.parser(), - extensionRegistry)); - break; + case 13: { + + auPrc_ = input.readFloat(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + confidenceMetricsEntries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.class, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder.class); } - public interface ConfidenceMetricsEntryOrBuilder - extends + 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
@@ -146,83 +115,71 @@ public interface ConfidenceMetricsEntryOrBuilder
      * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** - * - * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 3; - * * @return The recall. */ float getRecall(); /** - * - * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 4; - * * @return The precision. */ float getPrecision(); /** - * - * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 5; - * * @return The f1Score. */ float getF1Score(); } /** - * - * *
    * Metrics for a single confidence threshold.
    * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConfidenceMetricsEntry() {} + private ConfidenceMetricsEntry() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -241,67 +198,61 @@ private ConfidenceMetricsEntry( 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; + 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); + 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; + 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 + 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); + 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
@@ -309,7 +260,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -320,14 +270,11 @@ public float getConfidenceThreshold() { public static final int RECALL_FIELD_NUMBER = 3; private float recall_; /** - * - * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 3; - * * @return The recall. */ @java.lang.Override @@ -338,14 +285,11 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 4; private float precision_; /** - * - * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 4; - * * @return The precision. */ @java.lang.Override @@ -356,14 +300,11 @@ public float getPrecision() { 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; - * * @return The f1Score. */ @java.lang.Override @@ -372,7 +313,6 @@ public float getF1Score() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,7 +324,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -407,16 +348,20 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, recall_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, precision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, f1Score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, f1Score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -426,25 +371,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry)) { + 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; + 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; + != java.lang.Float.floatToIntBits( + other.getConfidenceThreshold())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits(other.getRecall())) return false; + != java.lang.Float.floatToIntBits( + other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + != java.lang.Float.floatToIntBits( + other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + != java.lang.Float.floatToIntBits( + other.getF1Score())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -457,126 +402,104 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidenceThreshold()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPrecision()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + 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 { + 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 { + 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 { + 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 { + 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 { + 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 { + 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) + 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 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) + 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 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) + 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); + 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -586,53 +509,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metrics for a single confidence threshold.
      * 
* - * Protobuf type {@code - * google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -648,23 +562,19 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry build() { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -672,12 +582,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @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); + 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_; @@ -690,59 +596,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -770,15 +663,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -788,10 +677,8 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_; + 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
@@ -799,7 +686,6 @@ public Builder mergeFrom(
        * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -807,8 +693,6 @@ 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
@@ -816,19 +700,16 @@ public float getConfidenceThreshold() {
        * 
* * float confidence_threshold = 1; - * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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
@@ -836,26 +717,22 @@ public Builder setConfidenceThreshold(float value) {
        * 
* * float confidence_threshold = 1; - * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private float recall_; + private float recall_ ; /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; - * * @return The recall. */ @java.lang.Override @@ -863,51 +740,42 @@ public float getRecall() { return recall_; } /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; - * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; - * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_; + private float precision_ ; /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; - * * @return The precision. */ @java.lang.Override @@ -915,51 +783,42 @@ public float getPrecision() { return precision_; } /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; - * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float f1Score_; + private float f1Score_ ; /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; - * * @return The f1Score. */ @java.lang.Override @@ -967,41 +826,34 @@ public float getF1Score() { return f1Score_; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; - * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; - * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1014,36 +866,30 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntry - getDefaultInstance() { + 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); - } - }; + 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; @@ -1055,23 +901,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } 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; - * * @return The auPrc. */ @java.lang.Override @@ -1080,101 +923,71 @@ public float getAuPrc() { } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> - confidenceMetricsEntries_; + private java.util.List 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ @java.lang.Override - public java.util.List< - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> - getConfidenceMetricsEntriesList() { + public java.util.List 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> + public java.util.List 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ @java.lang.Override 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index) { + 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index) { + 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; @@ -1186,7 +999,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (auPrc_ != 0F) { output.writeFloat(1, auPrc_); } @@ -1203,12 +1017,12 @@ public int getSerializedSize() { size = 0; if (auPrc_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, auPrc_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, confidenceMetricsEntries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1218,18 +1032,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != java.lang.Float.floatToIntBits( + other.getAuPrc())) return false; + if (!getConfidenceMetricsEntriesList() + .equals(other.getConfidenceMetricsEntriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1242,7 +1056,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AU_PRC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuPrc()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getAuPrc()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); @@ -1253,127 +1068,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.class, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.newBuilder() @@ -1381,17 +1186,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getConfidenceMetricsEntriesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1407,14 +1212,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); } @@ -1429,14 +1233,12 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics build() { @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); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics result = new com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics(this); int from_bitField0_ = bitField0_; result.auPrc_ = auPrc_; if (confidenceMetricsEntriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_); bitField0_ = (bitField0_ & ~0x00000001); } result.confidenceMetricsEntries_ = confidenceMetricsEntries_; @@ -1451,50 +1253,46 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -1516,10 +1314,9 @@ public Builder mergeFrom( confidenceMetricsEntriesBuilder_ = null; confidenceMetricsEntries_ = other.confidenceMetricsEntries_; bitField0_ = (bitField0_ & ~0x00000001); - confidenceMetricsEntriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConfidenceMetricsEntriesFieldBuilder() - : null; + confidenceMetricsEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfidenceMetricsEntriesFieldBuilder() : null; } else { confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_); } @@ -1544,9 +1341,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1555,19 +1350,15 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private float auPrc_; + private float auPrc_ ; /** - * - * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; - * * @return The auPrc. */ @java.lang.Override @@ -1575,78 +1366,56 @@ public float getAuPrc() { return auPrc_; } /** - * - * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; - * * @param value The auPrc to set. * @return This builder for chaining. */ public Builder setAuPrc(float value) { - + auPrc_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; - * * @return This builder for chaining. */ 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 java.util.List confidenceMetricsEntries_ = + java.util.Collections.emptyList(); private void ensureConfidenceMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - new java.util.ArrayList< - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntry>(confidenceMetricsEntries_); + confidenceMetricsEntries_ = new java.util.ArrayList(confidenceMetricsEntries_); bitField0_ |= 0x00000001; - } + } } 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_; + 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public java.util.List< - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> - getConfidenceMetricsEntriesList() { + public java.util.List getConfidenceMetricsEntriesList() { if (confidenceMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } else { @@ -1654,16 +1423,12 @@ private void ensureConfidenceMetricsEntriesIsMutable() { } } /** - * - * *
      * 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1673,19 +1438,14 @@ public 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { @@ -1693,21 +1453,15 @@ public 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder setConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - value) { + int index, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1721,22 +1475,15 @@ public Builder setConfidenceMetricsEntries( 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; - * + * 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) { + int index, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); @@ -1747,20 +1494,14 @@ public Builder setConfidenceMetricsEntries( 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - value) { + public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1774,21 +1515,15 @@ public Builder addConfidenceMetricsEntries( 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder addConfidenceMetricsEntries( - int index, - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - value) { + int index, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1802,21 +1537,15 @@ public Builder addConfidenceMetricsEntries( 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .Builder - builderForValue) { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); @@ -1827,22 +1556,15 @@ public Builder addConfidenceMetricsEntries( 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; - * + * 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) { + int index, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); @@ -1853,26 +1575,19 @@ public Builder addConfidenceMetricsEntries( 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; - * + * 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) { + java.lang.Iterable values) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, confidenceMetricsEntries_); onChanged(); } else { confidenceMetricsEntriesBuilder_.addAllMessages(values); @@ -1880,16 +1595,12 @@ public Builder addAllConfidenceMetricsEntries( 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1902,16 +1613,12 @@ public Builder clearConfidenceMetricsEntries() { 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1924,60 +1631,42 @@ public Builder removeConfidenceMetricsEntries(int 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .Builder - getConfidenceMetricsEntriesBuilder(int index) { + 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index) { if (confidenceMetricsEntriesBuilder_ == null) { - return confidenceMetricsEntries_.get(index); - } else { + 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public java.util.List< - ? extends - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> - getConfidenceMetricsEntriesOrBuilderList() { + public java.util.List + getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1985,81 +1674,48 @@ public Builder removeConfidenceMetricsEntries(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; - * + * 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()); + 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; - * + * 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()); + 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; - * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; */ - public java.util.List< - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - .Builder> - getConfidenceMetricsEntriesBuilderList() { + public java.util.List + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -2068,9 +1724,9 @@ public Builder removeConfidenceMetricsEntries(int index) { } return confidenceMetricsEntriesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2080,32 +1736,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -2117,8 +1771,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000..ae55ed596 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java @@ -0,0 +1,68 @@ +// 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; + * @return The auPrc. + */ + 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 + 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 + 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java similarity index 69% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java index 904273cb9..fd70dc98a 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use TextExtractionModelMetadata.newBuilder() to construct. private TextExtractionModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextExtractionModelMetadata() { modelHint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextExtractionModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextExtractionModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private TextExtractionModelMetadata( case 0: done = true; break; - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - modelHint_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + modelHint_ = 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); + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.class, com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder.class); } public static final int MODEL_HINT_FIELD_NUMBER = 3; private volatile java.lang.Object modelHint_; /** - * - * *
    * Indicates the scope of model use case.
    * * `default`: Use to train a general text extraction model. Default value.
@@ -124,7 +102,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string model_hint = 3; - * * @return The modelHint. */ @java.lang.Override @@ -133,15 +110,14 @@ public java.lang.String getModelHint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelHint_ = s; return s; } } /** - * - * *
    * Indicates the scope of model use case.
    * * `default`: Use to train a general text extraction model. Default value.
@@ -150,15 +126,16 @@ public java.lang.String getModelHint() {
    * 
* * string model_hint = 3; - * * @return The bytes for modelHint. */ @java.lang.Override - public com.google.protobuf.ByteString getModelHintBytes() { + public com.google.protobuf.ByteString + getModelHintBytes() { java.lang.Object ref = modelHint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelHint_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getModelHintBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelHint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modelHint_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata other = (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) obj; - if (!getModelHint().equals(other.getModelHint())) return false; + if (!getModelHint() + .equals(other.getModelHint())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextExtractionModelMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.class, com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.newBuilder() @@ -359,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +345,9 @@ public Builder clear() { } @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; + 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 @@ -398,8 +366,7 @@ public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata build() { @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); + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata result = new com.google.cloud.automl.v1beta1.TextExtractionModelMetadata(this); result.modelHint_ = modelHint_; onBuilt(); return result; @@ -409,39 +376,38 @@ public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextExtractionModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -449,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextExtractionModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance()) return this; if (!other.getModelHint().isEmpty()) { modelHint_ = other.modelHint_; onChanged(); @@ -474,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object modelHint_ = ""; /** - * - * *
      * Indicates the scope of model use case.
      * * `default`: Use to train a general text extraction model. Default value.
@@ -497,13 +459,13 @@ public Builder mergeFrom(
      * 
* * string model_hint = 3; - * * @return The modelHint. */ public java.lang.String getModelHint() { java.lang.Object ref = modelHint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelHint_ = s; return s; @@ -512,8 +474,6 @@ public java.lang.String getModelHint() { } } /** - * - * *
      * Indicates the scope of model use case.
      * * `default`: Use to train a general text extraction model. Default value.
@@ -522,14 +482,15 @@ public java.lang.String getModelHint() {
      * 
* * string model_hint = 3; - * * @return The bytes for modelHint. */ - public com.google.protobuf.ByteString getModelHintBytes() { + public com.google.protobuf.ByteString + getModelHintBytes() { java.lang.Object ref = modelHint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelHint_ = b; return b; } else { @@ -537,8 +498,6 @@ public com.google.protobuf.ByteString getModelHintBytes() { } } /** - * - * *
      * Indicates the scope of model use case.
      * * `default`: Use to train a general text extraction model. Default value.
@@ -547,22 +506,20 @@ public com.google.protobuf.ByteString getModelHintBytes() {
      * 
* * string model_hint = 3; - * * @param value The modelHint to set. * @return This builder for chaining. */ - public Builder setModelHint(java.lang.String value) { + public Builder setModelHint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + modelHint_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the scope of model use case.
      * * `default`: Use to train a general text extraction model. Default value.
@@ -571,18 +528,15 @@ public Builder setModelHint(java.lang.String value) {
      * 
* * string model_hint = 3; - * * @return This builder for chaining. */ public Builder clearModelHint() { - + modelHint_ = getDefaultInstance().getModelHint(); onChanged(); return this; } /** - * - * *
      * Indicates the scope of model use case.
      * * `default`: Use to train a general text extraction model. Default value.
@@ -591,23 +545,23 @@ public Builder clearModelHint() {
      * 
* * string model_hint = 3; - * * @param value The bytes for modelHint to set. * @return This builder for chaining. */ - public Builder setModelHintBytes(com.google.protobuf.ByteString value) { + public Builder setModelHintBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelHint_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +571,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -631,16 +585,16 @@ public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getDef 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); - } - }; + 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; @@ -655,4 +609,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java similarity index 58% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java index be64161f3..d79f8fa1a 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +public interface TextExtractionModelMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextExtractionModelMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Indicates the scope of model use case.
    * * `default`: Use to train a general text extraction model. Default value.
@@ -34,13 +16,10 @@ public interface TextExtractionModelMetadataOrBuilder
    * 
* * string model_hint = 3; - * * @return The modelHint. */ java.lang.String getModelHint(); /** - * - * *
    * Indicates the scope of model use case.
    * * `default`: Use to train a general text extraction model. Default value.
@@ -49,8 +28,8 @@ public interface TextExtractionModelMetadataOrBuilder
    * 
* * string model_hint = 3; - * * @return The bytes for modelHint. */ - com.google.protobuf.ByteString getModelHintBytes(); + com.google.protobuf.ByteString + getModelHintBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java new file mode 100644 index 000000000..309ad97f6 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text.proto + +package com.google.cloud.automl.v1beta1; + +public final class TextProto { + private TextProto() {} + 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_TextClassificationDatasetMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/automl/v1beta1/text.proto" + + "\022\033google.cloud.automl.v1beta1\0320google/cl" + + "oud/automl/v1beta1/classification.proto\032" + + "\034google/api/annotations.proto\"q\n!TextCla" + + "ssificationDatasetMetadata\022L\n\023classifica" + + "tion_type\030\001 \001(\0162/.google.cloud.automl.v1" + + "beta1.ClassificationType\"o\n\037TextClassifi" + + "cationModelMetadata\022L\n\023classification_ty" + + "pe\030\003 \001(\0162/.google.cloud.automl.v1beta1.C" + + "lassificationType\"\037\n\035TextExtractionDatas" + + "etMetadata\"1\n\033TextExtractionModelMetadat" + + "a\022\022\n\nmodel_hint\030\003 \001(\t\"5\n\034TextSentimentDa" + + "tasetMetadata\022\025\n\rsentiment_max\030\001 \001(\005\"\034\n\032" + + "TextSentimentModelMetadataB\260\001\n\037com.googl" + + "e.cloud.automl.v1beta1B\tTextProtoP\001ZAgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" + + "toMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1" + + "beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor, + new java.lang.String[] { "ClassificationType", }); + internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor, + new java.lang.String[] { "ClassificationType", }); + 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[] { "ModelHint", }); + 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.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java similarity index 71% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java index 3fe4fdbe6..f39543ce7 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSegment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSegment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,68 +53,62 @@ private TextSegment( 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(); + case 8: { - content_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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; - * * @return The content. */ @java.lang.Override @@ -140,29 +117,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -173,15 +150,12 @@ public com.google.protobuf.ByteString getContentBytes() { 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; - * * @return The startOffset. */ @java.lang.Override @@ -192,8 +166,6 @@ public long getStartOffset() { 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).
@@ -201,7 +173,6 @@ public long getStartOffset() {
    * 
* * int64 end_offset = 2; - * * @return The endOffset. */ @java.lang.Override @@ -210,7 +181,6 @@ public long getEndOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +192,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startOffset_ != 0L) { output.writeInt64(1, startOffset_); } @@ -242,10 +213,12 @@ public int getSerializedSize() { size = 0; if (startOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, startOffset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, startOffset_); } if (endOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, endOffset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, endOffset_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); @@ -258,17 +231,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; } @@ -283,135 +258,128 @@ public int 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 = (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 = (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) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextSegment.class, com.google.cloud.automl.v1beta1.TextSegment.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextSegment.newBuilder() @@ -419,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +410,9 @@ public Builder clear() { } @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; + 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 @@ -462,8 +431,7 @@ public com.google.cloud.automl.v1beta1.TextSegment build() { @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); + com.google.cloud.automl.v1beta1.TextSegment result = new com.google.cloud.automl.v1beta1.TextSegment(this); result.content_ = content_; result.startOffset_ = startOffset_; result.endOffset_ = endOffset_; @@ -475,39 +443,38 @@ public com.google.cloud.automl.v1beta1.TextSegment buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextSegment)other); } else { super.mergeFrom(other); return this; @@ -557,20 +524,18 @@ public Builder mergeFrom( private java.lang.Object content_ = ""; /** - * - * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; - * * @return The content. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -579,21 +544,20 @@ public java.lang.String getContent() { } } /** - * - * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -601,77 +565,67 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { + public Builder setContent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** - * - * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { + public Builder setContentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; onChanged(); return this; } - private long startOffset_; + 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; - * * @return The startOffset. */ @java.lang.Override @@ -679,47 +633,39 @@ 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; - * * @param value The startOffset to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearStartOffset() { - + startOffset_ = 0L; onChanged(); return this; } - private long endOffset_; + 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).
@@ -727,7 +673,6 @@ public Builder clearStartOffset() {
      * 
* * int64 end_offset = 2; - * * @return The endOffset. */ @java.lang.Override @@ -735,8 +680,6 @@ 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).
@@ -744,19 +687,16 @@ public long getEndOffset() {
      * 
* * int64 end_offset = 2; - * * @param value The endOffset to set. * @return This builder for chaining. */ 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).
@@ -764,18 +704,17 @@ public Builder setEndOffset(long value) {
      * 
* * int64 end_offset = 2; - * * @return This builder for chaining. */ public Builder clearEndOffset() { - + endOffset_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -785,12 +724,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -799,16 +738,16 @@ 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); - } - }; + 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; @@ -823,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TextSegment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java similarity index 63% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java index b962b39db..2ad8a5110 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java @@ -1,70 +1,44 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
    * Output only. The content of the TextSegment.
    * 
* * string content = 3; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + 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; - * * @return The startOffset. */ 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).
@@ -72,7 +46,6 @@ public interface TextSegmentOrBuilder
    * 
* * int64 end_offset = 2; - * * @return The endOffset. */ long getEndOffset(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java new file mode 100644 index 000000000..d42b21dd4 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java @@ -0,0 +1,57 @@ +// 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\267\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\\V1beta1\352\002\036Google::Cloud::AutoML::" + + "V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java similarity index 68% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java index 798cbb294..0ecaaeb03 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use TextSentimentDatasetMetadata.newBuilder() to construct. private TextSentimentDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextSentimentDatasetMetadata() {} + private TextSentimentDatasetMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSentimentDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSentimentDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,50 +52,46 @@ private TextSentimentDatasetMetadata( case 0: done = true; break; - case 8: - { - sentimentMax_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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
@@ -122,7 +102,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 sentiment_max = 1; - * * @return The sentimentMax. */ @java.lang.Override @@ -131,7 +110,6 @@ public int getSentimentMax() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sentimentMax_ != 0) { output.writeInt32(1, sentimentMax_); } @@ -157,7 +136,8 @@ public int getSerializedSize() { size = 0; if (sentimentMax_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentimentMax_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sentimentMax_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -167,15 +147,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata other = (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) obj; - if (getSentimentMax() != other.getSentimentMax()) return false; + if (getSentimentMax() + != other.getSentimentMax()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -195,127 +175,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.class, com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.newBuilder() @@ -323,15 +293,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -341,14 +312,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance(); } @@ -363,8 +333,7 @@ public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata build() { @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); + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata result = new com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata(this); result.sentimentMax_ = sentimentMax_; onBuilt(); return result; @@ -374,39 +343,38 @@ public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -414,9 +382,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance()) return this; if (other.getSentimentMax() != 0) { setSentimentMax(other.getSentimentMax()); } @@ -439,8 +405,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -450,10 +415,8 @@ public Builder mergeFrom( return this; } - private int sentimentMax_; + 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
@@ -464,7 +427,6 @@ public Builder mergeFrom(
      * 
* * int32 sentiment_max = 1; - * * @return The sentimentMax. */ @java.lang.Override @@ -472,8 +434,6 @@ 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
@@ -484,19 +444,16 @@ public int getSentimentMax() {
      * 
* * int32 sentiment_max = 1; - * * @param value The sentimentMax to set. * @return This builder for chaining. */ 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
@@ -507,18 +464,17 @@ public Builder setSentimentMax(int value) {
      * 
* * int32 sentiment_max = 1; - * * @return This builder for chaining. */ public Builder clearSentimentMax() { - + sentimentMax_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -528,13 +484,12 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata(); } @@ -543,16 +498,16 @@ public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getDe 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); - } - }; + 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; @@ -567,4 +522,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java similarity index 55% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java index e6e98f5c3..e380f89ca 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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
@@ -36,7 +18,6 @@ public interface TextSentimentDatasetMetadataOrBuilder
    * 
* * int32 sentiment_max = 1; - * * @return The sentimentMax. */ int getSentimentMax(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java similarity index 65% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java index 7898d9f11..3ee35150f 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 sentiment.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentModelMetadata} */ -public final class TextSentimentModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +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; +private static final long serialVersionUID = 0L; // Use TextSentimentModelMetadata.newBuilder() to construct. private TextSentimentModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextSentimentModelMetadata() {} + private TextSentimentModelMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSentimentModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSentimentModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private TextSentimentModelMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata other = (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model metadata that is specific to text sentiment.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.class, com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.newBuilder() @@ -286,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -302,9 +274,9 @@ public Builder clear() { } @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; + 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 @@ -323,8 +295,7 @@ public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata build() { @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); + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata result = new com.google.cloud.automl.v1beta1.TextSentimentModelMetadata(this); onBuilt(); return result; } @@ -333,39 +304,38 @@ public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextSentimentModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -373,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextSentimentModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -394,8 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -404,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -416,12 +384,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -430,16 +398,16 @@ public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getDefa 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); - } - }; + 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; @@ -454,4 +422,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java new file mode 100644 index 000000000..9cd9352b1 --- /dev/null +++ b/owl-bot-staging/v1beta1/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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java index 668a34064..683d6544c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java @@ -1,18 +1,3 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/text_sentiment.proto @@ -20,21 +5,20 @@ 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 static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { } - public interface TextSentimentAnnotationOrBuilder - extends + 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
@@ -51,43 +35,41 @@ public interface TextSentimentAnnotationOrBuilder
      * 
* * int32 sentiment = 1; - * * @return The sentiment. */ 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 + 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; + private static final long serialVersionUID = 0L; // Use TextSentimentAnnotation.newBuilder() to construct. private TextSentimentAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextSentimentAnnotation() {} + private TextSentimentAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSentimentAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSentimentAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -106,51 +88,46 @@ private TextSentimentAnnotation( case 0: done = true; break; - case 8: - { - sentiment_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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
@@ -167,7 +144,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * int32 sentiment = 1; - * * @return The sentiment. */ @java.lang.Override @@ -176,7 +152,6 @@ public int getSentiment() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sentiment_ != 0) { output.writeInt32(1, sentiment_); } @@ -202,7 +178,8 @@ public int getSerializedSize() { size = 0; if (sentiment_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentiment_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sentiment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -212,16 +189,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation)) { + 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; + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation other = (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) obj; - if (getSentiment() != other.getSentiment()) return false; + if (getSentiment() + != other.getSentiment()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -240,101 +216,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + 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 { + 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 { + 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 { + 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 { + 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) + 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 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) + 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 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) + 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); + 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -344,50 +307,44 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -397,22 +354,19 @@ public Builder clear() { } @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; + 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(); + 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(); + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -420,10 +374,8 @@ public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotatio } @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); + 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; @@ -433,54 +385,46 @@ public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotatio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -499,14 +443,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -516,10 +457,8 @@ public Builder mergeFrom( return this; } - private int sentiment_; + 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
@@ -536,7 +475,6 @@ public Builder mergeFrom(
        * 
* * int32 sentiment = 1; - * * @return The sentiment. */ @java.lang.Override @@ -544,8 +482,6 @@ 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
@@ -562,19 +498,16 @@ public int getSentiment() {
        * 
* * int32 sentiment = 1; - * * @param value The sentiment to set. * @return This builder for chaining. */ 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
@@ -591,16 +524,14 @@ public Builder setSentiment(int value) {
        * 
* * int32 sentiment = 1; - * * @return This builder for chaining. */ public Builder clearSentiment() { - + sentiment_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -613,33 +544,30 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation(); } - public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation - getDefaultInstance() { + 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); - } - }; + 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; @@ -651,258 +579,200 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TextSentimentEvaluationMetricsOrBuilder - extends + public interface TextSentimentEvaluationMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. Precision.
      * 
* * float precision = 1; - * * @return The precision. */ float getPrecision(); /** - * - * *
      * Output only. Recall.
      * 
* * float recall = 2; - * * @return The recall. */ float getRecall(); /** - * - * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 3; - * * @return The f1Score. */ 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; - * * @return The meanAbsoluteError. */ 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; - * * @return The meanSquaredError. */ 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; - * * @return The linearKappa. */ 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; - * * @return The quadraticKappa. */ 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; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return Whether the confusionMatrix field is set. */ 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; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return The confusionMatrix. */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - getConfusionMatrix(); + 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; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder(); /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @return A list containing the annotationSpecId. */ - @java.lang.Deprecated - java.util.List getAnnotationSpecIdList(); + @java.lang.Deprecated java.util.List + getAnnotationSpecIdList(); /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @return The count of annotationSpecId. */ - @java.lang.Deprecated - int getAnnotationSpecIdCount(); + @java.lang.Deprecated int getAnnotationSpecIdCount(); /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ - @java.lang.Deprecated - java.lang.String getAnnotationSpecId(int index); + @java.lang.Deprecated java.lang.String getAnnotationSpecId(int index); /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); + @java.lang.Deprecated 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 + 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; + private static final long serialVersionUID = 0L; // Use TextSentimentEvaluationMetrics.newBuilder() to construct. - private TextSentimentEvaluationMetrics( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextSentimentEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextSentimentEvaluationMetrics() { annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSentimentEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSentimentEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -922,84 +792,77 @@ private TextSentimentEvaluationMetrics( 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 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(); } - 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; + confusionMatrix_ = input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(confusionMatrix_); + confusionMatrix_ = subBuilder.buildPartial(); } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - annotationSpecId_.add(s); - break; + + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); @@ -1008,35 +871,27 @@ private TextSentimentEvaluationMetrics( 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.class, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder.class); } public static final int PRECISION_FIELD_NUMBER = 1; private float precision_; /** - * - * *
      * Output only. Precision.
      * 
* * float precision = 1; - * * @return The precision. */ @java.lang.Override @@ -1047,14 +902,11 @@ public float getPrecision() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** - * - * *
      * Output only. Recall.
      * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -1065,14 +917,11 @@ public float getRecall() { 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; - * * @return The f1Score. */ @java.lang.Override @@ -1083,15 +932,12 @@ public float getF1Score() { 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; - * * @return The meanAbsoluteError. */ @java.lang.Override @@ -1102,15 +948,12 @@ public float getMeanAbsoluteError() { 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; - * * @return The meanSquaredError. */ @java.lang.Override @@ -1121,15 +964,12 @@ public float getMeanSquaredError() { 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; - * * @return The linearKappa. */ @java.lang.Override @@ -1140,15 +980,12 @@ public float getLinearKappa() { 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; - * * @return The quadraticKappa. */ @java.lang.Override @@ -1157,22 +994,15 @@ public float getQuadraticKappa() { } public static final int CONFUSION_MATRIX_FIELD_NUMBER = 8; - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - confusionMatrix_; + 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; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return Whether the confusionMatrix field is set. */ @java.lang.Override @@ -1180,120 +1010,89 @@ 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; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return The confusionMatrix. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - getConfusionMatrix() { - return confusionMatrix_ == null - ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.getDefaultInstance() - : confusionMatrix_; + 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; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder() { + 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 .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @return A list containing the annotationSpecId. */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getAnnotationSpecIdList() { return annotationSpecId_; } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @return The count of annotationSpecId. */ - @java.lang.Deprecated - public int getAnnotationSpecIdCount() { + @java.lang.Deprecated public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ - @java.lang.Deprecated - public java.lang.String getAnnotationSpecId(int index) { + @java.lang.Deprecated public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** - * - * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + @java.lang.Deprecated 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; @@ -1305,7 +1104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (precision_ != 0F) { output.writeFloat(1, precision_); } @@ -1343,28 +1143,36 @@ public int getSerializedSize() { size = 0; if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, precision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, precision_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, recall_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, f1Score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, f1Score_); } if (meanAbsoluteError_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, meanAbsoluteError_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, meanAbsoluteError_); } if (meanSquaredError_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, meanSquaredError_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, meanSquaredError_); } if (linearKappa_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, linearKappa_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, linearKappa_); } if (quadraticKappa_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, quadraticKappa_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, quadraticKappa_); } if (confusionMatrix_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConfusionMatrix()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getConfusionMatrix()); } { int dataSize = 0; @@ -1382,35 +1190,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics)) { + 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; + 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; + != java.lang.Float.floatToIntBits( + other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits(other.getRecall())) return false; + != java.lang.Float.floatToIntBits( + other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + != java.lang.Float.floatToIntBits( + other.getF1Score())) return false; if (java.lang.Float.floatToIntBits(getMeanAbsoluteError()) - != java.lang.Float.floatToIntBits(other.getMeanAbsoluteError())) return false; + != java.lang.Float.floatToIntBits( + other.getMeanAbsoluteError())) return false; if (java.lang.Float.floatToIntBits(getMeanSquaredError()) - != java.lang.Float.floatToIntBits(other.getMeanSquaredError())) return false; + != java.lang.Float.floatToIntBits( + other.getMeanSquaredError())) return false; if (java.lang.Float.floatToIntBits(getLinearKappa()) - != java.lang.Float.floatToIntBits(other.getLinearKappa())) return false; + != java.lang.Float.floatToIntBits( + other.getLinearKappa())) return false; if (java.lang.Float.floatToIntBits(getQuadraticKappa()) - != java.lang.Float.floatToIntBits(other.getQuadraticKappa())) return false; + != java.lang.Float.floatToIntBits( + other.getQuadraticKappa())) return false; if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; if (hasConfusionMatrix()) { - if (!getConfusionMatrix().equals(other.getConfusionMatrix())) return false; + if (!getConfusionMatrix() + .equals(other.getConfusionMatrix())) return false; } - if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; + if (!getAnnotationSpecIdList() + .equals(other.getAnnotationSpecIdList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1423,19 +1237,26 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPrecision()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRecall()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits( + getMeanAbsoluteError()); hash = (37 * hash) + MEAN_SQUARED_ERROR_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanSquaredError()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMeanSquaredError()); hash = (37 * hash) + LINEAR_KAPPA_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLinearKappa()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getLinearKappa()); hash = (37 * hash) + QUADRATIC_KAPPA_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getQuadraticKappa()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getQuadraticKappa()); if (hasConfusionMatrix()) { hash = (37 * hash) + CONFUSION_MATRIX_FIELD_NUMBER; hash = (53 * hash) + getConfusionMatrix().hashCode(); @@ -1449,102 +1270,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + 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 { + 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 { + 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 { + 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 { + 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) + 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 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) + 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 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) + 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); + 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1554,51 +1361,44 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() + // Construct using com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1628,23 +1428,19 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics build() { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1652,11 +1448,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @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); + 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_; result.precision_ = precision_; result.recall_ = recall_; @@ -1683,56 +1476,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -1782,14 +1565,11 @@ 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; + 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(); + parsedMessage = (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1798,19 +1578,15 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private float precision_; + private float precision_ ; /** - * - * *
        * Output only. Precision.
        * 
* * float precision = 1; - * * @return The precision. */ @java.lang.Override @@ -1818,51 +1594,42 @@ public float getPrecision() { return precision_; } /** - * - * *
        * Output only. Precision.
        * 
* * float precision = 1; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Precision.
        * 
* * float precision = 1; - * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float recall_; + private float recall_ ; /** - * - * *
        * Output only. Recall.
        * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -1870,51 +1637,42 @@ public float getRecall() { return recall_; } /** - * - * *
        * Output only. Recall.
        * 
* * float recall = 2; - * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Recall.
        * 
* * float recall = 2; - * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float f1Score_; + private float f1Score_ ; /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 3; - * * @return The f1Score. */ @java.lang.Override @@ -1922,52 +1680,43 @@ public float getF1Score() { return f1Score_; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 3; - * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 3; - * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - private float meanAbsoluteError_; + 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; - * * @return The meanAbsoluteError. */ @java.lang.Override @@ -1975,54 +1724,45 @@ 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; - * * @param value The meanAbsoluteError to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearMeanAbsoluteError() { - + meanAbsoluteError_ = 0F; onChanged(); return this; } - private float meanSquaredError_; + 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; - * * @return The meanSquaredError. */ @java.lang.Override @@ -2030,54 +1770,45 @@ 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; - * * @param value The meanSquaredError to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearMeanSquaredError() { - + meanSquaredError_ = 0F; onChanged(); return this; } - private float linearKappa_; + 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; - * * @return The linearKappa. */ @java.lang.Override @@ -2085,54 +1816,45 @@ 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; - * * @param value The linearKappa to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearLinearKappa() { - + linearKappa_ = 0F; onChanged(); return this; } - private float quadraticKappa_; + 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; - * * @return The quadraticKappa. */ @java.lang.Override @@ -2140,116 +1862,80 @@ 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; - * * @param value The quadraticKappa to set. * @return This builder for chaining. */ 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; - * * @return This builder for chaining. */ public Builder clearQuadraticKappa() { - + quadraticKappa_ = 0F; onChanged(); return this; } - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - confusionMatrix_; + 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_; + 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; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return Whether the confusionMatrix field is set. */ 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; - * - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; * @return The confusionMatrix. */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - getConfusionMatrix() { + 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_; + 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; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ - public Builder setConfusionMatrix( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - value) { + public Builder setConfusionMatrix(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2263,22 +1949,16 @@ public Builder setConfusionMatrix( 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; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ public Builder setConfusionMatrix( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Builder - builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue) { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = builderForValue.build(); onChanged(); @@ -2289,29 +1969,19 @@ public Builder setConfusionMatrix( 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; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ - public Builder mergeConfusionMatrix( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - value) { + 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(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder(confusionMatrix_).mergeFrom(value).buildPartial(); } else { confusionMatrix_ = value; } @@ -2323,17 +1993,13 @@ public Builder mergeConfusionMatrix( 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; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ public Builder clearConfusionMatrix() { if (confusionMatrixBuilder_ == null) { @@ -2347,272 +2013,213 @@ public Builder clearConfusionMatrix() { 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; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Builder - getConfusionMatrixBuilder() { - + 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; - * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder() { + 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_; + 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; - * + * .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> + 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()); + 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 com.google.protobuf.LazyStringList annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAnnotationSpecIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @return A list containing the annotationSpecId. */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getAnnotationSpecIdList() { return annotationSpecId_.getUnmodifiableView(); } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @return The count of annotationSpecId. */ - @java.lang.Deprecated - public int getAnnotationSpecIdCount() { + @java.lang.Deprecated public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ - @java.lang.Deprecated - public java.lang.String getAnnotationSpecId(int index) { + @java.lang.Deprecated public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + @java.lang.Deprecated public com.google.protobuf.ByteString + getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @param index The index to set the value at. * @param value The annotationSpecId to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setAnnotationSpecId(int index, java.lang.String value) { + @java.lang.Deprecated public Builder setAnnotationSpecId( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.set(index, value); onChanged(); return this; } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @param value The annotationSpecId to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addAnnotationSpecId(java.lang.String value) { + @java.lang.Deprecated public Builder addAnnotationSpecId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @param values The annotationSpecId to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addAllAnnotationSpecId(java.lang.Iterable values) { + @java.lang.Deprecated public Builder addAllAnnotationSpecId( + java.lang.Iterable values) { ensureAnnotationSpecIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotationSpecId_); onChanged(); return this; } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearAnnotationSpecId() { + @java.lang.Deprecated public Builder clearAnnotationSpecId() { annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; - * * @param value The bytes of the annotationSpecId to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated public Builder addAnnotationSpecIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { @@ -2625,34 +2232,30 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics(); + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics(); } - public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - getDefaultInstance() { + 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); - } - }; + 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; @@ -2664,80 +2267,69 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics - getDefaultInstanceForType() { + 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_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_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() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor 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" - + "0google/cloud/automl/v1beta1/classificat" - + "ion.proto\032\034google/api/annotations.proto\"" - + ",\n\027TextSentimentAnnotation\022\021\n\tsentiment\030" - + "\001 \001(\005\"\305\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\036\n\022annotation_spec" - + "_id\030\t \003(\tB\002\030\001B\267\001\n\037com.google.cloud.autom" - + "l.v1beta1B\022TextSentimentProtoZAgoogle.go" - + "lang.org/genproto/googleapis/cloud/autom" - + "l/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V" - + "1beta1\352\002\036Google::Cloud::AutoML::V1beta1b" - + "\006proto3" + "\n0google/cloud/automl/v1beta1/text_senti" + + "ment.proto\022\033google.cloud.automl.v1beta1\032" + + "0google/cloud/automl/v1beta1/classificat" + + "ion.proto\032\034google/api/annotations.proto\"" + + ",\n\027TextSentimentAnnotation\022\021\n\tsentiment\030" + + "\001 \001(\005\"\305\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\036\n\022annotation_spec" + + "_id\030\t \003(\tB\002\030\001B\267\001\n\037com.google.cloud.autom" + + "l.v1beta1B\022TextSentimentProtoZAgoogle.go" + + "lang.org/genproto/googleapis/cloud/autom" + + "l/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V" + + "1beta1\352\002\036Google::Cloud::AutoML::V1beta1b" + + "\006proto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); 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", - }); + 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", - }); + 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.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java similarity index 72% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java index 74f861d99..ed30e457c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 text snippet.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextSnippet} */ -public final class TextSnippet extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextSnippet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextSnippet) TextSnippetOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextSnippet.newBuilder() to construct. private TextSnippet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextSnippet() { content_ = ""; mimeType_ = ""; @@ -45,15 +27,16 @@ private TextSnippet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextSnippet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextSnippet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,73 +55,65 @@ private TextSnippet( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - content_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + content_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - contentUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + contentUri_ = 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); + 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_TextSnippet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextSnippet.class, - com.google.cloud.automl.v1beta1.TextSnippet.Builder.class); + com.google.cloud.automl.v1beta1.TextSnippet.class, com.google.cloud.automl.v1beta1.TextSnippet.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private volatile java.lang.Object content_; /** - * - * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; - * * @return The content. */ @java.lang.Override @@ -147,30 +122,30 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** - * - * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -181,8 +156,6 @@ public com.google.protobuf.ByteString getContentBytes() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -190,7 +163,6 @@ public com.google.protobuf.ByteString getContentBytes() {
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -199,15 +171,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -215,15 +186,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -234,14 +206,11 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int CONTENT_URI_FIELD_NUMBER = 4; private volatile java.lang.Object contentUri_; /** - * - * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; - * * @return The contentUri. */ @java.lang.Override @@ -250,29 +219,29 @@ public java.lang.String getContentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentUri_ = s; return s; } } /** - * - * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; - * * @return The bytes for contentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getContentUriBytes() { + public com.google.protobuf.ByteString + getContentUriBytes() { java.lang.Object ref = contentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentUri_ = b; return b; } else { @@ -281,7 +250,6 @@ public com.google.protobuf.ByteString getContentUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -329,17 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TextSnippet)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TextSnippet other = - (com.google.cloud.automl.v1beta1.TextSnippet) obj; + com.google.cloud.automl.v1beta1.TextSnippet other = (com.google.cloud.automl.v1beta1.TextSnippet) obj; - if (!getContent().equals(other.getContent())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getContentUri().equals(other.getContentUri())) return false; + if (!getContent() + .equals(other.getContent())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getContentUri() + .equals(other.getContentUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,127 +333,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TextSnippet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TextSnippet 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.TextSnippet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TextSnippet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TextSnippet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TextSnippet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextSnippet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A representation of a text snippet.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextSnippet} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextSnippet) com.google.cloud.automl.v1beta1.TextSnippetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextSnippet.class, - com.google.cloud.automl.v1beta1.TextSnippet.Builder.class); + com.google.cloud.automl.v1beta1.TextSnippet.class, com.google.cloud.automl.v1beta1.TextSnippet.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextSnippet.newBuilder() @@ -490,15 +452,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.DataItems - .internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; } @java.lang.Override @@ -533,8 +496,7 @@ public com.google.cloud.automl.v1beta1.TextSnippet build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet buildPartial() { - com.google.cloud.automl.v1beta1.TextSnippet result = - new com.google.cloud.automl.v1beta1.TextSnippet(this); + com.google.cloud.automl.v1beta1.TextSnippet result = new com.google.cloud.automl.v1beta1.TextSnippet(this); result.content_ = content_; result.mimeType_ = mimeType_; result.contentUri_ = contentUri_; @@ -546,39 +508,38 @@ public com.google.cloud.automl.v1beta1.TextSnippet buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TextSnippet) { - return mergeFrom((com.google.cloud.automl.v1beta1.TextSnippet) other); + return mergeFrom((com.google.cloud.automl.v1beta1.TextSnippet)other); } else { super.mergeFrom(other); return this; @@ -630,21 +591,19 @@ public Builder mergeFrom( private java.lang.Object content_ = ""; /** - * - * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; - * * @return The content. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -653,22 +612,21 @@ public java.lang.String getContent() { } } /** - * - * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -676,64 +634,57 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { + public Builder setContent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** - * - * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { + public Builder setContentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; onChanged(); return this; @@ -741,8 +692,6 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -750,13 +699,13 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) {
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -765,8 +714,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -774,14 +721,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -789,8 +737,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -798,22 +744,20 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -821,18 +765,15 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -840,16 +781,16 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -857,20 +798,18 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object contentUri_ = ""; /** - * - * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; - * * @return The contentUri. */ public java.lang.String getContentUri() { java.lang.Object ref = contentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentUri_ = s; return s; @@ -879,21 +818,20 @@ public java.lang.String getContentUri() { } } /** - * - * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; - * * @return The bytes for contentUri. */ - public com.google.protobuf.ByteString getContentUriBytes() { + public com.google.protobuf.ByteString + getContentUriBytes() { java.lang.Object ref = contentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentUri_ = b; return b; } else { @@ -901,68 +839,61 @@ public com.google.protobuf.ByteString getContentUriBytes() { } } /** - * - * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; - * * @param value The contentUri to set. * @return This builder for chaining. */ - public Builder setContentUri(java.lang.String value) { + public Builder setContentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentUri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; - * * @return This builder for chaining. */ public Builder clearContentUri() { - + contentUri_ = getDefaultInstance().getContentUri(); onChanged(); return this; } /** - * - * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; - * * @param value The bytes for contentUri to set. * @return This builder for chaining. */ - public Builder setContentUriBytes(com.google.protobuf.ByteString value) { + public Builder setContentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +903,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextSnippet) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextSnippet) private static final com.google.cloud.automl.v1beta1.TextSnippet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSnippet(); } @@ -986,16 +917,16 @@ public static com.google.cloud.automl.v1beta1.TextSnippet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextSnippet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextSnippet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSnippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSnippet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1010,4 +941,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TextSnippet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java similarity index 69% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java index 8dfa8873e..68bdbbaf8 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 TextSnippetOrBuilder - extends +public interface TextSnippetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextSnippet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
    * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -60,13 +37,10 @@ public interface TextSnippetOrBuilder
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -74,33 +48,28 @@ public interface TextSnippetOrBuilder
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; - * * @return The contentUri. */ java.lang.String getContentUri(); /** - * - * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; - * * @return The bytes for contentUri. */ - com.google.protobuf.ByteString getContentUriBytes(); + com.google.protobuf.ByteString + getContentUriBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java similarity index 70% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java index bdad36880..685001d2a 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use TimeSegment.newBuilder() to construct. private TimeSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TimeSegment() {} + private TimeSegment() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TimeSegment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TimeSegment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,82 +52,73 @@ private TimeSegment( 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 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(); } - 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; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTimeOffset_ != null) { + subBuilder = endTimeOffset_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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; - * * @return Whether the startTimeOffset field is set. */ @java.lang.Override @@ -151,26 +126,19 @@ 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; - * * @return The startTimeOffset. */ @java.lang.Override public com.google.protobuf.Duration getStartTimeOffset() { - return startTimeOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : startTimeOffset_; + return startTimeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTimeOffset_; } /** - * - * *
    * Start of the time segment (inclusive), represented as the duration since
    * the example start.
@@ -186,15 +154,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() {
   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; - * * @return Whether the endTimeOffset field is set. */ @java.lang.Override @@ -202,26 +167,19 @@ 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; - * * @return The endTimeOffset. */ @java.lang.Override public com.google.protobuf.Duration getEndTimeOffset() { - return endTimeOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : endTimeOffset_; + return endTimeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTimeOffset_; } /** - * - * *
    * End of the time segment (exclusive), represented as the duration since the
    * example start.
@@ -235,7 +193,6 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -247,7 +204,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (startTimeOffset_ != null) {
       output.writeMessage(1, getStartTimeOffset());
     }
@@ -264,10 +222,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (startTimeOffset_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTimeOffset());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getStartTimeOffset());
     }
     if (endTimeOffset_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTimeOffset());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getEndTimeOffset());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -277,21 +237,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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;
+    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 (!getStartTimeOffset()
+          .equals(other.getStartTimeOffset())) return false;
     }
     if (hasEndTimeOffset() != other.hasEndTimeOffset()) return false;
     if (hasEndTimeOffset()) {
-      if (!getEndTimeOffset().equals(other.getEndTimeOffset())) return false;
+      if (!getEndTimeOffset()
+          .equals(other.getEndTimeOffset())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -317,127 +278,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom(java.nio.ByteBuffer data)
+  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)
+      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)
+      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);
+    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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TimeSegment.class, com.google.cloud.automl.v1beta1.TimeSegment.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TimeSegment.newBuilder() @@ -445,15 +397,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -473,9 +426,9 @@ public Builder clear() { } @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; + 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 @@ -494,8 +447,7 @@ public com.google.cloud.automl.v1beta1.TimeSegment build() { @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); + com.google.cloud.automl.v1beta1.TimeSegment result = new com.google.cloud.automl.v1beta1.TimeSegment(this); if (startTimeOffsetBuilder_ == null) { result.startTimeOffset_ = startTimeOffset_; } else { @@ -514,39 +466,38 @@ public com.google.cloud.automl.v1beta1.TimeSegment buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TimeSegment)other); } else { super.mergeFrom(other); return this; @@ -592,49 +543,36 @@ public Builder mergeFrom( 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_; + 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; - * * @return Whether the startTimeOffset field is set. */ 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; - * * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { if (startTimeOffsetBuilder_ == null) { - return startTimeOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : startTimeOffset_; + 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.
@@ -656,8 +594,6 @@ public Builder setStartTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -665,7 +601,8 @@ public Builder setStartTimeOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time_offset = 1;
      */
-    public Builder setStartTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTimeOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeOffsetBuilder_ == null) {
         startTimeOffset_ = builderForValue.build();
         onChanged();
@@ -676,8 +613,6 @@ public Builder setStartTimeOffset(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -689,9 +624,7 @@ public Builder mergeStartTimeOffset(com.google.protobuf.Duration value) {
       if (startTimeOffsetBuilder_ == null) {
         if (startTimeOffset_ != null) {
           startTimeOffset_ =
-              com.google.protobuf.Duration.newBuilder(startTimeOffset_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(startTimeOffset_).mergeFrom(value).buildPartial();
         } else {
           startTimeOffset_ = value;
         }
@@ -703,8 +636,6 @@ public Builder mergeStartTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -724,8 +655,6 @@ public Builder clearStartTimeOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -734,13 +663,11 @@ public Builder clearStartTimeOffset() {
      * .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.
@@ -752,14 +679,11 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() {
       if (startTimeOffsetBuilder_ != null) {
         return startTimeOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return startTimeOffset_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : startTimeOffset_;
+        return startTimeOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : startTimeOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -768,17 +692,14 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() {
      * .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>
+        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());
+        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_;
@@ -786,49 +707,36 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() {
 
     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_;
+        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; - * * @return Whether the endTimeOffset field is set. */ 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; - * * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { if (endTimeOffsetBuilder_ == null) { - return endTimeOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : endTimeOffset_; + 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.
@@ -850,8 +758,6 @@ public Builder setEndTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -859,7 +765,8 @@ public Builder setEndTimeOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time_offset = 2;
      */
-    public Builder setEndTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTimeOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeOffsetBuilder_ == null) {
         endTimeOffset_ = builderForValue.build();
         onChanged();
@@ -870,8 +777,6 @@ public Builder setEndTimeOffset(com.google.protobuf.Duration.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -883,9 +788,7 @@ public Builder mergeEndTimeOffset(com.google.protobuf.Duration value) {
       if (endTimeOffsetBuilder_ == null) {
         if (endTimeOffset_ != null) {
           endTimeOffset_ =
-              com.google.protobuf.Duration.newBuilder(endTimeOffset_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(endTimeOffset_).mergeFrom(value).buildPartial();
         } else {
           endTimeOffset_ = value;
         }
@@ -897,8 +800,6 @@ public Builder mergeEndTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -918,8 +819,6 @@ public Builder clearEndTimeOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -928,13 +827,11 @@ public Builder clearEndTimeOffset() {
      * .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.
@@ -946,14 +843,11 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() {
       if (endTimeOffsetBuilder_ != null) {
         return endTimeOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return endTimeOffset_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : endTimeOffset_;
+        return endTimeOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : endTimeOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -962,24 +856,21 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() {
      * .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>
+        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());
+        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) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -989,12 +880,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -1003,16 +894,16 @@ 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);
-        }
-      };
+  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;
@@ -1027,4 +918,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.TimeSegment getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java
similarity index 73%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java
index b174a798a..763ce8ffe 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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
+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; - * * @return Whether the startTimeOffset field is set. */ boolean hasStartTimeOffset(); /** - * - * *
    * Start of the time segment (inclusive), represented as the duration since
    * the example start.
    * 
* * .google.protobuf.Duration start_time_offset = 1; - * * @return The startTimeOffset. */ com.google.protobuf.Duration getStartTimeOffset(); /** - * - * *
    * Start of the time segment (inclusive), represented as the duration since
    * the example start.
@@ -62,34 +38,26 @@ public interface TimeSegmentOrBuilder
   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; - * * @return Whether the endTimeOffset field is set. */ boolean hasEndTimeOffset(); /** - * - * *
    * End of the time segment (exclusive), represented as the duration since the
    * example start.
    * 
* * .google.protobuf.Duration end_time_offset = 2; - * * @return The endTimeOffset. */ com.google.protobuf.Duration getEndTimeOffset(); /** - * - * *
    * End of the time segment (exclusive), represented as the duration since the
    * example start.
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java
similarity index 63%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java
index a1c9d991f..593b2114b 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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 +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; +private static final long serialVersionUID = 0L; // Use TimestampStats.newBuilder() to construct. private TimestampStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TimestampStats() {} + private TimestampStats() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TimestampStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TimestampStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,79 +53,68 @@ private TimestampStats( 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + granularStats_ = com.google.protobuf.MapField.newMapField( + GranularStatsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + 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); + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetGranularStats(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.TimestampStats.class, com.google.cloud.automl.v1beta1.TimestampStats.Builder.class); } - public interface GranularStatsOrBuilder - extends + 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).
@@ -151,8 +124,6 @@ public interface GranularStatsOrBuilder
      */
     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).
@@ -160,13 +131,15 @@ public interface GranularStatsOrBuilder
      *
      * map<int32, int64> buckets = 1;
      */
-    boolean containsBuckets(int key);
-    /** Use {@link #getBucketsMap()} instead. */
+    boolean containsBuckets(
+        int key);
+    /**
+     * Use {@link #getBucketsMap()} instead.
+     */
     @java.lang.Deprecated
-    java.util.Map getBuckets();
+    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).
@@ -174,10 +147,9 @@ public interface GranularStatsOrBuilder
      *
      * map<int32, int64> buckets = 1;
      */
-    java.util.Map getBucketsMap();
+    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).
@@ -185,10 +157,11 @@ public interface GranularStatsOrBuilder
      *
      * map<int32, int64> buckets = 1;
      */
-    long getBucketsOrDefault(int key, long defaultValue);
+
+    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).
@@ -196,40 +169,41 @@ public interface GranularStatsOrBuilder
      *
      * map<int32, int64> buckets = 1;
      */
-    long getBucketsOrThrow(int key);
+
+    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 + 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; + private static final long serialVersionUID = 0L; // Use GranularStats.newBuilder() to construct. private GranularStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GranularStats() {} + private GranularStats() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GranularStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GranularStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -249,84 +223,82 @@ private GranularStats( 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + buckets_ = com.google.protobuf.MapField.newMapField( + BucketsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetBuckets(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + 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); + static final com.google.protobuf.MapEntry< + java.lang.Integer, java.lang.Long> 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() { + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Long> buckets_; + private com.google.protobuf.MapField + internalGetBuckets() { if (buckets_ == null) { - return com.google.protobuf.MapField.emptyMapField(BucketsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + BucketsDefaultEntryHolder.defaultEntry); } return buckets_; } @@ -335,8 +307,6 @@ 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).
@@ -344,20 +314,22 @@ public int getBucketsCount() {
      *
      * map<int32, int64> buckets = 1;
      */
-    @java.lang.Override
-    public boolean containsBuckets(int key) {
 
+    @java.lang.Override
+    public boolean containsBuckets(
+        int key) {
+      
       return internalGetBuckets().getMap().containsKey(key);
     }
-    /** Use {@link #getBucketsMap()} instead. */
+    /**
+     * Use {@link #getBucketsMap()} instead.
+     */
     @java.lang.Override
     @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).
@@ -366,12 +338,11 @@ public java.util.Map getBuckets() {
      * map<int32, int64> buckets = 1;
      */
     @java.lang.Override
+
     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).
@@ -380,14 +351,16 @@ public java.util.Map getBucketsMap() {
      * map<int32, int64> buckets = 1;
      */
     @java.lang.Override
-    public long getBucketsOrDefault(int key, long defaultValue) {
 
-      java.util.Map map = internalGetBuckets().getMap();
+    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).
@@ -396,9 +369,12 @@ public long getBucketsOrDefault(int key, long defaultValue) {
      * map<int32, int64> buckets = 1;
      */
     @java.lang.Override
-    public long getBucketsOrThrow(int key) {
 
-      java.util.Map map = internalGetBuckets().getMap();
+    public long getBucketsOrThrow(
+        int key) {
+      
+      java.util.Map map =
+          internalGetBuckets().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -406,7 +382,6 @@ public long getBucketsOrThrow(int key) {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -418,9 +393,14 @@ public final boolean isInitialized() {
     }
 
     @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);
+    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);
     }
 
@@ -430,15 +410,15 @@ public int getSerializedSize() {
       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__);
+      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;
@@ -448,15 +428,15 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       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;
+      com.google.cloud.automl.v1beta1.TimestampStats.GranularStats other = (com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) obj;
 
-      if (!internalGetBuckets().equals(other.internalGetBuckets())) return false;
+      if (!internalGetBuckets().equals(
+          other.internalGetBuckets())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -478,94 +458,87 @@ public int hashCode() {
     }
 
     public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        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)
+        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 {
+    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)
+        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)
+        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)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      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)
+        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)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      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);
+        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);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    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) {
+    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);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -575,52 +548,49 @@ protected Builder newBuilderForType(
       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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetBuckets(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableBuckets(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + 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() @@ -628,15 +598,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -645,14 +616,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.getDefaultInstance(); } @@ -667,8 +637,7 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats build() { @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); + 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(); @@ -680,41 +649,38 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TimestampStats.GranularStats)other); } else { super.mergeFrom(other); return this; @@ -722,10 +688,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } 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()); + if (other == com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.getDefaultInstance()) return this; + internalGetMutableBuckets().mergeFrom( + other.internalGetBuckets()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -745,9 +710,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -756,25 +719,24 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.MapField buckets_; - - private com.google.protobuf.MapField internalGetBuckets() { + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Long> buckets_; + private com.google.protobuf.MapField + internalGetBuckets() { if (buckets_ == null) { - return com.google.protobuf.MapField.emptyMapField(BucketsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + BucketsDefaultEntryHolder.defaultEntry); } return buckets_; } - private com.google.protobuf.MapField - internalGetMutableBuckets() { - onChanged(); - ; + internalGetMutableBuckets() { + onChanged();; if (buckets_ == null) { - buckets_ = - com.google.protobuf.MapField.newMapField(BucketsDefaultEntryHolder.defaultEntry); + buckets_ = com.google.protobuf.MapField.newMapField( + BucketsDefaultEntryHolder.defaultEntry); } if (!buckets_.isMutable()) { buckets_ = buckets_.copy(); @@ -786,8 +748,6 @@ 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).
@@ -795,20 +755,22 @@ public int getBucketsCount() {
        *
        * map<int32, int64> buckets = 1;
        */
-      @java.lang.Override
-      public boolean containsBuckets(int key) {
 
+      @java.lang.Override
+      public boolean containsBuckets(
+          int key) {
+        
         return internalGetBuckets().getMap().containsKey(key);
       }
-      /** Use {@link #getBucketsMap()} instead. */
+      /**
+       * Use {@link #getBucketsMap()} instead.
+       */
       @java.lang.Override
       @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).
@@ -817,12 +779,11 @@ public java.util.Map getBuckets() {
        * map<int32, int64> buckets = 1;
        */
       @java.lang.Override
+
       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).
@@ -831,14 +792,16 @@ public java.util.Map getBucketsMap() {
        * map<int32, int64> buckets = 1;
        */
       @java.lang.Override
-      public long getBucketsOrDefault(int key, long defaultValue) {
 
-        java.util.Map map = internalGetBuckets().getMap();
+      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).
@@ -847,9 +810,12 @@ public long getBucketsOrDefault(int key, long defaultValue) {
        * map<int32, int64> buckets = 1;
        */
       @java.lang.Override
-      public long getBucketsOrThrow(int key) {
 
-        java.util.Map map = internalGetBuckets().getMap();
+      public long getBucketsOrThrow(
+          int key) {
+        
+        java.util.Map map =
+            internalGetBuckets().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
@@ -857,12 +823,11 @@ public long getBucketsOrThrow(int key) {
       }
 
       public Builder clearBuckets() {
-        internalGetMutableBuckets().getMutableMap().clear();
+        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).
@@ -870,19 +835,23 @@ public Builder clearBuckets() {
        *
        * map<int32, int64> buckets = 1;
        */
-      public Builder removeBuckets(int key) {
 
-        internalGetMutableBuckets().getMutableMap().remove(key);
+      public Builder removeBuckets(
+          int key) {
+        
+        internalGetMutableBuckets().getMutableMap()
+            .remove(key);
         return this;
       }
-      /** Use alternate mutation accessors instead. */
+      /**
+       * Use alternate mutation accessors instead.
+       */
       @java.lang.Deprecated
-      public java.util.Map getMutableBuckets() {
+      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).
@@ -890,14 +859,16 @@ public java.util.Map getMutableBuckets() {
        *
        * map<int32, int64> buckets = 1;
        */
-      public Builder putBuckets(int key, long value) {
-
-        internalGetMutableBuckets().getMutableMap().put(key, value);
+      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).
@@ -905,11 +876,13 @@ public Builder putBuckets(int key, long value) {
        *
        * map<int32, int64> buckets = 1;
        */
-      public Builder putAllBuckets(java.util.Map values) {
-        internalGetMutableBuckets().getMutableMap().putAll(values);
+
+      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) {
@@ -922,32 +895,30 @@ public final Builder mergeUnknownFields(
         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;
-
+    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() {
+    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);
-          }
-        };
+    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;
@@ -959,37 +930,28 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats
-        getDefaultInstanceForType() {
+    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 =
+        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());
+            .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() {
+      java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> granularStats_;
+  private com.google.protobuf.MapField
+  internalGetGranularStats() {
     if (granularStats_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           GranularStatsDefaultEntryHolder.defaultEntry);
@@ -1001,8 +963,6 @@ 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.
@@ -1011,28 +971,24 @@ public int getGranularStatsCount() {
    * is not populated).
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; */ + @java.lang.Override - public boolean containsGranularStats(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsGranularStats( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetGranularStats().getMap().containsKey(key); } - /** Use {@link #getGranularStatsMap()} instead. */ + /** + * Use {@link #getGranularStatsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> - getGranularStats() { + public java.util.Map getGranularStats() { return getGranularStatsMap(); } /** - * - * *
    * The string key is the pre-defined granularity. Currently supported:
    * hour_of_day, day_of_week, month_of_year.
@@ -1041,19 +997,14 @@ public boolean containsGranularStats(java.lang.String key) {
    * is not populated).
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> - getGranularStatsMap() { + + public java.util.Map getGranularStatsMap() { return internalGetGranularStats().getMap(); } /** - * - * *
    * The string key is the pre-defined granularity. Currently supported:
    * hour_of_day, day_of_week, month_of_year.
@@ -1062,24 +1013,19 @@ public boolean containsGranularStats(java.lang.String key) {
    * is not populated).
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; */ @java.lang.Override + 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(); + 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.
@@ -1088,18 +1034,15 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularS
    * is not populated).
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; */ @java.lang.Override + 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 (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGranularStats().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1107,7 +1050,6 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularS } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1119,9 +1061,14 @@ public final boolean isInitialized() { } @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); + 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); } @@ -1131,18 +1078,15 @@ public int getSerializedSize() { 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__); + for (java.util.Map.Entry entry + : internalGetGranularStats().getMap().entrySet()) { + com.google.protobuf.MapEntry + granularStats__ = GranularStatsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, granularStats__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1152,15 +1096,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.TimestampStats other = (com.google.cloud.automl.v1beta1.TimestampStats) obj; - if (!internalGetGranularStats().equals(other.internalGetGranularStats())) return false; + if (!internalGetGranularStats().equals( + other.internalGetGranularStats())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1181,147 +1125,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetGranularStats(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableGranularStats(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.TimestampStats.class, com.google.cloud.automl.v1beta1.TimestampStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TimestampStats.newBuilder() @@ -1329,15 +1266,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1346,9 +1284,9 @@ public Builder clear() { } @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; + 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 @@ -1367,8 +1305,7 @@ public com.google.cloud.automl.v1beta1.TimestampStats build() { @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); + 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(); @@ -1380,39 +1317,38 @@ public com.google.cloud.automl.v1beta1.TimestampStats buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TimestampStats)other); } else { super.mergeFrom(other); return this; @@ -1421,7 +1357,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { 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()); + internalGetMutableGranularStats().mergeFrom( + other.internalGetGranularStats()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1450,31 +1387,24 @@ public Builder mergeFrom( } 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() { + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> granularStats_; + private com.google.protobuf.MapField + 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(); - ; + private com.google.protobuf.MapField + internalGetMutableGranularStats() { + onChanged();; if (granularStats_ == null) { - granularStats_ = - com.google.protobuf.MapField.newMapField(GranularStatsDefaultEntryHolder.defaultEntry); + granularStats_ = com.google.protobuf.MapField.newMapField( + GranularStatsDefaultEntryHolder.defaultEntry); } if (!granularStats_.isMutable()) { granularStats_ = granularStats_.copy(); @@ -1486,8 +1416,6 @@ 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.
@@ -1496,28 +1424,24 @@ public int getGranularStatsCount() {
      * is not populated).
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; */ + @java.lang.Override - public boolean containsGranularStats(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsGranularStats( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetGranularStats().getMap().containsKey(key); } - /** Use {@link #getGranularStatsMap()} instead. */ + /** + * Use {@link #getGranularStatsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> - getGranularStats() { + public java.util.Map getGranularStats() { return getGranularStatsMap(); } /** - * - * *
      * The string key is the pre-defined granularity. Currently supported:
      * hour_of_day, day_of_week, month_of_year.
@@ -1526,19 +1450,14 @@ public boolean containsGranularStats(java.lang.String key) {
      * is not populated).
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> - getGranularStatsMap() { + + public java.util.Map getGranularStatsMap() { return internalGetGranularStats().getMap(); } /** - * - * *
      * The string key is the pre-defined granularity. Currently supported:
      * hour_of_day, day_of_week, month_of_year.
@@ -1547,24 +1466,19 @@ public boolean containsGranularStats(java.lang.String key) {
      * is not populated).
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; */ @java.lang.Override + 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(); + 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.
@@ -1573,18 +1487,15 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularS
      * is not populated).
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; */ @java.lang.Override + 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 (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGranularStats().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1592,12 +1503,11 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularS } public Builder clearGranularStats() { - internalGetMutableGranularStats().getMutableMap().clear(); + internalGetMutableGranularStats().getMutableMap() + .clear(); return this; } /** - * - * *
      * The string key is the pre-defined granularity. Currently supported:
      * hour_of_day, day_of_week, month_of_year.
@@ -1606,27 +1516,25 @@ public Builder clearGranularStats() {
      * is not populated).
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * 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); + + 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. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> - getMutableGranularStats() { + public java.util.Map + getMutableGranularStats() { return internalGetMutableGranularStats().getMutableMap(); } /** - * - * *
      * The string key is the pre-defined granularity. Currently supported:
      * hour_of_day, day_of_week, month_of_year.
@@ -1635,24 +1543,18 @@ public Builder removeGranularStats(java.lang.String key) {
      * is not populated).
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * 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); + 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.
@@ -1661,20 +1563,18 @@ public Builder putGranularStats(
      * is not populated).
      * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * 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); + java.util.Map values) { + internalGetMutableGranularStats().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1684,12 +1584,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1698,16 +1598,16 @@ 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); - } - }; + 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; @@ -1722,4 +1622,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TimestampStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java similarity index 62% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java index 2501d2593..c827be131 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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.
@@ -34,14 +16,10 @@ public interface TimestampStatsOrBuilder
    * is not populated).
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * 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.
@@ -50,18 +28,17 @@ public interface TimestampStatsOrBuilder
    * is not populated).
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + */ + boolean containsGranularStats( + java.lang.String key); + /** + * Use {@link #getGranularStatsMap()} instead. */ - boolean containsGranularStats(java.lang.String key); - /** Use {@link #getGranularStatsMap()} instead. */ @java.lang.Deprecated java.util.Map - getGranularStats(); + getGranularStats(); /** - * - * *
    * The string key is the pre-defined granularity. Currently supported:
    * hour_of_day, day_of_week, month_of_year.
@@ -70,15 +47,11 @@ public interface TimestampStatsOrBuilder
    * is not populated).
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; */ java.util.Map - getGranularStatsMap(); + getGranularStatsMap(); /** - * - * *
    * The string key is the pre-defined granularity. Currently supported:
    * hour_of_day, day_of_week, month_of_year.
@@ -87,16 +60,13 @@ public interface TimestampStatsOrBuilder
    * is not populated).
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * 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.
@@ -105,10 +75,9 @@ com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularStatsOrD
    * is not populated).
    * 
* - * - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - * + * 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java similarity index 67% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java index 9d629433d..ea07fc1d4 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Annotation details specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationAnnotation} */ -public final class TranslationAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslationAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TranslationAnnotation) TranslationAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslationAnnotation.newBuilder() to construct. private TranslationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TranslationAnnotation() {} + private TranslationAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,67 +52,59 @@ private TranslationAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; - if (translatedContent_ != null) { - subBuilder = translatedContent_.toBuilder(); - } - translatedContent_ = - input.readMessage( - com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(translatedContent_); - translatedContent_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; + if (translatedContent_ != null) { + subBuilder = translatedContent_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + translatedContent_ = input.readMessage(com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(translatedContent_); + translatedContent_ = 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); + 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.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationAnnotation.class, - com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder.class); + com.google.cloud.automl.v1beta1.TranslationAnnotation.class, com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder.class); } public static final int TRANSLATED_CONTENT_FIELD_NUMBER = 1; private com.google.cloud.automl.v1beta1.TextSnippet translatedContent_; /** - * - * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; - * * @return Whether the translatedContent field is set. */ @java.lang.Override @@ -136,25 +112,18 @@ public boolean hasTranslatedContent() { return translatedContent_ != null; } /** - * - * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; - * * @return The translatedContent. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet getTranslatedContent() { - return translatedContent_ == null - ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() - : translatedContent_; + return translatedContent_ == null ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : translatedContent_; } /** - * - * *
    * Output only . The translated content.
    * 
@@ -167,7 +136,6 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTranslatedContent } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +147,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (translatedContent_ != null) { output.writeMessage(1, getTranslatedContent()); } @@ -193,7 +162,8 @@ public int getSerializedSize() { size = 0; if (translatedContent_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTranslatedContent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTranslatedContent()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -203,17 +173,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TranslationAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TranslationAnnotation other = - (com.google.cloud.automl.v1beta1.TranslationAnnotation) obj; + com.google.cloud.automl.v1beta1.TranslationAnnotation other = (com.google.cloud.automl.v1beta1.TranslationAnnotation) obj; if (hasTranslatedContent() != other.hasTranslatedContent()) return false; if (hasTranslatedContent()) { - if (!getTranslatedContent().equals(other.getTranslatedContent())) return false; + if (!getTranslatedContent() + .equals(other.getTranslatedContent())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -236,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TranslationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationAnnotation 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.TranslationAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TranslationAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Annotation details specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TranslationAnnotation) com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationAnnotation.class, - com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder.class); + com.google.cloud.automl.v1beta1.TranslationAnnotation.class, com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TranslationAnnotation.newBuilder() @@ -364,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; } @java.lang.Override @@ -407,8 +368,7 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationAnnotation buildPartial() { - com.google.cloud.automl.v1beta1.TranslationAnnotation result = - new com.google.cloud.automl.v1beta1.TranslationAnnotation(this); + com.google.cloud.automl.v1beta1.TranslationAnnotation result = new com.google.cloud.automl.v1beta1.TranslationAnnotation(this); if (translatedContentBuilder_ == null) { result.translatedContent_ = translatedContent_; } else { @@ -422,39 +382,38 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TranslationAnnotation) { - return mergeFrom((com.google.cloud.automl.v1beta1.TranslationAnnotation) other); + return mergeFrom((com.google.cloud.automl.v1beta1.TranslationAnnotation)other); } else { super.mergeFrom(other); return this; @@ -462,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationAnnotation other) { - if (other == com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance()) return this; if (other.hasTranslatedContent()) { mergeTranslatedContent(other.getTranslatedContent()); } @@ -486,8 +444,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TranslationAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TranslationAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -499,47 +456,34 @@ public Builder mergeFrom( private com.google.cloud.automl.v1beta1.TextSnippet translatedContent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, - com.google.cloud.automl.v1beta1.TextSnippet.Builder, - com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> - translatedContentBuilder_; + com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> translatedContentBuilder_; /** - * - * *
      * Output only . The translated content.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; - * * @return Whether the translatedContent field is set. */ public boolean hasTranslatedContent() { return translatedContentBuilder_ != null || translatedContent_ != null; } /** - * - * *
      * Output only . The translated content.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; - * * @return The translatedContent. */ public com.google.cloud.automl.v1beta1.TextSnippet getTranslatedContent() { if (translatedContentBuilder_ == null) { - return translatedContent_ == null - ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() - : translatedContent_; + return translatedContent_ == null ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : translatedContent_; } else { return translatedContentBuilder_.getMessage(); } } /** - * - * *
      * Output only . The translated content.
      * 
@@ -560,8 +504,6 @@ public Builder setTranslatedContent(com.google.cloud.automl.v1beta1.TextSnippet return this; } /** - * - * *
      * Output only . The translated content.
      * 
@@ -580,8 +522,6 @@ public Builder setTranslatedContent( return this; } /** - * - * *
      * Output only . The translated content.
      * 
@@ -592,9 +532,7 @@ public Builder mergeTranslatedContent(com.google.cloud.automl.v1beta1.TextSnippe if (translatedContentBuilder_ == null) { if (translatedContent_ != null) { translatedContent_ = - com.google.cloud.automl.v1beta1.TextSnippet.newBuilder(translatedContent_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.automl.v1beta1.TextSnippet.newBuilder(translatedContent_).mergeFrom(value).buildPartial(); } else { translatedContent_ = value; } @@ -606,8 +544,6 @@ public Builder mergeTranslatedContent(com.google.cloud.automl.v1beta1.TextSnippe return this; } /** - * - * *
      * Output only . The translated content.
      * 
@@ -626,8 +562,6 @@ public Builder clearTranslatedContent() { return this; } /** - * - * *
      * Output only . The translated content.
      * 
@@ -635,13 +569,11 @@ public Builder clearTranslatedContent() { * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; */ public com.google.cloud.automl.v1beta1.TextSnippet.Builder getTranslatedContentBuilder() { - + onChanged(); return getTranslatedContentFieldBuilder().getBuilder(); } /** - * - * *
      * Output only . The translated content.
      * 
@@ -652,14 +584,11 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTranslatedContent if (translatedContentBuilder_ != null) { return translatedContentBuilder_.getMessageOrBuilder(); } else { - return translatedContent_ == null - ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() - : translatedContent_; + return translatedContent_ == null ? + com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : translatedContent_; } } /** - * - * *
      * Output only . The translated content.
      * 
@@ -667,24 +596,21 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTranslatedContent * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, - com.google.cloud.automl.v1beta1.TextSnippet.Builder, - com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> + com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> getTranslatedContentFieldBuilder() { if (translatedContentBuilder_ == null) { - translatedContentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, - com.google.cloud.automl.v1beta1.TextSnippet.Builder, - com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( - getTranslatedContent(), getParentForChildren(), isClean()); + translatedContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( + getTranslatedContent(), + getParentForChildren(), + isClean()); translatedContent_ = null; } return translatedContentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -694,12 +620,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TranslationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TranslationAnnotation) private static final com.google.cloud.automl.v1beta1.TranslationAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TranslationAnnotation(); } @@ -708,16 +634,16 @@ public static com.google.cloud.automl.v1beta1.TranslationAnnotation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,4 +658,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TranslationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java similarity index 61% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java index e983c0245..5d5b88721 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; -public interface TranslationAnnotationOrBuilder - extends +public interface TranslationAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TranslationAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; - * * @return Whether the translatedContent field is set. */ boolean hasTranslatedContent(); /** - * - * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; - * * @return The translatedContent. */ com.google.cloud.automl.v1beta1.TextSnippet getTranslatedContent(); /** - * - * *
    * Output only . The translated content.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java similarity index 70% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java index 154c53136..74478b278 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Dataset metadata that is specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationDatasetMetadata} */ -public final class TranslationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslationDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TranslationDatasetMetadata) TranslationDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslationDatasetMetadata.newBuilder() to construct. private TranslationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslationDatasetMetadata() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -44,15 +26,16 @@ private TranslationDatasetMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,65 +54,58 @@ private TranslationDatasetMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetLanguageCode_ = 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); + 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.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.class, - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.class, com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -138,29 +114,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -171,14 +147,11 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object targetLanguageCode_; /** - * - * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -187,29 +160,29 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -218,7 +191,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -260,16 +233,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TranslationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata other = - (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) obj; + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata other = (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) obj; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,127 +265,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TranslationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata 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.TranslationDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Dataset metadata that is specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TranslationDatasetMetadata) com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.class, - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.class, com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.newBuilder() @@ -419,15 +383,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +404,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; } @java.lang.Override @@ -460,8 +425,7 @@ public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata result = - new com.google.cloud.automl.v1beta1.TranslationDatasetMetadata(this); + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata result = new com.google.cloud.automl.v1beta1.TranslationDatasetMetadata(this); result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; onBuilt(); @@ -472,39 +436,38 @@ public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TranslationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) other); + return mergeFrom((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -512,8 +475,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance()) return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; onChanged(); @@ -541,8 +503,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,20 +515,18 @@ public Builder mergeFrom( private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -576,21 +535,20 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -598,61 +556,54 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -660,20 +611,18 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -682,21 +631,20 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -704,68 +652,61 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { + public Builder setTargetLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -775,12 +716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TranslationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TranslationDatasetMetadata) private static final com.google.cloud.automl.v1beta1.TranslationDatasetMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TranslationDatasetMetadata(); } @@ -789,16 +730,16 @@ public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,4 +754,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java similarity index 61% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java index edbdb4c32..c9b22461f 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; -public interface TranslationDatasetMetadataOrBuilder - extends +public interface TranslationDatasetMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TranslationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java similarity index 66% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java index 2eff5811c..4573511a9 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Evaluation metrics for the dataset.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationEvaluationMetrics} */ -public final class TranslationEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslationEvaluationMetrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) TranslationEvaluationMetricsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslationEvaluationMetrics.newBuilder() to construct. private TranslationEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TranslationEvaluationMetrics() {} + private TranslationEvaluationMetrics() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslationEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslationEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,61 +52,56 @@ private TranslationEvaluationMetrics( case 0: done = true; break; - case 9: - { - bleuScore_ = input.readDouble(); - break; - } - case 17: - { - baseBleuScore_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 9: { + + bleuScore_ = input.readDouble(); + break; + } + case 17: { + + baseBleuScore_ = 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); + 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.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.class, - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.class, com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder.class); } public static final int BLEU_SCORE_FIELD_NUMBER = 1; private double bleuScore_; /** - * - * *
    * Output only. BLEU score.
    * 
* * double bleu_score = 1; - * * @return The bleuScore. */ @java.lang.Override @@ -133,14 +112,11 @@ public double getBleuScore() { public static final int BASE_BLEU_SCORE_FIELD_NUMBER = 2; private double baseBleuScore_; /** - * - * *
    * Output only. BLEU score for base model.
    * 
* * double base_bleu_score = 2; - * * @return The baseBleuScore. */ @java.lang.Override @@ -149,7 +125,6 @@ public double getBaseBleuScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,7 +136,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (bleuScore_ != 0D) { output.writeDouble(1, bleuScore_); } @@ -178,10 +154,12 @@ public int getSerializedSize() { size = 0; if (bleuScore_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, bleuScore_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, bleuScore_); } if (baseBleuScore_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, baseBleuScore_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, baseBleuScore_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -191,18 +169,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics other = - (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) obj; + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics other = (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) obj; if (java.lang.Double.doubleToLongBits(getBleuScore()) - != java.lang.Double.doubleToLongBits(other.getBleuScore())) return false; + != java.lang.Double.doubleToLongBits( + other.getBleuScore())) return false; if (java.lang.Double.doubleToLongBits(getBaseBleuScore()) - != java.lang.Double.doubleToLongBits(other.getBaseBleuScore())) return false; + != java.lang.Double.doubleToLongBits( + other.getBaseBleuScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -215,142 +194,128 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLEU_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBleuScore())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBleuScore())); hash = (37 * hash) + BASE_BLEU_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBaseBleuScore())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBaseBleuScore())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TranslationEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics 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.TranslationEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Evaluation metrics for the dataset.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationEvaluationMetrics} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.class, - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.class, com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.newBuilder() @@ -358,15 +323,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,14 +344,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); } @@ -400,8 +365,7 @@ public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics buildPartial() { - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics result = - new com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics(this); + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics result = new com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics(this); result.bleuScore_ = bleuScore_; result.baseBleuScore_ = baseBleuScore_; onBuilt(); @@ -412,39 +376,38 @@ public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TranslationEvaluationMetrics) { - return mergeFrom((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) other); + return mergeFrom((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics)other); } else { super.mergeFrom(other); return this; @@ -452,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics other) { - if (other - == com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance()) return this; if (other.getBleuScore() != 0D) { setBleuScore(other.getBleuScore()); } @@ -480,8 +441,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,16 +451,13 @@ public Builder mergeFrom( return this; } - private double bleuScore_; + private double bleuScore_ ; /** - * - * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; - * * @return The bleuScore. */ @java.lang.Override @@ -508,51 +465,42 @@ public double getBleuScore() { return bleuScore_; } /** - * - * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; - * * @param value The bleuScore to set. * @return This builder for chaining. */ public Builder setBleuScore(double value) { - + bleuScore_ = value; onChanged(); return this; } /** - * - * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; - * * @return This builder for chaining. */ public Builder clearBleuScore() { - + bleuScore_ = 0D; onChanged(); return this; } - private double baseBleuScore_; + private double baseBleuScore_ ; /** - * - * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; - * * @return The baseBleuScore. */ @java.lang.Override @@ -560,43 +508,37 @@ public double getBaseBleuScore() { return baseBleuScore_; } /** - * - * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; - * * @param value The baseBleuScore to set. * @return This builder for chaining. */ public Builder setBaseBleuScore(double value) { - + baseBleuScore_ = value; onChanged(); return this; } /** - * - * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; - * * @return This builder for chaining. */ public Builder clearBaseBleuScore() { - + baseBleuScore_ = 0D; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -606,13 +548,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) - private static final com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics(); } @@ -621,16 +562,16 @@ public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationEvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationEvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationEvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,4 +586,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000..173713f7c --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/translation.proto + +package com.google.cloud.automl.v1beta1; + +public interface TranslationEvaluationMetricsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. BLEU score.
+   * 
+ * + * double bleu_score = 1; + * @return The bleuScore. + */ + double getBleuScore(); + + /** + *
+   * Output only. BLEU score for base model.
+   * 
+ * + * double base_bleu_score = 2; + * @return The baseBleuScore. + */ + double getBaseBleuScore(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java similarity index 72% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java index 72d86d2bf..1f9880d56 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; /** - * - * *
  * Model metadata that is specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationModelMetadata} */ -public final class TranslationModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslationModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TranslationModelMetadata) TranslationModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslationModelMetadata.newBuilder() to construct. private TranslationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslationModelMetadata() { baseModel_ = ""; sourceLanguageCode_ = ""; @@ -45,15 +27,16 @@ private TranslationModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,66 +55,59 @@ private TranslationModelMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - baseModel_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + baseModel_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetLanguageCode_ = 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); + 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.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationModelMetadata.class, - com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TranslationModelMetadata.class, com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder.class); } public static final int BASE_MODEL_FIELD_NUMBER = 1; private volatile java.lang.Object baseModel_; /** - * - * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -140,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string base_model = 1; - * * @return The baseModel. */ @java.lang.Override @@ -149,15 +124,14 @@ public java.lang.String getBaseModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModel_ = s; return s; } } /** - * - * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -166,15 +140,16 @@ public java.lang.String getBaseModel() {
    * 
* * string base_model = 1; - * * @return The bytes for baseModel. */ @java.lang.Override - public com.google.protobuf.ByteString getBaseModelBytes() { + public com.google.protobuf.ByteString + getBaseModelBytes() { java.lang.Object ref = baseModel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseModel_ = b; return b; } else { @@ -185,15 +160,12 @@ public com.google.protobuf.ByteString getBaseModelBytes() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Output only. Inferred from the dataset.
    * The source languge (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -202,30 +174,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Output only. Inferred from the dataset.
    * The source languge (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -236,15 +208,12 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object targetLanguageCode_; /** - * - * *
    * Output only. The target languge (The BCP-47 language code) that is used for
    * training.
    * 
* * string target_language_code = 3; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -253,30 +222,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Output only. The target languge (The BCP-47 language code) that is used for
    * training.
    * 
* * string target_language_code = 3; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -285,7 +254,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseModel_); } @@ -333,17 +302,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TranslationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TranslationModelMetadata other = - (com.google.cloud.automl.v1beta1.TranslationModelMetadata) obj; + com.google.cloud.automl.v1beta1.TranslationModelMetadata other = (com.google.cloud.automl.v1beta1.TranslationModelMetadata) obj; - if (!getBaseModel().equals(other.getBaseModel())) return false; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getBaseModel() + .equals(other.getBaseModel())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -367,127 +338,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TranslationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata 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.TranslationModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.TranslationModelMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model metadata that is specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TranslationModelMetadata) com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationModelMetadata.class, - com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TranslationModelMetadata.class, com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TranslationModelMetadata.newBuilder() @@ -495,15 +456,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -517,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TranslationProto - .internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; } @java.lang.Override @@ -538,8 +500,7 @@ public com.google.cloud.automl.v1beta1.TranslationModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationModelMetadata buildPartial() { - com.google.cloud.automl.v1beta1.TranslationModelMetadata result = - new com.google.cloud.automl.v1beta1.TranslationModelMetadata(this); + com.google.cloud.automl.v1beta1.TranslationModelMetadata result = new com.google.cloud.automl.v1beta1.TranslationModelMetadata(this); result.baseModel_ = baseModel_; result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; @@ -551,39 +512,38 @@ public com.google.cloud.automl.v1beta1.TranslationModelMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TranslationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.TranslationModelMetadata) other); + return mergeFrom((com.google.cloud.automl.v1beta1.TranslationModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -591,8 +551,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance()) return this; if (!other.getBaseModel().isEmpty()) { baseModel_ = other.baseModel_; onChanged(); @@ -624,8 +583,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.TranslationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.TranslationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -637,8 +595,6 @@ public Builder mergeFrom( private java.lang.Object baseModel_ = ""; /** - * - * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -647,13 +603,13 @@ public Builder mergeFrom(
      * 
* * string base_model = 1; - * * @return The baseModel. */ public java.lang.String getBaseModel() { java.lang.Object ref = baseModel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModel_ = s; return s; @@ -662,8 +618,6 @@ public java.lang.String getBaseModel() { } } /** - * - * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -672,14 +626,15 @@ public java.lang.String getBaseModel() {
      * 
* * string base_model = 1; - * * @return The bytes for baseModel. */ - public com.google.protobuf.ByteString getBaseModelBytes() { + public com.google.protobuf.ByteString + getBaseModelBytes() { java.lang.Object ref = baseModel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseModel_ = b; return b; } else { @@ -687,8 +642,6 @@ public com.google.protobuf.ByteString getBaseModelBytes() { } } /** - * - * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -697,22 +650,20 @@ public com.google.protobuf.ByteString getBaseModelBytes() {
      * 
* * string base_model = 1; - * * @param value The baseModel to set. * @return This builder for chaining. */ - public Builder setBaseModel(java.lang.String value) { + public Builder setBaseModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + baseModel_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -721,18 +672,15 @@ public Builder setBaseModel(java.lang.String value) {
      * 
* * string base_model = 1; - * * @return This builder for chaining. */ public Builder clearBaseModel() { - + baseModel_ = getDefaultInstance().getBaseModel(); onChanged(); return this; } /** - * - * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -741,16 +689,16 @@ public Builder clearBaseModel() {
      * 
* * string base_model = 1; - * * @param value The bytes for baseModel to set. * @return This builder for chaining. */ - public Builder setBaseModelBytes(com.google.protobuf.ByteString value) { + public Builder setBaseModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseModel_ = value; onChanged(); return this; @@ -758,21 +706,19 @@ public Builder setBaseModelBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Output only. Inferred from the dataset.
      * The source languge (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -781,22 +727,21 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Output only. Inferred from the dataset.
      * The source languge (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -804,64 +749,57 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Output only. Inferred from the dataset.
      * The source languge (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Inferred from the dataset.
      * The source languge (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. Inferred from the dataset.
      * The source languge (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -869,21 +807,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Output only. The target languge (The BCP-47 language code) that is used for
      * training.
      * 
* * string target_language_code = 3; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -892,22 +828,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Output only. The target languge (The BCP-47 language code) that is used for
      * training.
      * 
* * string target_language_code = 3; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -915,71 +850,64 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Output only. The target languge (The BCP-47 language code) that is used for
      * training.
      * 
* * string target_language_code = 3; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { + public Builder setTargetLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The target languge (The BCP-47 language code) that is used for
      * training.
      * 
* * string target_language_code = 3; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. The target languge (The BCP-47 language code) that is used for
      * training.
      * 
* * string target_language_code = 3; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,12 +917,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TranslationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TranslationModelMetadata) private static final com.google.cloud.automl.v1beta1.TranslationModelMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TranslationModelMetadata(); } @@ -1003,16 +931,16 @@ public static com.google.cloud.automl.v1beta1.TranslationModelMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,4 +955,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TranslationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java similarity index 69% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java index 177d6ac4c..594e93bf8 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; -public interface TranslationModelMetadataOrBuilder - extends +public interface TranslationModelMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TranslationModelMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -34,13 +16,10 @@ public interface TranslationModelMetadataOrBuilder
    * 
* * string base_model = 1; - * * @return The baseModel. */ java.lang.String getBaseModel(); /** - * - * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -49,62 +28,52 @@ public interface TranslationModelMetadataOrBuilder
    * 
* * string base_model = 1; - * * @return The bytes for baseModel. */ - com.google.protobuf.ByteString getBaseModelBytes(); + com.google.protobuf.ByteString + getBaseModelBytes(); /** - * - * *
    * Output only. Inferred from the dataset.
    * The source languge (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Output only. Inferred from the dataset.
    * The source languge (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Output only. The target languge (The BCP-47 language code) that is used for
    * training.
    * 
* * string target_language_code = 3; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Output only. The target languge (The BCP-47 language code) that is used for
    * training.
    * 
* * string target_language_code = 3; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java new file mode 100644 index 000000000..50b78ba98 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java @@ -0,0 +1,108 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/translation.proto + +package com.google.cloud.automl.v1beta1; + +public final class TranslationProto { + private TranslationProto() {} + 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_TranslationDatasetMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_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/translatio" + + "n.proto\022\033google.cloud.automl.v1beta1\032\037go" + + "ogle/api/field_behavior.proto\032,google/cl" + + "oud/automl/v1beta1/data_items.proto\032\034goo" + + "gle/api/annotations.proto\"b\n\032Translation" + + "DatasetMetadata\022!\n\024source_language_code\030" + + "\001 \001(\tB\003\340A\002\022!\n\024target_language_code\030\002 \001(\t" + + "B\003\340A\002\"K\n\034TranslationEvaluationMetrics\022\022\n" + + "\nbleu_score\030\001 \001(\001\022\027\n\017base_bleu_score\030\002 \001" + + "(\001\"j\n\030TranslationModelMetadata\022\022\n\nbase_m" + + "odel\030\001 \001(\t\022\034\n\024source_language_code\030\002 \001(\t" + + "\022\034\n\024target_language_code\030\003 \001(\t\"]\n\025Transl" + + "ationAnnotation\022D\n\022translated_content\030\001 " + + "\001(\0132(.google.cloud.automl.v1beta1.TextSn" + + "ippetB\267\001\n\037com.google.cloud.automl.v1beta" + + "1B\020TranslationProtoP\001ZAgoogle.golang.org" + + "/genproto/googleapis/cloud/automl/v1beta" + + "1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002" + + "\036Google::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.automl.v1beta1.DataItems.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor, + new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); + internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor, + new java.lang.String[] { "BleuScore", "BaseBleuScore", }); + internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor, + new java.lang.String[] { "BaseModel", "SourceLanguageCode", "TargetLanguageCode", }); + internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor, + new java.lang.String[] { "TranslatedContent", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.automl.v1beta1.DataItems.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java similarity index 77% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java index 4eb423867..95a63a5e5 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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].
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.automl.v1beta1.TypeCode}
  */
-public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
+public enum TypeCode
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Not specified. Should not be used.
    * 
@@ -40,8 +22,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_CODE_UNSPECIFIED(0), /** - * - * *
    * Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
    * `"-Infinity"`.
@@ -51,8 +31,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
    */
   FLOAT64(3),
   /**
-   *
-   *
    * 
    * Must be between 0AD and 9999AD. Encoded as `string` according to
    * [time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if
@@ -64,8 +42,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
    */
   TIMESTAMP(4),
   /**
-   *
-   *
    * 
    * Encoded as `string`.
    * 
@@ -74,8 +50,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum { */ STRING(6), /** - * - * *
    * Encoded as `list`, where the list elements are represented according to
    * [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].
@@ -85,8 +59,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
    */
   ARRAY(8),
   /**
-   *
-   *
    * 
    * Encoded as `struct`, where field values are represented according to
    * [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
@@ -96,8 +68,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
    */
   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
@@ -114,8 +84,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Not specified. Should not be used.
    * 
@@ -124,8 +92,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
    * `"-Infinity"`.
@@ -135,8 +101,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
    */
   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
@@ -148,8 +112,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int TIMESTAMP_VALUE = 4;
   /**
-   *
-   *
    * 
    * Encoded as `string`.
    * 
@@ -158,8 +120,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum { */ 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].
@@ -169,8 +129,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
    */
   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].
@@ -180,8 +138,6 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
    */
   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
@@ -195,6 +151,7 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int CATEGORY_VALUE = 10;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -219,57 +176,53 @@ public static TypeCode valueOf(int 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;
+      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() {
+  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() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      TypeCode> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public TypeCode findValueByNumber(int number) {
+            return TypeCode.forNumber(number);
+          }
+        };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor 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) {
+  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.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -285,3 +238,4 @@ private TypeCode(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.automl.v1beta1.TypeCode)
 }
+
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java
similarity index 62%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java
index 8996eab89..4e87fe477 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java
@@ -1,56 +1,39 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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 +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; +private static final long serialVersionUID = 0L; // Use UndeployModelOperationMetadata.newBuilder() to construct. - private UndeployModelOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UndeployModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UndeployModelOperationMetadata() {} + private UndeployModelOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UndeployModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UndeployModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,42 +52,39 @@ private UndeployModelOperationMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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; @@ -116,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -134,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata other = (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -159,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.class, com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.newBuilder() @@ -287,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -303,14 +274,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); } @@ -325,8 +295,7 @@ public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata result = new com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata(this); onBuilt(); return result; } @@ -335,39 +304,38 @@ public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -375,9 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -397,9 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -408,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -420,32 +384,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -457,8 +419,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..e3bd8a83d --- /dev/null +++ b/owl-bot-staging/v1beta1/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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java similarity index 64% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java index 4a6860a73..301018e14 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.UndeployModelRequest} */ -public final class UndeployModelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UndeployModelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.UndeployModelRequest) UndeployModelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UndeployModelRequest.newBuilder() to construct. private UndeployModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UndeployModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UndeployModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UndeployModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private UndeployModelRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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_UndeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.UndeployModelRequest.class, - com.google.cloud.automl.v1beta1.UndeployModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.UndeployModelRequest.class, com.google.cloud.automl.v1beta1.UndeployModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the model to undeploy.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the model to undeploy.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.UndeployModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.UndeployModelRequest other = - (com.google.cloud.automl.v1beta1.UndeployModelRequest) obj; + com.google.cloud.automl.v1beta1.UndeployModelRequest other = (com.google.cloud.automl.v1beta1.UndeployModelRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UndeployModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.UndeployModelRequest 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.UndeployModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.UndeployModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.UndeployModelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.UndeployModelRequest) com.google.cloud.automl.v1beta1.UndeployModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.UndeployModelRequest.class, - com.google.cloud.automl.v1beta1.UndeployModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.UndeployModelRequest.class, com.google.cloud.automl.v1beta1.UndeployModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.UndeployModelRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto - .internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.automl.v1beta1.UndeployModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.UndeployModelRequest buildPartial() { - com.google.cloud.automl.v1beta1.UndeployModelRequest result = - new com.google.cloud.automl.v1beta1.UndeployModelRequest(this); + com.google.cloud.automl.v1beta1.UndeployModelRequest result = new com.google.cloud.automl.v1beta1.UndeployModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.automl.v1beta1.UndeployModelRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.UndeployModelRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.UndeployModelRequest) other); + return mergeFrom((com.google.cloud.automl.v1beta1.UndeployModelRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.UndeployModelRequest other) { - if (other == com.google.cloud.automl.v1beta1.UndeployModelRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.UndeployModelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.UndeployModelRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.UndeployModelRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the model to undeploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the model to undeploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the model to undeploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to undeploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the model to undeploy.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.UndeployModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.UndeployModelRequest) private static final com.google.cloud.automl.v1beta1.UndeployModelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.UndeployModelRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.automl.v1beta1.UndeployModelRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeployModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UndeployModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeployModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeployModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.UndeployModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java new file mode 100644 index 000000000..88eae7fba --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface UndeployModelRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UndeployModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the model to undeploy.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the model to undeploy.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java similarity index 65% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java index 78846e10a..c4a68d0d9 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use UpdateColumnSpecRequest.newBuilder() to construct. private UpdateColumnSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateColumnSpecRequest() {} + private UpdateColumnSpecRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateColumnSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateColumnSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,84 +52,72 @@ private UpdateColumnSpecRequest( 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 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(); } - 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; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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_; /** - * - * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the columnSpec field is set. */ @java.lang.Override @@ -153,34 +125,23 @@ public boolean hasColumnSpec() { return columnSpec_ != null; } /** - * - * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The columnSpec. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec() { - return columnSpec_ == null - ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() - : columnSpec_; + return columnSpec_ == null ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() : columnSpec_; } /** - * - * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilder() { @@ -190,14 +151,11 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -205,14 +163,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -220,8 +175,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The update mask applies to the resource.
    * 
@@ -234,7 +187,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (columnSpec_ != null) { output.writeMessage(1, getColumnSpec()); } @@ -263,10 +216,12 @@ public int getSerializedSize() { size = 0; if (columnSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColumnSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getColumnSpec()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -276,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getColumnSpec() + .equals(other.getColumnSpec())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -317,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.class, com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.newBuilder() @@ -445,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -473,9 +420,9 @@ public Builder clear() { } @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; + 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 @@ -494,8 +441,7 @@ public com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest build() { @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); + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest result = new com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest(this); if (columnSpecBuilder_ == null) { result.columnSpec_ = columnSpec_; } else { @@ -514,39 +460,38 @@ public com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest)other); } else { super.mergeFrom(other); return this; @@ -554,8 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest other) { - if (other == com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.getDefaultInstance()) return this; if (other.hasColumnSpec()) { mergeColumnSpec(other.getColumnSpec()); } @@ -581,8 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -594,58 +537,39 @@ public Builder mergeFrom( 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_; + com.google.cloud.automl.v1beta1.ColumnSpec, com.google.cloud.automl.v1beta1.ColumnSpec.Builder, com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> columnSpecBuilder_; /** - * - * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the columnSpec field is set. */ public boolean hasColumnSpec() { return columnSpecBuilder_ != null || columnSpec_ != null; } /** - * - * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The columnSpec. */ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec() { if (columnSpecBuilder_ == null) { - return columnSpec_ == null - ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() - : columnSpec_; + return columnSpec_ == null ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() : columnSpec_; } else { return columnSpecBuilder_.getMessage(); } } /** - * - * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec value) { if (columnSpecBuilder_ == null) { @@ -661,15 +585,11 @@ public Builder setColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec value) { return this; } /** - * - * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setColumnSpec( com.google.cloud.automl.v1beta1.ColumnSpec.Builder builderForValue) { @@ -683,23 +603,17 @@ public Builder setColumnSpec( return this; } /** - * - * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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(); + com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder(columnSpec_).mergeFrom(value).buildPartial(); } else { columnSpec_ = value; } @@ -711,15 +625,11 @@ public Builder mergeColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec value) return this; } /** - * - * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearColumnSpec() { if (columnSpecBuilder_ == null) { @@ -733,64 +643,48 @@ public Builder clearColumnSpec() { return this; } /** - * - * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder getColumnSpecBuilder() { - + onChanged(); return getColumnSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; + return columnSpec_ == null ? + com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() : columnSpec_; } } /** - * - * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ColumnSpec, - com.google.cloud.automl.v1beta1.ColumnSpec.Builder, - com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + 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()); + 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_; @@ -798,47 +692,34 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilde 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -859,15 +740,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -878,8 +758,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -890,7 +768,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -902,8 +780,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -922,8 +798,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -931,13 +805,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -948,14 +820,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -963,24 +832,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -990,12 +856,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1004,16 +870,16 @@ public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest getDefault 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); - } - }; + 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; @@ -1028,4 +894,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java index 1b174356b..ce8887f9f 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java @@ -1,96 +1,58 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +public interface UpdateColumnSpecRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UpdateColumnSpecRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the columnSpec field is set. */ boolean hasColumnSpec(); /** - * - * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The columnSpec. */ com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec(); /** - * - * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilder(); /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The update mask applies to the resource.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java similarity index 65% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java index 048237470..e17b490c8 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use UpdateDatasetRequest.newBuilder() to construct. private UpdateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateDatasetRequest() {} + private UpdateDatasetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,84 +52,72 @@ private UpdateDatasetRequest( 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 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(); } - 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; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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_; /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ @java.lang.Override @@ -153,34 +125,23 @@ public boolean hasDataset() { return dataset_ != null; } /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ @java.lang.Override public com.google.cloud.automl.v1beta1.Dataset getDataset() { - return dataset_ == null - ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() : dataset_; } /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { @@ -190,14 +151,11 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -205,14 +163,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -220,8 +175,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The update mask applies to the resource.
    * 
@@ -234,7 +187,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dataset_ != null) { output.writeMessage(1, getDataset()); } @@ -263,10 +216,12 @@ public int getSerializedSize() { size = 0; if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -276,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getDataset() + .equals(other.getDataset())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -317,126 +273,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.UpdateDatasetRequest.class, com.google.cloud.automl.v1beta1.UpdateDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.UpdateDatasetRequest.newBuilder() @@ -444,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,9 +420,9 @@ public Builder clear() { } @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; + 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 @@ -493,8 +441,7 @@ public com.google.cloud.automl.v1beta1.UpdateDatasetRequest build() { @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); + com.google.cloud.automl.v1beta1.UpdateDatasetRequest result = new com.google.cloud.automl.v1beta1.UpdateDatasetRequest(this); if (datasetBuilder_ == null) { result.dataset_ = dataset_; } else { @@ -513,39 +460,38 @@ public com.google.cloud.automl.v1beta1.UpdateDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.UpdateDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -553,8 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.UpdateDatasetRequest other) { - if (other == com.google.cloud.automl.v1beta1.UpdateDatasetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.UpdateDatasetRequest.getDefaultInstance()) return this; if (other.hasDataset()) { mergeDataset(other.getDataset()); } @@ -580,8 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.UpdateDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.UpdateDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -593,58 +537,39 @@ public Builder mergeFrom( 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_; + com.google.cloud.automl.v1beta1.Dataset, com.google.cloud.automl.v1beta1.Dataset.Builder, com.google.cloud.automl.v1beta1.DatasetOrBuilder> datasetBuilder_; /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ public boolean hasDataset() { return datasetBuilder_ != null || dataset_ != null; } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ public com.google.cloud.automl.v1beta1.Dataset getDataset() { if (datasetBuilder_ == null) { - return dataset_ == null - ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() : dataset_; } else { return datasetBuilder_.getMessage(); } } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset value) { if (datasetBuilder_ == null) { @@ -660,17 +585,14 @@ public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset value) { return this; } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { + public Builder setDataset( + com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); onChanged(); @@ -681,23 +603,17 @@ public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset.Builder builde return this; } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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(); + com.google.cloud.automl.v1beta1.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); } else { dataset_ = value; } @@ -709,15 +625,11 @@ public Builder mergeDataset(com.google.cloud.automl.v1beta1.Dataset value) { return this; } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -731,64 +643,48 @@ public Builder clearDataset() { return this; } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.Dataset.Builder getDatasetBuilder() { - + onChanged(); return getDatasetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; + return dataset_ == null ? + com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() : dataset_; } } /** - * - * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Dataset, - com.google.cloud.automl.v1beta1.Dataset.Builder, - com.google.cloud.automl.v1beta1.DatasetOrBuilder> + 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()); + 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_; @@ -796,47 +692,34 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -857,15 +740,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -876,8 +758,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -888,7 +768,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -900,8 +780,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -920,8 +798,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -929,13 +805,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -946,14 +820,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -961,24 +832,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -988,12 +856,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1002,16 +870,16 @@ public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest getDefaultIns 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); - } - }; + 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; @@ -1026,4 +894,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.UpdateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java index 9919af6b5..7f490fe6d 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java @@ -1,96 +1,58 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +public interface UpdateDatasetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UpdateDatasetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ boolean hasDataset(); /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ com.google.cloud.automl.v1beta1.Dataset getDataset(); /** - * - * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The update mask applies to the resource.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java similarity index 65% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java index 6ed58d144..4e30b0bb4 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +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; +private static final long serialVersionUID = 0L; // Use UpdateTableSpecRequest.newBuilder() to construct. private UpdateTableSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateTableSpecRequest() {} + private UpdateTableSpecRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateTableSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateTableSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,84 +52,72 @@ private UpdateTableSpecRequest( 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 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(); } - 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; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + 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; + 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 + 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); + 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_; /** - * - * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the tableSpec field is set. */ @java.lang.Override @@ -153,34 +125,23 @@ public boolean hasTableSpec() { return tableSpec_ != null; } /** - * - * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The tableSpec. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TableSpec getTableSpec() { - return tableSpec_ == null - ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() - : tableSpec_; + return tableSpec_ == null ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() : tableSpec_; } /** - * - * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder() { @@ -190,14 +151,11 @@ public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -205,14 +163,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -220,8 +175,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The update mask applies to the resource.
    * 
@@ -234,7 +187,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (tableSpec_ != null) { output.writeMessage(1, getTableSpec()); } @@ -263,10 +216,12 @@ public int getSerializedSize() { size = 0; if (tableSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTableSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTableSpec()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -276,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getTableSpec() + .equals(other.getTableSpec())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -317,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.UpdateTableSpecRequest prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.class, com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.newBuilder() @@ -445,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -473,9 +420,9 @@ public Builder clear() { } @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; + 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 @@ -494,8 +441,7 @@ public com.google.cloud.automl.v1beta1.UpdateTableSpecRequest build() { @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); + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest result = new com.google.cloud.automl.v1beta1.UpdateTableSpecRequest(this); if (tableSpecBuilder_ == null) { result.tableSpec_ = tableSpec_; } else { @@ -514,39 +460,38 @@ public com.google.cloud.automl.v1beta1.UpdateTableSpecRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.UpdateTableSpecRequest)other); } else { super.mergeFrom(other); return this; @@ -554,8 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest other) { - if (other == com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.getDefaultInstance()) return this; if (other.hasTableSpec()) { mergeTableSpec(other.getTableSpec()); } @@ -581,8 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -594,58 +537,39 @@ public Builder mergeFrom( 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_; + com.google.cloud.automl.v1beta1.TableSpec, com.google.cloud.automl.v1beta1.TableSpec.Builder, com.google.cloud.automl.v1beta1.TableSpecOrBuilder> tableSpecBuilder_; /** - * - * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the tableSpec field is set. */ public boolean hasTableSpec() { return tableSpecBuilder_ != null || tableSpec_ != null; } /** - * - * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The tableSpec. */ public com.google.cloud.automl.v1beta1.TableSpec getTableSpec() { if (tableSpecBuilder_ == null) { - return tableSpec_ == null - ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() - : tableSpec_; + return tableSpec_ == null ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() : tableSpec_; } else { return tableSpecBuilder_.getMessage(); } } /** - * - * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTableSpec(com.google.cloud.automl.v1beta1.TableSpec value) { if (tableSpecBuilder_ == null) { @@ -661,17 +585,14 @@ public Builder setTableSpec(com.google.cloud.automl.v1beta1.TableSpec value) { return this; } /** - * - * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTableSpec(com.google.cloud.automl.v1beta1.TableSpec.Builder builderForValue) { + public Builder setTableSpec( + com.google.cloud.automl.v1beta1.TableSpec.Builder builderForValue) { if (tableSpecBuilder_ == null) { tableSpec_ = builderForValue.build(); onChanged(); @@ -682,23 +603,17 @@ public Builder setTableSpec(com.google.cloud.automl.v1beta1.TableSpec.Builder bu return this; } /** - * - * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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(); + com.google.cloud.automl.v1beta1.TableSpec.newBuilder(tableSpec_).mergeFrom(value).buildPartial(); } else { tableSpec_ = value; } @@ -710,15 +625,11 @@ public Builder mergeTableSpec(com.google.cloud.automl.v1beta1.TableSpec value) { return this; } /** - * - * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTableSpec() { if (tableSpecBuilder_ == null) { @@ -732,64 +643,48 @@ public Builder clearTableSpec() { return this; } /** - * - * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.automl.v1beta1.TableSpec.Builder getTableSpecBuilder() { - + onChanged(); return getTableSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; + return tableSpec_ == null ? + com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() : tableSpec_; } } /** - * - * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TableSpec, - com.google.cloud.automl.v1beta1.TableSpec.Builder, - com.google.cloud.automl.v1beta1.TableSpecOrBuilder> + 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()); + 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_; @@ -797,47 +692,34 @@ public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder( 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -858,15 +740,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -877,8 +758,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -889,7 +768,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -901,8 +780,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -921,8 +798,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -930,13 +805,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -947,14 +820,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The update mask applies to the resource.
      * 
@@ -962,24 +832,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,12 +856,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1003,16 +870,16 @@ public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest getDefaultI 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); - } - }; + 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; @@ -1027,4 +894,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.UpdateTableSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java index bd28582e1..313ffb666 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java @@ -1,96 +1,58 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 +public interface UpdateTableSpecRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UpdateTableSpecRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the tableSpec field is set. */ boolean hasTableSpec(); /** - * - * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The tableSpec. */ com.google.cloud.automl.v1beta1.TableSpec getTableSpec(); /** - * - * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder(); /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The update mask applies to the resource.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java similarity index 60% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java index c238cd3c4..1f7d9930c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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.
@@ -28,30 +11,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata}
  */
-public final class VideoClassificationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+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;
+private static final long serialVersionUID = 0L;
   // Use VideoClassificationDatasetMetadata.newBuilder() to construct.
-  private VideoClassificationDatasetMetadata(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private VideoClassificationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private VideoClassificationDatasetMetadata() {}
+  private VideoClassificationDatasetMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VideoClassificationDatasetMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private VideoClassificationDatasetMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,42 +53,39 @@ private VideoClassificationDatasetMetadata(
           case 0:
             done = true;
             break;
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                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);
+      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;
+  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
+    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);
+            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;
@@ -117,7 +97,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     unknownFields.writeTo(output);
   }
 
@@ -135,13 +116,12 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     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;
+    com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata other = (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) obj;
 
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -160,105 +140,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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 {
+  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)
+      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)
+      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)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    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)
+      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 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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata prototype) {
+  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);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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.
@@ -266,40 +237,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.class, com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.newBuilder()
+    // Construct using com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -307,16 +276,14 @@ public Builder clear() {
     }
 
     @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;
+    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();
+    public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata getDefaultInstanceForType() {
+      return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -330,8 +297,7 @@ public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata build(
 
     @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);
+      com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata result = new com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata(this);
       onBuilt();
       return result;
     }
@@ -340,51 +306,46 @@ public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata buildP
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        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;
+    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;
@@ -404,9 +365,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -415,9 +374,9 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -427,32 +386,30 @@ public final Builder mergeUnknownFields(
       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;
-
+  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() {
+  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);
-        }
-      };
+  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;
@@ -464,8 +421,9 @@ public com.google.protobuf.Parser getParserF
   }
 
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata
-      getDefaultInstanceForType() {
+  public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java
new file mode 100644
index 000000000..35d957d66
--- /dev/null
+++ b/owl-bot-staging/v1beta1/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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java
similarity index 61%
rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java
index 07955ce65..289e6d104 100644
--- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java
@@ -1,56 +1,39 @@
-/*
- * Copyright 2020 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
- *
- *     https://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.
- */
 // 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 +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; +private static final long serialVersionUID = 0L; // Use VideoClassificationModelMetadata.newBuilder() to construct. - private VideoClassificationModelMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private VideoClassificationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private VideoClassificationModelMetadata() {} + private VideoClassificationModelMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VideoClassificationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VideoClassificationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,42 +52,39 @@ private VideoClassificationModelMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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; + 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 + 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); + 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; @@ -116,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -134,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata other = (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -159,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.class, com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.newBuilder() @@ -287,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -303,14 +274,13 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } @@ -325,8 +295,7 @@ public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata build() @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); + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata result = new com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata(this); onBuilt(); return result; } @@ -335,50 +304,46 @@ public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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; @@ -398,9 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -409,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -421,32 +384,30 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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); - } - }; + 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; @@ -458,8 +419,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java new file mode 100644 index 000000000..856a8b216 --- /dev/null +++ b/owl-bot-staging/v1beta1/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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java similarity index 74% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java index 23ca35252..897d5dc2f 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 video object tracking.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation} */ -public final class VideoObjectTrackingAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VideoObjectTrackingAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) VideoObjectTrackingAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VideoObjectTrackingAnnotation.newBuilder() to construct. private VideoObjectTrackingAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VideoObjectTrackingAnnotation() { instanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VideoObjectTrackingAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VideoObjectTrackingAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,88 +53,78 @@ private VideoObjectTrackingAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - instanceId_ = s; - break; + instanceId_ = s; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeOffset_ != null) { - subBuilder = timeOffset_.toBuilder(); - } - timeOffset_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeOffset_); - timeOffset_ = subBuilder.buildPartial(); - } - - break; + timeOffset_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); } - case 26: - { - 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; + break; + } + case 26: { + com.google.cloud.automl.v1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 37: - { - score_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.automl.v1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 37: { + + 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); + 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_VideoObjectTrackingAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Detection - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.class, - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** - * - * *
    * Optional. The instance of the object, expressed as a positive integer. Used to tell
    * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -163,7 +136,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string instance_id = 1; - * * @return The instanceId. */ @java.lang.Override @@ -172,15 +144,14 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * *
    * Optional. The instance of the object, expressed as a positive integer. Used to tell
    * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -192,15 +163,16 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 1; - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -211,15 +183,12 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int TIME_OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Duration timeOffset_; /** - * - * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
    * 
* * .google.protobuf.Duration time_offset = 2; - * * @return Whether the timeOffset field is set. */ @java.lang.Override @@ -227,15 +196,12 @@ public boolean hasTimeOffset() { return timeOffset_ != null; } /** - * - * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
    * 
* * .google.protobuf.Duration time_offset = 2; - * * @return The timeOffset. */ @java.lang.Override @@ -243,8 +209,6 @@ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; } /** - * - * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
@@ -260,15 +224,12 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
   public static final int BOUNDING_BOX_FIELD_NUMBER = 3;
   private com.google.cloud.automl.v1beta1.BoundingPoly boundingBox_;
   /**
-   *
-   *
    * 
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -276,26 +237,19 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
@@ -311,8 +265,6 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui
   public static final int SCORE_FIELD_NUMBER = 4;
   private float score_;
   /**
-   *
-   *
    * 
    * Output only. The confidence that this annotation is positive for the video at
    * the time_offset, value in [0, 1], higher means higher positivity
@@ -322,7 +274,6 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui
    * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -331,7 +282,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } @@ -369,13 +320,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_); } if (timeOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTimeOffset()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBoundingBox()); } if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,25 +339,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation other = - (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) obj; + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation other = (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) obj; - if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; if (hasTimeOffset() != other.hasTimeOffset()) return false; if (hasTimeOffset()) { - if (!getTimeOffset().equals(other.getTimeOffset())) return false; + if (!getTimeOffset() + .equals(other.getTimeOffset())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -426,134 +383,125 @@ public int hashCode() { hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.VideoObjectTrackingAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation 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.VideoObjectTrackingAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Annotation details for video object tracking.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.Detection - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Detection - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.class, - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.newBuilder() @@ -561,15 +509,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -593,14 +542,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.Detection - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } @@ -615,8 +563,7 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation buildPartial() { - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation result = - new com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation(this); + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation result = new com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation(this); result.instanceId_ = instanceId_; if (timeOffsetBuilder_ == null) { result.timeOffset_ = timeOffset_; @@ -637,39 +584,38 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.VideoObjectTrackingAnnotation) { - return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) other); + return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation)other); } else { super.mergeFrom(other); return this; @@ -677,9 +623,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation other) { - if (other - == com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); @@ -712,9 +656,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -726,8 +668,6 @@ public Builder mergeFrom( private java.lang.Object instanceId_ = ""; /** - * - * *
      * Optional. The instance of the object, expressed as a positive integer. Used to tell
      * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -739,13 +679,13 @@ public Builder mergeFrom(
      * 
* * string instance_id = 1; - * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -754,8 +694,6 @@ public java.lang.String getInstanceId() { } } /** - * - * *
      * Optional. The instance of the object, expressed as a positive integer. Used to tell
      * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -767,14 +705,15 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 1; - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -782,8 +721,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
      * Optional. The instance of the object, expressed as a positive integer. Used to tell
      * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -795,22 +732,20 @@ public com.google.protobuf.ByteString getInstanceIdBytes() {
      * 
* * string instance_id = 1; - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { + public Builder setInstanceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The instance of the object, expressed as a positive integer. Used to tell
      * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -822,18 +757,15 @@ public Builder setInstanceId(java.lang.String value) {
      * 
* * string instance_id = 1; - * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** - * - * *
      * Optional. The instance of the object, expressed as a positive integer. Used to tell
      * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -845,16 +777,16 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 1; - * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -862,49 +794,36 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration timeOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - timeOffsetBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeOffsetBuilder_; /** - * - * *
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
      * 
* * .google.protobuf.Duration time_offset = 2; - * * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; } /** - * - * *
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
      * 
* * .google.protobuf.Duration time_offset = 2; - * * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { - return timeOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : timeOffset_; + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; } else { return timeOffsetBuilder_.getMessage(); } } /** - * - * *
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -926,8 +845,6 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -935,7 +852,8 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration time_offset = 2;
      */
-    public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTimeOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (timeOffsetBuilder_ == null) {
         timeOffset_ = builderForValue.build();
         onChanged();
@@ -946,8 +864,6 @@ public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -959,7 +875,7 @@ public Builder mergeTimeOffset(com.google.protobuf.Duration value) {
       if (timeOffsetBuilder_ == null) {
         if (timeOffset_ != null) {
           timeOffset_ =
-              com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial();
         } else {
           timeOffset_ = value;
         }
@@ -971,8 +887,6 @@ public Builder mergeTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -992,8 +906,6 @@ public Builder clearTimeOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -1002,13 +914,11 @@ public Builder clearTimeOffset() {
      * .google.protobuf.Duration time_offset = 2;
      */
     public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() {
-
+      
       onChanged();
       return getTimeOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -1020,14 +930,11 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
       if (timeOffsetBuilder_ != null) {
         return timeOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return timeOffset_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : timeOffset_;
+        return timeOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : timeOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -1036,17 +943,14 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
      * .google.protobuf.Duration time_offset = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getTimeOffsetFieldBuilder() {
       if (timeOffsetBuilder_ == null) {
-        timeOffsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getTimeOffset(), getParentForChildren(), isClean());
+        timeOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getTimeOffset(),
+                getParentForChildren(),
+                isClean());
         timeOffset_ = null;
       }
       return timeOffsetBuilder_;
@@ -1054,49 +958,36 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
 
     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_;
+        com.google.cloud.automl.v1beta1.BoundingPoly, com.google.cloud.automl.v1beta1.BoundingPoly.Builder, com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder> boundingBoxBuilder_;
     /**
-     *
-     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; - * * @return The boundingBox. */ public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1118,8 +1009,6 @@ public Builder setBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly value
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1139,8 +1028,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1152,9 +1039,7 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly val
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1166,8 +1051,6 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1187,8 +1070,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1197,13 +1078,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3;
      */
     public com.google.cloud.automl.v1beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1215,14 +1094,11 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1231,26 +1107,21 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui
      * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1beta1.BoundingPoly,
-            com.google.cloud.automl.v1beta1.BoundingPoly.Builder,
-            com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder>
+        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());
+        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_;
+    private float score_ ;
     /**
-     *
-     *
      * 
      * Output only. The confidence that this annotation is positive for the video at
      * the time_offset, value in [0, 1], higher means higher positivity
@@ -1260,7 +1131,6 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1268,8 +1138,6 @@ public float getScore() { return score_; } /** - * - * *
      * Output only. The confidence that this annotation is positive for the video at
      * the time_offset, value in [0, 1], higher means higher positivity
@@ -1279,19 +1147,16 @@ public float getScore() {
      * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The confidence that this annotation is positive for the video at
      * the time_offset, value in [0, 1], higher means higher positivity
@@ -1301,18 +1166,17 @@ public Builder setScore(float value) {
      * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1322,13 +1186,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) - private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation(); } @@ -1337,16 +1200,16 @@ public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoObjectTrackingAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoObjectTrackingAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoObjectTrackingAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoObjectTrackingAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1361,4 +1224,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java similarity index 81% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java index 2547cb92d..0ecdb3404 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/detection.proto package com.google.cloud.automl.v1beta1; -public interface VideoObjectTrackingAnnotationOrBuilder - extends +public interface VideoObjectTrackingAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The instance of the object, expressed as a positive integer. Used to tell
    * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -37,13 +19,10 @@ public interface VideoObjectTrackingAnnotationOrBuilder
    * 
* * string instance_id = 1; - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * *
    * Optional. The instance of the object, expressed as a positive integer. Used to tell
    * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -55,40 +34,32 @@ public interface VideoObjectTrackingAnnotationOrBuilder
    * 
* * string instance_id = 1; - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
    * 
* * .google.protobuf.Duration time_offset = 2; - * * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** - * - * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
    * 
* * .google.protobuf.Duration time_offset = 2; - * * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** - * - * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
@@ -99,34 +70,26 @@ public interface VideoObjectTrackingAnnotationOrBuilder
   com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; - * * @return The boundingBox. */ com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
@@ -137,8 +100,6 @@ public interface VideoObjectTrackingAnnotationOrBuilder
   com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The confidence that this annotation is positive for the video at
    * the time_offset, value in [0, 1], higher means higher positivity
@@ -148,7 +109,6 @@ public interface VideoObjectTrackingAnnotationOrBuilder
    * 
* * float score = 4; - * * @return The score. */ float getScore(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java similarity index 59% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java index 573e718fb..dbc16ad6c 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java @@ -1,56 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 object tracking.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata} */ -public final class VideoObjectTrackingDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VideoObjectTrackingDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) VideoObjectTrackingDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VideoObjectTrackingDatasetMetadata.newBuilder() to construct. - private VideoObjectTrackingDatasetMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private VideoObjectTrackingDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private VideoObjectTrackingDatasetMetadata() {} + private VideoObjectTrackingDatasetMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VideoObjectTrackingDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VideoObjectTrackingDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,42 +52,39 @@ private VideoObjectTrackingDatasetMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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_VideoObjectTrackingDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.VideoProto - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.class, - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -134,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata other = - (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) obj; + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata other = (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -159,145 +139,134 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.VideoObjectTrackingDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata 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.VideoObjectTrackingDatasetMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - 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.VideoObjectTrackingDatasetMetadata 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.VideoObjectTrackingDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Dataset metadata specific to video object tracking.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.VideoProto - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.VideoProto - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.class, - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder.class); } - // Construct using - // com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.newBuilder() + // Construct using com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -305,16 +274,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.VideoProto - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - .getDefaultInstance(); + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); } @java.lang.Override @@ -328,8 +295,7 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata build( @java.lang.Override public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata buildPartial() { - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata result = - new com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata(this); + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata result = new com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata(this); onBuilt(); return result; } @@ -338,51 +304,46 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.VideoObjectTrackingDatasetMetadata) { - return mergeFrom( - (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) other); + return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata other) { + if (other == com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -402,9 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -413,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -425,32 +384,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) - private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata(); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoObjectTrackingDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoObjectTrackingDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoObjectTrackingDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoObjectTrackingDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -462,8 +419,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java new file mode 100644 index 000000000..bd78a2ea3 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.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 VideoObjectTrackingDatasetMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java similarity index 68% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java index 0c76f6d41..143b0e480 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 video object tracking problems.
  * Evaluates prediction quality of both labeled bounding boxes and labeled
@@ -29,33 +12,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics}
  */
-public final class VideoObjectTrackingEvaluationMetrics
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VideoObjectTrackingEvaluationMetrics extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)
     VideoObjectTrackingEvaluationMetricsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VideoObjectTrackingEvaluationMetrics.newBuilder() to construct.
-  private VideoObjectTrackingEvaluationMetrics(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private VideoObjectTrackingEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VideoObjectTrackingEvaluationMetrics() {
     boundingBoxMetricsEntries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VideoObjectTrackingEvaluationMetrics();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private VideoObjectTrackingEvaluationMetrics(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,84 +56,73 @@ private VideoObjectTrackingEvaluationMetrics(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              evaluatedFrameCount_ = input.readInt32();
-              break;
-            }
-          case 16:
-            {
-              evaluatedBoundingBoxCount_ = input.readInt32();
-              break;
-            }
-          case 34:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                boundingBoxMetricsEntries_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              boundingBoxMetricsEntries_.add(
-                  input.readMessage(
-                      com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 53:
-            {
-              boundingBoxMeanAveragePrecision_ = input.readFloat();
-              break;
+          case 8: {
+
+            evaluatedFrameCount_ = input.readInt32();
+            break;
+          }
+          case 16: {
+
+            evaluatedBoundingBoxCount_ = input.readInt32();
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              boundingBoxMetricsEntries_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            boundingBoxMetricsEntries_.add(
+                input.readMessage(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.parser(), extensionRegistry));
+            break;
+          }
+          case 53: {
+
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        boundingBoxMetricsEntries_ =
-            java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+        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_VideoObjectTrackingEvaluationMetrics_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1beta1.Detection
-        .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable
+    return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.class,
-            com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder.class);
+            com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder.class);
   }
 
   public static final int EVALUATED_FRAME_COUNT_FIELD_NUMBER = 1;
   private int evaluatedFrameCount_;
   /**
-   *
-   *
    * 
    * Output only. The number of video frames used to create this evaluation.
    * 
* * int32 evaluated_frame_count = 1; - * * @return The evaluatedFrameCount. */ @java.lang.Override @@ -163,15 +133,12 @@ public int getEvaluatedFrameCount() { public static final int EVALUATED_BOUNDING_BOX_COUNT_FIELD_NUMBER = 2; private int evaluatedBoundingBoxCount_; /** - * - * *
    * Output only. The total number of bounding boxes (i.e. summed over all
    * frames) the ground truth used to create this evaluation had.
    * 
* * int32 evaluated_bounding_box_count = 2; - * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -180,11 +147,8 @@ public int getEvaluatedBoundingBoxCount() { } public static final int BOUNDING_BOX_METRICS_ENTRIES_FIELD_NUMBER = 4; - private java.util.List - boundingBoxMetricsEntries_; + 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
@@ -192,18 +156,13 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ @java.lang.Override - public java.util.List - getBoundingBoxMetricsEntriesList() { + 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
@@ -211,18 +170,14 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ @java.lang.Override - public java.util.List + 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
@@ -230,17 +185,13 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ @java.lang.Override 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
@@ -248,18 +199,13 @@ public int getBoundingBoxMetricsEntriesCount() {
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( - int index) { + 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
@@ -267,28 +213,23 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder - getBoundingBoxMetricsEntriesOrBuilder(int index) { + 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 = 6; 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 = 6; - * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -297,7 +238,6 @@ public float getBoundingBoxMeanAveragePrecision() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +249,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (evaluatedFrameCount_ != 0) { output.writeInt32(1, evaluatedFrameCount_); } @@ -332,20 +273,20 @@ public int getSerializedSize() { size = 0; if (evaluatedFrameCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, evaluatedFrameCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, evaluatedFrameCount_); } if (evaluatedBoundingBoxCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, evaluatedBoundingBoxCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, evaluatedBoundingBoxCount_); } for (int i = 0; i < boundingBoxMetricsEntries_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, boundingBoxMetricsEntries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, boundingBoxMetricsEntries_.get(i)); } if (boundingBoxMeanAveragePrecision_ != 0F) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 6, boundingBoxMeanAveragePrecision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, boundingBoxMeanAveragePrecision_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -355,20 +296,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics other = - (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) obj; + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics other = (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) obj; - if (getEvaluatedFrameCount() != other.getEvaluatedFrameCount()) return false; - if (getEvaluatedBoundingBoxCount() != other.getEvaluatedBoundingBoxCount()) return false; - if (!getBoundingBoxMetricsEntriesList().equals(other.getBoundingBoxMetricsEntriesList())) - return false; + if (getEvaluatedFrameCount() + != other.getEvaluatedFrameCount()) return false; + 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; + != java.lang.Float.floatToIntBits( + other.getBoundingBoxMeanAveragePrecision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,112 +332,104 @@ public int hashCode() { hash = (53 * hash) + getBoundingBoxMetricsEntriesList().hashCode(); } hash = (37 * hash) + BOUNDING_BOX_MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoundingBoxMeanAveragePrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoundingBoxMeanAveragePrecision()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.VideoObjectTrackingEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics 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.VideoObjectTrackingEvaluationMetrics parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - 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.VideoObjectTrackingEvaluationMetrics 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.VideoObjectTrackingEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model evaluation metrics for video object tracking problems.
    * Evaluates prediction quality of both labeled bounding boxes and labeled
@@ -503,42 +438,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)
       com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.automl.v1beta1.Detection
-          .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1beta1.Detection
-          .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable
+      return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.class,
-              com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder.class);
+              com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.newBuilder()
+    // Construct using com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getBoundingBoxMetricsEntriesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -558,16 +490,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.automl.v1beta1.Detection
-          .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
-        getDefaultInstanceForType() {
-      return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
-          .getDefaultInstance();
+    public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getDefaultInstanceForType() {
+      return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -581,15 +511,13 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics buil
 
     @java.lang.Override
     public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics buildPartial() {
-      com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics result =
-          new com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics(this);
+      com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics result = new com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics(this);
       int from_bitField0_ = bitField0_;
       result.evaluatedFrameCount_ = evaluatedFrameCount_;
       result.evaluatedBoundingBoxCount_ = evaluatedBoundingBoxCount_;
       if (boundingBoxMetricsEntriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          boundingBoxMetricsEntries_ =
-              java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+          boundingBoxMetricsEntries_ = java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.boundingBoxMetricsEntries_ = boundingBoxMetricsEntries_;
@@ -605,51 +533,46 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics buil
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.VideoObjectTrackingEvaluationMetrics) {
-        return mergeFrom(
-            (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) other);
+        return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics other) {
-      if (other
-          == com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics other) {
+      if (other == com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance()) return this;
       if (other.getEvaluatedFrameCount() != 0) {
         setEvaluatedFrameCount(other.getEvaluatedFrameCount());
       }
@@ -674,10 +597,9 @@ public Builder mergeFrom(
             boundingBoxMetricsEntriesBuilder_ = null;
             boundingBoxMetricsEntries_ = other.boundingBoxMetricsEntries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingBoxMetricsEntriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getBoundingBoxMetricsEntriesFieldBuilder()
-                    : null;
+            boundingBoxMetricsEntriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getBoundingBoxMetricsEntriesFieldBuilder() : null;
           } else {
             boundingBoxMetricsEntriesBuilder_.addAllMessages(other.boundingBoxMetricsEntries_);
           }
@@ -705,9 +627,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -716,19 +636,15 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private int evaluatedFrameCount_;
+    private int evaluatedFrameCount_ ;
     /**
-     *
-     *
      * 
      * Output only. The number of video frames used to create this evaluation.
      * 
* * int32 evaluated_frame_count = 1; - * * @return The evaluatedFrameCount. */ @java.lang.Override @@ -736,52 +652,43 @@ public int getEvaluatedFrameCount() { return evaluatedFrameCount_; } /** - * - * *
      * Output only. The number of video frames used to create this evaluation.
      * 
* * int32 evaluated_frame_count = 1; - * * @param value The evaluatedFrameCount to set. * @return This builder for chaining. */ public Builder setEvaluatedFrameCount(int value) { - + evaluatedFrameCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of video frames used to create this evaluation.
      * 
* * int32 evaluated_frame_count = 1; - * * @return This builder for chaining. */ public Builder clearEvaluatedFrameCount() { - + evaluatedFrameCount_ = 0; onChanged(); return this; } - private int evaluatedBoundingBoxCount_; + private int evaluatedBoundingBoxCount_ ; /** - * - * *
      * Output only. The total number of bounding boxes (i.e. summed over all
      * frames) the ground truth used to create this evaluation had.
      * 
* * int32 evaluated_bounding_box_count = 2; - * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -789,64 +696,50 @@ public int getEvaluatedBoundingBoxCount() { return evaluatedBoundingBoxCount_; } /** - * - * *
      * Output only. The total number of bounding boxes (i.e. summed over all
      * frames) the ground truth used to create this evaluation had.
      * 
* * int32 evaluated_bounding_box_count = 2; - * * @param value The evaluatedBoundingBoxCount to set. * @return This builder for chaining. */ public Builder setEvaluatedBoundingBoxCount(int value) { - + evaluatedBoundingBoxCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The total number of bounding boxes (i.e. summed over all
      * frames) the ground truth used to create this evaluation had.
      * 
* * int32 evaluated_bounding_box_count = 2; - * * @return This builder for chaining. */ public Builder clearEvaluatedBoundingBoxCount() { - + evaluatedBoundingBoxCount_ = 0; onChanged(); return this; } - private java.util.List - boundingBoxMetricsEntries_ = java.util.Collections.emptyList(); - + private java.util.List boundingBoxMetricsEntries_ = + java.util.Collections.emptyList(); private void ensureBoundingBoxMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingBoxMetricsEntries_ = - new java.util.ArrayList( - boundingBoxMetricsEntries_); + boundingBoxMetricsEntries_ = new java.util.ArrayList(boundingBoxMetricsEntries_); bitField0_ |= 0x00000001; - } + } } 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_; + 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
@@ -854,12 +747,9 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - public java.util.List - getBoundingBoxMetricsEntriesList() { + public java.util.List getBoundingBoxMetricsEntriesList() { if (boundingBoxMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_); } else { @@ -867,8 +757,6 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() { } } /** - * - * *
      * 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
@@ -876,9 +764,7 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ public int getBoundingBoxMetricsEntriesCount() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -888,8 +774,6 @@ public 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
@@ -897,12 +781,9 @@ public int getBoundingBoxMetricsEntriesCount() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( - int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { return boundingBoxMetricsEntries_.get(index); } else { @@ -910,8 +791,6 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet } } /** - * - * *
      * 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
@@ -919,9 +798,7 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ public Builder setBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { @@ -938,8 +815,6 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -947,13 +822,10 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ public Builder setBoundingBoxMetricsEntries( - int index, - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); boundingBoxMetricsEntries_.set(index, builderForValue.build()); @@ -964,8 +836,6 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -973,12 +843,9 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - public Builder addBoundingBoxMetricsEntries( - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { + public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { if (boundingBoxMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -992,8 +859,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -1001,9 +866,7 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ public Builder addBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { @@ -1020,8 +883,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -1029,9 +890,7 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ public Builder addBoundingBoxMetricsEntries( com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { @@ -1045,8 +904,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -1054,13 +911,10 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ public Builder addBoundingBoxMetricsEntries( - int index, - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); boundingBoxMetricsEntries_.add(index, builderForValue.build()); @@ -1071,8 +925,6 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -1080,16 +932,14 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ public Builder addAllBoundingBoxMetricsEntries( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingBoxMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, boundingBoxMetricsEntries_); onChanged(); } else { boundingBoxMetricsEntriesBuilder_.addAllMessages(values); @@ -1097,8 +947,6 @@ public Builder addAllBoundingBoxMetricsEntries( 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
@@ -1106,9 +954,7 @@ public Builder addAllBoundingBoxMetricsEntries(
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ public Builder clearBoundingBoxMetricsEntries() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -1121,8 +967,6 @@ public Builder clearBoundingBoxMetricsEntries() { 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
@@ -1130,9 +974,7 @@ public Builder clearBoundingBoxMetricsEntries() {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ public Builder removeBoundingBoxMetricsEntries(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -1145,8 +987,6 @@ public Builder removeBoundingBoxMetricsEntries(int 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
@@ -1154,17 +994,13 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder - getBoundingBoxMetricsEntriesBuilder(int index) { + 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
@@ -1172,21 +1008,16 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder - getBoundingBoxMetricsEntriesOrBuilder(int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( + int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { - return boundingBoxMetricsEntries_.get(index); - } else { + 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
@@ -1194,13 +1025,10 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - public java.util.List< - ? extends com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder> - getBoundingBoxMetricsEntriesOrBuilderList() { + public java.util.List + getBoundingBoxMetricsEntriesOrBuilderList() { if (boundingBoxMetricsEntriesBuilder_ != null) { return boundingBoxMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1208,8 +1036,6 @@ public Builder removeBoundingBoxMetricsEntries(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
@@ -1217,18 +1043,13 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder - addBoundingBoxMetricsEntriesBuilder() { - return getBoundingBoxMetricsEntriesFieldBuilder() - .addBuilder(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance()); + 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
@@ -1236,19 +1057,14 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder - addBoundingBoxMetricsEntriesBuilder(int index) { - return getBoundingBoxMetricsEntriesFieldBuilder() - .addBuilder( - index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance()); + 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
@@ -1256,26 +1072,18 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - public java.util.List - getBoundingBoxMetricsEntriesBuilderList() { + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -1285,17 +1093,14 @@ public Builder removeBoundingBoxMetricsEntries(int index) { return boundingBoxMetricsEntriesBuilder_; } - private float boundingBoxMeanAveragePrecision_; + 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 = 6; - * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -1303,45 +1108,39 @@ 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 = 6; - * * @param value The boundingBoxMeanAveragePrecision to set. * @return This builder for chaining. */ 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 = 6; - * * @return This builder for chaining. */ public Builder clearBoundingBoxMeanAveragePrecision() { - + boundingBoxMeanAveragePrecision_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1351,32 +1150,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) - private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics(); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoObjectTrackingEvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoObjectTrackingEvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoObjectTrackingEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoObjectTrackingEvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1388,8 +1185,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java similarity index 66% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java index 92490f52c..197bd3d86 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java @@ -1,58 +1,34 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/detection.proto package com.google.cloud.automl.v1beta1; -public interface VideoObjectTrackingEvaluationMetricsOrBuilder - extends +public interface VideoObjectTrackingEvaluationMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The number of video frames used to create this evaluation.
    * 
* * int32 evaluated_frame_count = 1; - * * @return The evaluatedFrameCount. */ int getEvaluatedFrameCount(); /** - * - * *
    * Output only. The total number of bounding boxes (i.e. summed over all
    * frames) the ground truth used to create this evaluation had.
    * 
* * int32 evaluated_bounding_box_count = 2; - * * @return The evaluatedBoundingBoxCount. */ 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
@@ -60,15 +36,11 @@ public interface VideoObjectTrackingEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - java.util.List + 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
@@ -76,14 +48,10 @@ public interface VideoObjectTrackingEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ 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
@@ -91,14 +59,10 @@ public interface VideoObjectTrackingEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ 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
@@ -106,15 +70,11 @@ public interface VideoObjectTrackingEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - java.util.List + 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
@@ -122,23 +82,18 @@ public interface VideoObjectTrackingEvaluationMetricsOrBuilder
    * pair.
    * 
* - * - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; - * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; */ - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder - getBoundingBoxMetricsEntriesOrBuilder(int index); + 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 = 6; - * * @return The boundingBoxMeanAveragePrecision. */ float getBoundingBoxMeanAveragePrecision(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java similarity index 61% rename from proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java index a7c34adb2..8c5c72f70 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java @@ -1,56 +1,39 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ // 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 object tracking.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata} */ -public final class VideoObjectTrackingModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VideoObjectTrackingModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) VideoObjectTrackingModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VideoObjectTrackingModelMetadata.newBuilder() to construct. - private VideoObjectTrackingModelMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private VideoObjectTrackingModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private VideoObjectTrackingModelMetadata() {} + private VideoObjectTrackingModelMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VideoObjectTrackingModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VideoObjectTrackingModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,42 +52,39 @@ private VideoObjectTrackingModelMetadata( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - 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); + 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_VideoObjectTrackingModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.VideoProto - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.class, - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -134,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata other = - (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) obj; + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata other = (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -159,127 +139,117 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.VideoObjectTrackingModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata 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.VideoObjectTrackingModelMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata prototype) { + public static Builder newBuilder(com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model metadata specific to video object tracking.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.VideoProto - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.VideoProto - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.class, - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.newBuilder() @@ -287,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -303,14 +274,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.VideoProto - .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } @@ -325,8 +295,7 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata build() @java.lang.Override public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata buildPartial() { - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata result = - new com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata(this); + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata result = new com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata(this); onBuilt(); return result; } @@ -335,50 +304,46 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.VideoObjectTrackingModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) other); + return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata other) { - if (other - == com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata other) { + if (other == com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -398,9 +363,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -409,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -421,32 +384,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) - private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata(); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoObjectTrackingModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoObjectTrackingModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoObjectTrackingModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoObjectTrackingModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -458,8 +419,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata - getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java new file mode 100644 index 000000000..8d936c71a --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.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 VideoObjectTrackingModelMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java new file mode 100644 index 000000000..d7d1733c6 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java @@ -0,0 +1,95 @@ +// 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_VideoObjectTrackingDatasetMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_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\0320google/c" + + "loud/automl/v1beta1/classification.proto" + + "\032\034google/api/annotations.proto\"$\n\"VideoC" + + "lassificationDatasetMetadata\"$\n\"VideoObj" + + "ectTrackingDatasetMetadata\"\"\n VideoClass" + + "ificationModelMetadata\"\"\n VideoObjectTra" + + "ckingModelMetadataB\261\001\n\037com.google.cloud." + + "automl.v1beta1B\nVideoProtoP\001ZAgoogle.gol" + + "ang.org/genproto/googleapis/cloud/automl" + + "/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1" + + "beta1\352\002\036Google::Cloud::AutoML::V1beta1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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_VideoObjectTrackingDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + 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[] { }); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor, + new java.lang.String[] { }); + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_spec.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_spec.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_spec.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_spec.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto similarity index 98% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto index a421ece14..9a572dd2a 100644 --- a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto +++ b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto @@ -395,10 +395,11 @@ message ListDatasetsRequest { // An expression for filtering the results of the request. // // * `dataset_metadata` - for existence of the case (e.g. - // image_classification_dataset_metadata:*). Some examples of using the filter are: + // `image_classification_dataset_metadata:*`). Some examples of + // using the filter are: // // * `translation_dataset_metadata:*` --> The dataset has - // translation_dataset_metadata. + // `translation_dataset_metadata`. string filter = 3; // Requested page size. Server may return fewer results than requested. @@ -641,11 +642,11 @@ message ListModelsRequest { // An expression for filtering the results of the request. // // * `model_metadata` - for existence of the case (e.g. - // video_classification_model_metadata:*). + // `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. + // `image_classification_model_metadata`. // * `dataset_id=5` --> The model was created from a dataset with ID 5. string filter = 3; diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto diff --git a/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto similarity index 100% rename from proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java deleted file mode 100644 index ec50b812f..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/annotation_payload.proto - -package com.google.cloud.automl.v1; - -public final class AnnotationPayloadOuterClass { - private AnnotationPayloadOuterClass() {} - - 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_v1_AnnotationPayload_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_AnnotationPayload_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/v1/annotation_payl" - + "oad.proto\022\026google.cloud.automl.v1\032+googl" - + "e/cloud/automl/v1/classification.proto\032&" - + "google/cloud/automl/v1/detection.proto\032," - + "google/cloud/automl/v1/text_extraction.p" - + "roto\032+google/cloud/automl/v1/text_sentim" - + "ent.proto\032(google/cloud/automl/v1/transl" - + "ation.proto\032\031google/protobuf/any.proto\032\034" - + "google/api/annotations.proto\"\323\003\n\021Annotat" - + "ionPayload\022D\n\013translation\030\002 \001(\0132-.google" - + ".cloud.automl.v1.TranslationAnnotationH\000" - + "\022J\n\016classification\030\003 \001(\01320.google.cloud." - + "automl.v1.ClassificationAnnotationH\000\022X\n\026" - + "image_object_detection\030\004 \001(\01326.google.cl" - + "oud.automl.v1.ImageObjectDetectionAnnota" - + "tionH\000\022K\n\017text_extraction\030\006 \001(\01320.google" - + ".cloud.automl.v1.TextExtractionAnnotatio" - + "nH\000\022I\n\016text_sentiment\030\007 \001(\0132/.google.clo" - + "ud.automl.v1.TextSentimentAnnotationH\000\022\032" - + "\n\022annotation_spec_id\030\001 \001(\t\022\024\n\014display_na" - + "me\030\005 \001(\tB\010\n\006detailB\252\001\n\032com.google.cloud." - + "automl.v1P\001Z\n\014input" - + "_config\030\003 \001(\0132#.google.cloud.automl.v1.I" - + "nputConfigB\003\340A\002\"\212\001\n\021ExportDataRequest\0223\n" - + "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleapis.c" - + "om/Dataset\022@\n\routput_config\030\003 \001(\0132$.goog" - + "le.cloud.automl.v1.OutputConfigB\003\340A\002\"V\n\030" - + "GetAnnotationSpecRequest\022:\n\004name\030\001 \001(\tB," - + "\340A\002\372A&\n$automl.googleapis.com/Annotation" - + "Spec\"\202\001\n\022CreateModelRequest\0229\n\006parent\030\001 " - + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" - + "cation\0221\n\005model\030\004 \001(\0132\035.google.cloud.aut" - + "oml.v1.ModelB\003\340A\002\"D\n\017GetModelRequest\0221\n\004" - + "name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis.co" - + "m/Model\"\205\001\n\021ListModelsRequest\0229\n\006parent\030" - + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" - + "Location\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\"[\n\022ListModelsRes" - + "ponse\022,\n\005model\030\001 \003(\0132\035.google.cloud.auto" - + "ml.v1.Model\022\027\n\017next_page_token\030\002 \001(\t\"G\n\022" - + "DeleteModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035" - + "\n\033automl.googleapis.com/Model\"}\n\022UpdateM" - + "odelRequest\0221\n\005model\030\001 \001(\0132\035.google.clou" - + "d.automl.v1.ModelB\003\340A\002\0224\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\343\002\n" - + "\022DeployModelRequest\022\177\n0image_object_dete" - + "ction_model_deployment_metadata\030\002 \001(\0132C." - + "google.cloud.automl.v1.ImageObjectDetect" - + "ionModelDeploymentMetadataH\000\022|\n.image_cl" - + "assification_model_deployment_metadata\030\004" - + " \001(\0132B.google.cloud.automl.v1.ImageClass" - + "ificationModelDeploymentMetadataH\000\0221\n\004na" - + "me\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis.com/" - + "ModelB\033\n\031model_deployment_metadata\"I\n\024Un" - + "deployModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035" - + "\n\033automl.googleapis.com/Model\"\224\001\n\022Export" - + "ModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033auto" - + "ml.googleapis.com/Model\022K\n\routput_config" - + "\030\003 \001(\0132/.google.cloud.automl.v1.ModelExp" - + "ortOutputConfigB\003\340A\002\"X\n\031GetModelEvaluati" - + "onRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%automl." - + "googleapis.com/ModelEvaluation\"\216\001\n\033ListM" - + "odelEvaluationsRequest\0223\n\006parent\030\001 \001(\tB#" - + "\340A\002\372A\035\n\033automl.googleapis.com/Model\022\023\n\006f" - + "ilter\030\003 \001(\tB\003\340A\002\022\021\n\tpage_size\030\004 \001(\005\022\022\n\np" - + "age_token\030\006 \001(\t\"z\n\034ListModelEvaluationsR" - + "esponse\022A\n\020model_evaluation\030\001 \003(\0132\'.goog" - + "le.cloud.automl.v1.ModelEvaluation\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t2\350\033\n\006AutoMl\022\313\001\n\rCreat" - + "eDataset\022,.google.cloud.automl.v1.Create" - + "DatasetRequest\032\035.google.longrunning.Oper" - + "ation\"m\202\323\344\223\0027\",/v1/{parent=projects/*/lo" - + "cations/*}/datasets:\007dataset\332A\016parent,da" - + "taset\312A\034\n\007Dataset\022\021OperationMetadata\022\225\001\n" - + "\nGetDataset\022).google.cloud.automl.v1.Get" - + "DatasetRequest\032\037.google.cloud.automl.v1." - + "Dataset\";\202\323\344\223\002.\022,/v1/{name=projects/*/lo" - + "cations/*/datasets/*}\332A\004name\022\250\001\n\014ListDat" - + "asets\022+.google.cloud.automl.v1.ListDatas" - + "etsRequest\032,.google.cloud.automl.v1.List" - + "DatasetsResponse\"=\202\323\344\223\002.\022,/v1/{parent=pr" - + "ojects/*/locations/*}/datasets\332A\006parent\022" - + "\273\001\n\rUpdateDataset\022,.google.cloud.automl." - + "v1.UpdateDatasetRequest\032\037.google.cloud.a" - + "utoml.v1.Dataset\"[\202\323\344\223\002?24/v1/{dataset.n" - + "ame=projects/*/locations/*/datasets/*}:\007" - + "dataset\332A\023dataset,update_mask\022\306\001\n\rDelete" - + "Dataset\022,.google.cloud.automl.v1.DeleteD" - + "atasetRequest\032\035.google.longrunning.Opera" - + "tion\"h\202\323\344\223\002.*,/v1/{name=projects/*/locat" - + "ions/*/datasets/*}\332A\004name\312A*\n\025google.pro" - + "tobuf.Empty\022\021OperationMetadata\022\334\001\n\nImpor" - + "tData\022).google.cloud.automl.v1.ImportDat" - + "aRequest\032\035.google.longrunning.Operation\"" - + "\203\001\202\323\344\223\002<\"7/v1/{name=projects/*/locations" - + "/*/datasets/*}:importData:\001*\332A\021name,inpu" - + "t_config\312A*\n\025google.protobuf.Empty\022\021Oper" - + "ationMetadata\022\335\001\n\nExportData\022).google.cl" - + "oud.automl.v1.ExportDataRequest\032\035.google" - + ".longrunning.Operation\"\204\001\202\323\344\223\002<\"7/v1/{na" - + "me=projects/*/locations/*/datasets/*}:ex" - + "portData:\001*\332A\022name,output_config\312A*\n\025goo" - + "gle.protobuf.Empty\022\021OperationMetadata\022\274\001" - + "\n\021GetAnnotationSpec\0220.google.cloud.autom" - + "l.v1.GetAnnotationSpecRequest\032&.google.c" - + "loud.automl.v1.AnnotationSpec\"M\202\323\344\223\002@\022>/" - + "v1/{name=projects/*/locations/*/datasets" - + "/*/annotationSpecs/*}\332A\004name\022\277\001\n\013CreateM" - + "odel\022*.google.cloud.automl.v1.CreateMode" - + "lRequest\032\035.google.longrunning.Operation\"" - + "e\202\323\344\223\0023\"*/v1/{parent=projects/*/location" - + "s/*}/models:\005model\332A\014parent,model\312A\032\n\005Mo" - + "del\022\021OperationMetadata\022\215\001\n\010GetModel\022\'.go" - + "ogle.cloud.automl.v1.GetModelRequest\032\035.g" - + "oogle.cloud.automl.v1.Model\"9\202\323\344\223\002,\022*/v1" - + "/{name=projects/*/locations/*/models/*}\332" - + "A\004name\022\240\001\n\nListModels\022).google.cloud.aut" - + "oml.v1.ListModelsRequest\032*.google.cloud." - + "automl.v1.ListModelsResponse\";\202\323\344\223\002,\022*/v" - + "1/{parent=projects/*/locations/*}/models" - + "\332A\006parent\022\300\001\n\013DeleteModel\022*.google.cloud" - + ".automl.v1.DeleteModelRequest\032\035.google.l" - + "ongrunning.Operation\"f\202\323\344\223\002,**/v1/{name=" - + "projects/*/locations/*/models/*}\332A\004name\312" - + "A*\n\025google.protobuf.Empty\022\021OperationMeta" - + "data\022\255\001\n\013UpdateModel\022*.google.cloud.auto" - + "ml.v1.UpdateModelRequest\032\035.google.cloud." - + "automl.v1.Model\"S\202\323\344\223\002920/v1/{model.name" - + "=projects/*/locations/*/models/*}:\005model" - + "\332A\021model,update_mask\022\312\001\n\013DeployModel\022*.g" - + "oogle.cloud.automl.v1.DeployModelRequest" - + "\032\035.google.longrunning.Operation\"p\202\323\344\223\0026\"" - + "1/v1/{name=projects/*/locations/*/models" - + "/*}:deploy:\001*\332A\004name\312A*\n\025google.protobuf" - + ".Empty\022\021OperationMetadata\022\320\001\n\rUndeployMo" - + "del\022,.google.cloud.automl.v1.UndeployMod" - + "elRequest\032\035.google.longrunning.Operation" - + "\"r\202\323\344\223\0028\"3/v1/{name=projects/*/locations" - + "/*/models/*}:undeploy:\001*\332A\004name\312A*\n\025goog" - + "le.protobuf.Empty\022\021OperationMetadata\022\330\001\n" - + "\013ExportModel\022*.google.cloud.automl.v1.Ex" - + "portModelRequest\032\035.google.longrunning.Op" - + "eration\"~\202\323\344\223\0026\"1/v1/{name=projects/*/lo" - + "cations/*/models/*}:export:\001*\332A\022name,out" - + "put_config\312A*\n\025google.protobuf.Empty\022\021Op" - + "erationMetadata\022\276\001\n\022GetModelEvaluation\0221" - + ".google.cloud.automl.v1.GetModelEvaluati" - + "onRequest\032\'.google.cloud.automl.v1.Model" - + "Evaluation\"L\202\323\344\223\002?\022=/v1/{name=projects/*" - + "/locations/*/models/*/modelEvaluations/*" - + "}\332A\004name\022\330\001\n\024ListModelEvaluations\0223.goog" - + "le.cloud.automl.v1.ListModelEvaluationsR" - + "equest\0324.google.cloud.automl.v1.ListMode" - + "lEvaluationsResponse\"U\202\323\344\223\002?\022=/v1/{paren" - + "t=projects/*/locations/*/models/*}/model" - + "Evaluations\332A\rparent,filter\032I\312A\025automl.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\267\001\n\032com.google.cl" - + "oud.automl.v1B\013AutoMlProtoP\001Z - * Required. The Google Cloud Storage location for the input content. - *
- * - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gcsSource field is set. - */ - boolean hasGcsSource(); - /** - * - * - *
-   * Required. The Google Cloud Storage location for the input content.
-   * 
- * - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gcsSource. - */ - com.google.cloud.automl.v1.GcsSource getGcsSource(); - /** - * - * - *
-   * Required. The Google Cloud Storage location for the input content.
-   * 
- * - * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); - - public com.google.cloud.automl.v1.BatchPredictInputConfig.SourceCase getSourceCase(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java deleted file mode 100644 index 6c4fbaa46..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/classification.proto - -package com.google.cloud.automl.v1; - -public final class ClassificationProto { - private ClassificationProto() {} - - 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_v1_ClassificationAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_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/v1/classification." - + "proto\022\026google.cloud.automl.v1\032\034google/ap" - + "i/annotations.proto\")\n\030ClassificationAnn" - + "otation\022\r\n\005score\030\001 \001(\002\"\201\007\n\037Classificatio" - + "nEvaluationMetrics\022\016\n\006au_prc\030\001 \001(\002\022\016\n\006au" - + "_roc\030\006 \001(\002\022\020\n\010log_loss\030\007 \001(\002\022p\n\030confiden" - + "ce_metrics_entry\030\003 \003(\0132N.google.cloud.au" - + "toml.v1.ClassificationEvaluationMetrics." - + "ConfidenceMetricsEntry\022a\n\020confusion_matr" - + "ix\030\004 \001(\0132G.google.cloud.automl.v1.Classi" - + "ficationEvaluationMetrics.ConfusionMatri" - + "x\022\032\n\022annotation_spec_id\030\005 \003(\t\032\374\002\n\026Confid" - + "enceMetricsEntry\022\034\n\024confidence_threshold" - + "\030\001 \001(\002\022\032\n\022position_threshold\030\016 \001(\005\022\016\n\006re" - + "call\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\002\022\033\n\023false_p" - + "ositive_rate\030\010 \001(\002\022\020\n\010f1_score\030\004 \001(\002\022\022\n\n" - + "recall_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_s" - + "core_at1\030\007 \001(\002\022\033\n\023true_positive_count\030\n " - + "\001(\003\022\034\n\024false_positive_count\030\013 \001(\003\022\034\n\024fal" - + "se_negative_count\030\014 \001(\003\022\033\n\023true_negative" - + "_count\030\r \001(\003\032\273\001\n\017ConfusionMatrix\022\032\n\022anno" - + "tation_spec_id\030\001 \003(\t\022\024\n\014display_name\030\003 \003" - + "(\t\022X\n\003row\030\002 \003(\0132K.google.cloud.automl.v1" - + ".ClassificationEvaluationMetrics.Confusi" - + "onMatrix.Row\032\034\n\003Row\022\025\n\rexample_count\030\001 \003" - + "(\005*Y\n\022ClassificationType\022#\n\037CLASSIFICATI" - + "ON_TYPE_UNSPECIFIED\020\000\022\016\n\nMULTICLASS\020\001\022\016\n" - + "\nMULTILABEL\020\002B\277\001\n\032com.google.cloud.autom" - + "l.v1B\023ClassificationProtoP\001Z - * Required. The resource name of the dataset to delete. - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the dataset to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java deleted file mode 100644 index 549fa5d69..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface DeleteModelRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeleteModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the model being deleted.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the model being deleted.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java deleted file mode 100644 index d7890dc73..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/operations.proto - -package com.google.cloud.automl.v1; - -public interface DeleteOperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeleteOperationMetadata) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java deleted file mode 100644 index 1089fe326..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/operations.proto - -package com.google.cloud.automl.v1; - -public interface DeployModelOperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeployModelOperationMetadata) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java deleted file mode 100644 index b33f9f6ea..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface DeployModelRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeployModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Model deployment metadata specific to Image Object Detection.
-   * 
- * - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * - * - * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. - */ - boolean hasImageObjectDetectionModelDeploymentMetadata(); - /** - * - * - *
-   * Model deployment metadata specific to Image Object Detection.
-   * 
- * - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * - * - * @return The imageObjectDetectionModelDeploymentMetadata. - */ - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - getImageObjectDetectionModelDeploymentMetadata(); - /** - * - * - *
-   * Model deployment metadata specific to Image Object Detection.
-   * 
- * - * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * - */ - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder - getImageObjectDetectionModelDeploymentMetadataOrBuilder(); - - /** - * - * - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * - * @return Whether the imageClassificationModelDeploymentMetadata field is set. - */ - boolean hasImageClassificationModelDeploymentMetadata(); - /** - * - * - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * - * @return The imageClassificationModelDeploymentMetadata. - */ - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - getImageClassificationModelDeploymentMetadata(); - /** - * - * - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - */ - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder - getImageClassificationModelDeploymentMetadataOrBuilder(); - - /** - * - * - *
-   * Required. Resource name of the model to deploy.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the model to deploy.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - public com.google.cloud.automl.v1.DeployModelRequest.ModelDeploymentMetadataCase - getModelDeploymentMetadataCase(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java deleted file mode 100644 index ff38d5f32..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/detection.proto - -package com.google.cloud.automl.v1; - -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_v1_ImageObjectDetectionAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_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/v1/detection.proto" - + "\022\026google.cloud.automl.v1\032%google/cloud/a" - + "utoml/v1/geometry.proto\032\036google/protobuf" - + "/duration.proto\032\034google/api/annotations." - + "proto\"k\n\036ImageObjectDetectionAnnotation\022" - + ":\n\014bounding_box\030\001 \001(\0132$.google.cloud.aut" - + "oml.v1.BoundingPoly\022\r\n\005score\030\002 \001(\002\"\251\002\n\027B" - + "oundingBoxMetricsEntry\022\025\n\riou_threshold\030" - + "\001 \001(\002\022\036\n\026mean_average_precision\030\002 \001(\002\022j\n" - + "\032confidence_metrics_entries\030\003 \003(\0132F.goog" - + "le.cloud.automl.v1.BoundingBoxMetricsEnt" - + "ry.ConfidenceMetricsEntry\032k\n\026ConfidenceM" - + "etricsEntry\022\034\n\024confidence_threshold\030\001 \001(" - + "\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\002\022\020\n\010" - + "f1_score\030\004 \001(\002\"\321\001\n%ImageObjectDetectionE" - + "valuationMetrics\022$\n\034evaluated_bounding_b" - + "ox_count\030\001 \001(\005\022U\n\034bounding_box_metrics_e" - + "ntries\030\002 \003(\0132/.google.cloud.automl.v1.Bo" - + "undingBoxMetricsEntry\022+\n#bounding_box_me" - + "an_average_precision\030\003 \001(\002B\252\001\n\032com.googl" - + "e.cloud.automl.v1P\001Z - * Required. The resource name of the dataset. - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the dataset.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The desired output location.
-   * 
- * - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - * - * - *
-   * Required. The desired output location.
-   * 
- * - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The outputConfig. - */ - com.google.cloud.automl.v1.OutputConfig getOutputConfig(); - /** - * - * - *
-   * Required. The desired output location.
-   * 
- * - * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.automl.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java deleted file mode 100644 index 2f18fb3a3..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/operations.proto - -package com.google.cloud.automl.v1; - -public interface ExportModelOperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportModelOperationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Information further describing the output of this model
-   * export.
-   * 
- * - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * - * - * @return Whether the outputInfo field is set. - */ - boolean hasOutputInfo(); - /** - * - * - *
-   * Output only. Information further describing the output of this model
-   * export.
-   * 
- * - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * - * - * @return The outputInfo. - */ - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo(); - /** - * - * - *
-   * Output only. Information further describing the output of this model
-   * export.
-   * 
- * - * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * - */ - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder - getOutputInfoOrBuilder(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java deleted file mode 100644 index 86ca1495b..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface ExportModelRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the model to export.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the model to export.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The desired output location and configuration.
-   * 
- * - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - * - * - *
-   * Required. The desired output location and configuration.
-   * 
- * - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The outputConfig. - */ - com.google.cloud.automl.v1.ModelExportOutputConfig getOutputConfig(); - /** - * - * - *
-   * Required. The desired output location and configuration.
-   * 
- * - * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java deleted file mode 100644 index f299d1947..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/geometry.proto - -package com.google.cloud.automl.v1; - -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_v1_NormalizedVertex_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BoundingPoly_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_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/v1/geometry.proto\022" - + "\026google.cloud.automl.v1\032\034google/api/anno" - + "tations.proto\"(\n\020NormalizedVertex\022\t\n\001x\030\001" - + " \001(\002\022\t\n\001y\030\002 \001(\002\"U\n\014BoundingPoly\022E\n\023norma" - + "lized_vertices\030\002 \003(\0132(.google.cloud.auto" - + "ml.v1.NormalizedVertexB\252\001\n\032com.google.cl" - + "oud.automl.v1P\001Z - * Required. The resource name of the annotation spec to retrieve. - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the annotation spec to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java deleted file mode 100644 index 3184cfc9a..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface GetDatasetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the dataset to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the dataset to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java deleted file mode 100644 index 0cf435e40..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface GetModelEvaluationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetModelEvaluationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name for the model evaluation.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name for the model evaluation.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java deleted file mode 100644 index 6a41db2e0..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface GetModelRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the model.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the model.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java deleted file mode 100644 index 236b2abaa..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/image.proto - -package com.google.cloud.automl.v1; - -public interface ImageObjectDetectionDatasetMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java deleted file mode 100644 index 9d1967926..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/image.proto - -package com.google.cloud.automl.v1; - -public final class ImageProto { - private ImageProto() {} - - 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_v1_ImageClassificationDatasetMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_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/v1/image.proto\022\026go" - + "ogle.cloud.automl.v1\032\031google/api/resourc" - + "e.proto\032,google/cloud/automl/v1/annotati" - + "on_spec.proto\032+google/cloud/automl/v1/cl" - + "assification.proto\032\037google/protobuf/time" - + "stamp.proto\032\034google/api/annotations.prot" - + "o\"m\n\"ImageClassificationDatasetMetadata\022" - + "G\n\023classification_type\030\001 \001(\0162*.google.cl" - + "oud.automl.v1.ClassificationType\"%\n#Imag" - + "eObjectDetectionDatasetMetadata\"\324\001\n Imag" - + "eClassificationModelMetadata\022\025\n\rbase_mod" - + "el_id\030\001 \001(\t\022%\n\035train_budget_milli_node_h" - + "ours\030\020 \001(\003\022#\n\033train_cost_milli_node_hour" - + "s\030\021 \001(\003\022\023\n\013stop_reason\030\005 \001(\t\022\022\n\nmodel_ty" - + "pe\030\007 \001(\t\022\020\n\010node_qps\030\r \001(\001\022\022\n\nnode_count" - + "\030\016 \001(\003\"\276\001\n!ImageObjectDetectionModelMeta" - + "data\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\022\023\n\013stop_reason\030\005 " - + "\001(\t\022%\n\035train_budget_milli_node_hours\030\006 \001" - + "(\003\022#\n\033train_cost_milli_node_hours\030\007 \001(\003\"" - + "@\n*ImageClassificationModelDeploymentMet" - + "adata\022\022\n\nnode_count\030\001 \001(\003\"A\n+ImageObject" - + "DetectionModelDeploymentMetadata\022\022\n\nnode" - + "_count\030\001 \001(\003B\266\001\n\032com.google.cloud.automl" - + ".v1B\nImageProtoP\001Z - * Required. Dataset name. Dataset must already exist. All imported - * annotations and examples will be added. - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Dataset name. Dataset must already exist. All imported
-   * annotations and examples will be added.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the inputConfig field is set. - */ - boolean hasInputConfig(); - /** - * - * - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The inputConfig. - */ - com.google.cloud.automl.v1.InputConfig getInputConfig(); - /** - * - * - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.automl.v1.InputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java deleted file mode 100644 index 638bf27b6..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/io.proto - -package com.google.cloud.automl.v1; - -public final class Io { - private Io() {} - - 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_v1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_GcsDestination_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\037google/cloud/automl/v1/io.proto\022\026googl" - + "e.cloud.automl.v1\032\037google/api/field_beha" - + "vior.proto\032\034google/api/annotations.proto" - + "\"\300\001\n\013InputConfig\0227\n\ngcs_source\030\001 \001(\0132!.g" - + "oogle.cloud.automl.v1.GcsSourceH\000\022?\n\006par" - + "ams\030\002 \003(\0132/.google.cloud.automl.v1.Input" - + "Config.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\"a\n\027B" - + "atchPredictInputConfig\022<\n\ngcs_source\030\001 \001" - + "(\0132!.google.cloud.automl.v1.GcsSourceB\003\340" - + "A\002H\000B\010\n\006source\"L\n\023DocumentInputConfig\0225\n" - + "\ngcs_source\030\001 \001(\0132!.google.cloud.automl." - + "v1.GcsSource\"e\n\014OutputConfig\022F\n\017gcs_dest" - + "ination\030\001 \001(\0132&.google.cloud.automl.v1.G" - + "csDestinationB\003\340A\002H\000B\r\n\013destination\"q\n\030B" - + "atchPredictOutputConfig\022F\n\017gcs_destinati" - + "on\030\001 \001(\0132&.google.cloud.automl.v1.GcsDes" - + "tinationB\003\340A\002H\000B\r\n\013destination\"\202\002\n\027Model" - + "ExportOutputConfig\022F\n\017gcs_destination\030\001 " - + "\001(\0132&.google.cloud.automl.v1.GcsDestinat" - + "ionB\003\340A\002H\000\022\024\n\014model_format\030\004 \001(\t\022K\n\006para" - + "ms\030\002 \003(\0132;.google.cloud.automl.v1.ModelE" - + "xportOutputConfig.ParamsEntry\032-\n\013ParamsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\r\n\013" - + "destination\"$\n\tGcsSource\022\027\n\ninput_uris\030\001" - + " \003(\tB\003\340A\002\"0\n\016GcsDestination\022\036\n\021output_ur" - + "i_prefix\030\001 \001(\tB\003\340A\002B\252\001\n\032com.google.cloud" - + ".automl.v1P\001Z - * Required. Horizontal coordinate. - *
- * - * float x = 1; - * - * @return The x. - */ - float getX(); - - /** - * - * - *
-   * Required. Vertical coordinate.
-   * 
- * - * float y = 2; - * - * @return The y. - */ - float getY(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java deleted file mode 100644 index 56bade28f..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java +++ /dev/null @@ -1,277 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/operations.proto - -package com.google.cloud.automl.v1; - -public final class Operations { - private Operations() {} - - 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_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_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/v1/operations.prot" - + "o\022\026google.cloud.automl.v1\032$google/cloud/" - + "automl/v1/dataset.proto\032\037google/cloud/au" - + "toml/v1/io.proto\032\037google/protobuf/timest" - + "amp.proto\032\027google/rpc/status.proto\032\034goog" - + "le/api/annotations.proto\"\311\007\n\021OperationMe" - + "tadata\022I\n\016delete_details\030\010 \001(\0132/.google." - + "cloud.automl.v1.DeleteOperationMetadataH" - + "\000\022T\n\024deploy_model_details\030\030 \001(\01324.google" - + ".cloud.automl.v1.DeployModelOperationMet" - + "adataH\000\022X\n\026undeploy_model_details\030\031 \001(\0132" - + "6.google.cloud.automl.v1.UndeployModelOp" - + "erationMetadataH\000\022T\n\024create_model_detail" - + "s\030\n \001(\01324.google.cloud.automl.v1.CreateM" - + "odelOperationMetadataH\000\022X\n\026create_datase" - + "t_details\030\036 \001(\01326.google.cloud.automl.v1" - + ".CreateDatasetOperationMetadataH\000\022R\n\023imp" - + "ort_data_details\030\017 \001(\01323.google.cloud.au" - + "toml.v1.ImportDataOperationMetadataH\000\022V\n" - + "\025batch_predict_details\030\020 \001(\01325.google.cl" - + "oud.automl.v1.BatchPredictOperationMetad" - + "ataH\000\022R\n\023export_data_details\030\025 \001(\01323.goo" - + "gle.cloud.automl.v1.ExportDataOperationM" - + "etadataH\000\022T\n\024export_model_details\030\026 \001(\0132" - + "4.google.cloud.automl.v1.ExportModelOper" - + "ationMetadataH\000\022\030\n\020progress_percent\030\r \001(" - + "\005\022,\n\020partial_failures\030\002 \003(\0132\022.google.rpc" - + ".Status\022/\n\013create_time\030\003 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032." - + "google.protobuf.TimestampB\t\n\007details\"\031\n\027" - + "DeleteOperationMetadata\"\036\n\034DeployModelOp" - + "erationMetadata\" \n\036UndeployModelOperatio" - + "nMetadata\" \n\036CreateDatasetOperationMetad" - + "ata\"\036\n\034CreateModelOperationMetadata\"\035\n\033I" - + "mportDataOperationMetadata\"\307\001\n\033ExportDat" - + "aOperationMetadata\022]\n\013output_info\030\001 \001(\0132" - + "H.google.cloud.automl.v1.ExportDataOpera" - + "tionMetadata.ExportDataOutputInfo\032I\n\024Exp" - + "ortDataOutputInfo\022\036\n\024gcs_output_director" - + "y\030\001 \001(\tH\000B\021\n\017output_location\"\226\002\n\035BatchPr" - + "edictOperationMetadata\022E\n\014input_config\030\001" - + " \001(\0132/.google.cloud.automl.v1.BatchPredi" - + "ctInputConfig\022a\n\013output_info\030\002 \001(\0132L.goo" - + "gle.cloud.automl.v1.BatchPredictOperatio" - + "nMetadata.BatchPredictOutputInfo\032K\n\026Batc" - + "hPredictOutputInfo\022\036\n\024gcs_output_directo" - + "ry\030\001 \001(\tH\000B\021\n\017output_location\"\266\001\n\034Export" - + "ModelOperationMetadata\022_\n\013output_info\030\002 " - + "\001(\0132J.google.cloud.automl.v1.ExportModel" - + "OperationMetadata.ExportModelOutputInfo\032" - + "5\n\025ExportModelOutputInfo\022\034\n\024gcs_output_d" - + "irectory\030\001 \001(\tB\252\001\n\032com.google.cloud.auto" - + "ml.v1P\001Z - * Output only. The Area under precision recall curve metric. - *
- * - * float au_prc = 1; - * - * @return The auPrc. - */ - float getAuPrc(); - - /** - * - * - *
-   * Output only. Metrics that have confidence thresholds.
-   * Precision-recall curve can be derived from it.
-   * 
- * - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * - */ - java.util.List - getConfidenceMetricsEntriesList(); - /** - * - * - *
-   * Output only. Metrics that have confidence thresholds.
-   * Precision-recall curve can be derived from it.
-   * 
- * - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * - */ - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index); - /** - * - * - *
-   * Output only. Metrics that have confidence thresholds.
-   * Precision-recall curve can be derived from it.
-   * 
- * - * - * repeated .google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * - */ - java.util.List< - ? extends - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> - getConfidenceMetricsEntriesOrBuilderList(); - /** - * - * - *
-   * Output only. Metrics that have confidence thresholds.
-   * Precision-recall curve can be derived from it.
-   * 
- * - * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * - */ - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java deleted file mode 100644 index d8b325fe4..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/text.proto - -package com.google.cloud.automl.v1; - -public interface TextExtractionModelMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextExtractionModelMetadata) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java deleted file mode 100644 index 2824d3182..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/text.proto - -package com.google.cloud.automl.v1; - -public final class TextProto { - private TextProto() {} - - 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_v1_TextClassificationDatasetMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_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/v1/text.proto\022\026goo" - + "gle.cloud.automl.v1\032+google/cloud/automl" - + "/v1/classification.proto\032\034google/api/ann" - + "otations.proto\"l\n!TextClassificationData" - + "setMetadata\022G\n\023classification_type\030\001 \001(\016" - + "2*.google.cloud.automl.v1.Classification" - + "Type\"j\n\037TextClassificationModelMetadata\022" - + "G\n\023classification_type\030\003 \001(\0162*.google.cl" - + "oud.automl.v1.ClassificationType\"\037\n\035Text" - + "ExtractionDatasetMetadata\"\035\n\033TextExtract" - + "ionModelMetadata\"5\n\034TextSentimentDataset" - + "Metadata\022\025\n\rsentiment_max\030\001 \001(\005\"\034\n\032TextS" - + "entimentModelMetadataB\265\001\n\032com.google.clo" - + "ud.automl.v1B\tTextProtoP\001Z - * Output only. BLEU score. - *
- * - * double bleu_score = 1; - * - * @return The bleuScore. - */ - double getBleuScore(); - - /** - * - * - *
-   * Output only. BLEU score for base model.
-   * 
- * - * double base_bleu_score = 2; - * - * @return The baseBleuScore. - */ - double getBaseBleuScore(); -} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java deleted file mode 100644 index a1ad0339a..000000000 --- a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/translation.proto - -package com.google.cloud.automl.v1; - -public final class TranslationProto { - private TranslationProto() {} - - 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_v1_TranslationDatasetMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TranslationAnnotation_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/v1/translation.pro" - + "to\022\026google.cloud.automl.v1\032\037google/api/f" - + "ield_behavior.proto\032\'google/cloud/automl" - + "/v1/data_items.proto\032\034google/api/annotat" - + "ions.proto\"b\n\032TranslationDatasetMetadata" - + "\022!\n\024source_language_code\030\001 \001(\tB\003\340A\002\022!\n\024t" - + "arget_language_code\030\002 \001(\tB\003\340A\002\"K\n\034Transl" - + "ationEvaluationMetrics\022\022\n\nbleu_score\030\001 \001" - + "(\001\022\027\n\017base_bleu_score\030\002 \001(\001\"j\n\030Translati" - + "onModelMetadata\022\022\n\nbase_model\030\001 \001(\t\022\034\n\024s" - + "ource_language_code\030\002 \001(\t\022\034\n\024target_lang" - + "uage_code\030\003 \001(\t\"X\n\025TranslationAnnotation" - + "\022?\n\022translated_content\030\001 \001(\0132#.google.cl" - + "oud.automl.v1.TextSnippetB\274\001\n\032com.google" - + ".cloud.automl.v1B\020TranslationProtoP\001Z - * Required. Resource name of the model to undeploy. - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the model to undeploy.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java deleted file mode 100644 index 28ba9778c..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/annotation_payload.proto - -package com.google.cloud.automl.v1beta1; - -public final class AnnotationPayloadOuterClass { - private AnnotationPayloadOuterClass() {} - - 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_AnnotationPayload_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/automl/v1beta1/annotation" - + "_payload.proto\022\033google.cloud.automl.v1be" - + "ta1\0320google/cloud/automl/v1beta1/classif" - + "ication.proto\032+google/cloud/automl/v1bet" - + "a1/detection.proto\032(google/cloud/automl/" - + "v1beta1/tables.proto\0321google/cloud/autom" - + "l/v1beta1/text_extraction.proto\0320google/" - + "cloud/automl/v1beta1/text_sentiment.prot" - + "o\032-google/cloud/automl/v1beta1/translati" - + "on.proto\032\031google/protobuf/any.proto\032\034goo" - + "gle/api/annotations.proto\"\346\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\022[\n\025video_" - + "object_tracking\030\010 \001(\0132:.google.cloud.aut" - + "oml.v1beta1.VideoObjectTrackingAnnotatio" - + "nH\000\022P\n\017text_extraction\030\006 \001(\01325.google.cl" - + "oud.automl.v1beta1.TextExtractionAnnotat" - + "ionH\000\022N\n\016text_sentiment\030\007 \001(\01324.google.c" - + "loud.automl.v1beta1.TextSentimentAnnotat" - + "ionH\000\022?\n\006tables\030\n \001(\0132-.google.cloud.aut" - + "oml.v1beta1.TablesAnnotationH\000\022\032\n\022annota" - + "tion_spec_id\030\001 \001(\t\022\024\n\014display_name\030\005 \001(\t" - + "B\010\n\006detailB\245\001\n\037com.google.cloud.automl.v" - + "1beta1P\001ZAgoogle.golang.org/genproto/goo" - + "gleapis/cloud/automl/v1beta1;automl\312\002\033Go" - + "ogle\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Clou" - + "d::AutoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - 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(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor, - new java.lang.String[] { - "Translation", - "Classification", - "ImageObjectDetection", - "VideoClassification", - "VideoObjectTracking", - "TextExtraction", - "TextSentiment", - "Tables", - "AnnotationSpecId", - "DisplayName", - "Detail", - }); - 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(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java deleted file mode 100644 index ff959130e..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/annotation_spec.proto - -package com.google.cloud.automl.v1beta1; - -public final class AnnotationSpecOuterClass { - private AnnotationSpecOuterClass() {} - - 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_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; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/automl/v1beta1/annotation" - + "_spec.proto\022\033google.cloud.automl.v1beta1" - + "\032\031google/api/resource.proto\032\034google/api/" - + "annotations.proto\"\326\001\n\016AnnotationSpec\022\014\n\004" - + "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\025\n\rexam" - + "ple_count\030\t \001(\005:\210\001\352A\204\001\n$automl.googleapi" - + "s.com/AnnotationSpec\022\\projects/{project}" - + "/locations/{location}/datasets/{dataset}" - + "/annotationSpecs/{annotation_spec}B\245\001\n\037c" - + "om.google.cloud.automl.v1beta1P\001ZAgoogle" - + ".golang.org/genproto/googleapis/cloud/au" - + "toml/v1beta1;automl\312\002\033Google\\Cloud\\AutoM" - + "l\\V1beta1\352\002\036Google::Cloud::AutoML::V1bet" - + "a1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - 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.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java deleted file mode 100644 index 2a6ca3947..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java +++ /dev/null @@ -1,689 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public final class AutoMlProto { - private AutoMlProto() {} - - 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_CreateDatasetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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 - internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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 - internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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 - internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_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/service.pr" - + "oto\022\033google.cloud.automl.v1beta1\032\034google" - + "/api/annotations.proto\032\027google/api/clien" - + "t.proto\032\037google/api/field_behavior.proto" - + "\032\031google/api/resource.proto\0324google/clou" - + "d/automl/v1beta1/annotation_payload.prot" - + "o\0321google/cloud/automl/v1beta1/annotatio" - + "n_spec.proto\032-google/cloud/automl/v1beta" - + "1/column_spec.proto\032)google/cloud/automl" - + "/v1beta1/dataset.proto\032\'google/cloud/aut" - + "oml/v1beta1/image.proto\032$google/cloud/au" - + "toml/v1beta1/io.proto\032\'google/cloud/auto" - + "ml/v1beta1/model.proto\0322google/cloud/aut" - + "oml/v1beta1/model_evaluation.proto\032,goog" - + "le/cloud/automl/v1beta1/operations.proto" - + "\032,google/cloud/automl/v1beta1/table_spec" - + ".proto\032#google/longrunning/operations.pr" - + "oto\032 google/protobuf/field_mask.proto\"\215\001" - + "\n\024CreateDatasetRequest\0229\n\006parent\030\001 \001(\tB)" - + "\340A\002\372A#\n!locations.googleapis.com/Locatio" - + "n\022:\n\007dataset\030\002 \001(\0132$.google.cloud.automl" - + ".v1beta1.DatasetB\003\340A\002\"H\n\021GetDatasetReque" - + "st\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googlea" - + "pis.com/Dataset\"\207\001\n\023ListDatasetsRequest\022" - + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" - + "eapis.com/Location\022\016\n\006filter\030\003 \001(\t\022\021\n\tpa" - + "ge_size\030\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"g\n\024Lis" - + "tDatasetsResponse\0226\n\010datasets\030\001 \003(\0132$.go" - + "ogle.cloud.automl.v1beta1.Dataset\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"\203\001\n\024UpdateDatasetRequ" - + "est\022:\n\007dataset\030\001 \001(\0132$.google.cloud.auto" - + "ml.v1beta1.DatasetB\003\340A\002\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\"K\n\024Dele" - + "teDatasetRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035" - + "automl.googleapis.com/Dataset\"\215\001\n\021Import" - + "DataRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035autom" - + "l.googleapis.com/Dataset\022C\n\014input_config" - + "\030\003 \001(\0132(.google.cloud.automl.v1beta1.Inp" - + "utConfigB\003\340A\002\"\217\001\n\021ExportDataRequest\0223\n\004n" - + "ame\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleapis.com" - + "/Dataset\022E\n\routput_config\030\003 \001(\0132).google" - + ".cloud.automl.v1beta1.OutputConfigB\003\340A\002\"" - + "V\n\030GetAnnotationSpecRequest\022:\n\004name\030\001 \001(" - + "\tB,\340A\002\372A&\n$automl.googleapis.com/Annotat" - + "ionSpec\"|\n\023GetTableSpecRequest\0225\n\004name\030\001" - + " \001(\tB\'\340A\002\372A!\n\037automl.googleapis.com/Tabl" - + "eSpec\022.\n\nfield_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMask\"\265\001\n\025ListTableSpecsRequest\022" - + "5\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleap" - + "is.com/Dataset\022.\n\nfield_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMask\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\"n\n" - + "\026ListTableSpecsResponse\022;\n\013table_specs\030\001" - + " \003(\0132&.google.cloud.automl.v1beta1.Table" - + "Spec\022\027\n\017next_page_token\030\002 \001(\t\"\212\001\n\026Update" - + "TableSpecRequest\022?\n\ntable_spec\030\001 \001(\0132&.g" - + "oogle.cloud.automl.v1beta1.TableSpecB\003\340A" - + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" - + ".FieldMask\"~\n\024GetColumnSpecRequest\0226\n\004na" - + "me\030\001 \001(\tB(\340A\002\372A\"\n automl.googleapis.com/" - + "ColumnSpec\022.\n\nfield_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMask\"\270\001\n\026ListColumnSpecsRe" - + "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037automl.go" - + "ogleapis.com/TableSpec\022.\n\nfield_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMask\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\"q\n\027ListColumnSpecsResponse\022=\n\014colu" - + "mn_specs\030\001 \003(\0132\'.google.cloud.automl.v1b" - + "eta1.ColumnSpec\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\215\001\n\027UpdateColumnSpecRequest\022A\n\013column_s" - + "pec\030\001 \001(\0132\'.google.cloud.automl.v1beta1." - + "ColumnSpecB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMask\"\207\001\n\022CreateModel" - + "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locatio" - + "ns.googleapis.com/Location\0226\n\005model\030\004 \001(" - + "\0132\".google.cloud.automl.v1beta1.ModelB\003\340" - + "A\002\"D\n\017GetModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002" - + "\372A\035\n\033automl.googleapis.com/Model\"\205\001\n\021Lis" - + "tModelsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" - + "locations.googleapis.com/Location\022\016\n\006fil" - + "ter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_tok" - + "en\030\006 \001(\t\"`\n\022ListModelsResponse\0221\n\005model\030" - + "\001 \003(\0132\".google.cloud.automl.v1beta1.Mode" - + "l\022\027\n\017next_page_token\030\002 \001(\t\"G\n\022DeleteMode" - + "lRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.g" - + "oogleapis.com/Model\"\357\002\n\022DeployModelReque" - + "st\022\204\001\n0image_object_detection_model_depl" - + "oyment_metadata\030\002 \001(\0132H.google.cloud.aut" - + "oml.v1beta1.ImageObjectDetectionModelDep" - + "loymentMetadataH\000\022\201\001\n.image_classificati" - + "on_model_deployment_metadata\030\004 \001(\0132G.goo" - + "gle.cloud.automl.v1beta1.ImageClassifica" - + "tionModelDeploymentMetadataH\000\0221\n\004name\030\001 " - + "\001(\tB#\340A\002\372A\035\n\033automl.googleapis.com/Model" - + "B\033\n\031model_deployment_metadata\"I\n\024Undeplo" - + "yModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033aut" - + "oml.googleapis.com/Model\"\231\001\n\022ExportModel" - + "Request\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.go" - + "ogleapis.com/Model\022P\n\routput_config\030\003 \001(" - + "\01324.google.cloud.automl.v1beta1.ModelExp" - + "ortOutputConfigB\003\340A\002\"\261\001\n\036ExportEvaluated" - + "ExamplesRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033a" - + "utoml.googleapis.com/Model\022\\\n\routput_con" - + "fig\030\003 \001(\0132@.google.cloud.automl.v1beta1." - + "ExportEvaluatedExamplesOutputConfigB\003\340A\002" - + "\"X\n\031GetModelEvaluationRequest\022;\n\004name\030\001 " - + "\001(\tB-\340A\002\372A\'\n%automl.googleapis.com/Model" - + "Evaluation\"\211\001\n\033ListModelEvaluationsReque" - + "st\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googl" - + "eapis.com/Model\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\034ListMo" - + "delEvaluationsResponse\022F\n\020model_evaluati" - + "on\030\001 \003(\0132,.google.cloud.automl.v1beta1.M" - + "odelEvaluation\022\027\n\017next_page_token\030\002 \001(\t2" - + "\355\'\n\006AutoMl\022\275\001\n\rCreateDataset\0221.google.cl" - + "oud.automl.v1beta1.CreateDatasetRequest\032" - + "$.google.cloud.automl.v1beta1.Dataset\"S\202" - + "\323\344\223\002<\"1/v1beta1/{parent=projects/*/locat" - + "ions/*}/datasets:\007dataset\332A\016parent,datas" - + "et\022\244\001\n\nGetDataset\022..google.cloud.automl." - + "v1beta1.GetDatasetRequest\032$.google.cloud" - + ".automl.v1beta1.Dataset\"@\202\323\344\223\0023\0221/v1beta" - + "1/{name=projects/*/locations/*/datasets/" - + "*}\332A\004name\022\267\001\n\014ListDatasets\0220.google.clou" - + "d.automl.v1beta1.ListDatasetsRequest\0321.g" - + "oogle.cloud.automl.v1beta1.ListDatasetsR" - + "esponse\"B\202\323\344\223\0023\0221/v1beta1/{parent=projec" - + "ts/*/locations/*}/datasets\332A\006parent\022\276\001\n\r" - + "UpdateDataset\0221.google.cloud.automl.v1be" - + "ta1.UpdateDatasetRequest\032$.google.cloud." - + "automl.v1beta1.Dataset\"T\202\323\344\223\002D29/v1beta1" - + "/{dataset.name=projects/*/locations/*/da" - + "tasets/*}:\007dataset\332A\007dataset\022\320\001\n\rDeleteD" - + "ataset\0221.google.cloud.automl.v1beta1.Del" - + "eteDatasetRequest\032\035.google.longrunning.O" - + "peration\"m\202\323\344\223\0023*1/v1beta1/{name=project" - + "s/*/locations/*/datasets/*}\332A\004name\312A*\n\025g" - + "oogle.protobuf.Empty\022\021OperationMetadata\022" - + "\346\001\n\nImportData\022..google.cloud.automl.v1b" - + "eta1.ImportDataRequest\032\035.google.longrunn" - + "ing.Operation\"\210\001\202\323\344\223\002A\"/v1beta1/{n" - + "ame=projects/*/locations/*/datasets/*/ta" - + "bleSpecs/*}\332A\004name\022\312\001\n\016ListTableSpecs\0222." - + "google.cloud.automl.v1beta1.ListTableSpe" - + "csRequest\0323.google.cloud.automl.v1beta1." - + "ListTableSpecsResponse\"O\202\323\344\223\002@\022>/v1beta1" - + "/{parent=projects/*/locations/*/datasets" - + "/*}/tableSpecs\332A\006parent\022\332\001\n\017UpdateTableS" - + "pec\0223.google.cloud.automl.v1beta1.Update" - + "TableSpecRequest\032&.google.cloud.automl.v" - + "1beta1.TableSpec\"j\202\323\344\223\002W2I/v1beta1/{tabl" - + "e_spec.name=projects/*/locations/*/datas" - + "ets/*/tableSpecs/*}:\ntable_spec\332A\ntable_" - + "spec\022\310\001\n\rGetColumnSpec\0221.google.cloud.au" - + "toml.v1beta1.GetColumnSpecRequest\032\'.goog" - + "le.cloud.automl.v1beta1.ColumnSpec\"[\202\323\344\223" - + "\002N\022L/v1beta1/{name=projects/*/locations/" - + "*/datasets/*/tableSpecs/*/columnSpecs/*}" - + "\332A\004name\022\333\001\n\017ListColumnSpecs\0223.google.clo" - + "ud.automl.v1beta1.ListColumnSpecsRequest" - + "\0324.google.cloud.automl.v1beta1.ListColum" - + "nSpecsResponse\"]\202\323\344\223\002N\022L/v1beta1/{parent" - + "=projects/*/locations/*/datasets/*/table" - + "Specs/*}/columnSpecs\332A\006parent\022\356\001\n\020Update" - + "ColumnSpec\0224.google.cloud.automl.v1beta1" - + ".UpdateColumnSpecRequest\032\'.google.cloud." - + "automl.v1beta1.ColumnSpec\"{\202\323\344\223\002g2X/v1be" - + "ta1/{column_spec.name=projects/*/locatio" - + "ns/*/datasets/*/tableSpecs/*/columnSpecs" - + "/*}:\013column_spec\332A\013column_spec\022\311\001\n\013Creat" - + "eModel\022/.google.cloud.automl.v1beta1.Cre" - + "ateModelRequest\032\035.google.longrunning.Ope" - + "ration\"j\202\323\344\223\0028\"//v1beta1/{parent=project" - + "s/*/locations/*}/models:\005model\332A\014parent," - + "model\312A\032\n\005Model\022\021OperationMetadata\022\234\001\n\010G" - + "etModel\022,.google.cloud.automl.v1beta1.Ge" - + "tModelRequest\032\".google.cloud.automl.v1be" - + "ta1.Model\">\202\323\344\223\0021\022//v1beta1/{name=projec" - + "ts/*/locations/*/models/*}\332A\004name\022\257\001\n\nLi" - + "stModels\022..google.cloud.automl.v1beta1.L" - + "istModelsRequest\032/.google.cloud.automl.v" - + "1beta1.ListModelsResponse\"@\202\323\344\223\0021\022//v1be" - + "ta1/{parent=projects/*/locations/*}/mode" - + "ls\332A\006parent\022\312\001\n\013DeleteModel\022/.google.clo" - + "ud.automl.v1beta1.DeleteModelRequest\032\035.g" - + "oogle.longrunning.Operation\"k\202\323\344\223\0021*//v1" - + "beta1/{name=projects/*/locations/*/model" - + "s/*}\332A\004name\312A*\n\025google.protobuf.Empty\022\021O" - + "perationMetadata\022\324\001\n\013DeployModel\022/.googl" - + "e.cloud.automl.v1beta1.DeployModelReques" - + "t\032\035.google.longrunning.Operation\"u\202\323\344\223\002;" - + "\"6/v1beta1/{name=projects/*/locations/*/" - + "models/*}:deploy:\001*\332A\004name\312A*\n\025google.pr" - + "otobuf.Empty\022\021OperationMetadata\022\332\001\n\rUnde" - + "ployModel\0221.google.cloud.automl.v1beta1." - + "UndeployModelRequest\032\035.google.longrunnin" - + "g.Operation\"w\202\323\344\223\002=\"8/v1beta1/{name=proj" - + "ects/*/locations/*/models/*}:undeploy:\001*" - + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\022\343\001\n\013ExportModel\022/.google.cl" - + "oud.automl.v1beta1.ExportModelRequest\032\035." - + "google.longrunning.Operation\"\203\001\202\323\344\223\002;\"6/" - + "v1beta1/{name=projects/*/locations/*/mod" - + "els/*}:export:\001*\332A\022name,output_config\312A*" - + "\n\025google.protobuf.Empty\022\021OperationMetada" - + "ta\022\214\002\n\027ExportEvaluatedExamples\022;.google." - + "cloud.automl.v1beta1.ExportEvaluatedExam" - + "plesRequest\032\035.google.longrunning.Operati" - + "on\"\224\001\202\323\344\223\002L\"G/v1beta1/{name=projects/*/l" - + "ocations/*/models/*}:exportEvaluatedExam" - + "ples:\001*\332A\022name,output_config\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\022\315\001\n\022Ge" - + "tModelEvaluation\0226.google.cloud.automl.v" - + "1beta1.GetModelEvaluationRequest\032,.googl" - + "e.cloud.automl.v1beta1.ModelEvaluation\"Q" - + "\202\323\344\223\002D\022B/v1beta1/{name=projects/*/locati" - + "ons/*/models/*/modelEvaluations/*}\332A\004nam" - + "e\022\340\001\n\024ListModelEvaluations\0228.google.clou" - + "d.automl.v1beta1.ListModelEvaluationsReq" - + "uest\0329.google.cloud.automl.v1beta1.ListM" - + "odelEvaluationsResponse\"S\202\323\344\223\002D\022B/v1beta" - + "1/{parent=projects/*/locations/*/models/" - + "*}/modelEvaluations\332A\006parent\032I\312A\025automl." - + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformB\262\001\n\037com.google.c" - + "loud.automl.v1beta1B\013AutoMlProtoP\001ZAgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "automl/v1beta1;automl\312\002\033Google\\Cloud\\Aut" - + "oMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1b" - + "eta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor(), - com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.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(), - }); - internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor, - new java.lang.String[] { - "Parent", "Dataset", - }); - internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor, - new java.lang.String[] { - "Datasets", "NextPageToken", - }); - 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, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor = - 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, - new java.lang.String[] { - "Name", "InputConfig", - }); - internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor = - 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(17); - internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor, - new java.lang.String[] { - "Parent", "Model", - }); - internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor = - 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, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor = - 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, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor = - 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, - new java.lang.String[] { - "Model", "NextPageToken", - }); - internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor = - 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, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor = - 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[] { - "ImageObjectDetectionModelDeploymentMetadata", - "ImageClassificationModelDeploymentMetadata", - "Name", - "ModelDeploymentMetadata", - }); - internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor = - 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(26); - internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor = - 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, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor = - 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, - new java.lang.String[] { - "ModelEvaluation", "NextPageToken", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor(); - com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java deleted file mode 100644 index a8bac9cf2..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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\031go" - + "ogle/api/resource.proto\032,google/cloud/au" - + "toml/v1beta1/data_stats.proto\032,google/cl" - + "oud/automl/v1beta1/data_types.proto\032\034goo" - + "gle/api/annotations.proto\"\233\004\n\nColumnSpec" - + "\022\014\n\004name\030\001 \001(\t\0228\n\tdata_type\030\002 \001(\0132%.goog" - + "le.cloud.automl.v1beta1.DataType\022\024\n\014disp" - + "lay_name\030\003 \001(\t\022:\n\ndata_stats\030\004 \001(\0132&.goo" - + "gle.cloud.automl.v1beta1.DataStats\022X\n\026to" - + "p_correlated_columns\030\005 \003(\01328.google.clou" - + "d.automl.v1beta1.ColumnSpec.CorrelatedCo" - + "lumn\022\014\n\004etag\030\006 \001(\t\032t\n\020CorrelatedColumn\022\026" - + "\n\016column_spec_id\030\001 \001(\t\022H\n\021correlation_st" - + "ats\030\002 \001(\0132-.google.cloud.automl.v1beta1." - + "CorrelationStats:\224\001\352A\220\001\n automl.googleap" - + "is.com/ColumnSpec\022lprojects/{project}/lo" - + "cations/{location}/datasets/{dataset}/ta" - + "bleSpecs/{table_spec}/columnSpecs/{colum" - + "n_spec}B\245\001\n\037com.google.cloud.automl.v1be" - + "ta1P\001ZAgoogle.golang.org/genproto/google" - + "apis/cloud/automl/v1beta1;automl\312\002\033Googl" - + "e\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::" - + "AutoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(), - com.google.cloud.automl.v1beta1.DataTypes.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(); - com.google.cloud.automl.v1beta1.DataTypes.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java deleted file mode 100644 index edca46515..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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; - * - * @return The cramersV. - */ - double getCramersV(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java deleted file mode 100644 index bad2a23f5..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface CreateDatasetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CreateDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the project to create the dataset for.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name of the project to create the dataset for.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The dataset to create.
-   * 
- * - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the dataset field is set. - */ - boolean hasDataset(); - /** - * - * - *
-   * Required. The dataset to create.
-   * 
- * - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dataset. - */ - com.google.cloud.automl.v1beta1.Dataset getDataset(); - /** - * - * - *
-   * Required. The dataset to create.
-   * 
- * - * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java deleted file mode 100644 index 6887f797e..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/operations.proto - -package com.google.cloud.automl.v1beta1; - -public interface CreateModelOperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CreateModelOperationMetadata) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java deleted file mode 100644 index 6a543997e..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/data_items.proto - -package com.google.cloud.automl.v1beta1; - -public final class DataItems { - private DataItems() {} - - 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_Image_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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_DocumentDimensions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_DocumentDimensions_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_Document_Layout_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_Document_Layout_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 - internal_static_google_cloud_automl_v1beta1_ExamplePayload_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_items" - + ".proto\022\033google.cloud.automl.v1beta1\032*goo" - + "gle/cloud/automl/v1beta1/geometry.proto\032" - + "$google/cloud/automl/v1beta1/io.proto\032*g" - + "oogle/cloud/automl/v1beta1/temporal.prot" - + "o\032.google/cloud/automl/v1beta1/text_segm" - + "ent.proto\032\031google/protobuf/any.proto\032\036go" - + "ogle/protobuf/duration.proto\032\034google/pro" - + "tobuf/struct.proto\032\034google/api/annotatio" - + "ns.proto\"\177\n\005Image\022\025\n\013image_bytes\030\001 \001(\014H\000" - + "\022@\n\014input_config\030\006 \001(\0132(.google.cloud.au" - + "toml.v1beta1.InputConfigH\000\022\025\n\rthumbnail_" - + "uri\030\004 \001(\tB\006\n\004data\"F\n\013TextSnippet\022\017\n\007cont" - + "ent\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\022\023\n\013content_" - + "uri\030\004 \001(\t\"\357\001\n\022DocumentDimensions\022S\n\004unit" - + "\030\001 \001(\0162E.google.cloud.automl.v1beta1.Doc" - + "umentDimensions.DocumentDimensionUnit\022\r\n" - + "\005width\030\002 \001(\002\022\016\n\006height\030\003 \001(\002\"e\n\025Document" - + "DimensionUnit\022\'\n#DOCUMENT_DIMENSION_UNIT" - + "_UNSPECIFIED\020\000\022\010\n\004INCH\020\001\022\016\n\nCENTIMETER\020\002" - + "\022\t\n\005POINT\020\003\"\371\005\n\010Document\022F\n\014input_config" - + "\030\001 \001(\01320.google.cloud.automl.v1beta1.Doc" - + "umentInputConfig\022?\n\rdocument_text\030\002 \001(\0132" - + "(.google.cloud.automl.v1beta1.TextSnippe" - + "t\022<\n\006layout\030\003 \003(\0132,.google.cloud.automl." - + "v1beta1.Document.Layout\022L\n\023document_dime" - + "nsions\030\004 \001(\0132/.google.cloud.automl.v1bet" - + "a1.DocumentDimensions\022\022\n\npage_count\030\005 \001(" - + "\005\032\303\003\n\006Layout\022>\n\014text_segment\030\001 \001(\0132(.goo" - + "gle.cloud.automl.v1beta1.TextSegment\022\023\n\013" - + "page_number\030\002 \001(\005\022@\n\rbounding_poly\030\003 \001(\013" - + "2).google.cloud.automl.v1beta1.BoundingP" - + "oly\022W\n\021text_segment_type\030\004 \001(\0162<.google." - + "cloud.automl.v1beta1.Document.Layout.Tex" - + "tSegmentType\"\310\001\n\017TextSegmentType\022!\n\035TEXT" - + "_SEGMENT_TYPE_UNSPECIFIED\020\000\022\t\n\005TOKEN\020\001\022\r" - + "\n\tPARAGRAPH\020\002\022\016\n\nFORM_FIELD\020\003\022\023\n\017FORM_FI" - + "ELD_NAME\020\004\022\027\n\023FORM_FIELD_CONTENTS\020\005\022\t\n\005T" - + "ABLE\020\006\022\020\n\014TABLE_HEADER\020\007\022\r\n\tTABLE_ROW\020\010\022" - + "\016\n\nTABLE_CELL\020\t\"F\n\003Row\022\027\n\017column_spec_id" - + "s\030\002 \003(\t\022&\n\006values\030\003 \003(\0132\026.google.protobu" - + "f.Value\"\376\001\n\016ExamplePayload\0223\n\005image\030\001 \001(" - + "\0132\".google.cloud.automl.v1beta1.ImageH\000\022" - + "@\n\014text_snippet\030\002 \001(\0132(.google.cloud.aut" - + "oml.v1beta1.TextSnippetH\000\0229\n\010document\030\004 " - + "\001(\0132%.google.cloud.automl.v1beta1.Docume" - + "ntH\000\022/\n\003row\030\003 \001(\0132 .google.cloud.automl." - + "v1beta1.RowH\000B\t\n\007payloadB\245\001\n\037com.google." - + "cloud.automl.v1beta1P\001ZAgoogle.golang.or" - + "g/genproto/googleapis/cloud/automl/v1bet" - + "a1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352" - + "\002\036Google::Cloud::AutoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.Geometry.getDescriptor(), - com.google.cloud.automl.v1beta1.Io.getDescriptor(), - com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), - com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_Image_descriptor, - new java.lang.String[] { - "ImageBytes", "InputConfig", "ThumbnailUri", "Data", - }); - internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor, - new java.lang.String[] { - "Content", "MimeType", "ContentUri", - }); - internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor, - new java.lang.String[] { - "Unit", "Width", "Height", - }); - internal_static_google_cloud_automl_v1beta1_Document_descriptor = - getDescriptor().getMessageTypes().get(3); - 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", "DocumentText", "Layout", "DocumentDimensions", "PageCount", - }); - internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor = - internal_static_google_cloud_automl_v1beta1_Document_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_automl_v1beta1_Document_Layout_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor, - new java.lang.String[] { - "TextSegment", "PageNumber", "BoundingPoly", "TextSegmentType", - }); - internal_static_google_cloud_automl_v1beta1_Row_descriptor = - getDescriptor().getMessageTypes().get(4); - 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(5); - 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", "Document", "Row", "Payload", - }); - com.google.cloud.automl.v1beta1.Geometry.getDescriptor(); - com.google.cloud.automl.v1beta1.Io.getDescriptor(); - com.google.cloud.automl.v1beta1.Temporal.getDescriptor(); - com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java deleted file mode 100644 index c5c3fd490..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java +++ /dev/null @@ -1,297 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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\"\375\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(\003\022\031\n\021valid_value_cou" - + "nt\030\t \001(\003B\007\n\005stats\"\335\001\n\014Float64Stats\022\014\n\004me" - + "an\030\001 \001(\001\022\032\n\022standard_deviation\030\002 \001(\001\022\021\n\t" - + "quantiles\030\003 \003(\001\022T\n\021histogram_buckets\030\004 \003" - + "(\01329.google.cloud.automl.v1beta1.Float64" - + "Stats.HistogramBucket\032:\n\017HistogramBucket" - + "\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_unigram_stats\030\001" - + " \003(\01325.google.cloud.automl.v1beta1.Strin" - + "gStats.UnigramStats\032,\n\014UnigramStats\022\r\n\005v" - + "alue\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"\364\002\n\016TimestampS" - + "tats\022V\n\016granular_stats\030\001 \003(\0132>.google.cl" - + "oud.automl.v1beta1.TimestampStats.Granul" - + "arStatsEntry\032\230\001\n\rGranularStats\022W\n\007bucket" - + "s\030\001 \003(\0132F.google.cloud.automl.v1beta1.Ti" - + "mestampStats.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\022GranularStatsEntry\022\013\n\003key\030\001 \001" - + "(\t\022H\n\005value\030\002 \001(\01329.google.cloud.automl." - + "v1beta1.TimestampStats.GranularStats:\0028\001" - + "\"J\n\nArrayStats\022<\n\014member_stats\030\002 \001(\0132&.g" - + "oogle.cloud.automl.v1beta1.DataStats\"\267\001\n" - + "\013StructStats\022M\n\013field_stats\030\001 \003(\01328.goog" - + "le.cloud.automl.v1beta1.StructStats.Fiel" - + "dStatsEntry\032Y\n\017FieldStatsEntry\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\rCategoryStats" - + "\022Z\n\022top_category_stats\030\001 \003(\0132>.google.cl" - + "oud.automl.v1beta1.CategoryStats.SingleC" - + "ategoryStats\0323\n\023SingleCategoryStats\022\r\n\005v" - + "alue\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"%\n\020Correlation" - + "Stats\022\021\n\tcramers_v\030\001 \001(\001B\245\001\n\037com.google." - + "cloud.automl.v1beta1P\001ZAgoogle.golang.or" - + "g/genproto/googleapis/cloud/automl/v1bet" - + "a1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352" - + "\002\036Google::Cloud::AutoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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", - "ValidValueCount", - "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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java deleted file mode 100644 index bccecd06e..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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\"\374\001\n\010DataType\022B" - + "\n\021list_element_type\030\002 \001(\0132%.google.cloud" - + ".automl.v1beta1.DataTypeH\000\022>\n\013struct_typ" - + "e\030\003 \001(\0132\'.google.cloud.automl.v1beta1.St" - + "ructTypeH\000\022\025\n\013time_format\030\005 \001(\tH\000\0228\n\ttyp" - + "e_code\030\001 \001(\0162%.google.cloud.automl.v1bet" - + "a1.TypeCode\022\020\n\010nullable\030\004 \001(\010B\t\n\007details" - + "\"\247\001\n\nStructType\022C\n\006fields\030\001 \003(\01323.google" - + ".cloud.automl.v1beta1.StructType.FieldsE" - + "ntry\032T\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0224\n\005valu" - + "e\030\002 \001(\0132%.google.cloud.automl.v1beta1.Da" - + "taType:\0028\001*r\n\010TypeCode\022\031\n\025TYPE_CODE_UNSP" - + "ECIFIED\020\000\022\013\n\007FLOAT64\020\003\022\r\n\tTIMESTAMP\020\004\022\n\n" - + "\006STRING\020\006\022\t\n\005ARRAY\020\010\022\n\n\006STRUCT\020\t\022\014\n\010CATE" - + "GORY\020\nB\245\001\n\037com.google.cloud.automl.v1bet" - + "a1P\001ZAgoogle.golang.org/genproto/googlea" - + "pis/cloud/automl/v1beta1;automl\312\002\033Google" - + "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" - + "utoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java deleted file mode 100644 index fa5f11186..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/dataset.proto - -package com.google.cloud.automl.v1beta1; - -public final class DatasetOuterClass { - private DatasetOuterClass() {} - - 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_Dataset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_Dataset_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/dataset.pr" - + "oto\022\033google.cloud.automl.v1beta1\032\031google" - + "/api/resource.proto\032\'google/cloud/automl" - + "/v1beta1/image.proto\032(google/cloud/autom" - + "l/v1beta1/tables.proto\032&google/cloud/aut" - + "oml/v1beta1/text.proto\032-google/cloud/aut" - + "oml/v1beta1/translation.proto\032\'google/cl" - + "oud/automl/v1beta1/video.proto\032\037google/p" - + "rotobuf/timestamp.proto\032\034google/api/anno" - + "tations.proto\"\316\t\n\007Dataset\022_\n\034translation" - + "_dataset_metadata\030\027 \001(\01327.google.cloud.a" - + "utoml.v1beta1.TranslationDatasetMetadata" - + "H\000\022p\n%image_classification_dataset_metad" - + "ata\030\030 \001(\0132?.google.cloud.automl.v1beta1." - + "ImageClassificationDatasetMetadataH\000\022n\n$" - + "text_classification_dataset_metadata\030\031 \001" - + "(\0132>.google.cloud.automl.v1beta1.TextCla" - + "ssificationDatasetMetadataH\000\022s\n\'image_ob" - + "ject_detection_dataset_metadata\030\032 \001(\0132@." - + "google.cloud.automl.v1beta1.ImageObjectD" - + "etectionDatasetMetadataH\000\022p\n%video_class" - + "ification_dataset_metadata\030\037 \001(\0132?.googl" - + "e.cloud.automl.v1beta1.VideoClassificati" - + "onDatasetMetadataH\000\022q\n&video_object_trac" - + "king_dataset_metadata\030\035 \001(\0132?.google.clo" - + "ud.automl.v1beta1.VideoObjectTrackingDat" - + "asetMetadataH\000\022f\n text_extraction_datase" - + "t_metadata\030\034 \001(\0132:.google.cloud.automl.v" - + "1beta1.TextExtractionDatasetMetadataH\000\022d" - + "\n\037text_sentiment_dataset_metadata\030\036 \001(\0132" - + "9.google.cloud.automl.v1beta1.TextSentim" - + "entDatasetMetadataH\000\022U\n\027tables_dataset_m" - + "etadata\030! \001(\01322.google.cloud.automl.v1be" - + "ta1.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_ti" - + "me\030\016 \001(\0132\032.google.protobuf.Timestamp\022\014\n\004" - + "etag\030\021 \001(\t:^\352A[\n\035automl.googleapis.com/D" - + "ataset\022:projects/{project}/locations/{lo" - + "cation}/datasets/{dataset}B\022\n\020dataset_me" - + "tadataB\245\001\n\037com.google.cloud.automl.v1bet" - + "a1P\001ZAgoogle.golang.org/genproto/googlea" - + "pis/cloud/automl/v1beta1;automl\312\002\033Google" - + "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" - + "utoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.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(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_Dataset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_Dataset_descriptor, - new java.lang.String[] { - "TranslationDatasetMetadata", - "ImageClassificationDatasetMetadata", - "TextClassificationDatasetMetadata", - "ImageObjectDetectionDatasetMetadata", - "VideoClassificationDatasetMetadata", - "VideoObjectTrackingDatasetMetadata", - "TextExtractionDatasetMetadata", - "TextSentimentDatasetMetadata", - "TablesDatasetMetadata", - "Name", - "DisplayName", - "Description", - "ExampleCount", - "CreateTime", - "Etag", - "DatasetMetadata", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.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(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java deleted file mode 100644 index ae1b89874..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface DeleteDatasetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeleteDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the dataset to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the dataset to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java deleted file mode 100644 index 3e0f039f4..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface DeleteModelRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeleteModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the model being deleted.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the model being deleted.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java deleted file mode 100644 index ad727f290..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java deleted file mode 100644 index b0d95bc95..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java deleted file mode 100644 index 3394982ce..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface DeployModelRequestOrBuilder - extends - // @@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; - * - * - * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. - */ - boolean hasImageObjectDetectionModelDeploymentMetadata(); - /** - * - * - *
-   * Model deployment metadata specific to Image Object Detection.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * - * - * @return The imageObjectDetectionModelDeploymentMetadata. - */ - 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(); - - /** - * - * - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * - * @return Whether the imageClassificationModelDeploymentMetadata field is set. - */ - boolean hasImageClassificationModelDeploymentMetadata(); - /** - * - * - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - * - * @return The imageClassificationModelDeploymentMetadata. - */ - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata - getImageClassificationModelDeploymentMetadata(); - /** - * - * - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * - */ - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder - getImageClassificationModelDeploymentMetadataOrBuilder(); - - /** - * - * - *
-   * Required. Resource name of the model to deploy.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the model to deploy.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - public com.google.cloud.automl.v1beta1.DeployModelRequest.ModelDeploymentMetadataCase - getModelDeploymentMetadataCase(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java deleted file mode 100644 index eee627884..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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_VideoObjectTrackingAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_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*goog" - + "le/cloud/automl/v1beta1/geometry.proto\032\036" - + "google/protobuf/duration.proto\032\034google/a" - + "pi/annotations.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\"\264\001\n\035VideoObjectTrackingAn" - + "notation\022\023\n\013instance_id\030\001 \001(\t\022.\n\013time_of" - + "fset\030\002 \001(\0132\031.google.protobuf.Duration\022?\n" - + "\014bounding_box\030\003 \001(\0132).google.cloud.autom" - + "l.v1beta1.BoundingPoly\022\r\n\005score\030\004 \001(\002\"\256\002" - + "\n\027BoundingBoxMetricsEntry\022\025\n\riou_thresho" - + "ld\030\001 \001(\002\022\036\n\026mean_average_precision\030\002 \001(\002" - + "\022o\n\032confidence_metrics_entries\030\003 \003(\0132K.g" - + "oogle.cloud.automl.v1beta1.BoundingBoxMe" - + "tricsEntry.ConfidenceMetricsEntry\032k\n\026Con" - + "fidenceMetricsEntry\022\034\n\024confidence_thresh" - + "old\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%ImageObjectDe" - + "tectionEvaluationMetrics\022$\n\034evaluated_bo" - + "unding_box_count\030\001 \001(\005\022Z\n\034bounding_box_m" - + "etrics_entries\030\002 \003(\01324.google.cloud.auto" - + "ml.v1beta1.BoundingBoxMetricsEntry\022+\n#bo" - + "unding_box_mean_average_precision\030\003 \001(\002\"" - + "\364\001\n$VideoObjectTrackingEvaluationMetrics" - + "\022\035\n\025evaluated_frame_count\030\001 \001(\005\022$\n\034evalu" - + "ated_bounding_box_count\030\002 \001(\005\022Z\n\034boundin" - + "g_box_metrics_entries\030\004 \003(\01324.google.clo" - + "ud.automl.v1beta1.BoundingBoxMetricsEntr" - + "y\022+\n#bounding_box_mean_average_precision" - + "\030\006 \001(\002B\245\001\n\037com.google.cloud.automl.v1bet" - + "a1P\001ZAgoogle.golang.org/genproto/googlea" - + "pis/cloud/automl/v1beta1;automl\312\002\033Google" - + "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" - + "utoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.Geometry.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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_VideoObjectTrackingAnnotation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor, - new java.lang.String[] { - "InstanceId", "TimeOffset", "BoundingBox", "Score", - }); - internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor = - getDescriptor().getMessageTypes().get(2); - 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(3); - 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", - }); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor, - new java.lang.String[] { - "EvaluatedFrameCount", - "EvaluatedBoundingBoxCount", - "BoundingBoxMetricsEntries", - "BoundingBoxMeanAveragePrecision", - }); - com.google.cloud.automl.v1beta1.Geometry.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java deleted file mode 100644 index ba891fc3e..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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; - * - * @return The start. - */ - double getStart(); - - /** - * - * - *
-   * End of the range, exclusive.
-   * 
- * - * double end = 2; - * - * @return The end. - */ - double getEnd(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java deleted file mode 100644 index 00325c144..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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; - * - * - * @return Whether the outputInfo field is set. - */ - boolean hasOutputInfo(); - /** - * - * - *
-   * Output only. Information further describing this export data's output.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * - * - * @return The outputInfo. - */ - 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java deleted file mode 100644 index 2b3880ab4..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface ExportDataRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the dataset.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the dataset.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The desired output location.
-   * 
- * - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - * - * - *
-   * Required. The desired output location.
-   * 
- * - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The outputConfig. - */ - com.google.cloud.automl.v1beta1.OutputConfig getOutputConfig(); - /** - * - * - *
-   * Required. The desired output location.
-   * 
- * - * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java deleted file mode 100644 index 6a666090e..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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; - * - * - * @return Whether the outputInfo field is set. - */ - boolean hasOutputInfo(); - /** - * - * - *
-   * Output only. Information further describing the output of this evaluated
-   * examples export.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; - * - * - * @return The outputInfo. - */ - 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java deleted file mode 100644 index ad8a02cb8..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the model whose evaluated examples are to
-   * be exported.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The desired output location and configuration.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - * - * - *
-   * Required. The desired output location and configuration.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The outputConfig. - */ - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig(); - /** - * - * - *
-   * Required. The desired output location and configuration.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder - getOutputConfigOrBuilder(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java deleted file mode 100644 index 1b0259539..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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; - * - * - * @return Whether the outputInfo field is set. - */ - boolean hasOutputInfo(); - /** - * - * - *
-   * Output only. Information further describing the output of this model
-   * export.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * - * - * @return The outputInfo. - */ - 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java deleted file mode 100644 index dfff31450..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the model to export.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The desired output location and configuration.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - * - * - *
-   * Required. The desired output location and configuration.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The outputConfig. - */ - com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig(); - /** - * - * - *
-   * Required. The desired output location and configuration.
-   * 
- * - * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java deleted file mode 100644 index e85401c2e..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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\245\001" - + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" - + "toMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1" - + "beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java deleted file mode 100644 index 580d815e0..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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 { - - /** - * - * - *
-   * Required. The resource name of the annotation spec to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the annotation spec to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java deleted file mode 100644 index 01ff1b52c..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface GetDatasetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the dataset to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the dataset to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java deleted file mode 100644 index 81798b30a..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface GetModelEvaluationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetModelEvaluationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name for the model evaluation.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name for the model evaluation.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java deleted file mode 100644 index 92e67a6df..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface GetModelRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the model.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the model.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java deleted file mode 100644 index e2daa6796..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java deleted file mode 100644 index e12717b18..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/image.proto - -package com.google.cloud.automl.v1beta1; - -public final class ImageProto { - private ImageProto() {} - - 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_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_ImageClassificationModelDeploymentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_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; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/automl/v1beta1/image.prot" - + "o\022\033google.cloud.automl.v1beta1\032\031google/a" - + "pi/resource.proto\0321google/cloud/automl/v" - + "1beta1/annotation_spec.proto\0320google/clo" - + "ud/automl/v1beta1/classification.proto\032\037" - + "google/protobuf/timestamp.proto\032\034google/" - + "api/annotations.proto\"r\n\"ImageClassifica" - + "tionDatasetMetadata\022L\n\023classification_ty" - + "pe\030\001 \001(\0162/.google.cloud.automl.v1beta1.C" - + "lassificationType\"%\n#ImageObjectDetectio" - + "nDatasetMetadata\"\262\001\n ImageClassification" - + "ModelMetadata\022\025\n\rbase_model_id\030\001 \001(\t\022\024\n\014" - + "train_budget\030\002 \001(\003\022\022\n\ntrain_cost\030\003 \001(\003\022\023" - + "\n\013stop_reason\030\005 \001(\t\022\022\n\nmodel_type\030\007 \001(\t\022" - + "\020\n\010node_qps\030\r \001(\001\022\022\n\nnode_count\030\016 \001(\003\"\276\001" - + "\n!ImageObjectDetectionModelMetadata\022\022\n\nm" - + "odel_type\030\001 \001(\t\022\022\n\nnode_count\030\003 \001(\003\022\020\n\010n" - + "ode_qps\030\004 \001(\001\022\023\n\013stop_reason\030\005 \001(\t\022%\n\035tr" - + "ain_budget_milli_node_hours\030\006 \001(\003\022#\n\033tra" - + "in_cost_milli_node_hours\030\007 \001(\003\"@\n*ImageC" - + "lassificationModelDeploymentMetadata\022\022\n\n" - + "node_count\030\001 \001(\003\"A\n+ImageObjectDetection" - + "ModelDeploymentMetadata\022\022\n\nnode_count\030\001 " - + "\001(\003B\261\001\n\037com.google.cloud.automl.v1beta1B" - + "\nImageProtoP\001ZAgoogle.golang.org/genprot" - + "o/googleapis/cloud/automl/v1beta1;automl" - + "\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Google:" - + ":Cloud::AutoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.getDescriptor(), - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor, - new java.lang.String[] { - "ClassificationType", - }); - 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", - "ModelType", - "NodeQps", - "NodeCount", - }); - 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", - "StopReason", - "TrainBudgetMilliNodeHours", - "TrainCostMilliNodeHours", - }); - internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor, - new java.lang.String[] { - "NodeCount", - }); - internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - 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.ResourceProto.getDescriptor(); - com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.getDescriptor(); - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java deleted file mode 100644 index 95a58a64a..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java deleted file mode 100644 index 3cdc3fbe0..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface ImportDataRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImportDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Dataset name. Dataset must already exist. All imported
-   * annotations and examples will be added.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Dataset name. Dataset must already exist. All imported
-   * annotations and examples will be added.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the inputConfig field is set. - */ - boolean hasInputConfig(); - /** - * - * - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The inputConfig. - */ - com.google.cloud.automl.v1beta1.InputConfig getInputConfig(); - /** - * - * - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java deleted file mode 100644 index 46f7c67fe..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java +++ /dev/null @@ -1,267 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/io.proto - -package com.google.cloud.automl.v1beta1; - -public final class Io { - private Io() {} - - 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_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; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n$google/cloud/automl/v1beta1/io.proto\022\033" - + "google.cloud.automl.v1beta1\032\034google/api/" - + "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\245\001\n\037com.google.cloud.automl.v1beta1" - + "P\001ZAgoogle.golang.org/genproto/googleapi" - + "s/cloud/automl/v1beta1;automl\312\002\033Google\\C" - + "loud\\AutoMl\\V1beta1\352\002\036Google::Cloud::Aut" - + "oML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "BigquerySource", "Params", "Source", - }); - 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", "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(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(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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java deleted file mode 100644 index c86e09bb8..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/model_evaluation.proto - -package com.google.cloud.automl.v1beta1; - -public final class ModelEvaluationOuterClass { - private ModelEvaluationOuterClass() {} - - 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_ModelEvaluation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/automl/v1beta1/model_eval" - + "uation.proto\022\033google.cloud.automl.v1beta" - + "1\032\031google/api/resource.proto\0320google/clo" - + "ud/automl/v1beta1/classification.proto\032+" - + "google/cloud/automl/v1beta1/detection.pr" - + "oto\032,google/cloud/automl/v1beta1/regress" - + "ion.proto\032(google/cloud/automl/v1beta1/t" - + "ables.proto\0321google/cloud/automl/v1beta1" - + "/text_extraction.proto\0320google/cloud/aut" - + "oml/v1beta1/text_sentiment.proto\032-google" - + "/cloud/automl/v1beta1/translation.proto\032" - + "\037google/protobuf/timestamp.proto\032\034google" - + "/api/annotations.proto\"\261\010\n\017ModelEvaluati" - + "on\022i\n!classification_evaluation_metrics\030" - + "\010 \001(\0132<.google.cloud.automl.v1beta1.Clas" - + "sificationEvaluationMetricsH\000\022a\n\035regress" - + "ion_evaluation_metrics\030\030 \001(\01328.google.cl" - + "oud.automl.v1beta1.RegressionEvaluationM" - + "etricsH\000\022c\n\036translation_evaluation_metri" - + "cs\030\t \001(\01329.google.cloud.automl.v1beta1.T" - + "ranslationEvaluationMetricsH\000\022w\n)image_o" - + "bject_detection_evaluation_metrics\030\014 \001(\013" - + "2B.google.cloud.automl.v1beta1.ImageObje" - + "ctDetectionEvaluationMetricsH\000\022u\n(video_" - + "object_tracking_evaluation_metrics\030\016 \001(\013" - + "2A.google.cloud.automl.v1beta1.VideoObje" - + "ctTrackingEvaluationMetricsH\000\022h\n!text_se" - + "ntiment_evaluation_metrics\030\013 \001(\0132;.googl" - + "e.cloud.automl.v1beta1.TextSentimentEval" - + "uationMetricsH\000\022j\n\"text_extraction_evalu" - + "ation_metrics\030\r \001(\0132<.google.cloud.autom" - + "l.v1beta1.TextExtractionEvaluationMetric" - + "sH\000\022\014\n\004name\030\001 \001(\t\022\032\n\022annotation_spec_id\030" - + "\002 \001(\t\022\024\n\014display_name\030\017 \001(\t\022/\n\013create_ti" - + "me\030\005 \001(\0132\032.google.protobuf.Timestamp\022\037\n\027" - + "evaluated_example_count\030\006 \001(\005:\207\001\352A\203\001\n%au" - + "toml.googleapis.com/ModelEvaluation\022Zpro" - + "jects/{project}/locations/{location}/mod" - + "els/{model}/modelEvaluations/{model_eval" - + "uation}B\t\n\007metricsB\245\001\n\037com.google.cloud." - + "automl.v1beta1P\001ZAgoogle.golang.org/genp" - + "roto/googleapis/cloud/automl/v1beta1;aut" - + "oml\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Goog" - + "le::Cloud::AutoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.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(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor, - new java.lang.String[] { - "ClassificationEvaluationMetrics", - "RegressionEvaluationMetrics", - "TranslationEvaluationMetrics", - "ImageObjectDetectionEvaluationMetrics", - "VideoObjectTrackingEvaluationMetrics", - "TextSentimentEvaluationMetrics", - "TextExtractionEvaluationMetrics", - "Name", - "AnnotationSpecId", - "DisplayName", - "CreateTime", - "EvaluatedExampleCount", - "Metrics", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.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(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java deleted file mode 100644 index 5fa242df7..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/model.proto - -package com.google.cloud.automl.v1beta1; - -public final class ModelOuterClass { - private ModelOuterClass() {} - - 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_Model_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_Model_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/model.prot" - + "o\022\033google.cloud.automl.v1beta1\032\031google/a" - + "pi/resource.proto\032\'google/cloud/automl/v" - + "1beta1/image.proto\032(google/cloud/automl/" - + "v1beta1/tables.proto\032&google/cloud/autom" - + "l/v1beta1/text.proto\032-google/cloud/autom" - + "l/v1beta1/translation.proto\032\'google/clou" - + "d/automl/v1beta1/video.proto\032\037google/pro" - + "tobuf/timestamp.proto\032\034google/api/annota" - + "tions.proto\"\314\n\n\005Model\022[\n\032translation_mod" - + "el_metadata\030\017 \001(\01325.google.cloud.automl." - + "v1beta1.TranslationModelMetadataH\000\022l\n#im" - + "age_classification_model_metadata\030\r \001(\0132" - + "=.google.cloud.automl.v1beta1.ImageClass" - + "ificationModelMetadataH\000\022j\n\"text_classif" - + "ication_model_metadata\030\016 \001(\0132<.google.cl" - + "oud.automl.v1beta1.TextClassificationMod" - + "elMetadataH\000\022o\n%image_object_detection_m" - + "odel_metadata\030\024 \001(\0132>.google.cloud.autom" - + "l.v1beta1.ImageObjectDetectionModelMetad" - + "ataH\000\022l\n#video_classification_model_meta" - + "data\030\027 \001(\0132=.google.cloud.automl.v1beta1" - + ".VideoClassificationModelMetadataH\000\022m\n$v" - + "ideo_object_tracking_model_metadata\030\025 \001(" - + "\0132=.google.cloud.automl.v1beta1.VideoObj" - + "ectTrackingModelMetadataH\000\022b\n\036text_extra" - + "ction_model_metadata\030\023 \001(\01328.google.clou" - + "d.automl.v1beta1.TextExtractionModelMeta" - + "dataH\000\022Q\n\025tables_model_metadata\030\030 \001(\01320." - + "google.cloud.automl.v1beta1.TablesModelM" - + "etadataH\000\022`\n\035text_sentiment_model_metada" - + "ta\030\026 \001(\01327.google.cloud.automl.v1beta1.T" - + "extSentimentModelMetadataH\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.protob" - + "uf.Timestamp\022/\n\013update_time\030\013 \001(\0132\032.goog" - + "le.protobuf.Timestamp\022L\n\020deployment_stat" - + "e\030\010 \001(\01622.google.cloud.automl.v1beta1.Mo" - + "del.DeploymentState\"Q\n\017DeploymentState\022 " - + "\n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\014\n\010DEPL" - + "OYED\020\001\022\016\n\nUNDEPLOYED\020\002:X\352AU\n\033automl.goog" - + "leapis.com/Model\0226projects/{project}/loc" - + "ations/{location}/models/{model}B\020\n\016mode" - + "l_metadataB\245\001\n\037com.google.cloud.automl.v" - + "1beta1P\001ZAgoogle.golang.org/genproto/goo" - + "gleapis/cloud/automl/v1beta1;automl\312\002\033Go" - + "ogle\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Clou" - + "d::AutoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.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(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_Model_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_Model_descriptor, - new java.lang.String[] { - "TranslationModelMetadata", - "ImageClassificationModelMetadata", - "TextClassificationModelMetadata", - "ImageObjectDetectionModelMetadata", - "VideoClassificationModelMetadata", - "VideoObjectTrackingModelMetadata", - "TextExtractionModelMetadata", - "TablesModelMetadata", - "TextSentimentModelMetadata", - "Name", - "DisplayName", - "DatasetId", - "CreateTime", - "UpdateTime", - "DeploymentState", - "ModelMetadata", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.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(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java deleted file mode 100644 index cef427423..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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; - * - * @return The x. - */ - float getX(); - - /** - * - * - *
-   * Required. Vertical coordinate.
-   * 
- * - * float y = 2; - * - * @return The y. - */ - float getY(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java deleted file mode 100644 index ed65a2044..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java +++ /dev/null @@ -1,309 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/operations.proto - -package com.google.cloud.automl.v1beta1; - -public final class Operations { - private Operations() {} - - 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_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; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/automl/v1beta1/operations" - + ".proto\022\033google.cloud.automl.v1beta1\032$goo" - + "gle/cloud/automl/v1beta1/io.proto\032\'googl" - + "e/cloud/automl/v1beta1/model.proto\0322goog" - + "le/cloud/automl/v1beta1/model_evaluation" - + ".proto\032\033google/protobuf/empty.proto\032\037goo" - + "gle/protobuf/timestamp.proto\032\027google/rpc" - + "/status.proto\032\034google/api/annotations.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\245\001\n" - + "\037com.google.cloud.automl.v1beta1P\001ZAgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "automl/v1beta1;automl\312\002\033Google\\Cloud\\Aut" - + "oMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1b" - + "eta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - 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(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_OperationMetadata_fieldAccessorTable = - 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_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.cloud.automl.v1beta1.Io.getDescriptor(); - com.google.cloud.automl.v1beta1.ModelOuterClass.getDescriptor(); - com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java deleted file mode 100644 index 6e6131562..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/prediction_service.proto - -package com.google.cloud.automl.v1beta1; - -public final class PredictionServiceProto { - private PredictionServiceProto() {} - - 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_PredictRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_PredictRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_PredictRequest_ParamsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_PredictResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/automl/v1beta1/prediction" - + "_service.proto\022\033google.cloud.automl.v1be" - + "ta1\032\034google/api/annotations.proto\032\027googl" - + "e/api/client.proto\032\037google/api/field_beh" - + "avior.proto\032\031google/api/resource.proto\0324" - + "google/cloud/automl/v1beta1/annotation_p" - + "ayload.proto\032,google/cloud/automl/v1beta" - + "1/data_items.proto\032$google/cloud/automl/" - + "v1beta1/io.proto\032,google/cloud/automl/v1" - + "beta1/operations.proto\032#google/longrunni" - + "ng/operations.proto\"\376\001\n\016PredictRequest\0221" - + "\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis." - + "com/Model\022A\n\007payload\030\002 \001(\0132+.google.clou" - + "d.automl.v1beta1.ExamplePayloadB\003\340A\002\022G\n\006" - + "params\030\003 \003(\01327.google.cloud.automl.v1bet" - + "a1.PredictRequest.ParamsEntry\032-\n\013ParamsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\002\n" - + "\017PredictResponse\022?\n\007payload\030\001 \003(\0132..goog" - + "le.cloud.automl.v1beta1.AnnotationPayloa" - + "d\022G\n\022preprocessed_input\030\003 \001(\0132+.google.c" - + "loud.automl.v1beta1.ExamplePayload\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\"\356\002\n\023BatchPredictRequest\0221\n\004name\030\001 \001(\tB" - + "#\340A\002\372A\035\n\033automl.googleapis.com/Model\022O\n\014" - + "input_config\030\003 \001(\01324.google.cloud.automl" - + ".v1beta1.BatchPredictInputConfigB\003\340A\002\022Q\n" - + "\routput_config\030\004 \001(\01325.google.cloud.auto" - + "ml.v1beta1.BatchPredictOutputConfigB\003\340A\002" - + "\022Q\n\006params\030\005 \003(\0132<.google.cloud.automl.v" - + "1beta1.BatchPredictRequest.ParamsEntryB\003" - + "\340A\002\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\"\226\001\n\022BatchPredictResult\022O\n\010met" - + "adata\030\001 \003(\0132=.google.cloud.automl.v1beta" - + "1.BatchPredictResult.MetadataEntry\032/\n\rMe" - + "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\0012\236\004\n\021PredictionService\022\276\001\n\007Predict\022+." - + "google.cloud.automl.v1beta1.PredictReque" - + "st\032,.google.cloud.automl.v1beta1.Predict" - + "Response\"X\202\323\344\223\002<\"7/v1beta1/{name=project" - + "s/*/locations/*/models/*}:predict:\001*\332A\023n" - + "ame,payload,params\022\374\001\n\014BatchPredict\0220.go" - + "ogle.cloud.automl.v1beta1.BatchPredictRe" - + "quest\032\035.google.longrunning.Operation\"\232\001\202" - + "\323\344\223\002A\" - * Output only. The Area under precision recall curve metric. - *
- * - * float au_prc = 1; - * - * @return The auPrc. - */ - 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java deleted file mode 100644 index 0457c2bd3..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/text.proto - -package com.google.cloud.automl.v1beta1; - -public final class TextProto { - private TextProto() {} - - 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_TextClassificationDatasetMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/automl/v1beta1/text.proto" - + "\022\033google.cloud.automl.v1beta1\0320google/cl" - + "oud/automl/v1beta1/classification.proto\032" - + "\034google/api/annotations.proto\"q\n!TextCla" - + "ssificationDatasetMetadata\022L\n\023classifica" - + "tion_type\030\001 \001(\0162/.google.cloud.automl.v1" - + "beta1.ClassificationType\"o\n\037TextClassifi" - + "cationModelMetadata\022L\n\023classification_ty" - + "pe\030\003 \001(\0162/.google.cloud.automl.v1beta1.C" - + "lassificationType\"\037\n\035TextExtractionDatas" - + "etMetadata\"1\n\033TextExtractionModelMetadat" - + "a\022\022\n\nmodel_hint\030\003 \001(\t\"5\n\034TextSentimentDa" - + "tasetMetadata\022\025\n\rsentiment_max\030\001 \001(\005\"\034\n\032" - + "TextSentimentModelMetadataB\260\001\n\037com.googl" - + "e.cloud.automl.v1beta1B\tTextProtoP\001ZAgoo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" - + "toMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1" - + "beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor, - new java.lang.String[] { - "ClassificationType", - }); - internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor, - new java.lang.String[] { - "ClassificationType", - }); - 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[] { - "ModelHint", - }); - 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.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java deleted file mode 100644 index 8b48229f9..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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\267\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\\V1beta1\352\002\036Google::Cloud::AutoML::" - + "V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java deleted file mode 100644 index 37e17f5c2..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java deleted file mode 100644 index f673fe07e..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/translation.proto - -package com.google.cloud.automl.v1beta1; - -public interface TranslationEvaluationMetricsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. BLEU score.
-   * 
- * - * double bleu_score = 1; - * - * @return The bleuScore. - */ - double getBleuScore(); - - /** - * - * - *
-   * Output only. BLEU score for base model.
-   * 
- * - * double base_bleu_score = 2; - * - * @return The baseBleuScore. - */ - double getBaseBleuScore(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java deleted file mode 100644 index d31470471..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/translation.proto - -package com.google.cloud.automl.v1beta1; - -public final class TranslationProto { - private TranslationProto() {} - - 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_TranslationDatasetMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_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/translatio" - + "n.proto\022\033google.cloud.automl.v1beta1\032\037go" - + "ogle/api/field_behavior.proto\032,google/cl" - + "oud/automl/v1beta1/data_items.proto\032\034goo" - + "gle/api/annotations.proto\"b\n\032Translation" - + "DatasetMetadata\022!\n\024source_language_code\030" - + "\001 \001(\tB\003\340A\002\022!\n\024target_language_code\030\002 \001(\t" - + "B\003\340A\002\"K\n\034TranslationEvaluationMetrics\022\022\n" - + "\nbleu_score\030\001 \001(\001\022\027\n\017base_bleu_score\030\002 \001" - + "(\001\"j\n\030TranslationModelMetadata\022\022\n\nbase_m" - + "odel\030\001 \001(\t\022\034\n\024source_language_code\030\002 \001(\t" - + "\022\034\n\024target_language_code\030\003 \001(\t\"]\n\025Transl" - + "ationAnnotation\022D\n\022translated_content\030\001 " - + "\001(\0132(.google.cloud.automl.v1beta1.TextSn" - + "ippetB\267\001\n\037com.google.cloud.automl.v1beta" - + "1B\020TranslationProtoP\001ZAgoogle.golang.org" - + "/genproto/googleapis/cloud/automl/v1beta" - + "1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002" - + "\036Google::Cloud::AutoML::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.automl.v1beta1.DataItems.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor, - new java.lang.String[] { - "SourceLanguageCode", "TargetLanguageCode", - }); - internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor, - new java.lang.String[] { - "BleuScore", "BaseBleuScore", - }); - internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor, - new java.lang.String[] { - "BaseModel", "SourceLanguageCode", "TargetLanguageCode", - }); - internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor, - new java.lang.String[] { - "TranslatedContent", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.automl.v1beta1.DataItems.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java deleted file mode 100644 index 0f421fce9..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java deleted file mode 100644 index 6ae823272..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface UndeployModelRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UndeployModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the model to undeploy.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the model to undeploy.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java deleted file mode 100644 index 61778ba6a..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java deleted file mode 100644 index 7de1b00d2..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java deleted file mode 100644 index f9075c2fe..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/video.proto - -package com.google.cloud.automl.v1beta1; - -public interface VideoObjectTrackingDatasetMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java deleted file mode 100644 index c0eb46acb..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/video.proto - -package com.google.cloud.automl.v1beta1; - -public interface VideoObjectTrackingModelMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java deleted file mode 100644 index 5148ea56c..000000000 --- a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2020 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 - * - * https://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. - */ -// 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_VideoObjectTrackingDatasetMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_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\0320google/c" - + "loud/automl/v1beta1/classification.proto" - + "\032\034google/api/annotations.proto\"$\n\"VideoC" - + "lassificationDatasetMetadata\"$\n\"VideoObj" - + "ectTrackingDatasetMetadata\"\"\n VideoClass" - + "ificationModelMetadata\"\"\n VideoObjectTra" - + "ckingModelMetadataB\261\001\n\037com.google.cloud." - + "automl.v1beta1B\nVideoProtoP\001ZAgoogle.gol" - + "ang.org/genproto/googleapis/cloud/automl" - + "/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1" - + "beta1\352\002\036Google::Cloud::AutoML::V1beta1b\006" - + "proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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_VideoObjectTrackingDatasetMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - 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[] {}); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor, - new java.lang.String[] {}); - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From cda726002e9a5ec7a8b9998ef1bae583fd0f5e7d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 17 Nov 2021 20:53:34 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../google/cloud/automl/v1/AutoMlClient.java | 64 +- .../cloud/automl/v1/AutoMlSettings.java | 13 +- .../automl/v1/PredictionServiceClient.java | 148 +- .../automl/v1/PredictionServiceSettings.java | 7 +- .../cloud/automl/v1/gapic_metadata.json | 0 .../google/cloud/automl/v1/package-info.java | 0 .../cloud/automl/v1/stub/AutoMlStub.java | 0 .../automl/v1/stub/AutoMlStubSettings.java | 24 +- .../v1/stub/GrpcAutoMlCallableFactory.java | 0 .../cloud/automl/v1/stub/GrpcAutoMlStub.java | 1 - .../GrpcPredictionServiceCallableFactory.java | 0 .../v1/stub/GrpcPredictionServiceStub.java | 1 - .../automl/v1/stub/PredictionServiceStub.java | 0 .../stub/PredictionServiceStubSettings.java | 6 +- .../cloud/automl/v1beta1/AutoMlClient.java | 74 +- .../cloud/automl/v1beta1/AutoMlSettings.java | 13 +- .../v1beta1/PredictionServiceClient.java | 144 +- .../v1beta1/PredictionServiceSettings.java | 7 +- .../cloud/automl/v1beta1/gapic_metadata.json | 0 .../cloud/automl/v1beta1/package-info.java | 0 .../cloud/automl/v1beta1/stub/AutoMlStub.java | 0 .../v1beta1/stub/AutoMlStubSettings.java | 24 +- .../stub/GrpcAutoMlCallableFactory.java | 0 .../automl/v1beta1/stub/GrpcAutoMlStub.java | 1 - .../GrpcPredictionServiceCallableFactory.java | 0 .../stub/GrpcPredictionServiceStub.java | 1 - .../v1beta1/stub/PredictionServiceStub.java | 0 .../stub/PredictionServiceStubSettings.java | 6 +- .../cloud/automl/v1/AutoMlClientTest.java | 0 .../google/cloud/automl/v1/MockAutoMl.java | 0 .../cloud/automl/v1/MockAutoMlImpl.java | 0 .../automl/v1/MockPredictionService.java | 0 .../automl/v1/MockPredictionServiceImpl.java | 0 .../v1/PredictionServiceClientTest.java | 0 .../automl/v1beta1/AutoMlClientTest.java | 0 .../cloud/automl/v1beta1/MockAutoMl.java | 0 .../cloud/automl/v1beta1/MockAutoMlImpl.java | 0 .../automl/v1beta1/MockPredictionService.java | 0 .../v1beta1/MockPredictionServiceImpl.java | 0 .../v1beta1/PredictionServiceClientTest.java | 0 .../google/cloud/automl/v1/AutoMlGrpc.java | 2439 ++++++++ .../automl/v1/PredictionServiceGrpc.java | 291 +- .../cloud/automl/v1beta1/AutoMlGrpc.java | 3229 +++++++++++ .../automl/v1beta1/PredictionServiceGrpc.java | 301 +- .../google/cloud/automl/v1/AutoMlGrpc.java | 1962 ------- .../v1/AnnotationPayloadOuterClass.java | 84 - .../automl/v1/AnnotationSpecOuterClass.java | 68 - .../google/cloud/automl/v1/AutoMlProto.java | 478 -- .../v1/BatchPredictInputConfigOrBuilder.java | 38 - .../cloud/automl/v1/ClassificationProto.java | 125 - ...eateDatasetOperationMetadataOrBuilder.java | 9 - ...CreateModelOperationMetadataOrBuilder.java | 9 - .../com/google/cloud/automl/v1/DataItems.java | 159 - .../cloud/automl/v1/DatasetOuterClass.java | 110 - .../v1/DeleteDatasetRequestOrBuilder.java | 29 - .../v1/DeleteModelRequestOrBuilder.java | 29 - .../v1/DeleteOperationMetadataOrBuilder.java | 9 - ...DeployModelOperationMetadataOrBuilder.java | 9 - .../v1/DeployModelRequestOrBuilder.java | 85 - .../com/google/cloud/automl/v1/Detection.java | 109 - .../automl/v1/ExportDataRequestOrBuilder.java | 56 - ...ExportModelOperationMetadataOrBuilder.java | 39 - .../v1/ExportModelRequestOrBuilder.java | 56 - .../com/google/cloud/automl/v1/Geometry.java | 69 - .../v1/GetAnnotationSpecRequestOrBuilder.java | 29 - .../automl/v1/GetDatasetRequestOrBuilder.java | 29 - .../GetModelEvaluationRequestOrBuilder.java | 29 - .../automl/v1/GetModelRequestOrBuilder.java | 29 - ...jectDetectionDatasetMetadataOrBuilder.java | 9 - .../google/cloud/automl/v1/ImageProto.java | 139 - .../ImportDataOperationMetadataOrBuilder.java | 9 - .../automl/v1/ImportDataRequestOrBuilder.java | 61 - .../java/com/google/cloud/automl/v1/Io.java | 184 - .../automl/v1/ModelEvaluationOuterClass.java | 101 - .../cloud/automl/v1/ModelOuterClass.java | 113 - .../automl/v1/NormalizedVertexOrBuilder.java | 29 - .../google/cloud/automl/v1/Operations.java | 243 - .../automl/v1/PredictionServiceProto.java | 205 - .../cloud/automl/v1/TextExtraction.java | 89 - ...extExtractionDatasetMetadataOrBuilder.java | 9 - ...tExtractionEvaluationMetricsOrBuilder.java | 68 - .../TextExtractionModelMetadataOrBuilder.java | 9 - .../com/google/cloud/automl/v1/TextProto.java | 122 - .../cloud/automl/v1/TextSegmentProto.java | 57 - .../TextSentimentModelMetadataOrBuilder.java | 9 - .../cloud/automl/v1/TextSentimentProto.java | 78 - ...TranslationEvaluationMetricsOrBuilder.java | 29 - .../cloud/automl/v1/TranslationProto.java | 108 - ...deployModelOperationMetadataOrBuilder.java | 9 - .../v1/UndeployModelRequestOrBuilder.java | 29 - .../cloud/automl/v1beta1/AutoMlGrpc.java | 2518 -------- .../v1beta1/AnnotationPayloadOuterClass.java | 95 - .../v1beta1/AnnotationSpecOuterClass.java | 68 - .../cloud/automl/v1beta1/AutoMlProto.java | 643 --- .../automl/v1beta1/ColumnSpecOuterClass.java | 93 - .../v1beta1/CorrelationStatsOrBuilder.java | 19 - .../CreateDatasetRequestOrBuilder.java | 56 - ...CreateModelOperationMetadataOrBuilder.java | 9 - .../cloud/automl/v1beta1/DataItems.java | 179 - .../automl/v1beta1/DataStatsOuterClass.java | 251 - .../cloud/automl/v1beta1/DataTypes.java | 90 - .../automl/v1beta1/DatasetOuterClass.java | 111 - .../DeleteDatasetRequestOrBuilder.java | 29 - .../v1beta1/DeleteModelRequestOrBuilder.java | 29 - .../DeleteOperationMetadataOrBuilder.java | 9 - ...DeployModelOperationMetadataOrBuilder.java | 9 - .../v1beta1/DeployModelRequestOrBuilder.java | 85 - .../cloud/automl/v1beta1/Detection.java | 142 - .../automl/v1beta1/DoubleRangeOrBuilder.java | 29 - .../ExportDataOperationMetadataOrBuilder.java | 36 - .../v1beta1/ExportDataRequestOrBuilder.java | 56 - ...tedExamplesOperationMetadataOrBuilder.java | 39 - ...portEvaluatedExamplesRequestOrBuilder.java | 58 - ...ExportModelOperationMetadataOrBuilder.java | 39 - .../v1beta1/ExportModelRequestOrBuilder.java | 56 - .../google/cloud/automl/v1beta1/Geometry.java | 69 - .../GetAnnotationSpecRequestOrBuilder.java | 29 - .../v1beta1/GetDatasetRequestOrBuilder.java | 29 - .../GetModelEvaluationRequestOrBuilder.java | 29 - .../v1beta1/GetModelRequestOrBuilder.java | 29 - ...jectDetectionDatasetMetadataOrBuilder.java | 9 - .../cloud/automl/v1beta1/ImageProto.java | 138 - .../ImportDataOperationMetadataOrBuilder.java | 9 - .../v1beta1/ImportDataRequestOrBuilder.java | 61 - .../com/google/cloud/automl/v1beta1/Io.java | 237 - .../v1beta1/ModelEvaluationOuterClass.java | 114 - .../cloud/automl/v1beta1/ModelOuterClass.java | 114 - .../v1beta1/NormalizedVertexOrBuilder.java | 29 - .../cloud/automl/v1beta1/Operations.java | 270 - .../v1beta1/PredictionServiceProto.java | 207 - .../cloud/automl/v1beta1/RangesProto.java | 56 - .../automl/v1beta1/TableSpecOuterClass.java | 73 - .../google/cloud/automl/v1beta1/Tables.java | 159 - .../google/cloud/automl/v1beta1/Temporal.java | 60 - .../cloud/automl/v1beta1/TextExtraction.java | 90 - ...extExtractionDatasetMetadataOrBuilder.java | 9 - ...tExtractionEvaluationMetricsOrBuilder.java | 68 - .../cloud/automl/v1beta1/TextProto.java | 123 - .../automl/v1beta1/TextSegmentProto.java | 57 - .../TextSentimentModelMetadataOrBuilder.java | 9 - ...TranslationEvaluationMetricsOrBuilder.java | 29 - .../automl/v1beta1/TranslationProto.java | 108 - ...deployModelOperationMetadataOrBuilder.java | 9 - .../UndeployModelRequestOrBuilder.java | 29 - ...lassificationDatasetMetadataOrBuilder.java | 9 - ...oClassificationModelMetadataOrBuilder.java | 9 - ...bjectTrackingDatasetMetadataOrBuilder.java | 9 - ...oObjectTrackingModelMetadataOrBuilder.java | 9 - .../cloud/automl/v1beta1/VideoProto.java | 95 - .../cloud/automl/v1/AnnotationPayload.java | 1022 ++-- .../automl/v1/AnnotationPayloadOrBuilder.java | 79 +- .../v1/AnnotationPayloadOuterClass.java | 106 + .../cloud/automl/v1/AnnotationSpec.java | 414 +- .../cloud/automl/v1/AnnotationSpecName.java | 0 .../automl/v1/AnnotationSpecOrBuilder.java | 39 +- .../automl/v1/AnnotationSpecOuterClass.java | 83 + .../google/cloud/automl/v1/AutoMlProto.java | 516 ++ .../automl/v1/BatchPredictInputConfig.java | 434 +- .../v1/BatchPredictInputConfigOrBuilder.java | 68 + .../v1/BatchPredictOperationMetadata.java | 1007 ++-- ...atchPredictOperationMetadataOrBuilder.java | 49 +- .../automl/v1/BatchPredictOutputConfig.java | 427 +- .../v1/BatchPredictOutputConfigOrBuilder.java | 38 +- .../cloud/automl/v1/BatchPredictRequest.java | 889 +-- .../v1/BatchPredictRequestOrBuilder.java | 107 +- .../cloud/automl/v1/BatchPredictResult.java | 491 +- .../v1/BatchPredictResultOrBuilder.java | 50 +- .../automl/v1/BoundingBoxMetricsEntry.java | 1087 ++-- .../v1/BoundingBoxMetricsEntryOrBuilder.java | 67 +- .../google/cloud/automl/v1/BoundingPoly.java | 348 +- .../automl/v1/BoundingPolyOrBuilder.java | 36 +- .../automl/v1/ClassificationAnnotation.java | 272 +- .../v1/ClassificationAnnotationOrBuilder.java | 21 +- .../v1/ClassificationEvaluationMetrics.java | 3223 +++++++---- ...ssificationEvaluationMetricsOrBuilder.java | 112 +- .../cloud/automl/v1/ClassificationProto.java | 168 + .../cloud/automl/v1/ClassificationType.java | 80 +- .../v1/CreateDatasetOperationMetadata.java | 241 +- ...eateDatasetOperationMetadataOrBuilder.java | 24 + .../cloud/automl/v1/CreateDatasetRequest.java | 464 +- .../v1/CreateDatasetRequestOrBuilder.java | 52 +- .../v1/CreateModelOperationMetadata.java | 238 +- ...CreateModelOperationMetadataOrBuilder.java | 24 + .../cloud/automl/v1/CreateModelRequest.java | 444 +- .../v1/CreateModelRequestOrBuilder.java | 43 +- .../com/google/cloud/automl/v1/DataItems.java | 179 + .../com/google/cloud/automl/v1/Dataset.java | 2085 ++++--- .../google/cloud/automl/v1/DatasetName.java | 0 .../cloud/automl/v1/DatasetOrBuilder.java | 241 +- .../cloud/automl/v1/DatasetOuterClass.java | 139 + .../cloud/automl/v1/DeleteDatasetRequest.java | 332 +- .../v1/DeleteDatasetRequestOrBuilder.java | 54 + .../cloud/automl/v1/DeleteModelRequest.java | 329 +- .../v1/DeleteModelRequestOrBuilder.java | 54 + .../automl/v1/DeleteOperationMetadata.java | 235 +- .../v1/DeleteOperationMetadataOrBuilder.java | 24 + .../v1/DeployModelOperationMetadata.java | 238 +- ...DeployModelOperationMetadataOrBuilder.java | 24 + .../cloud/automl/v1/DeployModelRequest.java | 832 ++- .../v1/DeployModelRequestOrBuilder.java | 143 + .../com/google/cloud/automl/v1/Detection.java | 131 + .../com/google/cloud/automl/v1/Document.java | 1341 +++-- .../cloud/automl/v1/DocumentDimensions.java | 439 +- .../v1/DocumentDimensionsOrBuilder.java | 30 +- .../cloud/automl/v1/DocumentInputConfig.java | 328 +- .../v1/DocumentInputConfigOrBuilder.java | 26 +- .../cloud/automl/v1/DocumentOrBuilder.java | 63 +- .../cloud/automl/v1/ExamplePayload.java | 605 +- .../automl/v1/ExamplePayloadOrBuilder.java | 42 +- .../v1/ExportDataOperationMetadata.java | 881 +-- .../ExportDataOperationMetadataOrBuilder.java | 38 +- .../cloud/automl/v1/ExportDataRequest.java | 475 +- .../automl/v1/ExportDataRequestOrBuilder.java | 95 + .../v1/ExportModelOperationMetadata.java | 830 +-- ...ExportModelOperationMetadataOrBuilder.java | 70 + .../cloud/automl/v1/ExportModelRequest.java | 476 +- .../v1/ExportModelRequestOrBuilder.java | 95 + .../cloud/automl/v1/GcsDestination.java | 301 +- .../automl/v1/GcsDestinationOrBuilder.java | 27 +- .../com/google/cloud/automl/v1/GcsSource.java | 326 +- .../cloud/automl/v1/GcsSourceOrBuilder.java | 36 +- .../com/google/cloud/automl/v1/Geometry.java | 85 + .../automl/v1/GetAnnotationSpecRequest.java | 339 +- .../v1/GetAnnotationSpecRequestOrBuilder.java | 54 + .../cloud/automl/v1/GetDatasetRequest.java | 329 +- .../automl/v1/GetDatasetRequestOrBuilder.java | 54 + .../automl/v1/GetModelEvaluationRequest.java | 339 +- .../GetModelEvaluationRequestOrBuilder.java | 54 + .../cloud/automl/v1/GetModelRequest.java | 329 +- .../automl/v1/GetModelRequestOrBuilder.java | 54 + .../com/google/cloud/automl/v1/Image.java | 384 +- .../ImageClassificationDatasetMetadata.java | 310 +- ...lassificationDatasetMetadataOrBuilder.java | 24 +- ...ClassificationModelDeploymentMetadata.java | 311 +- ...ationModelDeploymentMetadataOrBuilder.java | 21 +- .../v1/ImageClassificationModelMetadata.java | 629 +- ...eClassificationModelMetadataOrBuilder.java | 57 +- .../v1/ImageObjectDetectionAnnotation.java | 379 +- ...ageObjectDetectionAnnotationOrBuilder.java | 29 +- .../ImageObjectDetectionDatasetMetadata.java | 260 +- ...jectDetectionDatasetMetadataOrBuilder.java | 24 + ...ImageObjectDetectionEvaluationMetrics.java | 603 +- ...ctDetectionEvaluationMetricsOrBuilder.java | 58 +- ...bjectDetectionModelDeploymentMetadata.java | 317 +- ...ctionModelDeploymentMetadataOrBuilder.java | 21 +- .../v1/ImageObjectDetectionModelMetadata.java | 554 +- ...ObjectDetectionModelMetadataOrBuilder.java | 48 +- .../cloud/automl/v1/ImageOrBuilder.java | 33 +- .../google/cloud/automl/v1/ImageProto.java | 168 + .../v1/ImportDataOperationMetadata.java | 238 +- .../ImportDataOperationMetadataOrBuilder.java | 24 + .../cloud/automl/v1/ImportDataRequest.java | 478 +- .../automl/v1/ImportDataRequestOrBuilder.java | 100 + .../google/cloud/automl/v1/InputConfig.java | 631 +- .../cloud/automl/v1/InputConfigOrBuilder.java | 58 +- .../java/com/google/cloud/automl/v1/Io.java | 210 + .../cloud/automl/v1/ListDatasetsRequest.java | 523 +- .../v1/ListDatasetsRequestOrBuilder.java | 56 +- .../cloud/automl/v1/ListDatasetsResponse.java | 452 +- .../v1/ListDatasetsResponseOrBuilder.java | 46 +- .../v1/ListModelEvaluationsRequest.java | 536 +- .../ListModelEvaluationsRequestOrBuilder.java | 56 +- .../v1/ListModelEvaluationsResponse.java | 453 +- ...ListModelEvaluationsResponseOrBuilder.java | 45 +- .../cloud/automl/v1/ListModelsRequest.java | 523 +- .../automl/v1/ListModelsRequestOrBuilder.java | 56 +- .../cloud/automl/v1/ListModelsResponse.java | 454 +- .../v1/ListModelsResponseOrBuilder.java | 46 +- .../google/cloud/automl/v1/LocationName.java | 0 .../com/google/cloud/automl/v1/Model.java | 2222 ++++--- .../cloud/automl/v1/ModelEvaluation.java | 1553 +++-- .../cloud/automl/v1/ModelEvaluationName.java | 0 .../automl/v1/ModelEvaluationOrBuilder.java | 171 +- .../automl/v1/ModelEvaluationOuterClass.java | 126 + .../automl/v1/ModelExportOutputConfig.java | 765 +-- .../v1/ModelExportOutputConfigOrBuilder.java | 79 +- .../com/google/cloud/automl/v1/ModelName.java | 0 .../cloud/automl/v1/ModelOrBuilder.java | 231 +- .../cloud/automl/v1/ModelOuterClass.java | 143 + .../cloud/automl/v1/NormalizedVertex.java | 303 +- .../automl/v1/NormalizedVertexOrBuilder.java | 51 + .../cloud/automl/v1/OperationMetadata.java | 1868 ++++-- .../automl/v1/OperationMetadataOrBuilder.java | 155 +- .../google/cloud/automl/v1/Operations.java | 277 + .../google/cloud/automl/v1/OutputConfig.java | 414 +- .../automl/v1/OutputConfigOrBuilder.java | 38 +- .../cloud/automl/v1/PredictRequest.java | 742 ++- .../automl/v1/PredictRequestOrBuilder.java | 87 +- .../cloud/automl/v1/PredictResponse.java | 733 ++- .../automl/v1/PredictResponseOrBuilder.java | 76 +- .../automl/v1/PredictionServiceProto.java | 231 + .../v1/TextClassificationDatasetMetadata.java | 309 +- ...lassificationDatasetMetadataOrBuilder.java | 24 +- .../v1/TextClassificationModelMetadata.java | 302 +- ...tClassificationModelMetadataOrBuilder.java | 24 +- .../cloud/automl/v1/TextExtraction.java | 108 + .../automl/v1/TextExtractionAnnotation.java | 417 +- .../v1/TextExtractionAnnotationOrBuilder.java | 29 +- .../v1/TextExtractionDatasetMetadata.java | 238 +- ...extExtractionDatasetMetadataOrBuilder.java | 24 + .../v1/TextExtractionEvaluationMetrics.java | 1088 ++-- ...tExtractionEvaluationMetricsOrBuilder.java | 111 + .../v1/TextExtractionModelMetadata.java | 238 +- .../TextExtractionModelMetadataOrBuilder.java | 24 + .../com/google/cloud/automl/v1/TextProto.java | 136 + .../google/cloud/automl/v1/TextSegment.java | 368 +- .../cloud/automl/v1/TextSegmentOrBuilder.java | 33 +- .../cloud/automl/v1/TextSegmentProto.java | 72 + .../automl/v1/TextSentimentAnnotation.java | 269 +- .../v1/TextSentimentAnnotationOrBuilder.java | 21 +- .../v1/TextSentimentDatasetMetadata.java | 272 +- ...TextSentimentDatasetMetadataOrBuilder.java | 21 +- .../v1/TextSentimentEvaluationMetrics.java | 684 ++- ...xtSentimentEvaluationMetricsOrBuilder.java | 62 +- .../automl/v1/TextSentimentModelMetadata.java | 238 +- .../TextSentimentModelMetadataOrBuilder.java | 24 + .../cloud/automl/v1/TextSentimentProto.java | 101 + .../google/cloud/automl/v1/TextSnippet.java | 452 +- .../cloud/automl/v1/TextSnippetOrBuilder.java | 45 +- .../automl/v1/TranslationAnnotation.java | 332 +- .../v1/TranslationAnnotationOrBuilder.java | 26 +- .../automl/v1/TranslationDatasetMetadata.java | 393 +- .../TranslationDatasetMetadataOrBuilder.java | 36 +- .../v1/TranslationEvaluationMetrics.java | 318 +- ...TranslationEvaluationMetricsOrBuilder.java | 51 + .../automl/v1/TranslationModelMetadata.java | 469 +- .../v1/TranslationModelMetadataOrBuilder.java | 45 +- .../cloud/automl/v1/TranslationProto.java | 126 + .../v1/UndeployModelOperationMetadata.java | 241 +- ...deployModelOperationMetadataOrBuilder.java | 24 + .../cloud/automl/v1/UndeployModelRequest.java | 332 +- .../v1/UndeployModelRequestOrBuilder.java | 54 + .../cloud/automl/v1/UpdateDatasetRequest.java | 492 +- .../v1/UpdateDatasetRequestOrBuilder.java | 52 +- .../cloud/automl/v1/UpdateModelRequest.java | 474 +- .../v1/UpdateModelRequestOrBuilder.java | 43 +- .../cloud/automl/v1/annotation_payload.proto | 0 .../cloud/automl/v1/annotation_spec.proto | 0 .../cloud/automl/v1/classification.proto | 0 .../google/cloud/automl/v1/data_items.proto | 0 .../google/cloud/automl/v1/dataset.proto | 0 .../google/cloud/automl/v1/detection.proto | 0 .../google/cloud/automl/v1/geometry.proto | 0 .../proto/google/cloud/automl/v1/image.proto | 0 .../proto/google/cloud/automl/v1/io.proto | 0 .../proto/google/cloud/automl/v1/model.proto | 0 .../cloud/automl/v1/model_evaluation.proto | 0 .../google/cloud/automl/v1/operations.proto | 0 .../cloud/automl/v1/prediction_service.proto | 0 .../google/cloud/automl/v1/service.proto | 0 .../proto/google/cloud/automl/v1/text.proto | 0 .../cloud/automl/v1/text_extraction.proto | 0 .../google/cloud/automl/v1/text_segment.proto | 0 .../cloud/automl/v1/text_sentiment.proto | 0 .../google/cloud/automl/v1/translation.proto | 0 .../automl/v1beta1/AnnotationPayload.java | 1729 ++++-- .../v1beta1/AnnotationPayloadOrBuilder.java | 145 +- .../v1beta1/AnnotationPayloadOuterClass.java | 120 + .../cloud/automl/v1beta1/AnnotationSpec.java | 414 +- .../automl/v1beta1/AnnotationSpecName.java | 0 .../v1beta1/AnnotationSpecOrBuilder.java | 39 +- .../v1beta1/AnnotationSpecOuterClass.java | 83 + .../cloud/automl/v1beta1/ArrayStats.java | 325 +- .../automl/v1beta1/ArrayStatsOrBuilder.java | 26 +- .../cloud/automl/v1beta1/AutoMlProto.java | 689 +++ .../v1beta1/BatchPredictInputConfig.java | 495 +- .../BatchPredictInputConfigOrBuilder.java | 34 +- .../BatchPredictOperationMetadata.java | 1162 ++-- ...atchPredictOperationMetadataOrBuilder.java | 52 +- .../v1beta1/BatchPredictOutputConfig.java | 514 +- .../BatchPredictOutputConfigOrBuilder.java | 37 +- .../automl/v1beta1/BatchPredictRequest.java | 917 +-- .../v1beta1/BatchPredictRequestOrBuilder.java | 107 +- .../automl/v1beta1/BatchPredictResult.java | 501 +- .../v1beta1/BatchPredictResultOrBuilder.java | 50 +- .../automl/v1beta1/BigQueryDestination.java | 311 +- .../v1beta1/BigQueryDestinationOrBuilder.java | 27 +- .../cloud/automl/v1beta1/BigQuerySource.java | 301 +- .../v1beta1/BigQuerySourceOrBuilder.java | 27 +- .../v1beta1/BoundingBoxMetricsEntry.java | 1113 ++-- .../BoundingBoxMetricsEntryOrBuilder.java | 68 +- .../cloud/automl/v1beta1/BoundingPoly.java | 358 +- .../automl/v1beta1/BoundingPolyOrBuilder.java | 33 +- .../cloud/automl/v1beta1/CategoryStats.java | 879 +-- .../v1beta1/CategoryStatsOrBuilder.java | 57 +- .../automl/v1beta1/ClassificationProto.java | 5117 +++++++++++------ .../cloud/automl/v1beta1/ColumnSpec.java | 1361 +++-- .../cloud/automl/v1beta1/ColumnSpecName.java | 0 .../automl/v1beta1/ColumnSpecOrBuilder.java | 99 +- .../automl/v1beta1/ColumnSpecOuterClass.java | 109 + .../automl/v1beta1/CorrelationStats.java | 272 +- .../v1beta1/CorrelationStatsOrBuilder.java | 38 + .../automl/v1beta1/CreateDatasetRequest.java | 488 +- .../CreateDatasetRequestOrBuilder.java | 95 + .../v1beta1/CreateModelOperationMetadata.java | 245 +- ...CreateModelOperationMetadataOrBuilder.java | 24 + .../automl/v1beta1/CreateModelRequest.java | 466 +- .../v1beta1/CreateModelRequestOrBuilder.java | 52 +- .../cloud/automl/v1beta1/DataItems.java | 200 + .../cloud/automl/v1beta1/DataStats.java | 1024 ++-- .../automl/v1beta1/DataStatsOrBuilder.java | 75 +- .../automl/v1beta1/DataStatsOuterClass.java | 297 + .../google/cloud/automl/v1beta1/DataType.java | 661 ++- .../automl/v1beta1/DataTypeOrBuilder.java | 55 +- .../cloud/automl/v1beta1/DataTypes.java | 107 + .../google/cloud/automl/v1beta1/Dataset.java | 2494 +++++--- .../cloud/automl/v1beta1/DatasetName.java | 0 .../automl/v1beta1/DatasetOrBuilder.java | 275 +- .../automl/v1beta1/DatasetOuterClass.java | 141 + .../automl/v1beta1/DeleteDatasetRequest.java | 339 +- .../DeleteDatasetRequestOrBuilder.java | 54 + .../automl/v1beta1/DeleteModelRequest.java | 339 +- .../v1beta1/DeleteModelRequestOrBuilder.java | 54 + .../v1beta1/DeleteOperationMetadata.java | 238 +- .../DeleteOperationMetadataOrBuilder.java | 24 + .../v1beta1/DeployModelOperationMetadata.java | 245 +- ...DeployModelOperationMetadataOrBuilder.java | 24 + .../automl/v1beta1/DeployModelRequest.java | 845 ++- .../v1beta1/DeployModelRequestOrBuilder.java | 143 + .../cloud/automl/v1beta1/Detection.java | 169 + .../google/cloud/automl/v1beta1/Document.java | 1396 +++-- .../automl/v1beta1/DocumentDimensions.java | 453 +- .../v1beta1/DocumentDimensionsOrBuilder.java | 30 +- .../automl/v1beta1/DocumentInputConfig.java | 338 +- .../v1beta1/DocumentInputConfigOrBuilder.java | 26 +- .../automl/v1beta1/DocumentOrBuilder.java | 63 +- .../cloud/automl/v1beta1/DoubleRange.java | 303 +- .../automl/v1beta1/DoubleRangeOrBuilder.java | 51 + .../cloud/automl/v1beta1/ExamplePayload.java | 712 ++- .../v1beta1/ExamplePayloadOrBuilder.java | 50 +- .../v1beta1/ExportDataOperationMetadata.java | 1023 ++-- .../ExportDataOperationMetadataOrBuilder.java | 67 + .../automl/v1beta1/ExportDataRequest.java | 485 +- .../v1beta1/ExportDataRequestOrBuilder.java | 95 + ...ortEvaluatedExamplesOperationMetadata.java | 955 +-- ...tedExamplesOperationMetadataOrBuilder.java | 73 + .../ExportEvaluatedExamplesOutputConfig.java | 439 +- ...valuatedExamplesOutputConfigOrBuilder.java | 29 +- .../ExportEvaluatedExamplesRequest.java | 532 +- ...portEvaluatedExamplesRequestOrBuilder.java | 98 + .../v1beta1/ExportModelOperationMetadata.java | 861 +-- ...ExportModelOperationMetadataOrBuilder.java | 71 + .../automl/v1beta1/ExportModelRequest.java | 498 +- .../v1beta1/ExportModelRequestOrBuilder.java | 95 + .../cloud/automl/v1beta1/Float64Stats.java | 1029 ++-- .../automl/v1beta1/Float64StatsOrBuilder.java | 66 +- .../cloud/automl/v1beta1/GcrDestination.java | 301 +- .../v1beta1/GcrDestinationOrBuilder.java | 27 +- .../cloud/automl/v1beta1/GcsDestination.java | 301 +- .../v1beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/automl/v1beta1/GcsSource.java | 333 +- .../automl/v1beta1/GcsSourceOrBuilder.java | 36 +- .../google/cloud/automl/v1beta1/Geometry.java | 85 + .../v1beta1/GetAnnotationSpecRequest.java | 342 +- .../GetAnnotationSpecRequestOrBuilder.java | 54 + .../automl/v1beta1/GetColumnSpecRequest.java | 427 +- .../GetColumnSpecRequestOrBuilder.java | 43 +- .../automl/v1beta1/GetDatasetRequest.java | 339 +- .../v1beta1/GetDatasetRequestOrBuilder.java | 54 + .../v1beta1/GetModelEvaluationRequest.java | 342 +- .../GetModelEvaluationRequestOrBuilder.java | 54 + .../cloud/automl/v1beta1/GetModelRequest.java | 332 +- .../v1beta1/GetModelRequestOrBuilder.java | 54 + .../automl/v1beta1/GetTableSpecRequest.java | 427 +- .../v1beta1/GetTableSpecRequestOrBuilder.java | 43 +- .../google/cloud/automl/v1beta1/Image.java | 498 +- .../ImageClassificationDatasetMetadata.java | 354 +- ...lassificationDatasetMetadataOrBuilder.java | 24 +- ...ClassificationModelDeploymentMetadata.java | 374 +- ...ationModelDeploymentMetadataOrBuilder.java | 21 +- .../ImageClassificationModelMetadata.java | 649 ++- ...eClassificationModelMetadataOrBuilder.java | 57 +- .../ImageObjectDetectionAnnotation.java | 394 +- ...ageObjectDetectionAnnotationOrBuilder.java | 29 +- .../ImageObjectDetectionDatasetMetadata.java | 275 +- ...jectDetectionDatasetMetadataOrBuilder.java | 24 + ...ImageObjectDetectionEvaluationMetrics.java | 626 +- ...ctDetectionEvaluationMetricsOrBuilder.java | 62 +- ...bjectDetectionModelDeploymentMetadata.java | 377 +- ...ctionModelDeploymentMetadataOrBuilder.java | 21 +- .../ImageObjectDetectionModelMetadata.java | 576 +- ...ObjectDetectionModelMetadataOrBuilder.java | 48 +- .../cloud/automl/v1beta1/ImageOrBuilder.java | 41 +- .../cloud/automl/v1beta1/ImageProto.java | 167 + .../v1beta1/ImportDataOperationMetadata.java | 238 +- .../ImportDataOperationMetadataOrBuilder.java | 24 + .../automl/v1beta1/ImportDataRequest.java | 485 +- .../v1beta1/ImportDataRequestOrBuilder.java | 100 + .../cloud/automl/v1beta1/InputConfig.java | 744 ++- .../automl/v1beta1/InputConfigOrBuilder.java | 66 +- .../com/google/cloud/automl/v1beta1/Io.java | 267 + .../v1beta1/ListColumnSpecsRequest.java | 624 +- .../ListColumnSpecsRequestOrBuilder.java | 64 +- .../v1beta1/ListColumnSpecsResponse.java | 464 +- .../ListColumnSpecsResponseOrBuilder.java | 45 +- .../automl/v1beta1/ListDatasetsRequest.java | 533 +- .../v1beta1/ListDatasetsRequestOrBuilder.java | 56 +- .../automl/v1beta1/ListDatasetsResponse.java | 460 +- .../ListDatasetsResponseOrBuilder.java | 45 +- .../v1beta1/ListModelEvaluationsRequest.java | 536 +- .../ListModelEvaluationsRequestOrBuilder.java | 56 +- .../v1beta1/ListModelEvaluationsResponse.java | 452 +- ...ListModelEvaluationsResponseOrBuilder.java | 45 +- .../automl/v1beta1/ListModelsRequest.java | 533 +- .../v1beta1/ListModelsRequestOrBuilder.java | 56 +- .../automl/v1beta1/ListModelsResponse.java | 459 +- .../v1beta1/ListModelsResponseOrBuilder.java | 46 +- .../automl/v1beta1/ListTableSpecsRequest.java | 624 +- .../ListTableSpecsRequestOrBuilder.java | 64 +- .../v1beta1/ListTableSpecsResponse.java | 463 +- .../ListTableSpecsResponseOrBuilder.java | 45 +- .../cloud/automl/v1beta1/LocationName.java | 0 .../google/cloud/automl/v1beta1/Model.java | 2497 +++++--- .../cloud/automl/v1beta1/ModelEvaluation.java | 2142 ++++--- .../automl/v1beta1/ModelEvaluationName.java | 0 .../v1beta1/ModelEvaluationOrBuilder.java | 235 +- .../v1beta1/ModelEvaluationOuterClass.java | 141 + .../v1beta1/ModelExportOutputConfig.java | 834 +-- .../ModelExportOutputConfigOrBuilder.java | 78 +- .../cloud/automl/v1beta1/ModelName.java | 0 .../cloud/automl/v1beta1/ModelOrBuilder.java | 271 +- .../cloud/automl/v1beta1/ModelOuterClass.java | 144 + .../automl/v1beta1/NormalizedVertex.java | 310 +- .../v1beta1/NormalizedVertexOrBuilder.java | 51 + .../automl/v1beta1/OperationMetadata.java | 2188 ++++--- .../v1beta1/OperationMetadataOrBuilder.java | 212 +- .../cloud/automl/v1beta1/Operations.java | 309 + .../cloud/automl/v1beta1/OutputConfig.java | 501 +- .../automl/v1beta1/OutputConfigOrBuilder.java | 34 +- .../cloud/automl/v1beta1/PredictRequest.java | 739 ++- .../v1beta1/PredictRequestOrBuilder.java | 87 +- .../cloud/automl/v1beta1/PredictResponse.java | 739 ++- .../v1beta1/PredictResponseOrBuilder.java | 76 +- .../v1beta1/PredictionServiceProto.java | 237 + .../cloud/automl/v1beta1/RangesProto.java | 71 + .../cloud/automl/v1beta1/RegressionProto.java | 612 +- .../com/google/cloud/automl/v1beta1/Row.java | 480 +- .../cloud/automl/v1beta1/RowOrBuilder.java | 55 +- .../cloud/automl/v1beta1/StringStats.java | 808 ++- .../automl/v1beta1/StringStatsOrBuilder.java | 48 +- .../cloud/automl/v1beta1/StructStats.java | 488 +- .../automl/v1beta1/StructStatsOrBuilder.java | 49 +- .../cloud/automl/v1beta1/StructType.java | 476 +- .../automl/v1beta1/StructTypeOrBuilder.java | 49 +- .../cloud/automl/v1beta1/TableSpec.java | 719 ++- .../cloud/automl/v1beta1/TableSpecName.java | 0 .../automl/v1beta1/TableSpecOrBuilder.java | 72 +- .../automl/v1beta1/TableSpecOuterClass.java | 94 + .../google/cloud/automl/v1beta1/Tables.java | 194 + .../automl/v1beta1/TablesAnnotation.java | 747 ++- .../v1beta1/TablesAnnotationOrBuilder.java | 69 +- .../automl/v1beta1/TablesDatasetMetadata.java | 957 +-- .../TablesDatasetMetadataOrBuilder.java | 108 +- .../automl/v1beta1/TablesModelColumnInfo.java | 430 +- .../TablesModelColumnInfoOrBuilder.java | 39 +- .../automl/v1beta1/TablesModelMetadata.java | 1065 ++-- .../v1beta1/TablesModelMetadataOrBuilder.java | 104 +- .../google/cloud/automl/v1beta1/Temporal.java | 75 + .../TextClassificationDatasetMetadata.java | 350 +- ...lassificationDatasetMetadataOrBuilder.java | 24 +- .../TextClassificationModelMetadata.java | 342 +- ...tClassificationModelMetadataOrBuilder.java | 24 +- .../cloud/automl/v1beta1/TextExtraction.java | 109 + .../v1beta1/TextExtractionAnnotation.java | 418 +- .../TextExtractionAnnotationOrBuilder.java | 32 +- .../TextExtractionDatasetMetadata.java | 246 +- ...extExtractionDatasetMetadataOrBuilder.java | 24 + .../TextExtractionEvaluationMetrics.java | 1143 ++-- ...tExtractionEvaluationMetricsOrBuilder.java | 112 + .../v1beta1/TextExtractionModelMetadata.java | 314 +- .../TextExtractionModelMetadataOrBuilder.java | 27 +- .../cloud/automl/v1beta1/TextProto.java | 139 + .../cloud/automl/v1beta1/TextSegment.java | 375 +- .../automl/v1beta1/TextSegmentOrBuilder.java | 33 +- .../automl/v1beta1/TextSegmentProto.java | 72 + .../v1beta1/TextSentimentDatasetMetadata.java | 279 +- ...TextSentimentDatasetMetadataOrBuilder.java | 21 +- .../v1beta1/TextSentimentModelMetadata.java | 238 +- .../TextSentimentModelMetadataOrBuilder.java | 24 + .../automl/v1beta1/TextSentimentProto.java | 1482 +++-- .../cloud/automl/v1beta1/TextSnippet.java | 459 +- .../automl/v1beta1/TextSnippetOrBuilder.java | 45 +- .../cloud/automl/v1beta1/TimeSegment.java | 427 +- .../automl/v1beta1/TimeSegmentOrBuilder.java | 34 +- .../cloud/automl/v1beta1/TimestampStats.java | 1060 ++-- .../v1beta1/TimestampStatsOrBuilder.java | 61 +- .../automl/v1beta1/TranslationAnnotation.java | 338 +- .../TranslationAnnotationOrBuilder.java | 26 +- .../v1beta1/TranslationDatasetMetadata.java | 393 +- .../TranslationDatasetMetadataOrBuilder.java | 36 +- .../v1beta1/TranslationEvaluationMetrics.java | 325 +- ...TranslationEvaluationMetricsOrBuilder.java | 51 + .../v1beta1/TranslationModelMetadata.java | 472 +- .../TranslationModelMetadataOrBuilder.java | 45 +- .../automl/v1beta1/TranslationProto.java | 126 + .../google/cloud/automl/v1beta1/TypeCode.java | 110 +- .../UndeployModelOperationMetadata.java | 259 +- ...deployModelOperationMetadataOrBuilder.java | 24 + .../automl/v1beta1/UndeployModelRequest.java | 339 +- .../UndeployModelRequestOrBuilder.java | 54 + .../v1beta1/UpdateColumnSpecRequest.java | 480 +- .../UpdateColumnSpecRequestOrBuilder.java | 46 +- .../automl/v1beta1/UpdateDatasetRequest.java | 480 +- .../UpdateDatasetRequestOrBuilder.java | 46 +- .../v1beta1/UpdateTableSpecRequest.java | 483 +- .../UpdateTableSpecRequestOrBuilder.java | 46 +- .../VideoClassificationDatasetMetadata.java | 274 +- ...lassificationDatasetMetadataOrBuilder.java | 24 + .../VideoClassificationModelMetadata.java | 262 +- ...oClassificationModelMetadataOrBuilder.java | 24 + .../VideoObjectTrackingAnnotation.java | 549 +- ...ideoObjectTrackingAnnotationOrBuilder.java | 46 +- .../VideoObjectTrackingDatasetMetadata.java | 274 +- ...bjectTrackingDatasetMetadataOrBuilder.java | 24 + .../VideoObjectTrackingEvaluationMetrics.java | 660 ++- ...ectTrackingEvaluationMetricsOrBuilder.java | 65 +- .../VideoObjectTrackingModelMetadata.java | 262 +- ...oObjectTrackingModelMetadataOrBuilder.java | 24 + .../cloud/automl/v1beta1/VideoProto.java | 105 + .../automl/v1beta1/annotation_payload.proto | 0 .../automl/v1beta1/annotation_spec.proto | 0 .../cloud/automl/v1beta1/classification.proto | 0 .../cloud/automl/v1beta1/column_spec.proto | 0 .../cloud/automl/v1beta1/data_items.proto | 0 .../cloud/automl/v1beta1/data_stats.proto | 0 .../cloud/automl/v1beta1/data_types.proto | 0 .../google/cloud/automl/v1beta1/dataset.proto | 0 .../cloud/automl/v1beta1/detection.proto | 0 .../cloud/automl/v1beta1/geometry.proto | 0 .../google/cloud/automl/v1beta1/image.proto | 0 .../google/cloud/automl/v1beta1/io.proto | 0 .../google/cloud/automl/v1beta1/model.proto | 0 .../automl/v1beta1/model_evaluation.proto | 0 .../cloud/automl/v1beta1/operations.proto | 0 .../automl/v1beta1/prediction_service.proto | 0 .../google/cloud/automl/v1beta1/ranges.proto | 0 .../cloud/automl/v1beta1/regression.proto | 0 .../google/cloud/automl/v1beta1/service.proto | 0 .../cloud/automl/v1beta1/table_spec.proto | 0 .../google/cloud/automl/v1beta1/tables.proto | 0 .../cloud/automl/v1beta1/temporal.proto | 0 .../google/cloud/automl/v1beta1/text.proto | 0 .../automl/v1beta1/text_extraction.proto | 0 .../cloud/automl/v1beta1/text_segment.proto | 0 .../cloud/automl/v1beta1/text_sentiment.proto | 0 .../cloud/automl/v1beta1/translation.proto | 0 .../google/cloud/automl/v1beta1/video.proto | 0 647 files changed, 99974 insertions(+), 60766 deletions(-) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java (97%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java (86%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java (96%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java (99%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java (87%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java (96%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/package-info.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/AutoMlClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/MockAutoMl.java (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/MockAutoMlImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/MockPredictionService.java (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/MockPredictionServiceImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1/PredictionServiceClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionService.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-automl => google-cloud-automl}/src/test/java/com/google/cloud/automl/v1beta1/PredictionServiceClientTest.java (100%) create mode 100644 grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java rename {owl-bot-staging/v1/grpc-google-cloud-automl-v1 => grpc-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java (67%) create mode 100644 grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java rename {owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1 => grpc-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java (64%) delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfigOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DataItems.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/NormalizedVertexOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtraction.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetricsOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetricsOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RangesProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java (85%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/AnnotationSpec.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java (67%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOuterClass.java create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlProto.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfig.java (78%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfigOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java (89%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java (69%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ClassificationType.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java (64%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java (51%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java (56%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DataItems.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/Dataset.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DatasetName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java (69%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequest.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java (58%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/Document.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java (62%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java (61%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java (63%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GcsDestination.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GcsSource.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java (69%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequest.java (64%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java (64%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java (64%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/Image.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java (82%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java (90%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java (62%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java (88%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadata.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java (63%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/InputConfig.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java (79%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/Model.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java (73%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfig.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java (75%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/NormalizedVertex.java (68%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/NormalizedVertexOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java (85%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/OutputConfig.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/PredictRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/PredictResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java (86%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceProto.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadata.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java (57%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtraction.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotation.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java (62%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetricsOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSegment.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java (62%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentProto.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotation.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadataOrBuilder.java create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentProto.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSnippet.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java (67%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetricsOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java (69%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadata.java (64%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java (65%) create mode 100644 proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/annotation_payload.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/annotation_spec.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/classification.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/data_items.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/dataset.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/detection.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/geometry.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/image.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/io.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/model.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/model_evaluation.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/operations.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/prediction_service.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/service.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/text.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/text_extraction.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/text_segment.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/text_sentiment.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-automl-v1 => proto-google-cloud-automl-v1}/src/main/proto/google/cloud/automl/v1/translation.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java (81%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java (67%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java (66%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java (80%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java (83%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java (78%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java (90%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java (52%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java (53%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java (54%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java (50%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java (73%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java (68%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java (62%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java (64%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java (51%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java (85%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DataType.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java (87%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java (62%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java (64%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java (64%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java (65%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java (64%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java (57%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Document.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java (82%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java (67%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java (78%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java (64%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java (62%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java (55%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java (59%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java (60%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java (62%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java (80%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java (67%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java (64%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java (54%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java (64%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java (64%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java (65%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java (54%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Image.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java (80%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java (89%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java (59%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java (79%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java (88%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java (73%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java (65%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java (63%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java (82%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java (81%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Model.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java (67%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java (78%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java (89%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java (66%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java (68%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java (77%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java (81%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java (79%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java (86%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RangesProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/RegressionProto.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/Row.java (79%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java (81%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StructType.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java (81%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java (87%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java (83%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java (81%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java (90%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java (58%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java (64%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java (60%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java (58%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java (63%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java (55%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java (65%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java (66%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java (69%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java (62%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java (64%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java (60%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java (61%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java (81%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java (59%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java (61%) create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java create mode 100644 proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/annotation_spec.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/classification.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/data_items.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/data_types.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/dataset.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/detection.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/geometry.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/image.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/io.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/model.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/operations.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/ranges.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/regression.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/service.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/tables.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/temporal.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/text.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/translation.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1 => proto-google-cloud-automl-v1beta1}/src/main/proto/google/cloud/automl/v1beta1/video.proto (100%) diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java index b558143b7..732aee39d 100644 --- a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java @@ -72,13 +72,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -726,8 +726,8 @@ public final UnaryCallable deleteDatasetCallabl *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must - * be explicitly set. Returns an empty response in the + *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be + * explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. *
* @@ -764,8 +764,8 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must - * be explicitly set. Returns an empty response in the + *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be + * explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. *
* @@ -799,8 +799,8 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must - * be explicitly set. Returns an empty response in the + *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be + * explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. *
* @@ -832,8 +832,8 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must - * be explicitly set. Returns an empty response in the + *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be + * explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. *
* @@ -865,8 +865,8 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must - * be explicitly set. Returns an empty response in the + *
  • A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be + * explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. *
* @@ -2428,7 +2428,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListDatasetsPagedResponse extends AbstractPagedListResponse< - ListDatasetsRequest, ListDatasetsResponse, Dataset, ListDatasetsPage, + ListDatasetsRequest, + ListDatasetsResponse, + Dataset, + ListDatasetsPage, ListDatasetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2477,7 +2480,10 @@ public ApiFuture createPageAsync( public static class ListDatasetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListDatasetsRequest, ListDatasetsResponse, Dataset, ListDatasetsPage, + ListDatasetsRequest, + ListDatasetsResponse, + Dataset, + ListDatasetsPage, ListDatasetsFixedSizeCollection> { private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { @@ -2497,7 +2503,10 @@ protected ListDatasetsFixedSizeCollection createCollection( public static class ListModelsPagedResponse extends AbstractPagedListResponse< - ListModelsRequest, ListModelsResponse, Model, ListModelsPage, + ListModelsRequest, + ListModelsResponse, + Model, + ListModelsPage, ListModelsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2544,7 +2553,10 @@ public ApiFuture createPageAsync( public static class ListModelsFixedSizeCollection extends AbstractFixedSizeCollection< - ListModelsRequest, ListModelsResponse, Model, ListModelsPage, + ListModelsRequest, + ListModelsResponse, + Model, + ListModelsPage, ListModelsFixedSizeCollection> { private ListModelsFixedSizeCollection(List pages, int collectionSize) { @@ -2564,8 +2576,11 @@ protected ListModelsFixedSizeCollection createCollection( public static class ListModelEvaluationsPagedResponse extends AbstractPagedListResponse< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, - ListModelEvaluationsPage, ListModelEvaluationsFixedSizeCollection> { + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, + ModelEvaluation, + ListModelEvaluationsPage, + ListModelEvaluationsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2586,7 +2601,9 @@ private ListModelEvaluationsPagedResponse(ListModelEvaluationsPage page) { public static class ListModelEvaluationsPage extends AbstractPage< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, + ModelEvaluation, ListModelEvaluationsPage> { private ListModelEvaluationsPage( @@ -2619,8 +2636,11 @@ public ApiFuture createPageAsync( public static class ListModelEvaluationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, - ListModelEvaluationsPage, ListModelEvaluationsFixedSizeCollection> { + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, + ModelEvaluation, + ListModelEvaluationsPage, + ListModelEvaluationsFixedSizeCollection> { private ListModelEvaluationsFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java index 8f5b3b0e3..08f87f0b3 100644 --- a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java @@ -30,7 +30,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -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.v1.stub.AutoMlStubSettings; @@ -47,9 +46,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -218,7 +217,8 @@ public UnaryCallSettings exportModelSettings() { /** Returns the object with the settings used for calls to listModelEvaluations. */ public PagedCallSettings< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return ((AutoMlStubSettings) getStubSettings()).listModelEvaluationsSettings(); @@ -466,7 +466,8 @@ public UnaryCallSettings.Builder exportModelSetti /** Returns the builder for the settings used for calls to listModelEvaluations. */ public PagedCallSettings.Builder< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return getStubSettingsBuilder().listModelEvaluationsSettings(); diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java similarity index 86% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java index fe9c0d3da..dfac69ce8 100644 --- a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java @@ -57,13 +57,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -170,46 +170,46 @@ public final OperationsClient getOperationsClient() { *

AutoML Vision Classification * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Vision Object Detection * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Natural Language Classification * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or - * .TIFF format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF + * format with size upto 2MB. *
* *

AutoML Natural Language Entity Extraction * *

    - *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or + *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or * .TIFF format with size upto 20MB. *
* *

AutoML Natural Language Sentiment Analysis * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or - * .TIFF format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF + * format with size upto 2MB. *
* *

AutoML Translation * *

    - *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. + *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. *
* *

AutoML Tables * *

    - *
  • A row with column values matching the columns of the model, up to 5MB. Not available for + *
  • A row with column values matching the columns of the model, up to 5MB. Not available for * FORECASTING `prediction_type`. *
* @@ -265,46 +265,46 @@ public final PredictResponse predict( *

AutoML Vision Classification * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Vision Object Detection * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Natural Language Classification * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or - * .TIFF format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF + * format with size upto 2MB. *
* *

AutoML Natural Language Entity Extraction * *

    - *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or + *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or * .TIFF format with size upto 20MB. *
* *

AutoML Natural Language Sentiment Analysis * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or - * .TIFF format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF + * format with size upto 2MB. *
* *

AutoML Translation * *

    - *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. + *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. *
* *

AutoML Tables * *

    - *
  • A row with column values matching the columns of the model, up to 5MB. Not available for + *
  • A row with column values matching the columns of the model, up to 5MB. Not available for * FORECASTING `prediction_type`. *
* @@ -356,46 +356,46 @@ public final PredictResponse predict( *

AutoML Vision Classification * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Vision Object Detection * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Natural Language Classification * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or - * .TIFF format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF + * format with size upto 2MB. *
* *

AutoML Natural Language Entity Extraction * *

    - *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or + *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or * .TIFF format with size upto 20MB. *
* *

AutoML Natural Language Sentiment Analysis * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or - * .TIFF format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF + * format with size upto 2MB. *
* *

AutoML Translation * *

    - *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. + *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. *
* *

AutoML Tables * *

    - *
  • A row with column values matching the columns of the model, up to 5MB. Not available for + *
  • A row with column values matching the columns of the model, up to 5MB. Not available for * FORECASTING `prediction_type`. *
* @@ -428,46 +428,46 @@ public final PredictResponse predict(PredictRequest request) { *

AutoML Vision Classification * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Vision Object Detection * *

    - *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. + *
  • An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. *
* *

AutoML Natural Language Classification * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or - * .TIFF format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF + * format with size upto 2MB. *
* *

AutoML Natural Language Entity Extraction * *

    - *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or + *
  • A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or * .TIFF format with size upto 20MB. *
* *

AutoML Natural Language Sentiment Analysis * *

    - *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or - * .TIFF format with size upto 2MB. + *
  • A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF + * format with size upto 2MB. *
* *

AutoML Translation * *

    - *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. + *
  • A TextSnippet up to 25,000 characters, UTF-8 encoded. *
* *

AutoML Tables * *

    - *
  • A row with column values matching the columns of the model, up to 5MB. Not available for + *
  • A row with column values matching the columns of the model, up to 5MB. Not available for * FORECASTING `prediction_type`. *
* @@ -503,13 +503,13 @@ public final UnaryCallable predictCallable() { * [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * *
    - *
  • AutoML Vision Classification - *
  • AutoML Vision Object Detection - *
  • AutoML Video Intelligence Classification - *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - *
  • AutoML Natural Language Entity Extraction - *
  • AutoML Natural Language Sentiment Analysis - *
  • AutoML Tables + *
  • AutoML Vision Classification + *
  • AutoML Vision Object Detection + *
  • AutoML Video Intelligence Classification + *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification + *
  • AutoML Natural Language Entity Extraction + *
  • AutoML Natural Language Sentiment Analysis + *
  • AutoML Tables *
* *

Sample code: @@ -604,13 +604,13 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * *

    - *
  • AutoML Vision Classification - *
  • AutoML Vision Object Detection - *
  • AutoML Video Intelligence Classification - *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - *
  • AutoML Natural Language Entity Extraction - *
  • AutoML Natural Language Sentiment Analysis - *
  • AutoML Tables + *
  • AutoML Vision Classification + *
  • AutoML Vision Object Detection + *
  • AutoML Video Intelligence Classification + *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification + *
  • AutoML Natural Language Entity Extraction + *
  • AutoML Natural Language Sentiment Analysis + *
  • AutoML Tables *
* *

Sample code: @@ -705,13 +705,13 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * *

    - *
  • AutoML Vision Classification - *
  • AutoML Vision Object Detection - *
  • AutoML Video Intelligence Classification - *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - *
  • AutoML Natural Language Entity Extraction - *
  • AutoML Natural Language Sentiment Analysis - *
  • AutoML Tables + *
  • AutoML Vision Classification + *
  • AutoML Vision Object Detection + *
  • AutoML Video Intelligence Classification + *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification + *
  • AutoML Natural Language Entity Extraction + *
  • AutoML Natural Language Sentiment Analysis + *
  • AutoML Tables *
* *

Sample code: @@ -748,13 +748,13 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * *

    - *
  • AutoML Vision Classification - *
  • AutoML Vision Object Detection - *
  • AutoML Video Intelligence Classification - *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - *
  • AutoML Natural Language Entity Extraction - *
  • AutoML Natural Language Sentiment Analysis - *
  • AutoML Tables + *
  • AutoML Vision Classification + *
  • AutoML Vision Object Detection + *
  • AutoML Video Intelligence Classification + *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification + *
  • AutoML Natural Language Entity Extraction + *
  • AutoML Natural Language Sentiment Analysis + *
  • AutoML Tables *
* *

Sample code: @@ -791,13 +791,13 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * *

    - *
  • AutoML Vision Classification - *
  • AutoML Vision Object Detection - *
  • AutoML Video Intelligence Classification - *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - *
  • AutoML Natural Language Entity Extraction - *
  • AutoML Natural Language Sentiment Analysis - *
  • AutoML Tables + *
  • AutoML Vision Classification + *
  • AutoML Vision Object Detection + *
  • AutoML Video Intelligence Classification + *
  • AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification + *
  • AutoML Natural Language Entity Extraction + *
  • AutoML Natural Language Sentiment Analysis + *
  • AutoML Tables *
* *

Sample code: diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java index b747265be..4ccb91b1f 100644 --- a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; -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.v1.stub.PredictionServiceStubSettings; @@ -41,9 +40,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/gapic_metadata.json b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/gapic_metadata.json rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/package-info.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/package-info.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java index 29d8d964f..bc5cd37d6 100644 --- a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java @@ -90,9 +90,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -161,7 +161,8 @@ public class AutoMlStubSettings extends StubSettings { private final UnaryCallSettings getModelEvaluationSettings; private final PagedCallSettings< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings; @@ -313,11 +314,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> LIST_MODEL_EVALUATIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -478,7 +481,8 @@ public UnaryCallSettings exportModelSettings() { /** Returns the object with the settings used for calls to listModelEvaluations. */ public PagedCallSettings< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return listModelEvaluationsSettings; @@ -633,7 +637,8 @@ public static class Builder extends StubSettings.Builder getModelEvaluationSettings; private final PagedCallSettings.Builder< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings; private static final ImmutableMap> @@ -1287,7 +1292,8 @@ public UnaryCallSettings.Builder exportModelSetti /** Returns the builder for the settings used for calls to listModelEvaluations. */ public PagedCallSettings.Builder< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return listModelEvaluationsSettings; diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlCallableFactory.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlCallableFactory.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java index 369963abb..69b213aae 100644 --- a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcAutoMlStub.java @@ -60,7 +60,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceCallableFactory.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceCallableFactory.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java index e8278a7ed..75bd218d7 100644 --- a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/GrpcPredictionServiceStub.java @@ -34,7 +34,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java index d63d4cc4d..987abf86d 100644 --- a/owl-bot-staging/v1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java @@ -57,9 +57,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java index 6b531369c..61d73c4bf 100644 --- a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java @@ -72,13 +72,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -696,7 +696,7 @@ public final UnaryCallable deleteDatasetCallabl *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter + *
  • 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. *
@@ -734,7 +734,7 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter + *
  • 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. *
@@ -769,7 +769,7 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter + *
  • 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. *
@@ -802,7 +802,7 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter + *
  • 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. *
@@ -835,7 +835,7 @@ public final OperationFuture importDataAsync( *

For Tables: * *

    - *
  • A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter + *
  • 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. *
@@ -3126,7 +3126,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListDatasetsPagedResponse extends AbstractPagedListResponse< - ListDatasetsRequest, ListDatasetsResponse, Dataset, ListDatasetsPage, + ListDatasetsRequest, + ListDatasetsResponse, + Dataset, + ListDatasetsPage, ListDatasetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3175,7 +3178,10 @@ public ApiFuture createPageAsync( public static class ListDatasetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListDatasetsRequest, ListDatasetsResponse, Dataset, ListDatasetsPage, + ListDatasetsRequest, + ListDatasetsResponse, + Dataset, + ListDatasetsPage, ListDatasetsFixedSizeCollection> { private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { @@ -3195,7 +3201,10 @@ protected ListDatasetsFixedSizeCollection createCollection( public static class ListTableSpecsPagedResponse extends AbstractPagedListResponse< - ListTableSpecsRequest, ListTableSpecsResponse, TableSpec, ListTableSpecsPage, + ListTableSpecsRequest, + ListTableSpecsResponse, + TableSpec, + ListTableSpecsPage, ListTableSpecsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3245,7 +3254,10 @@ public ApiFuture createPageAsync( public static class ListTableSpecsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTableSpecsRequest, ListTableSpecsResponse, TableSpec, ListTableSpecsPage, + ListTableSpecsRequest, + ListTableSpecsResponse, + TableSpec, + ListTableSpecsPage, ListTableSpecsFixedSizeCollection> { private ListTableSpecsFixedSizeCollection(List pages, int collectionSize) { @@ -3265,7 +3277,10 @@ protected ListTableSpecsFixedSizeCollection createCollection( public static class ListColumnSpecsPagedResponse extends AbstractPagedListResponse< - ListColumnSpecsRequest, ListColumnSpecsResponse, ColumnSpec, ListColumnSpecsPage, + ListColumnSpecsRequest, + ListColumnSpecsResponse, + ColumnSpec, + ListColumnSpecsPage, ListColumnSpecsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3315,7 +3330,10 @@ public ApiFuture createPageAsync( public static class ListColumnSpecsFixedSizeCollection extends AbstractFixedSizeCollection< - ListColumnSpecsRequest, ListColumnSpecsResponse, ColumnSpec, ListColumnSpecsPage, + ListColumnSpecsRequest, + ListColumnSpecsResponse, + ColumnSpec, + ListColumnSpecsPage, ListColumnSpecsFixedSizeCollection> { private ListColumnSpecsFixedSizeCollection( @@ -3336,7 +3354,10 @@ protected ListColumnSpecsFixedSizeCollection createCollection( public static class ListModelsPagedResponse extends AbstractPagedListResponse< - ListModelsRequest, ListModelsResponse, Model, ListModelsPage, + ListModelsRequest, + ListModelsResponse, + Model, + ListModelsPage, ListModelsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3383,7 +3404,10 @@ public ApiFuture createPageAsync( public static class ListModelsFixedSizeCollection extends AbstractFixedSizeCollection< - ListModelsRequest, ListModelsResponse, Model, ListModelsPage, + ListModelsRequest, + ListModelsResponse, + Model, + ListModelsPage, ListModelsFixedSizeCollection> { private ListModelsFixedSizeCollection(List pages, int collectionSize) { @@ -3403,8 +3427,11 @@ protected ListModelsFixedSizeCollection createCollection( public static class ListModelEvaluationsPagedResponse extends AbstractPagedListResponse< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, - ListModelEvaluationsPage, ListModelEvaluationsFixedSizeCollection> { + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, + ModelEvaluation, + ListModelEvaluationsPage, + ListModelEvaluationsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3425,7 +3452,9 @@ private ListModelEvaluationsPagedResponse(ListModelEvaluationsPage page) { public static class ListModelEvaluationsPage extends AbstractPage< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, + ModelEvaluation, ListModelEvaluationsPage> { private ListModelEvaluationsPage( @@ -3458,8 +3487,11 @@ public ApiFuture createPageAsync( public static class ListModelEvaluationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation, - ListModelEvaluationsPage, ListModelEvaluationsFixedSizeCollection> { + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, + ModelEvaluation, + ListModelEvaluationsPage, + ListModelEvaluationsFixedSizeCollection> { private ListModelEvaluationsFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java index a7196e8d3..fc9e3171c 100644 --- a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -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.stub.AutoMlStubSettings; @@ -49,9 +48,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -256,7 +255,8 @@ public UnaryCallSettings exportModelSettings() { /** Returns the object with the settings used for calls to listModelEvaluations. */ public PagedCallSettings< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return ((AutoMlStubSettings) getStubSettings()).listModelEvaluationsSettings(); @@ -540,7 +540,8 @@ public UnaryCallSettings.Builder exportModelSetti /** Returns the builder for the settings used for calls to listModelEvaluations. */ public PagedCallSettings.Builder< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return getStubSettingsBuilder().listModelEvaluationsSettings(); diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java similarity index 87% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java index c2ab7c2ff..50a36a753 100644 --- a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java @@ -57,13 +57,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -169,19 +169,19 @@ public final OperationsClient getOperationsClient() { * 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 60,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. Not + *
  • 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 60,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. Not * available for FORECASTING *
* *

[prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]. * *

    - *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. + *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. *
* *

Sample code: @@ -201,7 +201,7 @@ public final OperationsClient getOperationsClient() { * @param params Additional domain-specific parameters, any string must be up to 25000 characters * long. *

    - *
  • For Image Classification: + *
  • 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. The @@ -212,7 +212,7 @@ public final OperationsClient getOperationsClient() { * than this number of bounding boxes will be returned in the response. Default is 100, the * requested value may be limited by server. *

    - *
  • For Tables: feature_imp<span>ortan</span>ce - (boolean) Whether feature + *
  • For Tables: feature_imp<span>ortan</span>ce - (boolean) Whether feature * importance should be populated in the returned TablesAnnotation. The default is * false. *
@@ -236,19 +236,19 @@ public final PredictResponse predict( * 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 60,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. Not + *
  • 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 60,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. Not * available for FORECASTING *
* *

[prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]. * *

    - *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. + *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. *
* *

Sample code: @@ -268,7 +268,7 @@ public final PredictResponse predict( * @param params Additional domain-specific parameters, any string must be up to 25000 characters * long. *

    - *
  • For Image Classification: + *
  • 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. The @@ -279,7 +279,7 @@ public final PredictResponse predict( * than this number of bounding boxes will be returned in the response. Default is 100, the * requested value may be limited by server. *

    - *
  • For Tables: feature_imp<span>ortan</span>ce - (boolean) Whether feature + *
  • For Tables: feature_imp<span>ortan</span>ce - (boolean) Whether feature * importance should be populated in the returned TablesAnnotation. The default is * false. *
@@ -299,19 +299,19 @@ public final PredictResponse predict( * 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 60,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. Not + *
  • 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 60,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. Not * available for FORECASTING *
* *

[prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]. * *

    - *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. + *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. *
* *

Sample code: @@ -341,19 +341,19 @@ public final PredictResponse predict(PredictRequest request) { * 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 60,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. Not + *
  • 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 60,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. Not * available for FORECASTING *
* *

[prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]. * *

    - *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. + *
  • Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. *
* *

Sample code: @@ -388,11 +388,11 @@ public final UnaryCallable predictCallable() { * [response][google.longrunning.Operation.response] field. Available for following ML problems: * *

    - *
  • Image Classification - *
  • Image Object Detection - *
  • Video Classification - *
  • Video Object Tracking * Text Extraction - *
  • Tables + *
  • Image Classification + *
  • Image Object Detection + *
  • Video Classification + *
  • Video Object Tracking * Text Extraction + *
  • Tables *
* *

Sample code: @@ -415,19 +415,19 @@ public final UnaryCallable predictCallable() { * @param params Required. Additional domain-specific parameters for the predictions, any string * must be up to 25000 characters long. *

    - *
  • For Text Classification: + *
  • For Text Classification: *
*

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

    - *
  • For Image Classification: + *
  • 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. The * default is 0.5. *

    - *
  • For Image Object Detection: + *
  • 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, @@ -435,7 +435,7 @@ public final UnaryCallable predictCallable() { * boxes will be produced per image. Default is 100, the requested value may be limited by * server. *

    - *
  • For Video Classification : + *
  • 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 @@ -456,12 +456,12 @@ public final UnaryCallable predictCallable() { * the quality of it depends on training data, but there are no metrics provided to describe * that quality. The default is "false". *

    - *
  • For Tables: + *
  • For Tables: *
*

feature_imp<span>ortan</span>ce - (boolean) Whether feature importance * should be populated in the returned TablesAnnotations. The default is false. *

    - *
  • For Video Object Tracking: + *
  • For Video Object Tracking: *
*

`score_threshold` - (float) When Model detects objects on video frames, it will only * produce bounding boxes which have at least this confidence score. Value in 0 to 1 range, @@ -498,11 +498,11 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML problems: * *

    - *
  • Image Classification - *
  • Image Object Detection - *
  • Video Classification - *
  • Video Object Tracking * Text Extraction - *
  • Tables + *
  • Image Classification + *
  • Image Object Detection + *
  • Video Classification + *
  • Video Object Tracking * Text Extraction + *
  • Tables *
* *

Sample code: @@ -525,19 +525,19 @@ public final OperationFuture batchPredict * @param params Required. Additional domain-specific parameters for the predictions, any string * must be up to 25000 characters long. *

    - *
  • For Text Classification: + *
  • For Text Classification: *
*

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

    - *
  • For Image Classification: + *
  • 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. The * default is 0.5. *

    - *
  • For Image Object Detection: + *
  • 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, @@ -545,7 +545,7 @@ public final OperationFuture batchPredict * boxes will be produced per image. Default is 100, the requested value may be limited by * server. *

    - *
  • For Video Classification : + *
  • 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 @@ -566,12 +566,12 @@ public final OperationFuture batchPredict * the quality of it depends on training data, but there are no metrics provided to describe * that quality. The default is "false". *

    - *
  • For Tables: + *
  • For Tables: *
*

feature_imp<span>ortan</span>ce - (boolean) Whether feature importance * should be populated in the returned TablesAnnotations. The default is false. *

    - *
  • For Video Object Tracking: + *
  • For Video Object Tracking: *
*

`score_threshold` - (float) When Model detects objects on video frames, it will only * produce bounding boxes which have at least this confidence score. Value in 0 to 1 range, @@ -608,11 +608,11 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML problems: * *

    - *
  • Image Classification - *
  • Image Object Detection - *
  • Video Classification - *
  • Video Object Tracking * Text Extraction - *
  • Tables + *
  • Image Classification + *
  • Image Object Detection + *
  • Video Classification + *
  • Video Object Tracking * Text Extraction + *
  • Tables *
* *

Sample code: @@ -649,11 +649,11 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML problems: * *

    - *
  • Image Classification - *
  • Image Object Detection - *
  • Video Classification - *
  • Video Object Tracking * Text Extraction - *
  • Tables + *
  • Image Classification + *
  • Image Object Detection + *
  • Video Classification + *
  • Video Object Tracking * Text Extraction + *
  • Tables *
* *

Sample code: @@ -690,11 +690,11 @@ public final OperationFuture batchPredict * [response][google.longrunning.Operation.response] field. Available for following ML problems: * *

    - *
  • Image Classification - *
  • Image Object Detection - *
  • Video Classification - *
  • Video Object Tracking * Text Extraction - *
  • Tables + *
  • Image Classification + *
  • Image Object Detection + *
  • Video Classification + *
  • Video Object Tracking * Text Extraction + *
  • Tables *
* *

Sample code: diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java similarity index 96% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java index 0daee0e9d..09bb14ee0 100644 --- a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; -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.stub.PredictionServiceStubSettings; @@ -41,9 +40,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/gapic_metadata.json b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/gapic_metadata.json rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java index bf29aa00d..3a36971b2 100644 --- a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java @@ -102,9 +102,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -185,7 +185,8 @@ public class AutoMlStubSettings extends StubSettings { private final UnaryCallSettings getModelEvaluationSettings; private final PagedCallSettings< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings; @@ -447,11 +448,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> LIST_MODEL_EVALUATIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -647,7 +650,8 @@ public UnaryCallSettings exportModelSettings() { /** Returns the object with the settings used for calls to listModelEvaluations. */ public PagedCallSettings< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return listModelEvaluationsSettings; @@ -823,7 +827,8 @@ public static class Builder extends StubSettings.Builder getModelEvaluationSettings; private final PagedCallSettings.Builder< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings; private static final ImmutableMap> @@ -1568,7 +1573,8 @@ public UnaryCallSettings.Builder exportModelSetti /** Returns the builder for the settings used for calls to listModelEvaluations. */ public PagedCallSettings.Builder< - ListModelEvaluationsRequest, ListModelEvaluationsResponse, + ListModelEvaluationsRequest, + ListModelEvaluationsResponse, ListModelEvaluationsPagedResponse> listModelEvaluationsSettings() { return listModelEvaluationsSettings; diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlCallableFactory.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlCallableFactory.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java index 5e59973a0..c5e37f35c 100644 --- a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java @@ -73,7 +73,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceCallableFactory.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceCallableFactory.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java index d5f139a71..c4d6358a0 100644 --- a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java @@ -35,7 +35,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java rename to google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java index 72f878455..4560df840 100644 --- a/owl-bot-staging/v1beta1/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java +++ b/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java @@ -57,9 +57,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (automl.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (automl.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/AutoMlClientTest.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/AutoMlClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/AutoMlClientTest.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1/AutoMlClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMl.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMl.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMl.java diff --git a/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMlImpl.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMlImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMlImpl.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockAutoMlImpl.java diff --git a/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionService.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionService.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionService.java diff --git a/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionServiceImpl.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionServiceImpl.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1/MockPredictionServiceImpl.java diff --git a/owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/PredictionServiceClientTest.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/PredictionServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1/PredictionServiceClientTest.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1/PredictionServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMl.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMl.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionService.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionService.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionService.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionService.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/PredictionServiceClientTest.java b/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/PredictionServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/PredictionServiceClientTest.java rename to google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/PredictionServiceClientTest.java diff --git a/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java b/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java new file mode 100644 index 000000000..b368a75dd --- /dev/null +++ b/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java @@ -0,0 +1,2439 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +package com.google.cloud.automl.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * AutoML Server API.
+ * The resource names are assigned by the server.
+ * The server never reuses names that it has created after the resources with
+ * those names are deleted.
+ * 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( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/automl/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AutoMlGrpc { + + private AutoMlGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.automl.v1.AutoMl"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation> + getCreateDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataset", + requestType = com.google.cloud.automl.v1.CreateDatasetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation> + getCreateDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation> + getCreateDatasetMethod; + if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { + AutoMlGrpc.getCreateDatasetMethod = + getCreateDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.CreateDatasetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateDataset")) + .build(); + } + } + } + return getCreateDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset> + getGetDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataset", + requestType = com.google.cloud.automl.v1.GetDatasetRequest.class, + responseType = com.google.cloud.automl.v1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset> + getGetDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset> + getGetDatasetMethod; + if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { + AutoMlGrpc.getGetDatasetMethod = + getGetDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.GetDatasetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetDataset")) + .build(); + } + } + } + return getGetDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ListDatasetsRequest, + com.google.cloud.automl.v1.ListDatasetsResponse> + getListDatasetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDatasets", + requestType = com.google.cloud.automl.v1.ListDatasetsRequest.class, + responseType = com.google.cloud.automl.v1.ListDatasetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ListDatasetsRequest, + com.google.cloud.automl.v1.ListDatasetsResponse> + getListDatasetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ListDatasetsRequest, + com.google.cloud.automl.v1.ListDatasetsResponse> + getListDatasetsMethod; + if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { + AutoMlGrpc.getListDatasetsMethod = + getListDatasetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatasets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListDatasetsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListDatasetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListDatasets")) + .build(); + } + } + } + return getListDatasetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.Dataset> + getUpdateDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", + requestType = com.google.cloud.automl.v1.UpdateDatasetRequest.class, + responseType = com.google.cloud.automl.v1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.Dataset> + getUpdateDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.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(SERVICE_NAME, "UpdateDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.UpdateDatasetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateDataset")) + .build(); + } + } + } + return getUpdateDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation> + getDeleteDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", + requestType = com.google.cloud.automl.v1.DeleteDatasetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation> + getDeleteDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation> + getDeleteDatasetMethod; + if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { + AutoMlGrpc.getDeleteDatasetMethod = + getDeleteDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.DeleteDatasetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteDataset")) + .build(); + } + } + } + return getDeleteDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation> + getImportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportData", + requestType = com.google.cloud.automl.v1.ImportDataRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation> + getImportDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation> + getImportDataMethod; + if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { + AutoMlGrpc.getImportDataMethod = + getImportDataMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ImportDataRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ImportData")) + .build(); + } + } + } + return getImportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation> + getExportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportData", + requestType = com.google.cloud.automl.v1.ExportDataRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation> + getExportDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation> + getExportDataMethod; + if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { + AutoMlGrpc.getExportDataMethod = + getExportDataMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ExportDataRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportData")) + .build(); + } + } + } + return getExportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1.AnnotationSpec> + getGetAnnotationSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpec", + requestType = com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, + responseType = com.google.cloud.automl.v1.AnnotationSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1.AnnotationSpec> + getGetAnnotationSpecMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1.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(SERVICE_NAME, "GetAnnotationSpec")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.GetAnnotationSpecRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.AnnotationSpec.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetAnnotationSpec")) + .build(); + } + } + } + return getGetAnnotationSpecMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation> + getCreateModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateModel", + requestType = com.google.cloud.automl.v1.CreateModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation> + getCreateModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation> + getCreateModelMethod; + if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { + AutoMlGrpc.getCreateModelMethod = + getCreateModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.CreateModelRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateModel")) + .build(); + } + } + } + return getCreateModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model> + getGetModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetModel", + requestType = com.google.cloud.automl.v1.GetModelRequest.class, + responseType = com.google.cloud.automl.v1.Model.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model> + getGetModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model> + getGetModelMethod; + if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { + AutoMlGrpc.getGetModelMethod = + getGetModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.GetModelRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.Model.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModel")) + .build(); + } + } + } + return getGetModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ListModelsRequest, + com.google.cloud.automl.v1.ListModelsResponse> + getListModelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModels", + requestType = com.google.cloud.automl.v1.ListModelsRequest.class, + responseType = com.google.cloud.automl.v1.ListModelsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ListModelsRequest, + com.google.cloud.automl.v1.ListModelsResponse> + getListModelsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ListModelsRequest, + com.google.cloud.automl.v1.ListModelsResponse> + getListModelsMethod; + if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { + AutoMlGrpc.getListModelsMethod = + getListModelsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListModelsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListModelsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModels")) + .build(); + } + } + } + return getListModelsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation> + getDeleteModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteModel", + requestType = com.google.cloud.automl.v1.DeleteModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation> + getDeleteModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation> + getDeleteModelMethod; + if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { + AutoMlGrpc.getDeleteModelMethod = + getDeleteModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.DeleteModelRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteModel")) + .build(); + } + } + } + return getDeleteModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model> + getUpdateModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateModel", + requestType = com.google.cloud.automl.v1.UpdateModelRequest.class, + responseType = com.google.cloud.automl.v1.Model.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model> + getUpdateModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model> + getUpdateModelMethod; + if ((getUpdateModelMethod = AutoMlGrpc.getUpdateModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getUpdateModelMethod = AutoMlGrpc.getUpdateModelMethod) == null) { + AutoMlGrpc.getUpdateModelMethod = + getUpdateModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.UpdateModelRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.Model.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateModel")) + .build(); + } + } + } + return getUpdateModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.DeployModelRequest, com.google.longrunning.Operation> + getDeployModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeployModel", + requestType = com.google.cloud.automl.v1.DeployModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.DeployModelRequest, com.google.longrunning.Operation> + getDeployModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.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(SERVICE_NAME, "DeployModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.DeployModelRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeployModel")) + .build(); + } + } + } + return getDeployModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.UndeployModelRequest, com.google.longrunning.Operation> + getUndeployModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeployModel", + requestType = com.google.cloud.automl.v1.UndeployModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.UndeployModelRequest, com.google.longrunning.Operation> + getUndeployModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.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(SERVICE_NAME, "UndeployModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.UndeployModelRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UndeployModel")) + .build(); + } + } + } + return getUndeployModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation> + getExportModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportModel", + requestType = com.google.cloud.automl.v1.ExportModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation> + getExportModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation> + getExportModelMethod; + if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { + AutoMlGrpc.getExportModelMethod = + getExportModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ExportModelRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) + .build(); + } + } + } + return getExportModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetModelEvaluationRequest, + com.google.cloud.automl.v1.ModelEvaluation> + getGetModelEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", + requestType = com.google.cloud.automl.v1.GetModelEvaluationRequest.class, + responseType = com.google.cloud.automl.v1.ModelEvaluation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetModelEvaluationRequest, + com.google.cloud.automl.v1.ModelEvaluation> + getGetModelEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.GetModelEvaluationRequest, + com.google.cloud.automl.v1.ModelEvaluation> + getGetModelEvaluationMethod; + if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { + AutoMlGrpc.getGetModelEvaluationMethod = + getGetModelEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.GetModelEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModelEvaluation")) + .build(); + } + } + } + return getGetModelEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ListModelEvaluationsRequest, + com.google.cloud.automl.v1.ListModelEvaluationsResponse> + getListModelEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", + requestType = com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, + responseType = com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ListModelEvaluationsRequest, + com.google.cloud.automl.v1.ListModelEvaluationsResponse> + getListModelEvaluationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1.ListModelEvaluationsRequest, + com.google.cloud.automl.v1.ListModelEvaluationsResponse> + getListModelEvaluationsMethod; + if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { + AutoMlGrpc.getListModelEvaluationsMethod = + getListModelEvaluationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListModelEvaluationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1.ListModelEvaluationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AutoMlMethodDescriptorSupplier("ListModelEvaluations")) + .build(); + } + } + } + return getListModelEvaluationsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AutoMlStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlStub(channel, callOptions); + } + }; + return AutoMlStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AutoMlBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlBlockingStub(channel, callOptions); + } + }; + return AutoMlBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AutoMlFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlFutureStub(channel, callOptions); + } + }; + return AutoMlFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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 { + + /** + * + * + *
+     * Creates a dataset.
+     * 
+ */ + public void createDataset( + com.google.cloud.automl.v1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a dataset.
+     * 
+ */ + public void getDataset( + com.google.cloud.automl.v1.GetDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists datasets in a project.
+     * 
+ */ + public void listDatasets( + com.google.cloud.automl.v1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatasetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public void updateDataset( + com.google.cloud.automl.v1.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void deleteDataset( + com.google.cloud.automl.v1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.v1.InputConfig.params]
+     *     parameter must be explicitly set.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void importData( + com.google.cloud.automl.v1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); + } + + /** + * + * + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportData( + com.google.cloud.automl.v1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public void getAnnotationSpec( + com.google.cloud.automl.v1.GetAnnotationSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAnnotationSpecMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public void createModel( + com.google.cloud.automl.v1.CreateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateModelMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a model.
+     * 
+ */ + public void getModel( + com.google.cloud.automl.v1.GetModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists models.
+     * 
+ */ + public void listModels( + com.google.cloud.automl.v1.ListModelsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void deleteModel( + com.google.cloud.automl.v1.DeleteModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteModelMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a model.
+     * 
+ */ + public void updateModel( + com.google.cloud.automl.v1.UpdateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateModelMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
+     *  will reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void deployModel( + com.google.cloud.automl.v1.DeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeployModelMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void undeployModel( + com.google.cloud.automl.v1.UndeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeployModelMethod(), 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.v1.ModelExportOutputConfig].
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportModel( + com.google.cloud.automl.v1.ExportModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportModelMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a model evaluation.
+     * 
+ */ + public void getModelEvaluation( + com.google.cloud.automl.v1.GetModelEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetModelEvaluationMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists model evaluations.
+     * 
+ */ + public void listModelEvaluations( + com.google.cloud.automl.v1.ListModelEvaluationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelEvaluationsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.CreateDatasetRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_DATASET))) + .addMethod( + getGetDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.GetDatasetRequest, + com.google.cloud.automl.v1.Dataset>(this, METHODID_GET_DATASET))) + .addMethod( + getListDatasetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ListDatasetsRequest, + com.google.cloud.automl.v1.ListDatasetsResponse>( + this, METHODID_LIST_DATASETS))) + .addMethod( + getUpdateDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.UpdateDatasetRequest, + com.google.cloud.automl.v1.Dataset>(this, METHODID_UPDATE_DATASET))) + .addMethod( + getDeleteDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.DeleteDatasetRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_DATASET))) + .addMethod( + getImportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ImportDataRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_DATA))) + .addMethod( + getExportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ExportDataRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) + .addMethod( + getGetAnnotationSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1.AnnotationSpec>( + this, METHODID_GET_ANNOTATION_SPEC))) + .addMethod( + getCreateModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.CreateModelRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_MODEL))) + .addMethod( + getGetModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model>( + this, METHODID_GET_MODEL))) + .addMethod( + getListModelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ListModelsRequest, + com.google.cloud.automl.v1.ListModelsResponse>(this, METHODID_LIST_MODELS))) + .addMethod( + getDeleteModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.DeleteModelRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL))) + .addMethod( + getUpdateModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.UpdateModelRequest, + com.google.cloud.automl.v1.Model>(this, METHODID_UPDATE_MODEL))) + .addMethod( + getDeployModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.DeployModelRequest, + com.google.longrunning.Operation>(this, METHODID_DEPLOY_MODEL))) + .addMethod( + getUndeployModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.UndeployModelRequest, + com.google.longrunning.Operation>(this, METHODID_UNDEPLOY_MODEL))) + .addMethod( + getExportModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ExportModelRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_MODEL))) + .addMethod( + getGetModelEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.GetModelEvaluationRequest, + com.google.cloud.automl.v1.ModelEvaluation>( + this, METHODID_GET_MODEL_EVALUATION))) + .addMethod( + getListModelEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.ListModelEvaluationsRequest, + com.google.cloud.automl.v1.ListModelEvaluationsResponse>( + this, METHODID_LIST_MODEL_EVALUATIONS))) + .build(); + } + } + + /** + * + * + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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.AbstractAsyncStub { + private AutoMlStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a dataset.
+     * 
+ */ + public void createDataset( + com.google.cloud.automl.v1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a dataset.
+     * 
+ */ + public void getDataset( + com.google.cloud.automl.v1.GetDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists datasets in a project.
+     * 
+ */ + public void listDatasets( + com.google.cloud.automl.v1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public void updateDataset( + com.google.cloud.automl.v1.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void deleteDataset( + com.google.cloud.automl.v1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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.v1.InputConfig.params]
+     *     parameter must be explicitly set.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void importData( + com.google.cloud.automl.v1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportData( + com.google.cloud.automl.v1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public void getAnnotationSpec( + com.google.cloud.automl.v1.GetAnnotationSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public void createModel( + com.google.cloud.automl.v1.CreateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateModelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a model.
+     * 
+ */ + public void getModel( + com.google.cloud.automl.v1.GetModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists models.
+     * 
+ */ + public void listModels( + com.google.cloud.automl.v1.ListModelsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void deleteModel( + com.google.cloud.automl.v1.DeleteModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteModelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a model.
+     * 
+ */ + public void updateModel( + com.google.cloud.automl.v1.UpdateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateModelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
+     *  will reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void deployModel( + com.google.cloud.automl.v1.DeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeployModelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void undeployModel( + com.google.cloud.automl.v1.UndeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeployModelMethod(), getCallOptions()), + request, + 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.v1.ModelExportOutputConfig].
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportModel( + com.google.cloud.automl.v1.ExportModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportModelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a model evaluation.
+     * 
+ */ + public void getModelEvaluation( + com.google.cloud.automl.v1.GetModelEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists model evaluations.
+     * 
+ */ + public void listModelEvaluations( + com.google.cloud.automl.v1.ListModelEvaluationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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 + extends io.grpc.stub.AbstractBlockingStub { + private AutoMlBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a dataset.
+     * 
+ */ + public com.google.longrunning.Operation createDataset( + com.google.cloud.automl.v1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1.Dataset getDataset( + com.google.cloud.automl.v1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists datasets in a project.
+     * 
+ */ + public com.google.cloud.automl.v1.ListDatasetsResponse listDatasets( + com.google.cloud.automl.v1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1.Dataset updateDataset( + com.google.cloud.automl.v1.UpdateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation deleteDataset( + com.google.cloud.automl.v1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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.v1.InputConfig.params]
+     *     parameter must be explicitly set.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation importData( + com.google.cloud.automl.v1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDataMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation exportData( + com.google.cloud.automl.v1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public com.google.cloud.automl.v1.AnnotationSpec getAnnotationSpec( + com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public com.google.longrunning.Operation createModel( + com.google.cloud.automl.v1.CreateModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a model.
+     * 
+ */ + public com.google.cloud.automl.v1.Model getModel( + com.google.cloud.automl.v1.GetModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists models.
+     * 
+ */ + public com.google.cloud.automl.v1.ListModelsResponse listModels( + com.google.cloud.automl.v1.ListModelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation deleteModel( + com.google.cloud.automl.v1.DeleteModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a model.
+     * 
+ */ + public com.google.cloud.automl.v1.Model updateModel( + com.google.cloud.automl.v1.UpdateModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
+     *  will reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation deployModel( + com.google.cloud.automl.v1.DeployModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation undeployModel( + com.google.cloud.automl.v1.UndeployModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeployModelMethod(), 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.v1.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.v1.ExportModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a model evaluation.
+     * 
+ */ + public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation( + com.google.cloud.automl.v1.GetModelEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists model evaluations.
+     * 
+ */ + public com.google.cloud.automl.v1.ListModelEvaluationsResponse listModelEvaluations( + com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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.AbstractFutureStub { + private AutoMlFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createDataset(com.google.cloud.automl.v1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getDataset(com.google.cloud.automl.v1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists datasets in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1.ListDatasetsResponse> + listDatasets(com.google.cloud.automl.v1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateDataset(com.google.cloud.automl.v1.UpdateDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataset(com.google.cloud.automl.v1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.v1.InputConfig.params]
+     *     parameter must be explicitly set.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importData(com.google.cloud.automl.v1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportData(com.google.cloud.automl.v1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1.AnnotationSpec> + getAnnotationSpec(com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createModel(com.google.cloud.automl.v1.CreateModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a model.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getModel(com.google.cloud.automl.v1.GetModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists models.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1.ListModelsResponse> + listModels(com.google.cloud.automl.v1.ListModelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteModel(com.google.cloud.automl.v1.DeleteModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a model.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateModel(com.google.cloud.automl.v1.UpdateModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
+     *  will reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deployModel(com.google.cloud.automl.v1.DeployModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeployModel(com.google.cloud.automl.v1.UndeployModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeployModelMethod(), 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.v1.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.v1.ExportModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportModelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a model evaluation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1.ModelEvaluation> + getModelEvaluation(com.google.cloud.automl.v1.GetModelEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists model evaluations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1.ListModelEvaluationsResponse> + listModelEvaluations(com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); + } + } + + 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_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_CREATE_MODEL = 8; + private static final int METHODID_GET_MODEL = 9; + private static final int METHODID_LIST_MODELS = 10; + private static final int METHODID_DELETE_MODEL = 11; + private static final int METHODID_UPDATE_MODEL = 12; + private static final int METHODID_DEPLOY_MODEL = 13; + private static final int METHODID_UNDEPLOY_MODEL = 14; + private static final int METHODID_EXPORT_MODEL = 15; + private static final int METHODID_GET_MODEL_EVALUATION = 16; + private static final int METHODID_LIST_MODEL_EVALUATIONS = 17; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AutoMlImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AutoMlImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_DATASET: + serviceImpl.createDataset( + (com.google.cloud.automl.v1.CreateDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATASET: + serviceImpl.getDataset( + (com.google.cloud.automl.v1.GetDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DATASETS: + serviceImpl.listDatasets( + (com.google.cloud.automl.v1.ListDatasetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DATASET: + serviceImpl.updateDataset( + (com.google.cloud.automl.v1.UpdateDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DATASET: + serviceImpl.deleteDataset( + (com.google.cloud.automl.v1.DeleteDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_DATA: + serviceImpl.importData( + (com.google.cloud.automl.v1.ImportDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_DATA: + serviceImpl.exportData( + (com.google.cloud.automl.v1.ExportDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ANNOTATION_SPEC: + serviceImpl.getAnnotationSpec( + (com.google.cloud.automl.v1.GetAnnotationSpecRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MODEL: + serviceImpl.createModel( + (com.google.cloud.automl.v1.CreateModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MODEL: + serviceImpl.getModel( + (com.google.cloud.automl.v1.GetModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MODELS: + serviceImpl.listModels( + (com.google.cloud.automl.v1.ListModelsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_MODEL: + serviceImpl.deleteModel( + (com.google.cloud.automl.v1.DeleteModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MODEL: + serviceImpl.updateModel( + (com.google.cloud.automl.v1.UpdateModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DEPLOY_MODEL: + serviceImpl.deployModel( + (com.google.cloud.automl.v1.DeployModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDEPLOY_MODEL: + serviceImpl.undeployModel( + (com.google.cloud.automl.v1.UndeployModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_MODEL: + serviceImpl.exportModel( + (com.google.cloud.automl.v1.ExportModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MODEL_EVALUATION: + serviceImpl.getModelEvaluation( + (com.google.cloud.automl.v1.GetModelEvaluationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_MODEL_EVALUATIONS: + serviceImpl.listModelEvaluations( + (com.google.cloud.automl.v1.ListModelEvaluationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AutoMlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AutoMlBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AutoMl"); + } + } + + private static final class AutoMlFileDescriptorSupplier extends AutoMlBaseDescriptorSupplier { + AutoMlFileDescriptorSupplier() {} + } + + private static final class AutoMlMethodDescriptorSupplier extends AutoMlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AutoMlMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AutoMlGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AutoMlFileDescriptorSupplier()) + .addMethod(getCreateDatasetMethod()) + .addMethod(getGetDatasetMethod()) + .addMethod(getListDatasetsMethod()) + .addMethod(getUpdateDatasetMethod()) + .addMethod(getDeleteDatasetMethod()) + .addMethod(getImportDataMethod()) + .addMethod(getExportDataMethod()) + .addMethod(getGetAnnotationSpecMethod()) + .addMethod(getCreateModelMethod()) + .addMethod(getGetModelMethod()) + .addMethod(getListModelsMethod()) + .addMethod(getDeleteModelMethod()) + .addMethod(getUpdateModelMethod()) + .addMethod(getDeployModelMethod()) + .addMethod(getUndeployModelMethod()) + .addMethod(getExportModelMethod()) + .addMethod(getGetModelEvaluationMethod()) + .addMethod(getListModelEvaluationsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java b/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java similarity index 67% rename from owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java rename to grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java index 328cdeeaf..5c0c1cff2 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java +++ b/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ package com.google.cloud.automl.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * AutoML Prediction API.
  * On any input that is documented to expect a string parameter in
@@ -20,122 +37,144 @@ private PredictionServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.automl.v1.PredictionService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getPredictMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.automl.v1.PredictRequest, com.google.cloud.automl.v1.PredictResponse>
+      getPredictMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Predict",
       requestType = com.google.cloud.automl.v1.PredictRequest.class,
       responseType = com.google.cloud.automl.v1.PredictResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPredictMethod() {
-    io.grpc.MethodDescriptor getPredictMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.automl.v1.PredictRequest, com.google.cloud.automl.v1.PredictResponse>
+      getPredictMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.automl.v1.PredictRequest, com.google.cloud.automl.v1.PredictResponse>
+        getPredictMethod;
     if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) {
       synchronized (PredictionServiceGrpc.class) {
         if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) {
-          PredictionServiceGrpc.getPredictMethod = getPredictMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.automl.v1.PredictRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.automl.v1.PredictResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict"))
-              .build();
+          PredictionServiceGrpc.getPredictMethod =
+              getPredictMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.automl.v1.PredictRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.automl.v1.PredictResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict"))
+                      .build();
         }
       }
     }
     return getPredictMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getBatchPredictMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.automl.v1.BatchPredictRequest, com.google.longrunning.Operation>
+      getBatchPredictMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchPredict",
       requestType = com.google.cloud.automl.v1.BatchPredictRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchPredictMethod() {
-    io.grpc.MethodDescriptor getBatchPredictMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.automl.v1.BatchPredictRequest, com.google.longrunning.Operation>
+      getBatchPredictMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.automl.v1.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(SERVICE_NAME, "BatchPredict"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.automl.v1.BatchPredictRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("BatchPredict"))
-              .build();
+          PredictionServiceGrpc.getBatchPredictMethod =
+              getBatchPredictMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchPredict"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.automl.v1.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
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static PredictionServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PredictionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PredictionServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PredictionServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PredictionServiceStub(channel, callOptions);
+          }
+        };
     return PredictionServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PredictionServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static PredictionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PredictionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PredictionServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PredictionServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PredictionServiceBlockingStub(channel, callOptions);
+          }
+        };
     return PredictionServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static PredictionServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static PredictionServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PredictionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PredictionServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PredictionServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PredictionServiceFutureStub(channel, callOptions);
+          }
+        };
     return PredictionServiceFutureStub.newStub(factory, 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 static abstract class PredictionServiceImplBase implements io.grpc.BindableService { + public abstract static class PredictionServiceImplBase implements io.grpc.BindableService { /** + * + * *
      * Perform an online prediction. The prediction result is directly
      * returned in the response.
@@ -161,12 +200,15 @@ public static abstract class PredictionServiceImplBase implements io.grpc.Bindab
      *   `prediction_type`.
      * 
*/ - public void predict(com.google.cloud.automl.v1.PredictRequest request, + public void predict( + com.google.cloud.automl.v1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); } /** + * + * *
      * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
      * prediction result won't be immediately available in the response. Instead,
@@ -184,41 +226,44 @@ public void predict(com.google.cloud.automl.v1.PredictRequest request,
      * * AutoML Tables
      * 
*/ - public void batchPredict(com.google.cloud.automl.v1.BatchPredictRequest request, + public void batchPredict( + com.google.cloud.automl.v1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchPredictMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchPredictMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.PredictRequest, - com.google.cloud.automl.v1.PredictResponse>( - this, METHODID_PREDICT))) + getPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.PredictRequest, + com.google.cloud.automl.v1.PredictResponse>(this, METHODID_PREDICT))) .addMethod( - getBatchPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.BatchPredictRequest, - com.google.longrunning.Operation>( - this, METHODID_BATCH_PREDICT))) + getBatchPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1.BatchPredictRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_PREDICT))) .build(); } } /** + * + * *
    * 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 extends io.grpc.stub.AbstractAsyncStub { - private PredictionServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private PredictionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -229,6 +274,8 @@ protected PredictionServiceStub build( } /** + * + * *
      * Perform an online prediction. The prediction result is directly
      * returned in the response.
@@ -254,13 +301,16 @@ protected PredictionServiceStub build(
      *   `prediction_type`.
      * 
*/ - public void predict(com.google.cloud.automl.v1.PredictRequest request, + public void predict( + com.google.cloud.automl.v1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
      * prediction result won't be immediately available in the response. Instead,
@@ -278,21 +328,27 @@ public void predict(com.google.cloud.automl.v1.PredictRequest request,
      * * AutoML Tables
      * 
*/ - public void batchPredict(com.google.cloud.automl.v1.BatchPredictRequest request, + public void batchPredict( + com.google.cloud.automl.v1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchPredictMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * 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 extends io.grpc.stub.AbstractBlockingStub { + public static final class PredictionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private PredictionServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -305,6 +361,8 @@ protected PredictionServiceBlockingStub build( } /** + * + * *
      * Perform an online prediction. The prediction result is directly
      * returned in the response.
@@ -330,12 +388,15 @@ protected PredictionServiceBlockingStub build(
      *   `prediction_type`.
      * 
*/ - public com.google.cloud.automl.v1.PredictResponse predict(com.google.cloud.automl.v1.PredictRequest request) { + public com.google.cloud.automl.v1.PredictResponse predict( + com.google.cloud.automl.v1.PredictRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } /** + * + * *
      * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
      * prediction result won't be immediately available in the response. Instead,
@@ -353,22 +414,25 @@ public com.google.cloud.automl.v1.PredictResponse predict(com.google.cloud.autom
      * * AutoML Tables
      * 
*/ - public com.google.longrunning.Operation batchPredict(com.google.cloud.automl.v1.BatchPredictRequest request) { + public com.google.longrunning.Operation batchPredict( + com.google.cloud.automl.v1.BatchPredictRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchPredictMethod(), getCallOptions(), request); } } /** + * + * *
    * 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 extends io.grpc.stub.AbstractFutureStub { - private PredictionServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private PredictionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -379,6 +443,8 @@ protected PredictionServiceFutureStub build( } /** + * + * *
      * Perform an online prediction. The prediction result is directly
      * returned in the response.
@@ -404,13 +470,16 @@ protected PredictionServiceFutureStub build(
      *   `prediction_type`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture predict( - com.google.cloud.automl.v1.PredictRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1.PredictResponse> + predict(com.google.cloud.automl.v1.PredictRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request); } /** + * + * *
      * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
      * prediction result won't be immediately available in the response. Instead,
@@ -428,8 +497,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture batchPredict(
-        com.google.cloud.automl.v1.BatchPredictRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        batchPredict(com.google.cloud.automl.v1.BatchPredictRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request);
     }
@@ -438,11 +507,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final PredictionServiceImplBase serviceImpl;
     private final int methodId;
 
@@ -456,11 +525,14 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_PREDICT:
-          serviceImpl.predict((com.google.cloud.automl.v1.PredictRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.predict(
+              (com.google.cloud.automl.v1.PredictRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_BATCH_PREDICT:
-          serviceImpl.batchPredict((com.google.cloud.automl.v1.BatchPredictRequest) request,
+          serviceImpl.batchPredict(
+              (com.google.cloud.automl.v1.BatchPredictRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -479,8 +551,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class PredictionServiceBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class PredictionServiceBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     PredictionServiceBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -522,11 +595,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (PredictionServiceGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier())
-              .addMethod(getPredictMethod())
-              .addMethod(getBatchPredictMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier())
+                      .addMethod(getPredictMethod())
+                      .addMethod(getBatchPredictMethod())
+                      .build();
         }
       }
     }
diff --git a/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java b/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java
new file mode 100644
index 000000000..f60a691ec
--- /dev/null
+++ b/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java
@@ -0,0 +1,3229 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
+package com.google.cloud.automl.v1beta1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ * 
+ * AutoML Server API.
+ * The resource names are assigned by the server.
+ * The server never reuses names that it has created after the resources with
+ * those names are deleted.
+ * 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( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/automl/v1beta1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AutoMlGrpc { + + private AutoMlGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.automl.v1beta1.AutoMl"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.CreateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getCreateDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataset", + requestType = com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, + responseType = com.google.cloud.automl.v1beta1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.CreateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getCreateDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.CreateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getCreateDatasetMethod; + if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { + AutoMlGrpc.getCreateDatasetMethod = + getCreateDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.CreateDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateDataset")) + .build(); + } + } + } + return getCreateDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getGetDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataset", + requestType = com.google.cloud.automl.v1beta1.GetDatasetRequest.class, + responseType = com.google.cloud.automl.v1beta1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getGetDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getGetDatasetMethod; + if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { + AutoMlGrpc.getGetDatasetMethod = + getGetDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.GetDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetDataset")) + .build(); + } + } + } + return getGetDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListDatasetsRequest, + com.google.cloud.automl.v1beta1.ListDatasetsResponse> + getListDatasetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDatasets", + requestType = com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, + responseType = com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListDatasetsRequest, + com.google.cloud.automl.v1beta1.ListDatasetsResponse> + getListDatasetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListDatasetsRequest, + com.google.cloud.automl.v1beta1.ListDatasetsResponse> + getListDatasetsMethod; + if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { + AutoMlGrpc.getListDatasetsMethod = + getListDatasetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatasets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListDatasetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListDatasetsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListDatasets")) + .build(); + } + } + } + return getListDatasetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getUpdateDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", + requestType = com.google.cloud.automl.v1beta1.UpdateDatasetRequest.class, + responseType = com.google.cloud.automl.v1beta1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getUpdateDatasetMethod() { + 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation> + getDeleteDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", + requestType = com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation> + getDeleteDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation> + getDeleteDatasetMethod; + if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { + AutoMlGrpc.getDeleteDatasetMethod = + getDeleteDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.DeleteDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteDataset")) + .build(); + } + } + } + return getDeleteDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ImportDataRequest, com.google.longrunning.Operation> + getImportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportData", + requestType = com.google.cloud.automl.v1beta1.ImportDataRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ImportDataRequest, com.google.longrunning.Operation> + getImportDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ImportDataRequest, com.google.longrunning.Operation> + getImportDataMethod; + if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { + AutoMlGrpc.getImportDataMethod = + getImportDataMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ImportDataRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ImportData")) + .build(); + } + } + } + return getImportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation> + getExportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportData", + requestType = com.google.cloud.automl.v1beta1.ExportDataRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation> + getExportDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation> + getExportDataMethod; + if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { + AutoMlGrpc.getExportDataMethod = + getExportDataMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ExportDataRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportData")) + .build(); + } + } + } + return getExportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1beta1.AnnotationSpec> + getGetAnnotationSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpec", + requestType = com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.class, + responseType = com.google.cloud.automl.v1beta1.AnnotationSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1beta1.AnnotationSpec> + getGetAnnotationSpecMethod() { + 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getGetTableSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTableSpec", + requestType = com.google.cloud.automl.v1beta1.GetTableSpecRequest.class, + responseType = com.google.cloud.automl.v1beta1.TableSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getGetTableSpecMethod() { + 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListTableSpecsRequest, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse> + getListTableSpecsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTableSpecs", + requestType = com.google.cloud.automl.v1beta1.ListTableSpecsRequest.class, + responseType = com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListTableSpecsRequest, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse> + getListTableSpecsMethod() { + 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getUpdateTableSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTableSpec", + requestType = com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.class, + responseType = com.google.cloud.automl.v1beta1.TableSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getUpdateTableSpecMethod() { + 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getGetColumnSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetColumnSpec", + requestType = com.google.cloud.automl.v1beta1.GetColumnSpecRequest.class, + responseType = com.google.cloud.automl.v1beta1.ColumnSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getGetColumnSpecMethod() { + 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> + getListColumnSpecsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListColumnSpecs", + requestType = com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.class, + responseType = com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> + getListColumnSpecsMethod() { + 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getUpdateColumnSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateColumnSpec", + requestType = com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.class, + responseType = com.google.cloud.automl.v1beta1.ColumnSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getUpdateColumnSpecMethod() { + 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.CreateModelRequest, com.google.longrunning.Operation> + getCreateModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateModel", + requestType = com.google.cloud.automl.v1beta1.CreateModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.CreateModelRequest, com.google.longrunning.Operation> + getCreateModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.CreateModelRequest, com.google.longrunning.Operation> + getCreateModelMethod; + if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { + AutoMlGrpc.getCreateModelMethod = + getCreateModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.CreateModelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateModel")) + .build(); + } + } + } + return getCreateModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetModelRequest, com.google.cloud.automl.v1beta1.Model> + getGetModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetModel", + requestType = com.google.cloud.automl.v1beta1.GetModelRequest.class, + responseType = com.google.cloud.automl.v1beta1.Model.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetModelRequest, com.google.cloud.automl.v1beta1.Model> + getGetModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetModelRequest, com.google.cloud.automl.v1beta1.Model> + getGetModelMethod; + if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { + AutoMlGrpc.getGetModelMethod = + getGetModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.GetModelRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.Model.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModel")) + .build(); + } + } + } + return getGetModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListModelsRequest, + com.google.cloud.automl.v1beta1.ListModelsResponse> + getListModelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModels", + requestType = com.google.cloud.automl.v1beta1.ListModelsRequest.class, + responseType = com.google.cloud.automl.v1beta1.ListModelsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListModelsRequest, + com.google.cloud.automl.v1beta1.ListModelsResponse> + getListModelsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListModelsRequest, + com.google.cloud.automl.v1beta1.ListModelsResponse> + getListModelsMethod; + if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { + AutoMlGrpc.getListModelsMethod = + getListModelsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListModelsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListModelsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModels")) + .build(); + } + } + } + return getListModelsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeleteModelRequest, com.google.longrunning.Operation> + getDeleteModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteModel", + requestType = com.google.cloud.automl.v1beta1.DeleteModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeleteModelRequest, com.google.longrunning.Operation> + getDeleteModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeleteModelRequest, com.google.longrunning.Operation> + getDeleteModelMethod; + if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { + AutoMlGrpc.getDeleteModelMethod = + getDeleteModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.DeleteModelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteModel")) + .build(); + } + } + } + return getDeleteModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> + getDeployModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeployModel", + requestType = com.google.cloud.automl.v1beta1.DeployModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> + getDeployModelMethod() { + 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> + getUndeployModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeployModel", + requestType = com.google.cloud.automl.v1beta1.UndeployModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> + getUndeployModelMethod() { + 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(SERVICE_NAME, "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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> + getExportModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportModel", + requestType = com.google.cloud.automl.v1beta1.ExportModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> + getExportModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> + getExportModelMethod; + if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { + AutoMlGrpc.getExportModelMethod = + getExportModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ExportModelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) + .build(); + } + } + } + return getExportModelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation> + getExportEvaluatedExamplesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportEvaluatedExamples", + requestType = com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation> + getExportEvaluatedExamplesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation> + getExportEvaluatedExamplesMethod; + if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) + == null) { + AutoMlGrpc.getExportEvaluatedExamplesMethod = + getExportEvaluatedExamplesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ExportEvaluatedExamples")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AutoMlMethodDescriptorSupplier("ExportEvaluatedExamples")) + .build(); + } + } + } + return getExportEvaluatedExamplesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, + com.google.cloud.automl.v1beta1.ModelEvaluation> + getGetModelEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", + requestType = com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, + responseType = com.google.cloud.automl.v1beta1.ModelEvaluation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, + com.google.cloud.automl.v1beta1.ModelEvaluation> + getGetModelEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, + com.google.cloud.automl.v1beta1.ModelEvaluation> + getGetModelEvaluationMethod; + if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { + AutoMlGrpc.getGetModelEvaluationMethod = + getGetModelEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModelEvaluation")) + .build(); + } + } + } + return getGetModelEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> + getListModelEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", + requestType = com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, + responseType = com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> + getListModelEvaluationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> + getListModelEvaluationsMethod; + if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { + AutoMlGrpc.getListModelEvaluationsMethod = + getListModelEvaluationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AutoMlMethodDescriptorSupplier("ListModelEvaluations")) + .build(); + } + } + } + return getListModelEvaluationsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AutoMlStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlStub(channel, callOptions); + } + }; + return AutoMlStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AutoMlBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlBlockingStub(channel, callOptions); + } + }; + return AutoMlBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AutoMlFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoMlFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlFutureStub(channel, callOptions); + } + }; + return AutoMlFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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 { + + /** + * + * + *
+     * Creates a dataset.
+     * 
+ */ + public void createDataset( + com.google.cloud.automl.v1beta1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a dataset.
+     * 
+ */ + public void getDataset( + com.google.cloud.automl.v1beta1.GetDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists datasets in a project.
+     * 
+ */ + public void listDatasets( + com.google.cloud.automl.v1beta1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatasetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public void updateDataset( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void deleteDataset( + com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void importData( + com.google.cloud.automl.v1beta1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); + } + + /** + * + * + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportData( + com.google.cloud.automl.v1beta1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public void getAnnotationSpec( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAnnotationSpecMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a table spec.
+     * 
+ */ + public void getTableSpec( + com.google.cloud.automl.v1beta1.GetTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTableSpecMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public void listTableSpecs( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTableSpecsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a table spec.
+     * 
+ */ + public void updateTableSpec( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTableSpecMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a column spec.
+     * 
+ */ + public void getColumnSpec( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetColumnSpecMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists column specs in a table spec.
+     * 
+ */ + public void listColumnSpecs( + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListColumnSpecsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a column spec.
+     * 
+ */ + public void updateColumnSpec( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateColumnSpecMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public void createModel( + com.google.cloud.automl.v1beta1.CreateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateModelMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a model.
+     * 
+ */ + public void getModel( + com.google.cloud.automl.v1beta1.GetModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists models.
+     * 
+ */ + public void listModels( + com.google.cloud.automl.v1beta1.ListModelsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void deleteModel( + com.google.cloud.automl.v1beta1.DeleteModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteModelMethod(), responseObserver); + } + + /** + * + * + *
+     * 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 reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void deployModel( + com.google.cloud.automl.v1beta1.DeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeployModelMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void undeployModel( + com.google.cloud.automl.v1beta1.UndeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeployModelMethod(), 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) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportModelMethod(), 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) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportEvaluatedExamplesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a model evaluation.
+     * 
+ */ + public void getModelEvaluation( + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetModelEvaluationMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists model evaluations.
+     * 
+ */ + public void listModelEvaluations( + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelEvaluationsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.CreateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset>(this, METHODID_CREATE_DATASET))) + .addMethod( + getGetDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset>(this, METHODID_GET_DATASET))) + .addMethod( + getListDatasetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListDatasetsRequest, + com.google.cloud.automl.v1beta1.ListDatasetsResponse>( + this, METHODID_LIST_DATASETS))) + .addMethod( + getUpdateDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UpdateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset>(this, METHODID_UPDATE_DATASET))) + .addMethod( + getDeleteDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.DeleteDatasetRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_DATASET))) + .addMethod( + getImportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ImportDataRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_DATA))) + .addMethod( + getExportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ExportDataRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) + .addMethod( + getGetAnnotationSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1beta1.AnnotationSpec>( + this, METHODID_GET_ANNOTATION_SPEC))) + .addMethod( + getGetTableSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec>(this, METHODID_GET_TABLE_SPEC))) + .addMethod( + getListTableSpecsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListTableSpecsRequest, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse>( + this, METHODID_LIST_TABLE_SPECS))) + .addMethod( + getUpdateTableSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec>(this, METHODID_UPDATE_TABLE_SPEC))) + .addMethod( + getGetColumnSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec>(this, METHODID_GET_COLUMN_SPEC))) + .addMethod( + getListColumnSpecsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse>( + this, METHODID_LIST_COLUMN_SPECS))) + .addMethod( + getUpdateColumnSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec>( + this, METHODID_UPDATE_COLUMN_SPEC))) + .addMethod( + getCreateModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.CreateModelRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_MODEL))) + .addMethod( + getGetModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetModelRequest, + com.google.cloud.automl.v1beta1.Model>(this, METHODID_GET_MODEL))) + .addMethod( + getListModelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListModelsRequest, + com.google.cloud.automl.v1beta1.ListModelsResponse>( + this, METHODID_LIST_MODELS))) + .addMethod( + getDeleteModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.DeleteModelRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL))) + .addMethod( + getDeployModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.DeployModelRequest, + com.google.longrunning.Operation>(this, METHODID_DEPLOY_MODEL))) + .addMethod( + getUndeployModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UndeployModelRequest, + com.google.longrunning.Operation>(this, METHODID_UNDEPLOY_MODEL))) + .addMethod( + getExportModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ExportModelRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_MODEL))) + .addMethod( + getExportEvaluatedExamplesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_EVALUATED_EXAMPLES))) + .addMethod( + getGetModelEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, + com.google.cloud.automl.v1beta1.ModelEvaluation>( + this, METHODID_GET_MODEL_EVALUATION))) + .addMethod( + getListModelEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse>( + this, METHODID_LIST_MODEL_EVALUATIONS))) + .build(); + } + } + + /** + * + * + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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.AbstractAsyncStub { + private AutoMlStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a dataset.
+     * 
+ */ + public void createDataset( + com.google.cloud.automl.v1beta1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a dataset.
+     * 
+ */ + public void getDataset( + com.google.cloud.automl.v1beta1.GetDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists datasets in a project.
+     * 
+ */ + public void listDatasets( + com.google.cloud.automl.v1beta1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public void updateDataset( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void deleteDataset( + com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void importData( + com.google.cloud.automl.v1beta1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportData( + com.google.cloud.automl.v1beta1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public void getAnnotationSpec( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a table spec.
+     * 
+ */ + public void getTableSpec( + com.google.cloud.automl.v1beta1.GetTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTableSpecMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public void listTableSpecs( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTableSpecsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a table spec.
+     * 
+ */ + public void updateTableSpec( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTableSpecMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a column spec.
+     * 
+ */ + public void getColumnSpec( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetColumnSpecMethod(), 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListColumnSpecsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a column spec.
+     * 
+ */ + public void updateColumnSpec( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public void createModel( + com.google.cloud.automl.v1beta1.CreateModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateModelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a model.
+     * 
+ */ + public void getModel( + com.google.cloud.automl.v1beta1.GetModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists models.
+     * 
+ */ + public void listModels( + com.google.cloud.automl.v1beta1.ListModelsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void deleteModel( + com.google.cloud.automl.v1beta1.DeleteModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteModelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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 reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void deployModel( + com.google.cloud.automl.v1beta1.DeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeployModelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void undeployModel( + com.google.cloud.automl.v1beta1.UndeployModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeployModelMethod(), getCallOptions()), + request, + 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportModelMethod(), 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a model evaluation.
+     * 
+ */ + public void getModelEvaluation( + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists model evaluations.
+     * 
+ */ + public void listModelEvaluations( + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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 + extends io.grpc.stub.AbstractBlockingStub { + private AutoMlBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.Dataset createDataset( + com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.Dataset getDataset( + com.google.cloud.automl.v1beta1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists datasets in a project.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ListDatasetsResponse listDatasets( + com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.Dataset updateDataset( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation deleteDataset( + com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation importData( + com.google.cloud.automl.v1beta1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDataMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation exportData( + com.google.cloud.automl.v1beta1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.AnnotationSpec getAnnotationSpec( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a table spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.TableSpec getTableSpec( + com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTableSpecMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ListTableSpecsResponse listTableSpecs( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTableSpecsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a table spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.TableSpec updateTableSpec( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTableSpecMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a column spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetColumnSpecMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListColumnSpecsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a column spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ColumnSpec updateColumnSpec( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateColumnSpecMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public com.google.longrunning.Operation createModel( + com.google.cloud.automl.v1beta1.CreateModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a model.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.Model getModel( + com.google.cloud.automl.v1beta1.GetModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists models.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ListModelsResponse listModels( + com.google.cloud.automl.v1beta1.ListModelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation deleteModel( + com.google.cloud.automl.v1beta1.DeleteModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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 reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation deployModel( + com.google.cloud.automl.v1beta1.DeployModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.longrunning.Operation undeployModel( + com.google.cloud.automl.v1beta1.UndeployModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeployModelMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportModelMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportEvaluatedExamplesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a model evaluation.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation( + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists model evaluations.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse listModelEvaluations( + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * AutoML Server API.
+   * The resource names are assigned by the server.
+   * The server never reuses names that it has created after the resources with
+   * those names are deleted.
+   * 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.AbstractFutureStub { + private AutoMlFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoMlFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.Dataset> + createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.Dataset> + getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists datasets in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.ListDatasetsResponse> + listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDatasetsMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importData(com.google.cloud.automl.v1beta1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Exports dataset's data to the provided output location.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportDataMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAnnotationSpecMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTableSpecMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTableSpecsMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTableSpecMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetColumnSpecMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListColumnSpecsMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a model.
+     * Returns a Model in the [response][google.longrunning.Operation.response]
+     * field when it completes.
+     * When you create a model, several model evaluations are created for it:
+     * a global evaluation, and one evaluation for each annotation spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a model.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getModel(com.google.cloud.automl.v1beta1.GetModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists models.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.ListModelsResponse> + listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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 reset the deployment state without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+     * deployment automatically.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeployModelMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportModelMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a model evaluation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.ModelEvaluation> + getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists model evaluations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> + listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); + } + } + + 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_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, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AutoMlImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AutoMlImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_DATASET: + serviceImpl.createDataset( + (com.google.cloud.automl.v1beta1.CreateDatasetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DATASET: + serviceImpl.getDataset( + (com.google.cloud.automl.v1beta1.GetDatasetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATASETS: + serviceImpl.listDatasets( + (com.google.cloud.automl.v1beta1.ListDatasetsRequest) request, + (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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_DATA: + serviceImpl.importData( + (com.google.cloud.automl.v1beta1.ImportDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_DATA: + serviceImpl.exportData( + (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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MODEL: + serviceImpl.getModel( + (com.google.cloud.automl.v1beta1.GetModelRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_MODELS: + serviceImpl.listModels( + (com.google.cloud.automl.v1beta1.ListModelsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_MODEL: + serviceImpl.deleteModel( + (com.google.cloud.automl.v1beta1.DeleteModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DEPLOY_MODEL: + serviceImpl.deployModel( + (com.google.cloud.automl.v1beta1.DeployModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDEPLOY_MODEL: + serviceImpl.undeployModel( + (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, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_MODEL_EVALUATIONS: + serviceImpl.listModelEvaluations( + (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AutoMlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AutoMlBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AutoMl"); + } + } + + private static final class AutoMlFileDescriptorSupplier extends AutoMlBaseDescriptorSupplier { + AutoMlFileDescriptorSupplier() {} + } + + private static final class AutoMlMethodDescriptorSupplier extends AutoMlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AutoMlMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AutoMlGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AutoMlFileDescriptorSupplier()) + .addMethod(getCreateDatasetMethod()) + .addMethod(getGetDatasetMethod()) + .addMethod(getListDatasetsMethod()) + .addMethod(getUpdateDatasetMethod()) + .addMethod(getDeleteDatasetMethod()) + .addMethod(getImportDataMethod()) + .addMethod(getExportDataMethod()) + .addMethod(getGetAnnotationSpecMethod()) + .addMethod(getGetTableSpecMethod()) + .addMethod(getListTableSpecsMethod()) + .addMethod(getUpdateTableSpecMethod()) + .addMethod(getGetColumnSpecMethod()) + .addMethod(getListColumnSpecsMethod()) + .addMethod(getUpdateColumnSpecMethod()) + .addMethod(getCreateModelMethod()) + .addMethod(getGetModelMethod()) + .addMethod(getListModelsMethod()) + .addMethod(getDeleteModelMethod()) + .addMethod(getDeployModelMethod()) + .addMethod(getUndeployModelMethod()) + .addMethod(getExportModelMethod()) + .addMethod(getExportEvaluatedExamplesMethod()) + .addMethod(getGetModelEvaluationMethod()) + .addMethod(getListModelEvaluationsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java b/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java similarity index 64% rename from owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java rename to grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java index 23f59c420..319793f0a 100644 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java +++ b/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ package com.google.cloud.automl.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * AutoML Prediction API.
  * On any input that is documented to expect a string parameter in
@@ -20,122 +37,148 @@ private PredictionServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.automl.v1beta1.PredictionService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getPredictMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.automl.v1beta1.PredictRequest,
+          com.google.cloud.automl.v1beta1.PredictResponse>
+      getPredictMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Predict",
       requestType = com.google.cloud.automl.v1beta1.PredictRequest.class,
       responseType = com.google.cloud.automl.v1beta1.PredictResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPredictMethod() {
-    io.grpc.MethodDescriptor getPredictMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.automl.v1beta1.PredictRequest,
+          com.google.cloud.automl.v1beta1.PredictResponse>
+      getPredictMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.automl.v1beta1.PredictRequest,
+            com.google.cloud.automl.v1beta1.PredictResponse>
+        getPredictMethod;
     if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) {
       synchronized (PredictionServiceGrpc.class) {
         if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) {
-          PredictionServiceGrpc.getPredictMethod = getPredictMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.automl.v1beta1.PredictRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.automl.v1beta1.PredictResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict"))
-              .build();
+          PredictionServiceGrpc.getPredictMethod =
+              getPredictMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.automl.v1beta1.PredictRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.automl.v1beta1.PredictResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict"))
+                      .build();
         }
       }
     }
     return getPredictMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getBatchPredictMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation>
+      getBatchPredictMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchPredict",
       requestType = com.google.cloud.automl.v1beta1.BatchPredictRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchPredictMethod() {
-    io.grpc.MethodDescriptor getBatchPredictMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation>
+      getBatchPredictMethod() {
+    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(SERVICE_NAME, "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();
+          PredictionServiceGrpc.getBatchPredictMethod =
+              getBatchPredictMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "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
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static PredictionServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PredictionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PredictionServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PredictionServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PredictionServiceStub(channel, callOptions);
+          }
+        };
     return PredictionServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PredictionServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static PredictionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PredictionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PredictionServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PredictionServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PredictionServiceBlockingStub(channel, callOptions);
+          }
+        };
     return PredictionServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static PredictionServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static PredictionServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PredictionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PredictionServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PredictionServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PredictionServiceFutureStub(channel, callOptions);
+          }
+        };
     return PredictionServiceFutureStub.newStub(factory, 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 static abstract class PredictionServiceImplBase implements io.grpc.BindableService { + public abstract static class PredictionServiceImplBase implements io.grpc.BindableService { /** + * + * *
      * Perform an online prediction. The prediction result will be directly
      * returned in the response.
@@ -157,12 +200,16 @@ public static abstract class PredictionServiceImplBase implements io.grpc.Bindab
      *                     encoded.
      * 
*/ - public void predict(com.google.cloud.automl.v1beta1.PredictRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void predict( + com.google.cloud.automl.v1beta1.PredictRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), 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,
@@ -178,41 +225,44 @@ public void predict(com.google.cloud.automl.v1beta1.PredictRequest request,
      * * Tables
      * 
*/ - public void batchPredict(com.google.cloud.automl.v1beta1.BatchPredictRequest request, + public void batchPredict( + com.google.cloud.automl.v1beta1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchPredictMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchPredictMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.PredictRequest, - com.google.cloud.automl.v1beta1.PredictResponse>( - this, METHODID_PREDICT))) + getPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.PredictRequest, + com.google.cloud.automl.v1beta1.PredictResponse>(this, METHODID_PREDICT))) .addMethod( - getBatchPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.BatchPredictRequest, - com.google.longrunning.Operation>( - this, METHODID_BATCH_PREDICT))) + getBatchPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.BatchPredictRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_PREDICT))) .build(); } } /** + * + * *
    * 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 extends io.grpc.stub.AbstractAsyncStub { - private PredictionServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private PredictionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -223,6 +273,8 @@ protected PredictionServiceStub build( } /** + * + * *
      * Perform an online prediction. The prediction result will be directly
      * returned in the response.
@@ -244,13 +296,17 @@ protected PredictionServiceStub build(
      *                     encoded.
      * 
*/ - public void predict(com.google.cloud.automl.v1beta1.PredictRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void predict( + com.google.cloud.automl.v1beta1.PredictRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), 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,
@@ -266,21 +322,27 @@ public void predict(com.google.cloud.automl.v1beta1.PredictRequest request,
      * * Tables
      * 
*/ - public void batchPredict(com.google.cloud.automl.v1beta1.BatchPredictRequest request, + public void batchPredict( + com.google.cloud.automl.v1beta1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchPredictMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * 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 extends io.grpc.stub.AbstractBlockingStub { + public static final class PredictionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private PredictionServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -293,6 +355,8 @@ protected PredictionServiceBlockingStub build( } /** + * + * *
      * Perform an online prediction. The prediction result will be directly
      * returned in the response.
@@ -314,12 +378,15 @@ protected PredictionServiceBlockingStub build(
      *                     encoded.
      * 
*/ - public com.google.cloud.automl.v1beta1.PredictResponse predict(com.google.cloud.automl.v1beta1.PredictRequest request) { + public com.google.cloud.automl.v1beta1.PredictResponse predict( + com.google.cloud.automl.v1beta1.PredictRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPredictMethod(), 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,
@@ -335,22 +402,25 @@ public com.google.cloud.automl.v1beta1.PredictResponse predict(com.google.cloud.
      * * Tables
      * 
*/ - public com.google.longrunning.Operation batchPredict(com.google.cloud.automl.v1beta1.BatchPredictRequest request) { + public com.google.longrunning.Operation batchPredict( + com.google.cloud.automl.v1beta1.BatchPredictRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchPredictMethod(), getCallOptions(), request); } } /** + * + * *
    * 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 extends io.grpc.stub.AbstractFutureStub { - private PredictionServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private PredictionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -361,6 +431,8 @@ protected PredictionServiceFutureStub build( } /** + * + * *
      * Perform an online prediction. The prediction result will be directly
      * returned in the response.
@@ -382,13 +454,16 @@ protected PredictionServiceFutureStub build(
      *                     encoded.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture predict( - com.google.cloud.automl.v1beta1.PredictRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.PredictResponse> + predict(com.google.cloud.automl.v1beta1.PredictRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPredictMethod(), 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,
@@ -404,8 +479,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture batchPredict(
-        com.google.cloud.automl.v1beta1.BatchPredictRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        batchPredict(com.google.cloud.automl.v1beta1.BatchPredictRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request);
     }
@@ -414,11 +489,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final PredictionServiceImplBase serviceImpl;
     private final int methodId;
 
@@ -432,11 +507,14 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_PREDICT:
-          serviceImpl.predict((com.google.cloud.automl.v1beta1.PredictRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.predict(
+              (com.google.cloud.automl.v1beta1.PredictRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_BATCH_PREDICT:
-          serviceImpl.batchPredict((com.google.cloud.automl.v1beta1.BatchPredictRequest) request,
+          serviceImpl.batchPredict(
+              (com.google.cloud.automl.v1beta1.BatchPredictRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -455,8 +533,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class PredictionServiceBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class PredictionServiceBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     PredictionServiceBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -498,11 +577,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (PredictionServiceGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier())
-              .addMethod(getPredictMethod())
-              .addMethod(getBatchPredictMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier())
+                      .addMethod(getPredictMethod())
+                      .addMethod(getBatchPredictMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java
deleted file mode 100644
index 3f4a6fe83..000000000
--- a/owl-bot-staging/v1/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java
+++ /dev/null
@@ -1,1962 +0,0 @@
-package com.google.cloud.automl.v1;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-
-/**
- * 
- * AutoML Server API.
- * The resource names are assigned by the server.
- * The server never reuses names that it has created after the resources with
- * those names are deleted.
- * 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( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/automl/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AutoMlGrpc { - - private AutoMlGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.automl.v1.AutoMl"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDataset", - requestType = com.google.cloud.automl.v1.CreateDatasetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDatasetMethod() { - io.grpc.MethodDescriptor getCreateDatasetMethod; - if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { - AutoMlGrpc.getCreateDatasetMethod = getCreateDatasetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.CreateDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateDataset")) - .build(); - } - } - } - return getCreateDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataset", - requestType = com.google.cloud.automl.v1.GetDatasetRequest.class, - responseType = com.google.cloud.automl.v1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDatasetMethod() { - io.grpc.MethodDescriptor getGetDatasetMethod; - if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { - AutoMlGrpc.getGetDatasetMethod = getGetDatasetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.GetDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.Dataset.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetDataset")) - .build(); - } - } - } - return getGetDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDatasetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDatasets", - requestType = com.google.cloud.automl.v1.ListDatasetsRequest.class, - responseType = com.google.cloud.automl.v1.ListDatasetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDatasetsMethod() { - io.grpc.MethodDescriptor getListDatasetsMethod; - if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { - AutoMlGrpc.getListDatasetsMethod = getListDatasetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatasets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListDatasetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListDatasetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListDatasets")) - .build(); - } - } - } - return getListDatasetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", - requestType = com.google.cloud.automl.v1.UpdateDatasetRequest.class, - responseType = com.google.cloud.automl.v1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDatasetMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "UpdateDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.UpdateDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.Dataset.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateDataset")) - .build(); - } - } - } - return getUpdateDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", - requestType = com.google.cloud.automl.v1.DeleteDatasetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDatasetMethod() { - io.grpc.MethodDescriptor getDeleteDatasetMethod; - if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { - AutoMlGrpc.getDeleteDatasetMethod = getDeleteDatasetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.DeleteDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteDataset")) - .build(); - } - } - } - return getDeleteDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getImportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportData", - requestType = com.google.cloud.automl.v1.ImportDataRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getImportDataMethod() { - io.grpc.MethodDescriptor getImportDataMethod; - if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { - AutoMlGrpc.getImportDataMethod = getImportDataMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportData")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ImportDataRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ImportData")) - .build(); - } - } - } - return getImportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor getExportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportData", - requestType = com.google.cloud.automl.v1.ExportDataRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExportDataMethod() { - io.grpc.MethodDescriptor getExportDataMethod; - if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { - AutoMlGrpc.getExportDataMethod = getExportDataMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportData")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ExportDataRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportData")) - .build(); - } - } - } - return getExportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAnnotationSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpec", - requestType = com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, - responseType = com.google.cloud.automl.v1.AnnotationSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAnnotationSpecMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "GetAnnotationSpec")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.GetAnnotationSpecRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.AnnotationSpec.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetAnnotationSpec")) - .build(); - } - } - } - return getGetAnnotationSpecMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateModel", - requestType = com.google.cloud.automl.v1.CreateModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateModelMethod() { - io.grpc.MethodDescriptor getCreateModelMethod; - if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { - AutoMlGrpc.getCreateModelMethod = getCreateModelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.CreateModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateModel")) - .build(); - } - } - } - return getCreateModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetModel", - requestType = com.google.cloud.automl.v1.GetModelRequest.class, - responseType = com.google.cloud.automl.v1.Model.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetModelMethod() { - io.grpc.MethodDescriptor getGetModelMethod; - if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { - AutoMlGrpc.getGetModelMethod = getGetModelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.GetModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.Model.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModel")) - .build(); - } - } - } - return getGetModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getListModelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListModels", - requestType = com.google.cloud.automl.v1.ListModelsRequest.class, - responseType = com.google.cloud.automl.v1.ListModelsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListModelsMethod() { - io.grpc.MethodDescriptor getListModelsMethod; - if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { - AutoMlGrpc.getListModelsMethod = getListModelsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListModelsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListModelsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModels")) - .build(); - } - } - } - return getListModelsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteModel", - requestType = com.google.cloud.automl.v1.DeleteModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteModelMethod() { - io.grpc.MethodDescriptor getDeleteModelMethod; - if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { - AutoMlGrpc.getDeleteModelMethod = getDeleteModelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.DeleteModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteModel")) - .build(); - } - } - } - return getDeleteModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateModel", - requestType = com.google.cloud.automl.v1.UpdateModelRequest.class, - responseType = com.google.cloud.automl.v1.Model.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateModelMethod() { - io.grpc.MethodDescriptor getUpdateModelMethod; - if ((getUpdateModelMethod = AutoMlGrpc.getUpdateModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getUpdateModelMethod = AutoMlGrpc.getUpdateModelMethod) == null) { - AutoMlGrpc.getUpdateModelMethod = getUpdateModelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.UpdateModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.Model.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateModel")) - .build(); - } - } - } - return getUpdateModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeployModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeployModel", - requestType = com.google.cloud.automl.v1.DeployModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeployModelMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "DeployModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.DeployModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeployModel")) - .build(); - } - } - } - return getDeployModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndeployModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeployModel", - requestType = com.google.cloud.automl.v1.UndeployModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeployModelMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "UndeployModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.UndeployModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UndeployModel")) - .build(); - } - } - } - return getUndeployModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getExportModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportModel", - requestType = com.google.cloud.automl.v1.ExportModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExportModelMethod() { - io.grpc.MethodDescriptor getExportModelMethod; - if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { - AutoMlGrpc.getExportModelMethod = getExportModelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ExportModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) - .build(); - } - } - } - return getExportModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetModelEvaluationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", - requestType = com.google.cloud.automl.v1.GetModelEvaluationRequest.class, - responseType = com.google.cloud.automl.v1.ModelEvaluation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetModelEvaluationMethod() { - io.grpc.MethodDescriptor getGetModelEvaluationMethod; - if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { - AutoMlGrpc.getGetModelEvaluationMethod = getGetModelEvaluationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.GetModelEvaluationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModelEvaluation")) - .build(); - } - } - } - return getGetModelEvaluationMethod; - } - - private static volatile io.grpc.MethodDescriptor getListModelEvaluationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", - requestType = com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, - responseType = com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListModelEvaluationsMethod() { - io.grpc.MethodDescriptor getListModelEvaluationsMethod; - if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { - AutoMlGrpc.getListModelEvaluationsMethod = getListModelEvaluationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListModelEvaluationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1.ListModelEvaluationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModelEvaluations")) - .build(); - } - } - } - return getListModelEvaluationsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AutoMlStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlStub(channel, callOptions); - } - }; - return AutoMlStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AutoMlBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlBlockingStub(channel, callOptions); - } - }; - return AutoMlBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AutoMlFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlFutureStub(channel, callOptions); - } - }; - return AutoMlFutureStub.newStub(factory, channel); - } - - /** - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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 abstract class AutoMlImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a dataset.
-     * 
- */ - public void createDataset(com.google.cloud.automl.v1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDatasetMethod(), responseObserver); - } - - /** - *
-     * Gets a dataset.
-     * 
- */ - public void getDataset(com.google.cloud.automl.v1.GetDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); - } - - /** - *
-     * Lists datasets in a project.
-     * 
- */ - public void listDatasets(com.google.cloud.automl.v1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDatasetsMethod(), responseObserver); - } - - /** - *
-     * Updates a dataset.
-     * 
- */ - public void updateDataset(com.google.cloud.automl.v1.UpdateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDatasetMethod(), responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void deleteDataset(com.google.cloud.automl.v1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDatasetMethod(), responseObserver); - } - - /** - *
-     * 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.v1.InputConfig.params]
-     *     parameter must be explicitly set.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void importData(com.google.cloud.automl.v1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); - } - - /** - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportData(com.google.cloud.automl.v1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); - } - - /** - *
-     * Gets an annotation spec.
-     * 
- */ - public void getAnnotationSpec(com.google.cloud.automl.v1.GetAnnotationSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAnnotationSpecMethod(), responseObserver); - } - - /** - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public void createModel(com.google.cloud.automl.v1.CreateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateModelMethod(), responseObserver); - } - - /** - *
-     * Gets a model.
-     * 
- */ - public void getModel(com.google.cloud.automl.v1.GetModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); - } - - /** - *
-     * Lists models.
-     * 
- */ - public void listModels(com.google.cloud.automl.v1.ListModelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void deleteModel(com.google.cloud.automl.v1.DeleteModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteModelMethod(), responseObserver); - } - - /** - *
-     * Updates a model.
-     * 
- */ - public void updateModel(com.google.cloud.automl.v1.UpdateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateModelMethod(), responseObserver); - } - - /** - *
-     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
-     *  will reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void deployModel(com.google.cloud.automl.v1.DeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeployModelMethod(), responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void undeployModel(com.google.cloud.automl.v1.UndeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeployModelMethod(), 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.v1.ModelExportOutputConfig].
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportModel(com.google.cloud.automl.v1.ExportModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportModelMethod(), responseObserver); - } - - /** - *
-     * Gets a model evaluation.
-     * 
- */ - public void getModelEvaluation(com.google.cloud.automl.v1.GetModelEvaluationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelEvaluationMethod(), responseObserver); - } - - /** - *
-     * Lists model evaluations.
-     * 
- */ - public void listModelEvaluations(com.google.cloud.automl.v1.ListModelEvaluationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelEvaluationsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.CreateDatasetRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_DATASET))) - .addMethod( - getGetDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.GetDatasetRequest, - com.google.cloud.automl.v1.Dataset>( - this, METHODID_GET_DATASET))) - .addMethod( - getListDatasetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ListDatasetsRequest, - com.google.cloud.automl.v1.ListDatasetsResponse>( - this, METHODID_LIST_DATASETS))) - .addMethod( - getUpdateDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.UpdateDatasetRequest, - com.google.cloud.automl.v1.Dataset>( - this, METHODID_UPDATE_DATASET))) - .addMethod( - getDeleteDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.DeleteDatasetRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_DATASET))) - .addMethod( - getImportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ImportDataRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_DATA))) - .addMethod( - getExportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ExportDataRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_DATA))) - .addMethod( - getGetAnnotationSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.GetAnnotationSpecRequest, - com.google.cloud.automl.v1.AnnotationSpec>( - this, METHODID_GET_ANNOTATION_SPEC))) - .addMethod( - getCreateModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.CreateModelRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_MODEL))) - .addMethod( - getGetModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.GetModelRequest, - com.google.cloud.automl.v1.Model>( - this, METHODID_GET_MODEL))) - .addMethod( - getListModelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ListModelsRequest, - com.google.cloud.automl.v1.ListModelsResponse>( - this, METHODID_LIST_MODELS))) - .addMethod( - getDeleteModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.DeleteModelRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_MODEL))) - .addMethod( - getUpdateModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.UpdateModelRequest, - com.google.cloud.automl.v1.Model>( - this, METHODID_UPDATE_MODEL))) - .addMethod( - getDeployModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.DeployModelRequest, - com.google.longrunning.Operation>( - this, METHODID_DEPLOY_MODEL))) - .addMethod( - getUndeployModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.UndeployModelRequest, - com.google.longrunning.Operation>( - this, METHODID_UNDEPLOY_MODEL))) - .addMethod( - getExportModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ExportModelRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_MODEL))) - .addMethod( - getGetModelEvaluationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.GetModelEvaluationRequest, - com.google.cloud.automl.v1.ModelEvaluation>( - this, METHODID_GET_MODEL_EVALUATION))) - .addMethod( - getListModelEvaluationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1.ListModelEvaluationsRequest, - com.google.cloud.automl.v1.ListModelEvaluationsResponse>( - this, METHODID_LIST_MODEL_EVALUATIONS))) - .build(); - } - } - - /** - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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.AbstractAsyncStub { - private AutoMlStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlStub(channel, callOptions); - } - - /** - *
-     * Creates a dataset.
-     * 
- */ - public void createDataset(com.google.cloud.automl.v1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a dataset.
-     * 
- */ - public void getDataset(com.google.cloud.automl.v1.GetDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists datasets in a project.
-     * 
- */ - public void listDatasets(com.google.cloud.automl.v1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a dataset.
-     * 
- */ - public void updateDataset(com.google.cloud.automl.v1.UpdateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void deleteDataset(com.google.cloud.automl.v1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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.v1.InputConfig.params]
-     *     parameter must be explicitly set.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void importData(com.google.cloud.automl.v1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportData(com.google.cloud.automl.v1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an annotation spec.
-     * 
- */ - public void getAnnotationSpec(com.google.cloud.automl.v1.GetAnnotationSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public void createModel(com.google.cloud.automl.v1.CreateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a model.
-     * 
- */ - public void getModel(com.google.cloud.automl.v1.GetModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists models.
-     * 
- */ - public void listModels(com.google.cloud.automl.v1.ListModelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void deleteModel(com.google.cloud.automl.v1.DeleteModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a model.
-     * 
- */ - public void updateModel(com.google.cloud.automl.v1.UpdateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
-     *  will reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void deployModel(com.google.cloud.automl.v1.DeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeployModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void undeployModel(com.google.cloud.automl.v1.UndeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request, 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.v1.ModelExportOutputConfig].
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportModel(com.google.cloud.automl.v1.ExportModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a model evaluation.
-     * 
- */ - public void getModelEvaluation(com.google.cloud.automl.v1.GetModelEvaluationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists model evaluations.
-     * 
- */ - public void listModelEvaluations(com.google.cloud.automl.v1.ListModelEvaluationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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 extends io.grpc.stub.AbstractBlockingStub { - private AutoMlBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a dataset.
-     * 
- */ - public com.google.longrunning.Operation createDataset(com.google.cloud.automl.v1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a dataset.
-     * 
- */ - public com.google.cloud.automl.v1.Dataset getDataset(com.google.cloud.automl.v1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists datasets in a project.
-     * 
- */ - public com.google.cloud.automl.v1.ListDatasetsResponse listDatasets(com.google.cloud.automl.v1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDatasetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a dataset.
-     * 
- */ - public com.google.cloud.automl.v1.Dataset updateDataset(com.google.cloud.automl.v1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation deleteDataset(com.google.cloud.automl.v1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * 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.v1.InputConfig.params]
-     *     parameter must be explicitly set.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.longrunning.Operation importData(com.google.cloud.automl.v1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportDataMethod(), getCallOptions(), request); - } - - /** - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.longrunning.Operation exportData(com.google.cloud.automl.v1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportDataMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an annotation spec.
-     * 
- */ - public com.google.cloud.automl.v1.AnnotationSpec getAnnotationSpec(com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public com.google.longrunning.Operation createModel(com.google.cloud.automl.v1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateModelMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a model.
-     * 
- */ - public com.google.cloud.automl.v1.Model getModel(com.google.cloud.automl.v1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetModelMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists models.
-     * 
- */ - public com.google.cloud.automl.v1.ListModelsResponse listModels(com.google.cloud.automl.v1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListModelsMethod(), getCallOptions(), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation deleteModel(com.google.cloud.automl.v1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteModelMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a model.
-     * 
- */ - public com.google.cloud.automl.v1.Model updateModel(com.google.cloud.automl.v1.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateModelMethod(), getCallOptions(), request); - } - - /** - *
-     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
-     *  will reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.longrunning.Operation deployModel(com.google.cloud.automl.v1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeployModelMethod(), getCallOptions(), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation undeployModel(com.google.cloud.automl.v1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeployModelMethod(), 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.v1.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.v1.ExportModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportModelMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a model evaluation.
-     * 
- */ - public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation(com.google.cloud.automl.v1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists model evaluations.
-     * 
- */ - public com.google.cloud.automl.v1.ListModelEvaluationsResponse listModelEvaluations(com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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.AbstractFutureStub { - private AutoMlFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDataset( - com.google.cloud.automl.v1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataset( - com.google.cloud.automl.v1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists datasets in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDatasets( - com.google.cloud.automl.v1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDataset( - com.google.cloud.automl.v1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDataset( - com.google.cloud.automl.v1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.v1.InputConfig.params]
-     *     parameter must be explicitly set.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture importData( - com.google.cloud.automl.v1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request); - } - - /** - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture exportData( - com.google.cloud.automl.v1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an annotation spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAnnotationSpec( - com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createModel( - com.google.cloud.automl.v1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a model.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getModel( - com.google.cloud.automl.v1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetModelMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists models.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listModels( - com.google.cloud.automl.v1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListModelsMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteModel( - com.google.cloud.automl.v1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a model.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateModel( - com.google.cloud.automl.v1.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
-     *  will reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deployModel( - com.google.cloud.automl.v1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture undeployModel( - com.google.cloud.automl.v1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeployModelMethod(), 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.v1.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.v1.ExportModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportModelMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a model evaluation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getModelEvaluation( - com.google.cloud.automl.v1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists model evaluations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listModelEvaluations( - com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); - } - } - - 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_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_CREATE_MODEL = 8; - private static final int METHODID_GET_MODEL = 9; - private static final int METHODID_LIST_MODELS = 10; - private static final int METHODID_DELETE_MODEL = 11; - private static final int METHODID_UPDATE_MODEL = 12; - private static final int METHODID_DEPLOY_MODEL = 13; - private static final int METHODID_UNDEPLOY_MODEL = 14; - private static final int METHODID_EXPORT_MODEL = 15; - private static final int METHODID_GET_MODEL_EVALUATION = 16; - private static final int METHODID_LIST_MODEL_EVALUATIONS = 17; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AutoMlImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AutoMlImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_DATASET: - serviceImpl.createDataset((com.google.cloud.automl.v1.CreateDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATASET: - serviceImpl.getDataset((com.google.cloud.automl.v1.GetDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DATASETS: - serviceImpl.listDatasets((com.google.cloud.automl.v1.ListDatasetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DATASET: - serviceImpl.updateDataset((com.google.cloud.automl.v1.UpdateDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DATASET: - serviceImpl.deleteDataset((com.google.cloud.automl.v1.DeleteDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_DATA: - serviceImpl.importData((com.google.cloud.automl.v1.ImportDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_DATA: - serviceImpl.exportData((com.google.cloud.automl.v1.ExportDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ANNOTATION_SPEC: - serviceImpl.getAnnotationSpec((com.google.cloud.automl.v1.GetAnnotationSpecRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_MODEL: - serviceImpl.createModel((com.google.cloud.automl.v1.CreateModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MODEL: - serviceImpl.getModel((com.google.cloud.automl.v1.GetModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MODELS: - serviceImpl.listModels((com.google.cloud.automl.v1.ListModelsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MODEL: - serviceImpl.deleteModel((com.google.cloud.automl.v1.DeleteModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MODEL: - serviceImpl.updateModel((com.google.cloud.automl.v1.UpdateModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEPLOY_MODEL: - serviceImpl.deployModel((com.google.cloud.automl.v1.DeployModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDEPLOY_MODEL: - serviceImpl.undeployModel((com.google.cloud.automl.v1.UndeployModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_MODEL: - serviceImpl.exportModel((com.google.cloud.automl.v1.ExportModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MODEL_EVALUATION: - serviceImpl.getModelEvaluation((com.google.cloud.automl.v1.GetModelEvaluationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MODEL_EVALUATIONS: - serviceImpl.listModelEvaluations((com.google.cloud.automl.v1.ListModelEvaluationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AutoMlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AutoMlBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AutoMl"); - } - } - - private static final class AutoMlFileDescriptorSupplier - extends AutoMlBaseDescriptorSupplier { - AutoMlFileDescriptorSupplier() {} - } - - private static final class AutoMlMethodDescriptorSupplier - extends AutoMlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AutoMlMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AutoMlGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AutoMlFileDescriptorSupplier()) - .addMethod(getCreateDatasetMethod()) - .addMethod(getGetDatasetMethod()) - .addMethod(getListDatasetsMethod()) - .addMethod(getUpdateDatasetMethod()) - .addMethod(getDeleteDatasetMethod()) - .addMethod(getImportDataMethod()) - .addMethod(getExportDataMethod()) - .addMethod(getGetAnnotationSpecMethod()) - .addMethod(getCreateModelMethod()) - .addMethod(getGetModelMethod()) - .addMethod(getListModelsMethod()) - .addMethod(getDeleteModelMethod()) - .addMethod(getUpdateModelMethod()) - .addMethod(getDeployModelMethod()) - .addMethod(getUndeployModelMethod()) - .addMethod(getExportModelMethod()) - .addMethod(getGetModelEvaluationMethod()) - .addMethod(getListModelEvaluationsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java deleted file mode 100644 index 031f7fcec..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/annotation_payload.proto - -package com.google.cloud.automl.v1; - -public final class AnnotationPayloadOuterClass { - private AnnotationPayloadOuterClass() {} - 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_v1_AnnotationPayload_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_AnnotationPayload_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/v1/annotation_payl" + - "oad.proto\022\026google.cloud.automl.v1\032+googl" + - "e/cloud/automl/v1/classification.proto\032&" + - "google/cloud/automl/v1/detection.proto\032," + - "google/cloud/automl/v1/text_extraction.p" + - "roto\032+google/cloud/automl/v1/text_sentim" + - "ent.proto\032(google/cloud/automl/v1/transl" + - "ation.proto\032\031google/protobuf/any.proto\032\034" + - "google/api/annotations.proto\"\323\003\n\021Annotat" + - "ionPayload\022D\n\013translation\030\002 \001(\0132-.google" + - ".cloud.automl.v1.TranslationAnnotationH\000" + - "\022J\n\016classification\030\003 \001(\01320.google.cloud." + - "automl.v1.ClassificationAnnotationH\000\022X\n\026" + - "image_object_detection\030\004 \001(\01326.google.cl" + - "oud.automl.v1.ImageObjectDetectionAnnota" + - "tionH\000\022K\n\017text_extraction\030\006 \001(\01320.google" + - ".cloud.automl.v1.TextExtractionAnnotatio" + - "nH\000\022I\n\016text_sentiment\030\007 \001(\0132/.google.clo" + - "ud.automl.v1.TextSentimentAnnotationH\000\022\032" + - "\n\022annotation_spec_id\030\001 \001(\t\022\024\n\014display_na" + - "me\030\005 \001(\tB\010\n\006detailB\252\001\n\032com.google.cloud." + - "automl.v1P\001Z\n\014input" + - "_config\030\003 \001(\0132#.google.cloud.automl.v1.I" + - "nputConfigB\003\340A\002\"\212\001\n\021ExportDataRequest\0223\n" + - "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleapis.c" + - "om/Dataset\022@\n\routput_config\030\003 \001(\0132$.goog" + - "le.cloud.automl.v1.OutputConfigB\003\340A\002\"V\n\030" + - "GetAnnotationSpecRequest\022:\n\004name\030\001 \001(\tB," + - "\340A\002\372A&\n$automl.googleapis.com/Annotation" + - "Spec\"\202\001\n\022CreateModelRequest\0229\n\006parent\030\001 " + - "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" + - "cation\0221\n\005model\030\004 \001(\0132\035.google.cloud.aut" + - "oml.v1.ModelB\003\340A\002\"D\n\017GetModelRequest\0221\n\004" + - "name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis.co" + - "m/Model\"\205\001\n\021ListModelsRequest\0229\n\006parent\030" + - "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + - "Location\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\"[\n\022ListModelsRes" + - "ponse\022,\n\005model\030\001 \003(\0132\035.google.cloud.auto" + - "ml.v1.Model\022\027\n\017next_page_token\030\002 \001(\t\"G\n\022" + - "DeleteModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035" + - "\n\033automl.googleapis.com/Model\"}\n\022UpdateM" + - "odelRequest\0221\n\005model\030\001 \001(\0132\035.google.clou" + - "d.automl.v1.ModelB\003\340A\002\0224\n\013update_mask\030\002 " + - "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\343\002\n" + - "\022DeployModelRequest\022\177\n0image_object_dete" + - "ction_model_deployment_metadata\030\002 \001(\0132C." + - "google.cloud.automl.v1.ImageObjectDetect" + - "ionModelDeploymentMetadataH\000\022|\n.image_cl" + - "assification_model_deployment_metadata\030\004" + - " \001(\0132B.google.cloud.automl.v1.ImageClass" + - "ificationModelDeploymentMetadataH\000\0221\n\004na" + - "me\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis.com/" + - "ModelB\033\n\031model_deployment_metadata\"I\n\024Un" + - "deployModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035" + - "\n\033automl.googleapis.com/Model\"\224\001\n\022Export" + - "ModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033auto" + - "ml.googleapis.com/Model\022K\n\routput_config" + - "\030\003 \001(\0132/.google.cloud.automl.v1.ModelExp" + - "ortOutputConfigB\003\340A\002\"X\n\031GetModelEvaluati" + - "onRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%automl." + - "googleapis.com/ModelEvaluation\"\216\001\n\033ListM" + - "odelEvaluationsRequest\0223\n\006parent\030\001 \001(\tB#" + - "\340A\002\372A\035\n\033automl.googleapis.com/Model\022\023\n\006f" + - "ilter\030\003 \001(\tB\003\340A\002\022\021\n\tpage_size\030\004 \001(\005\022\022\n\np" + - "age_token\030\006 \001(\t\"z\n\034ListModelEvaluationsR" + - "esponse\022A\n\020model_evaluation\030\001 \003(\0132\'.goog" + - "le.cloud.automl.v1.ModelEvaluation\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t2\350\033\n\006AutoMl\022\313\001\n\rCreat" + - "eDataset\022,.google.cloud.automl.v1.Create" + - "DatasetRequest\032\035.google.longrunning.Oper" + - "ation\"m\202\323\344\223\0027\",/v1/{parent=projects/*/lo" + - "cations/*}/datasets:\007dataset\332A\016parent,da" + - "taset\312A\034\n\007Dataset\022\021OperationMetadata\022\225\001\n" + - "\nGetDataset\022).google.cloud.automl.v1.Get" + - "DatasetRequest\032\037.google.cloud.automl.v1." + - "Dataset\";\202\323\344\223\002.\022,/v1/{name=projects/*/lo" + - "cations/*/datasets/*}\332A\004name\022\250\001\n\014ListDat" + - "asets\022+.google.cloud.automl.v1.ListDatas" + - "etsRequest\032,.google.cloud.automl.v1.List" + - "DatasetsResponse\"=\202\323\344\223\002.\022,/v1/{parent=pr" + - "ojects/*/locations/*}/datasets\332A\006parent\022" + - "\273\001\n\rUpdateDataset\022,.google.cloud.automl." + - "v1.UpdateDatasetRequest\032\037.google.cloud.a" + - "utoml.v1.Dataset\"[\202\323\344\223\002?24/v1/{dataset.n" + - "ame=projects/*/locations/*/datasets/*}:\007" + - "dataset\332A\023dataset,update_mask\022\306\001\n\rDelete" + - "Dataset\022,.google.cloud.automl.v1.DeleteD" + - "atasetRequest\032\035.google.longrunning.Opera" + - "tion\"h\202\323\344\223\002.*,/v1/{name=projects/*/locat" + - "ions/*/datasets/*}\332A\004name\312A*\n\025google.pro" + - "tobuf.Empty\022\021OperationMetadata\022\334\001\n\nImpor" + - "tData\022).google.cloud.automl.v1.ImportDat" + - "aRequest\032\035.google.longrunning.Operation\"" + - "\203\001\202\323\344\223\002<\"7/v1/{name=projects/*/locations" + - "/*/datasets/*}:importData:\001*\332A\021name,inpu" + - "t_config\312A*\n\025google.protobuf.Empty\022\021Oper" + - "ationMetadata\022\335\001\n\nExportData\022).google.cl" + - "oud.automl.v1.ExportDataRequest\032\035.google" + - ".longrunning.Operation\"\204\001\202\323\344\223\002<\"7/v1/{na" + - "me=projects/*/locations/*/datasets/*}:ex" + - "portData:\001*\332A\022name,output_config\312A*\n\025goo" + - "gle.protobuf.Empty\022\021OperationMetadata\022\274\001" + - "\n\021GetAnnotationSpec\0220.google.cloud.autom" + - "l.v1.GetAnnotationSpecRequest\032&.google.c" + - "loud.automl.v1.AnnotationSpec\"M\202\323\344\223\002@\022>/" + - "v1/{name=projects/*/locations/*/datasets" + - "/*/annotationSpecs/*}\332A\004name\022\277\001\n\013CreateM" + - "odel\022*.google.cloud.automl.v1.CreateMode" + - "lRequest\032\035.google.longrunning.Operation\"" + - "e\202\323\344\223\0023\"*/v1/{parent=projects/*/location" + - "s/*}/models:\005model\332A\014parent,model\312A\032\n\005Mo" + - "del\022\021OperationMetadata\022\215\001\n\010GetModel\022\'.go" + - "ogle.cloud.automl.v1.GetModelRequest\032\035.g" + - "oogle.cloud.automl.v1.Model\"9\202\323\344\223\002,\022*/v1" + - "/{name=projects/*/locations/*/models/*}\332" + - "A\004name\022\240\001\n\nListModels\022).google.cloud.aut" + - "oml.v1.ListModelsRequest\032*.google.cloud." + - "automl.v1.ListModelsResponse\";\202\323\344\223\002,\022*/v" + - "1/{parent=projects/*/locations/*}/models" + - "\332A\006parent\022\300\001\n\013DeleteModel\022*.google.cloud" + - ".automl.v1.DeleteModelRequest\032\035.google.l" + - "ongrunning.Operation\"f\202\323\344\223\002,**/v1/{name=" + - "projects/*/locations/*/models/*}\332A\004name\312" + - "A*\n\025google.protobuf.Empty\022\021OperationMeta" + - "data\022\255\001\n\013UpdateModel\022*.google.cloud.auto" + - "ml.v1.UpdateModelRequest\032\035.google.cloud." + - "automl.v1.Model\"S\202\323\344\223\002920/v1/{model.name" + - "=projects/*/locations/*/models/*}:\005model" + - "\332A\021model,update_mask\022\312\001\n\013DeployModel\022*.g" + - "oogle.cloud.automl.v1.DeployModelRequest" + - "\032\035.google.longrunning.Operation\"p\202\323\344\223\0026\"" + - "1/v1/{name=projects/*/locations/*/models" + - "/*}:deploy:\001*\332A\004name\312A*\n\025google.protobuf" + - ".Empty\022\021OperationMetadata\022\320\001\n\rUndeployMo" + - "del\022,.google.cloud.automl.v1.UndeployMod" + - "elRequest\032\035.google.longrunning.Operation" + - "\"r\202\323\344\223\0028\"3/v1/{name=projects/*/locations" + - "/*/models/*}:undeploy:\001*\332A\004name\312A*\n\025goog" + - "le.protobuf.Empty\022\021OperationMetadata\022\330\001\n" + - "\013ExportModel\022*.google.cloud.automl.v1.Ex" + - "portModelRequest\032\035.google.longrunning.Op" + - "eration\"~\202\323\344\223\0026\"1/v1/{name=projects/*/lo" + - "cations/*/models/*}:export:\001*\332A\022name,out" + - "put_config\312A*\n\025google.protobuf.Empty\022\021Op" + - "erationMetadata\022\276\001\n\022GetModelEvaluation\0221" + - ".google.cloud.automl.v1.GetModelEvaluati" + - "onRequest\032\'.google.cloud.automl.v1.Model" + - "Evaluation\"L\202\323\344\223\002?\022=/v1/{name=projects/*" + - "/locations/*/models/*/modelEvaluations/*" + - "}\332A\004name\022\330\001\n\024ListModelEvaluations\0223.goog" + - "le.cloud.automl.v1.ListModelEvaluationsR" + - "equest\0324.google.cloud.automl.v1.ListMode" + - "lEvaluationsResponse\"U\202\323\344\223\002?\022=/v1/{paren" + - "t=projects/*/locations/*/models/*}/model" + - "Evaluations\332A\rparent,filter\032I\312A\025automl.g" + - "oogleapis.com\322A.https://www.googleapis.c" + - "om/auth/cloud-platformB\267\001\n\032com.google.cl" + - "oud.automl.v1B\013AutoMlProtoP\001Z - * Required. The Google Cloud Storage location for the input content. - *
- * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the gcsSource field is set. - */ - boolean hasGcsSource(); - /** - *
-   * Required. The Google Cloud Storage location for the input content.
-   * 
- * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The gcsSource. - */ - com.google.cloud.automl.v1.GcsSource getGcsSource(); - /** - *
-   * Required. The Google Cloud Storage location for the input content.
-   * 
- * - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); - - public com.google.cloud.automl.v1.BatchPredictInputConfig.SourceCase getSourceCase(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java deleted file mode 100644 index 21ce57339..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java +++ /dev/null @@ -1,125 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/classification.proto - -package com.google.cloud.automl.v1; - -public final class ClassificationProto { - private ClassificationProto() {} - 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_v1_ClassificationAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_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/v1/classification." + - "proto\022\026google.cloud.automl.v1\032\034google/ap" + - "i/annotations.proto\")\n\030ClassificationAnn" + - "otation\022\r\n\005score\030\001 \001(\002\"\201\007\n\037Classificatio" + - "nEvaluationMetrics\022\016\n\006au_prc\030\001 \001(\002\022\016\n\006au" + - "_roc\030\006 \001(\002\022\020\n\010log_loss\030\007 \001(\002\022p\n\030confiden" + - "ce_metrics_entry\030\003 \003(\0132N.google.cloud.au" + - "toml.v1.ClassificationEvaluationMetrics." + - "ConfidenceMetricsEntry\022a\n\020confusion_matr" + - "ix\030\004 \001(\0132G.google.cloud.automl.v1.Classi" + - "ficationEvaluationMetrics.ConfusionMatri" + - "x\022\032\n\022annotation_spec_id\030\005 \003(\t\032\374\002\n\026Confid" + - "enceMetricsEntry\022\034\n\024confidence_threshold" + - "\030\001 \001(\002\022\032\n\022position_threshold\030\016 \001(\005\022\016\n\006re" + - "call\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\002\022\033\n\023false_p" + - "ositive_rate\030\010 \001(\002\022\020\n\010f1_score\030\004 \001(\002\022\022\n\n" + - "recall_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_s" + - "core_at1\030\007 \001(\002\022\033\n\023true_positive_count\030\n " + - "\001(\003\022\034\n\024false_positive_count\030\013 \001(\003\022\034\n\024fal" + - "se_negative_count\030\014 \001(\003\022\033\n\023true_negative" + - "_count\030\r \001(\003\032\273\001\n\017ConfusionMatrix\022\032\n\022anno" + - "tation_spec_id\030\001 \003(\t\022\024\n\014display_name\030\003 \003" + - "(\t\022X\n\003row\030\002 \003(\0132K.google.cloud.automl.v1" + - ".ClassificationEvaluationMetrics.Confusi" + - "onMatrix.Row\032\034\n\003Row\022\025\n\rexample_count\030\001 \003" + - "(\005*Y\n\022ClassificationType\022#\n\037CLASSIFICATI" + - "ON_TYPE_UNSPECIFIED\020\000\022\016\n\nMULTICLASS\020\001\022\016\n" + - "\nMULTILABEL\020\002B\277\001\n\032com.google.cloud.autom" + - "l.v1B\023ClassificationProtoP\001Z - * Required. The resource name of the dataset to delete. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the dataset to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java deleted file mode 100644 index 81ff32d75..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface DeleteModelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeleteModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the model being deleted.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the model being deleted.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java deleted file mode 100644 index a6c5bd1c5..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/operations.proto - -package com.google.cloud.automl.v1; - -public interface DeleteOperationMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeleteOperationMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java deleted file mode 100644 index ee1ecf2fb..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/operations.proto - -package com.google.cloud.automl.v1; - -public interface DeployModelOperationMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeployModelOperationMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java deleted file mode 100644 index e0c83dbd5..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface DeployModelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeployModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Model deployment metadata specific to Image Object Detection.
-   * 
- * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. - */ - boolean hasImageObjectDetectionModelDeploymentMetadata(); - /** - *
-   * Model deployment metadata specific to Image Object Detection.
-   * 
- * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * @return The imageObjectDetectionModelDeploymentMetadata. - */ - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getImageObjectDetectionModelDeploymentMetadata(); - /** - *
-   * Model deployment metadata specific to Image Object Detection.
-   * 
- * - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - */ - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder getImageObjectDetectionModelDeploymentMetadataOrBuilder(); - - /** - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * @return Whether the imageClassificationModelDeploymentMetadata field is set. - */ - boolean hasImageClassificationModelDeploymentMetadata(); - /** - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * @return The imageClassificationModelDeploymentMetadata. - */ - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata(); - /** - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - */ - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder(); - - /** - *
-   * Required. Resource name of the model to deploy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the model to deploy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - public com.google.cloud.automl.v1.DeployModelRequest.ModelDeploymentMetadataCase getModelDeploymentMetadataCase(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java deleted file mode 100644 index c88ae83e8..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java +++ /dev/null @@ -1,109 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/detection.proto - -package com.google.cloud.automl.v1; - -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_v1_ImageObjectDetectionAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_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/v1/detection.proto" + - "\022\026google.cloud.automl.v1\032%google/cloud/a" + - "utoml/v1/geometry.proto\032\036google/protobuf" + - "/duration.proto\032\034google/api/annotations." + - "proto\"k\n\036ImageObjectDetectionAnnotation\022" + - ":\n\014bounding_box\030\001 \001(\0132$.google.cloud.aut" + - "oml.v1.BoundingPoly\022\r\n\005score\030\002 \001(\002\"\251\002\n\027B" + - "oundingBoxMetricsEntry\022\025\n\riou_threshold\030" + - "\001 \001(\002\022\036\n\026mean_average_precision\030\002 \001(\002\022j\n" + - "\032confidence_metrics_entries\030\003 \003(\0132F.goog" + - "le.cloud.automl.v1.BoundingBoxMetricsEnt" + - "ry.ConfidenceMetricsEntry\032k\n\026ConfidenceM" + - "etricsEntry\022\034\n\024confidence_threshold\030\001 \001(" + - "\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\002\022\020\n\010" + - "f1_score\030\004 \001(\002\"\321\001\n%ImageObjectDetectionE" + - "valuationMetrics\022$\n\034evaluated_bounding_b" + - "ox_count\030\001 \001(\005\022U\n\034bounding_box_metrics_e" + - "ntries\030\002 \003(\0132/.google.cloud.automl.v1.Bo" + - "undingBoxMetricsEntry\022+\n#bounding_box_me" + - "an_average_precision\030\003 \001(\002B\252\001\n\032com.googl" + - "e.cloud.automl.v1P\001Z - * Required. The resource name of the dataset. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the dataset.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The desired output location.
-   * 
- * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - *
-   * Required. The desired output location.
-   * 
- * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The outputConfig. - */ - com.google.cloud.automl.v1.OutputConfig getOutputConfig(); - /** - *
-   * Required. The desired output location.
-   * 
- * - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.automl.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java deleted file mode 100644 index 3ed6bf02b..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/operations.proto - -package com.google.cloud.automl.v1; - -public interface ExportModelOperationMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportModelOperationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Information further describing the output of this model
-   * export.
-   * 
- * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * @return Whether the outputInfo field is set. - */ - boolean hasOutputInfo(); - /** - *
-   * Output only. Information further describing the output of this model
-   * export.
-   * 
- * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * @return The outputInfo. - */ - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo(); - /** - *
-   * Output only. Information further describing the output of this model
-   * export.
-   * 
- * - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - */ - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder getOutputInfoOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java deleted file mode 100644 index a775e62f6..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface ExportModelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the model to export.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the model to export.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The desired output location and configuration.
-   * 
- * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - *
-   * Required. The desired output location and configuration.
-   * 
- * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The outputConfig. - */ - com.google.cloud.automl.v1.ModelExportOutputConfig getOutputConfig(); - /** - *
-   * Required. The desired output location and configuration.
-   * 
- * - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java deleted file mode 100644 index b7d1ece63..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/geometry.proto - -package com.google.cloud.automl.v1; - -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_v1_NormalizedVertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BoundingPoly_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_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/v1/geometry.proto\022" + - "\026google.cloud.automl.v1\032\034google/api/anno" + - "tations.proto\"(\n\020NormalizedVertex\022\t\n\001x\030\001" + - " \001(\002\022\t\n\001y\030\002 \001(\002\"U\n\014BoundingPoly\022E\n\023norma" + - "lized_vertices\030\002 \003(\0132(.google.cloud.auto" + - "ml.v1.NormalizedVertexB\252\001\n\032com.google.cl" + - "oud.automl.v1P\001Z - * Required. The resource name of the annotation spec to retrieve. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the annotation spec to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java deleted file mode 100644 index 5091fd3da..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface GetDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the dataset to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the dataset to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java deleted file mode 100644 index 02a5b3143..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface GetModelEvaluationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetModelEvaluationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name for the model evaluation.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name for the model evaluation.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java deleted file mode 100644 index d66f596dc..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/service.proto - -package com.google.cloud.automl.v1; - -public interface GetModelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the model.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the model.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java deleted file mode 100644 index 9030bfc74..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/image.proto - -package com.google.cloud.automl.v1; - -public interface ImageObjectDetectionDatasetMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java deleted file mode 100644 index cf4690219..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java +++ /dev/null @@ -1,139 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/image.proto - -package com.google.cloud.automl.v1; - -public final class ImageProto { - private ImageProto() {} - 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_v1_ImageClassificationDatasetMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_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/v1/image.proto\022\026go" + - "ogle.cloud.automl.v1\032\031google/api/resourc" + - "e.proto\032,google/cloud/automl/v1/annotati" + - "on_spec.proto\032+google/cloud/automl/v1/cl" + - "assification.proto\032\037google/protobuf/time" + - "stamp.proto\032\034google/api/annotations.prot" + - "o\"m\n\"ImageClassificationDatasetMetadata\022" + - "G\n\023classification_type\030\001 \001(\0162*.google.cl" + - "oud.automl.v1.ClassificationType\"%\n#Imag" + - "eObjectDetectionDatasetMetadata\"\324\001\n Imag" + - "eClassificationModelMetadata\022\025\n\rbase_mod" + - "el_id\030\001 \001(\t\022%\n\035train_budget_milli_node_h" + - "ours\030\020 \001(\003\022#\n\033train_cost_milli_node_hour" + - "s\030\021 \001(\003\022\023\n\013stop_reason\030\005 \001(\t\022\022\n\nmodel_ty" + - "pe\030\007 \001(\t\022\020\n\010node_qps\030\r \001(\001\022\022\n\nnode_count" + - "\030\016 \001(\003\"\276\001\n!ImageObjectDetectionModelMeta" + - "data\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\022\023\n\013stop_reason\030\005 " + - "\001(\t\022%\n\035train_budget_milli_node_hours\030\006 \001" + - "(\003\022#\n\033train_cost_milli_node_hours\030\007 \001(\003\"" + - "@\n*ImageClassificationModelDeploymentMet" + - "adata\022\022\n\nnode_count\030\001 \001(\003\"A\n+ImageObject" + - "DetectionModelDeploymentMetadata\022\022\n\nnode" + - "_count\030\001 \001(\003B\266\001\n\032com.google.cloud.automl" + - ".v1B\nImageProtoP\001Z - * Required. Dataset name. Dataset must already exist. All imported - * annotations and examples will be added. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Dataset name. Dataset must already exist. All imported
-   * annotations and examples will be added.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the inputConfig field is set. - */ - boolean hasInputConfig(); - /** - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The inputConfig. - */ - com.google.cloud.automl.v1.InputConfig getInputConfig(); - /** - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.automl.v1.InputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java deleted file mode 100644 index 110c9467b..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java +++ /dev/null @@ -1,184 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/io.proto - -package com.google.cloud.automl.v1; - -public final class Io { - private Io() {} - 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_v1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_GcsDestination_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\037google/cloud/automl/v1/io.proto\022\026googl" + - "e.cloud.automl.v1\032\037google/api/field_beha" + - "vior.proto\032\034google/api/annotations.proto" + - "\"\300\001\n\013InputConfig\0227\n\ngcs_source\030\001 \001(\0132!.g" + - "oogle.cloud.automl.v1.GcsSourceH\000\022?\n\006par" + - "ams\030\002 \003(\0132/.google.cloud.automl.v1.Input" + - "Config.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\"a\n\027B" + - "atchPredictInputConfig\022<\n\ngcs_source\030\001 \001" + - "(\0132!.google.cloud.automl.v1.GcsSourceB\003\340" + - "A\002H\000B\010\n\006source\"L\n\023DocumentInputConfig\0225\n" + - "\ngcs_source\030\001 \001(\0132!.google.cloud.automl." + - "v1.GcsSource\"e\n\014OutputConfig\022F\n\017gcs_dest" + - "ination\030\001 \001(\0132&.google.cloud.automl.v1.G" + - "csDestinationB\003\340A\002H\000B\r\n\013destination\"q\n\030B" + - "atchPredictOutputConfig\022F\n\017gcs_destinati" + - "on\030\001 \001(\0132&.google.cloud.automl.v1.GcsDes" + - "tinationB\003\340A\002H\000B\r\n\013destination\"\202\002\n\027Model" + - "ExportOutputConfig\022F\n\017gcs_destination\030\001 " + - "\001(\0132&.google.cloud.automl.v1.GcsDestinat" + - "ionB\003\340A\002H\000\022\024\n\014model_format\030\004 \001(\t\022K\n\006para" + - "ms\030\002 \003(\0132;.google.cloud.automl.v1.ModelE" + - "xportOutputConfig.ParamsEntry\032-\n\013ParamsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\r\n\013" + - "destination\"$\n\tGcsSource\022\027\n\ninput_uris\030\001" + - " \003(\tB\003\340A\002\"0\n\016GcsDestination\022\036\n\021output_ur" + - "i_prefix\030\001 \001(\tB\003\340A\002B\252\001\n\032com.google.cloud" + - ".automl.v1P\001Z - * Required. Horizontal coordinate. - *
- * - * float x = 1; - * @return The x. - */ - float getX(); - - /** - *
-   * Required. Vertical coordinate.
-   * 
- * - * float y = 2; - * @return The y. - */ - float getY(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java deleted file mode 100644 index 5f32d8835..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java +++ /dev/null @@ -1,243 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/operations.proto - -package com.google.cloud.automl.v1; - -public final class Operations { - private Operations() {} - 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_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_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/v1/operations.prot" + - "o\022\026google.cloud.automl.v1\032$google/cloud/" + - "automl/v1/dataset.proto\032\037google/cloud/au" + - "toml/v1/io.proto\032\037google/protobuf/timest" + - "amp.proto\032\027google/rpc/status.proto\032\034goog" + - "le/api/annotations.proto\"\311\007\n\021OperationMe" + - "tadata\022I\n\016delete_details\030\010 \001(\0132/.google." + - "cloud.automl.v1.DeleteOperationMetadataH" + - "\000\022T\n\024deploy_model_details\030\030 \001(\01324.google" + - ".cloud.automl.v1.DeployModelOperationMet" + - "adataH\000\022X\n\026undeploy_model_details\030\031 \001(\0132" + - "6.google.cloud.automl.v1.UndeployModelOp" + - "erationMetadataH\000\022T\n\024create_model_detail" + - "s\030\n \001(\01324.google.cloud.automl.v1.CreateM" + - "odelOperationMetadataH\000\022X\n\026create_datase" + - "t_details\030\036 \001(\01326.google.cloud.automl.v1" + - ".CreateDatasetOperationMetadataH\000\022R\n\023imp" + - "ort_data_details\030\017 \001(\01323.google.cloud.au" + - "toml.v1.ImportDataOperationMetadataH\000\022V\n" + - "\025batch_predict_details\030\020 \001(\01325.google.cl" + - "oud.automl.v1.BatchPredictOperationMetad" + - "ataH\000\022R\n\023export_data_details\030\025 \001(\01323.goo" + - "gle.cloud.automl.v1.ExportDataOperationM" + - "etadataH\000\022T\n\024export_model_details\030\026 \001(\0132" + - "4.google.cloud.automl.v1.ExportModelOper" + - "ationMetadataH\000\022\030\n\020progress_percent\030\r \001(" + - "\005\022,\n\020partial_failures\030\002 \003(\0132\022.google.rpc" + - ".Status\022/\n\013create_time\030\003 \001(\0132\032.google.pr" + - "otobuf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032." + - "google.protobuf.TimestampB\t\n\007details\"\031\n\027" + - "DeleteOperationMetadata\"\036\n\034DeployModelOp" + - "erationMetadata\" \n\036UndeployModelOperatio" + - "nMetadata\" \n\036CreateDatasetOperationMetad" + - "ata\"\036\n\034CreateModelOperationMetadata\"\035\n\033I" + - "mportDataOperationMetadata\"\307\001\n\033ExportDat" + - "aOperationMetadata\022]\n\013output_info\030\001 \001(\0132" + - "H.google.cloud.automl.v1.ExportDataOpera" + - "tionMetadata.ExportDataOutputInfo\032I\n\024Exp" + - "ortDataOutputInfo\022\036\n\024gcs_output_director" + - "y\030\001 \001(\tH\000B\021\n\017output_location\"\226\002\n\035BatchPr" + - "edictOperationMetadata\022E\n\014input_config\030\001" + - " \001(\0132/.google.cloud.automl.v1.BatchPredi" + - "ctInputConfig\022a\n\013output_info\030\002 \001(\0132L.goo" + - "gle.cloud.automl.v1.BatchPredictOperatio" + - "nMetadata.BatchPredictOutputInfo\032K\n\026Batc" + - "hPredictOutputInfo\022\036\n\024gcs_output_directo" + - "ry\030\001 \001(\tH\000B\021\n\017output_location\"\266\001\n\034Export" + - "ModelOperationMetadata\022_\n\013output_info\030\002 " + - "\001(\0132J.google.cloud.automl.v1.ExportModel" + - "OperationMetadata.ExportModelOutputInfo\032" + - "5\n\025ExportModelOutputInfo\022\034\n\024gcs_output_d" + - "irectory\030\001 \001(\tB\252\001\n\032com.google.cloud.auto" + - "ml.v1P\001Z - * Output only. The Area under precision recall curve metric. - *
- * - * float au_prc = 1; - * @return The auPrc. - */ - float getAuPrc(); - - /** - *
-   * Output only. Metrics that have confidence thresholds.
-   * Precision-recall curve can be derived from it.
-   * 
- * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - */ - java.util.List - getConfidenceMetricsEntriesList(); - /** - *
-   * Output only. Metrics that have confidence thresholds.
-   * Precision-recall curve can be derived from it.
-   * 
- * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - */ - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index); - /** - *
-   * Output only. Metrics that have confidence thresholds.
-   * Precision-recall curve can be derived from it.
-   * 
- * - * repeated .google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - */ - java.util.List - getConfidenceMetricsEntriesOrBuilderList(); - /** - *
-   * Output only. Metrics that have confidence thresholds.
-   * Precision-recall curve can be derived from it.
-   * 
- * - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - */ - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java deleted file mode 100644 index 637e69a7c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/text.proto - -package com.google.cloud.automl.v1; - -public interface TextExtractionModelMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextExtractionModelMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java deleted file mode 100644 index 769871987..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java +++ /dev/null @@ -1,122 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/text.proto - -package com.google.cloud.automl.v1; - -public final class TextProto { - private TextProto() {} - 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_v1_TextClassificationDatasetMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_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/v1/text.proto\022\026goo" + - "gle.cloud.automl.v1\032+google/cloud/automl" + - "/v1/classification.proto\032\034google/api/ann" + - "otations.proto\"l\n!TextClassificationData" + - "setMetadata\022G\n\023classification_type\030\001 \001(\016" + - "2*.google.cloud.automl.v1.Classification" + - "Type\"j\n\037TextClassificationModelMetadata\022" + - "G\n\023classification_type\030\003 \001(\0162*.google.cl" + - "oud.automl.v1.ClassificationType\"\037\n\035Text" + - "ExtractionDatasetMetadata\"\035\n\033TextExtract" + - "ionModelMetadata\"5\n\034TextSentimentDataset" + - "Metadata\022\025\n\rsentiment_max\030\001 \001(\005\"\034\n\032TextS" + - "entimentModelMetadataB\265\001\n\032com.google.clo" + - "ud.automl.v1B\tTextProtoP\001Z - * Output only. BLEU score. - *
- * - * double bleu_score = 1; - * @return The bleuScore. - */ - double getBleuScore(); - - /** - *
-   * Output only. BLEU score for base model.
-   * 
- * - * double base_bleu_score = 2; - * @return The baseBleuScore. - */ - double getBaseBleuScore(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java b/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java deleted file mode 100644 index 2d2b51f94..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1/translation.proto - -package com.google.cloud.automl.v1; - -public final class TranslationProto { - private TranslationProto() {} - 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_v1_TranslationDatasetMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1_TranslationAnnotation_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/v1/translation.pro" + - "to\022\026google.cloud.automl.v1\032\037google/api/f" + - "ield_behavior.proto\032\'google/cloud/automl" + - "/v1/data_items.proto\032\034google/api/annotat" + - "ions.proto\"b\n\032TranslationDatasetMetadata" + - "\022!\n\024source_language_code\030\001 \001(\tB\003\340A\002\022!\n\024t" + - "arget_language_code\030\002 \001(\tB\003\340A\002\"K\n\034Transl" + - "ationEvaluationMetrics\022\022\n\nbleu_score\030\001 \001" + - "(\001\022\027\n\017base_bleu_score\030\002 \001(\001\"j\n\030Translati" + - "onModelMetadata\022\022\n\nbase_model\030\001 \001(\t\022\034\n\024s" + - "ource_language_code\030\002 \001(\t\022\034\n\024target_lang" + - "uage_code\030\003 \001(\t\"X\n\025TranslationAnnotation" + - "\022?\n\022translated_content\030\001 \001(\0132#.google.cl" + - "oud.automl.v1.TextSnippetB\274\001\n\032com.google" + - ".cloud.automl.v1B\020TranslationProtoP\001Z - * Required. Resource name of the model to undeploy. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the model to undeploy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java deleted file mode 100644 index c5f2fd1bb..000000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java +++ /dev/null @@ -1,2518 +0,0 @@ -package com.google.cloud.automl.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * AutoML Server API.
- * The resource names are assigned by the server.
- * The server never reuses names that it has created after the resources with
- * those names are deleted.
- * 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( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/automl/v1beta1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AutoMlGrpc { - - private AutoMlGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.automl.v1beta1.AutoMl"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDataset", - requestType = com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, - responseType = com.google.cloud.automl.v1beta1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDatasetMethod() { - io.grpc.MethodDescriptor getCreateDatasetMethod; - if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { - AutoMlGrpc.getCreateDatasetMethod = getCreateDatasetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.CreateDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateDataset")) - .build(); - } - } - } - return getCreateDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataset", - requestType = com.google.cloud.automl.v1beta1.GetDatasetRequest.class, - responseType = com.google.cloud.automl.v1beta1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDatasetMethod() { - io.grpc.MethodDescriptor getGetDatasetMethod; - if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { - AutoMlGrpc.getGetDatasetMethod = getGetDatasetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.GetDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetDataset")) - .build(); - } - } - } - return getGetDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDatasetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDatasets", - requestType = com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, - responseType = com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDatasetsMethod() { - io.grpc.MethodDescriptor getListDatasetsMethod; - if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { - AutoMlGrpc.getListDatasetsMethod = getListDatasetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatasets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListDatasetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListDatasetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListDatasets")) - .build(); - } - } - } - return getListDatasetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", - requestType = com.google.cloud.automl.v1beta1.UpdateDatasetRequest.class, - responseType = com.google.cloud.automl.v1beta1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDatasetMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", - requestType = com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDatasetMethod() { - io.grpc.MethodDescriptor getDeleteDatasetMethod; - if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { - AutoMlGrpc.getDeleteDatasetMethod = getDeleteDatasetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteDataset")) - .build(); - } - } - } - return getDeleteDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getImportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportData", - requestType = com.google.cloud.automl.v1beta1.ImportDataRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getImportDataMethod() { - io.grpc.MethodDescriptor getImportDataMethod; - if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { - AutoMlGrpc.getImportDataMethod = getImportDataMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportData")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ImportDataRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ImportData")) - .build(); - } - } - } - return getImportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor getExportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportData", - requestType = com.google.cloud.automl.v1beta1.ExportDataRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExportDataMethod() { - io.grpc.MethodDescriptor getExportDataMethod; - if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { - AutoMlGrpc.getExportDataMethod = getExportDataMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportData")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ExportDataRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportData")) - .build(); - } - } - } - return getExportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAnnotationSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpec", - requestType = com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.class, - responseType = com.google.cloud.automl.v1beta1.AnnotationSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAnnotationSpecMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor getGetTableSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTableSpec", - requestType = com.google.cloud.automl.v1beta1.GetTableSpecRequest.class, - responseType = com.google.cloud.automl.v1beta1.TableSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTableSpecMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor getListTableSpecsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTableSpecs", - requestType = com.google.cloud.automl.v1beta1.ListTableSpecsRequest.class, - responseType = com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTableSpecsMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor getUpdateTableSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTableSpec", - requestType = com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.class, - responseType = com.google.cloud.automl.v1beta1.TableSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateTableSpecMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor getGetColumnSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetColumnSpec", - requestType = com.google.cloud.automl.v1beta1.GetColumnSpecRequest.class, - responseType = com.google.cloud.automl.v1beta1.ColumnSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetColumnSpecMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor getListColumnSpecsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListColumnSpecs", - requestType = com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.class, - responseType = com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListColumnSpecsMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor getUpdateColumnSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateColumnSpec", - requestType = com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.class, - responseType = com.google.cloud.automl.v1beta1.ColumnSpec.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateColumnSpecMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor getCreateModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateModel", - requestType = com.google.cloud.automl.v1beta1.CreateModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateModelMethod() { - io.grpc.MethodDescriptor getCreateModelMethod; - if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { - AutoMlGrpc.getCreateModelMethod = getCreateModelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.CreateModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateModel")) - .build(); - } - } - } - return getCreateModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetModel", - requestType = com.google.cloud.automl.v1beta1.GetModelRequest.class, - responseType = com.google.cloud.automl.v1beta1.Model.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetModelMethod() { - io.grpc.MethodDescriptor getGetModelMethod; - if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { - AutoMlGrpc.getGetModelMethod = getGetModelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.GetModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.Model.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModel")) - .build(); - } - } - } - return getGetModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getListModelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListModels", - requestType = com.google.cloud.automl.v1beta1.ListModelsRequest.class, - responseType = com.google.cloud.automl.v1beta1.ListModelsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListModelsMethod() { - io.grpc.MethodDescriptor getListModelsMethod; - if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { - AutoMlGrpc.getListModelsMethod = getListModelsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListModelsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListModelsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModels")) - .build(); - } - } - } - return getListModelsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteModel", - requestType = com.google.cloud.automl.v1beta1.DeleteModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteModelMethod() { - io.grpc.MethodDescriptor getDeleteModelMethod; - if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { - AutoMlGrpc.getDeleteModelMethod = getDeleteModelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.DeleteModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteModel")) - .build(); - } - } - } - return getDeleteModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeployModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeployModel", - requestType = com.google.cloud.automl.v1beta1.DeployModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeployModelMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor getUndeployModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeployModel", - requestType = com.google.cloud.automl.v1beta1.UndeployModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeployModelMethod() { - io.grpc.MethodDescriptor 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(SERVICE_NAME, "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; - } - - private static volatile io.grpc.MethodDescriptor getExportModelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportModel", - requestType = com.google.cloud.automl.v1beta1.ExportModelRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExportModelMethod() { - io.grpc.MethodDescriptor getExportModelMethod; - if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { - AutoMlGrpc.getExportModelMethod = getExportModelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ExportModelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) - .build(); - } - } - } - return getExportModelMethod; - } - - private static volatile io.grpc.MethodDescriptor getExportEvaluatedExamplesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportEvaluatedExamples", - requestType = com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExportEvaluatedExamplesMethod() { - io.grpc.MethodDescriptor getExportEvaluatedExamplesMethod; - if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) == null) { - AutoMlGrpc.getExportEvaluatedExamplesMethod = getExportEvaluatedExamplesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportEvaluatedExamples")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportEvaluatedExamples")) - .build(); - } - } - } - return getExportEvaluatedExamplesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetModelEvaluationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", - requestType = com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, - responseType = com.google.cloud.automl.v1beta1.ModelEvaluation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetModelEvaluationMethod() { - io.grpc.MethodDescriptor getGetModelEvaluationMethod; - if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { - AutoMlGrpc.getGetModelEvaluationMethod = getGetModelEvaluationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModelEvaluation")) - .build(); - } - } - } - return getGetModelEvaluationMethod; - } - - private static volatile io.grpc.MethodDescriptor getListModelEvaluationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", - requestType = com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, - responseType = com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListModelEvaluationsMethod() { - io.grpc.MethodDescriptor getListModelEvaluationsMethod; - if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { - synchronized (AutoMlGrpc.class) { - if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { - AutoMlGrpc.getListModelEvaluationsMethod = getListModelEvaluationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModelEvaluations")) - .build(); - } - } - } - return getListModelEvaluationsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AutoMlStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlStub(channel, callOptions); - } - }; - return AutoMlStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AutoMlBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlBlockingStub(channel, callOptions); - } - }; - return AutoMlBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AutoMlFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoMlFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlFutureStub(channel, callOptions); - } - }; - return AutoMlFutureStub.newStub(factory, channel); - } - - /** - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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 abstract class AutoMlImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a dataset.
-     * 
- */ - public void createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDatasetMethod(), responseObserver); - } - - /** - *
-     * Gets a dataset.
-     * 
- */ - public void getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); - } - - /** - *
-     * Lists datasets in a project.
-     * 
- */ - public void listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDatasetsMethod(), responseObserver); - } - - /** - *
-     * Updates a dataset.
-     * 
- */ - public void updateDataset(com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDatasetMethod(), responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDatasetMethod(), responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void importData(com.google.cloud.automl.v1beta1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); - } - - /** - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); - } - - /** - *
-     * Gets an annotation spec.
-     * 
- */ - public void getAnnotationSpec(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAnnotationSpecMethod(), responseObserver); - } - - /** - *
-     * Gets a table spec.
-     * 
- */ - public void getTableSpec(com.google.cloud.automl.v1beta1.GetTableSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTableSpecMethod(), responseObserver); - } - - /** - *
-     * Lists table specs in a dataset.
-     * 
- */ - public void listTableSpecs(com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTableSpecsMethod(), responseObserver); - } - - /** - *
-     * Updates a table spec.
-     * 
- */ - public void updateTableSpec(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTableSpecMethod(), responseObserver); - } - - /** - *
-     * Gets a column spec.
-     * 
- */ - public void getColumnSpec(com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetColumnSpecMethod(), responseObserver); - } - - /** - *
-     * Lists column specs in a table spec.
-     * 
- */ - public void listColumnSpecs(com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListColumnSpecsMethod(), responseObserver); - } - - /** - *
-     * Updates a column spec.
-     * 
- */ - public void updateColumnSpec(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateColumnSpecMethod(), responseObserver); - } - - /** - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public void createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateModelMethod(), responseObserver); - } - - /** - *
-     * Gets a model.
-     * 
- */ - public void getModel(com.google.cloud.automl.v1beta1.GetModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); - } - - /** - *
-     * Lists models.
-     * 
- */ - public void listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteModelMethod(), responseObserver); - } - - /** - *
-     * 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 reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeployModelMethod(), responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeployModelMethod(), 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportModelMethod(), 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportEvaluatedExamplesMethod(), responseObserver); - } - - /** - *
-     * Gets a model evaluation.
-     * 
- */ - public void getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelEvaluationMethod(), responseObserver); - } - - /** - *
-     * Lists model evaluations.
-     * 
- */ - public void listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelEvaluationsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.CreateDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset>( - this, METHODID_CREATE_DATASET))) - .addMethod( - getGetDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset>( - this, METHODID_GET_DATASET))) - .addMethod( - getListDatasetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ListDatasetsRequest, - com.google.cloud.automl.v1beta1.ListDatasetsResponse>( - this, METHODID_LIST_DATASETS))) - .addMethod( - getUpdateDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.UpdateDatasetRequest, - com.google.cloud.automl.v1beta1.Dataset>( - this, METHODID_UPDATE_DATASET))) - .addMethod( - getDeleteDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.DeleteDatasetRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_DATASET))) - .addMethod( - getImportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ImportDataRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_DATA))) - .addMethod( - getExportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ExportDataRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_DATA))) - .addMethod( - getGetAnnotationSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, - com.google.cloud.automl.v1beta1.AnnotationSpec>( - this, METHODID_GET_ANNOTATION_SPEC))) - .addMethod( - getGetTableSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetTableSpecRequest, - com.google.cloud.automl.v1beta1.TableSpec>( - this, METHODID_GET_TABLE_SPEC))) - .addMethod( - getListTableSpecsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ListTableSpecsRequest, - com.google.cloud.automl.v1beta1.ListTableSpecsResponse>( - this, METHODID_LIST_TABLE_SPECS))) - .addMethod( - getUpdateTableSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, - com.google.cloud.automl.v1beta1.TableSpec>( - this, METHODID_UPDATE_TABLE_SPEC))) - .addMethod( - getGetColumnSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetColumnSpecRequest, - com.google.cloud.automl.v1beta1.ColumnSpec>( - this, METHODID_GET_COLUMN_SPEC))) - .addMethod( - getListColumnSpecsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, - com.google.cloud.automl.v1beta1.ListColumnSpecsResponse>( - this, METHODID_LIST_COLUMN_SPECS))) - .addMethod( - getUpdateColumnSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, - com.google.cloud.automl.v1beta1.ColumnSpec>( - this, METHODID_UPDATE_COLUMN_SPEC))) - .addMethod( - getCreateModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.CreateModelRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_MODEL))) - .addMethod( - getGetModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetModelRequest, - com.google.cloud.automl.v1beta1.Model>( - this, METHODID_GET_MODEL))) - .addMethod( - getListModelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ListModelsRequest, - com.google.cloud.automl.v1beta1.ListModelsResponse>( - this, METHODID_LIST_MODELS))) - .addMethod( - getDeleteModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.DeleteModelRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_MODEL))) - .addMethod( - getDeployModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.DeployModelRequest, - com.google.longrunning.Operation>( - this, METHODID_DEPLOY_MODEL))) - .addMethod( - getUndeployModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.UndeployModelRequest, - com.google.longrunning.Operation>( - this, METHODID_UNDEPLOY_MODEL))) - .addMethod( - getExportModelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ExportModelRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_MODEL))) - .addMethod( - getExportEvaluatedExamplesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_EVALUATED_EXAMPLES))) - .addMethod( - getGetModelEvaluationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, - com.google.cloud.automl.v1beta1.ModelEvaluation>( - this, METHODID_GET_MODEL_EVALUATION))) - .addMethod( - getListModelEvaluationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse>( - this, METHODID_LIST_MODEL_EVALUATIONS))) - .build(); - } - } - - /** - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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.AbstractAsyncStub { - private AutoMlStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlStub(channel, callOptions); - } - - /** - *
-     * Creates a dataset.
-     * 
- */ - public void createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a dataset.
-     * 
- */ - public void getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists datasets in a project.
-     * 
- */ - public void listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a dataset.
-     * 
- */ - public void updateDataset(com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void importData(com.google.cloud.automl.v1beta1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an annotation spec.
-     * 
- */ - public void getAnnotationSpec(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a table spec.
-     * 
- */ - public void getTableSpec(com.google.cloud.automl.v1beta1.GetTableSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTableSpecMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists table specs in a dataset.
-     * 
- */ - public void listTableSpecs(com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTableSpecsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a table spec.
-     * 
- */ - public void updateTableSpec(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTableSpecMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a column spec.
-     * 
- */ - public void getColumnSpec(com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetColumnSpecMethod(), 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListColumnSpecsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a column spec.
-     * 
- */ - public void updateColumnSpec(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public void createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a model.
-     * 
- */ - public void getModel(com.google.cloud.automl.v1beta1.GetModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists models.
-     * 
- */ - public void listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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 reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public void deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeployModelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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.
-     * 
- */ - public void undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request, 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportModelMethod(), 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a model evaluation.
-     * 
- */ - public void getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists model evaluations.
-     * 
- */ - public void listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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 extends io.grpc.stub.AbstractBlockingStub { - private AutoMlBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a dataset.
-     * 
- */ - public com.google.cloud.automl.v1beta1.Dataset createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a dataset.
-     * 
- */ - public com.google.cloud.automl.v1beta1.Dataset getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists datasets in a project.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ListDatasetsResponse listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDatasetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a dataset.
-     * 
- */ - public com.google.cloud.automl.v1beta1.Dataset updateDataset(com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation importData(com.google.cloud.automl.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportDataMethod(), getCallOptions(), request); - } - - /** - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.longrunning.Operation exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportDataMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an annotation spec.
-     * 
- */ - public com.google.cloud.automl.v1beta1.AnnotationSpec getAnnotationSpec(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a table spec.
-     * 
- */ - public com.google.cloud.automl.v1beta1.TableSpec getTableSpec(com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTableSpecMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists table specs in a dataset.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ListTableSpecsResponse listTableSpecs(com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTableSpecsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a table spec.
-     * 
- */ - public com.google.cloud.automl.v1beta1.TableSpec updateTableSpec(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTableSpecMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a column spec.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec(com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetColumnSpecMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListColumnSpecsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a column spec.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ColumnSpec updateColumnSpec(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateColumnSpecMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public com.google.longrunning.Operation createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateModelMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a model.
-     * 
- */ - public com.google.cloud.automl.v1beta1.Model getModel(com.google.cloud.automl.v1beta1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetModelMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists models.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ListModelsResponse listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListModelsMethod(), getCallOptions(), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteModelMethod(), getCallOptions(), request); - } - - /** - *
-     * 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 reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.longrunning.Operation deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeployModelMethod(), getCallOptions(), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeployModelMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportModelMethod(), 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 io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportEvaluatedExamplesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a model evaluation.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists model evaluations.
-     * 
- */ - public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * AutoML Server API.
-   * The resource names are assigned by the server.
-   * The server never reuses names that it has created after the resources with
-   * those names are deleted.
-   * 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.AbstractFutureStub { - private AutoMlFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoMlFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoMlFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDataset( - com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataset( - com.google.cloud.automl.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists datasets in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDatasets( - com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDataset( - com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDataset( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture importData( - com.google.cloud.automl.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request); - } - - /** - *
-     * Exports dataset's data to the provided output location.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture exportData( - com.google.cloud.automl.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an annotation spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAnnotationSpec( - com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a table spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTableSpec( - com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTableSpecMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists table specs in a dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listTableSpecs( - com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTableSpecsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a table spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateTableSpec( - com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTableSpecMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a column spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getColumnSpec( - com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetColumnSpecMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists column specs in a table spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listColumnSpecs( - com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListColumnSpecsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a column spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateColumnSpec( - com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a model.
-     * Returns a Model in the [response][google.longrunning.Operation.response]
-     * field when it completes.
-     * When you create a model, several model evaluations are created for it:
-     * a global evaluation, and one evaluation for each annotation spec.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createModel( - com.google.cloud.automl.v1beta1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a model.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getModel( - com.google.cloud.automl.v1beta1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetModelMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists models.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listModels( - com.google.cloud.automl.v1beta1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListModelsMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteModel( - com.google.cloud.automl.v1beta1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); - } - - /** - *
-     * 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 reset the deployment state without pausing the model's availability.
-     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
-     * deployment automatically.
-     * Returns an empty response in the
-     * [response][google.longrunning.Operation.response] field when it completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deployModel( - com.google.cloud.automl.v1beta1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture undeployModel( - com.google.cloud.automl.v1beta1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeployModelMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportModelMethod(), 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 io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a model evaluation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getModelEvaluation( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists model evaluations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listModelEvaluations( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); - } - } - - 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_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, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AutoMlImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AutoMlImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_DATASET: - serviceImpl.createDataset((com.google.cloud.automl.v1beta1.CreateDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATASET: - serviceImpl.getDataset((com.google.cloud.automl.v1beta1.GetDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DATASETS: - serviceImpl.listDatasets((com.google.cloud.automl.v1beta1.ListDatasetsRequest) request, - (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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_DATA: - serviceImpl.importData((com.google.cloud.automl.v1beta1.ImportDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_DATA: - serviceImpl.exportData((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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MODEL: - serviceImpl.getModel((com.google.cloud.automl.v1beta1.GetModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MODELS: - serviceImpl.listModels((com.google.cloud.automl.v1beta1.ListModelsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MODEL: - serviceImpl.deleteModel((com.google.cloud.automl.v1beta1.DeleteModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEPLOY_MODEL: - serviceImpl.deployModel((com.google.cloud.automl.v1beta1.DeployModelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDEPLOY_MODEL: - serviceImpl.undeployModel((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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MODEL_EVALUATIONS: - serviceImpl.listModelEvaluations((com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AutoMlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AutoMlBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AutoMl"); - } - } - - private static final class AutoMlFileDescriptorSupplier - extends AutoMlBaseDescriptorSupplier { - AutoMlFileDescriptorSupplier() {} - } - - private static final class AutoMlMethodDescriptorSupplier - extends AutoMlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AutoMlMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AutoMlGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AutoMlFileDescriptorSupplier()) - .addMethod(getCreateDatasetMethod()) - .addMethod(getGetDatasetMethod()) - .addMethod(getListDatasetsMethod()) - .addMethod(getUpdateDatasetMethod()) - .addMethod(getDeleteDatasetMethod()) - .addMethod(getImportDataMethod()) - .addMethod(getExportDataMethod()) - .addMethod(getGetAnnotationSpecMethod()) - .addMethod(getGetTableSpecMethod()) - .addMethod(getListTableSpecsMethod()) - .addMethod(getUpdateTableSpecMethod()) - .addMethod(getGetColumnSpecMethod()) - .addMethod(getListColumnSpecsMethod()) - .addMethod(getUpdateColumnSpecMethod()) - .addMethod(getCreateModelMethod()) - .addMethod(getGetModelMethod()) - .addMethod(getListModelsMethod()) - .addMethod(getDeleteModelMethod()) - .addMethod(getDeployModelMethod()) - .addMethod(getUndeployModelMethod()) - .addMethod(getExportModelMethod()) - .addMethod(getExportEvaluatedExamplesMethod()) - .addMethod(getGetModelEvaluationMethod()) - .addMethod(getListModelEvaluationsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java deleted file mode 100644 index 860ab03bc..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java +++ /dev/null @@ -1,95 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/annotation_payload.proto - -package com.google.cloud.automl.v1beta1; - -public final class AnnotationPayloadOuterClass { - private AnnotationPayloadOuterClass() {} - 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_AnnotationPayload_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/automl/v1beta1/annotation" + - "_payload.proto\022\033google.cloud.automl.v1be" + - "ta1\0320google/cloud/automl/v1beta1/classif" + - "ication.proto\032+google/cloud/automl/v1bet" + - "a1/detection.proto\032(google/cloud/automl/" + - "v1beta1/tables.proto\0321google/cloud/autom" + - "l/v1beta1/text_extraction.proto\0320google/" + - "cloud/automl/v1beta1/text_sentiment.prot" + - "o\032-google/cloud/automl/v1beta1/translati" + - "on.proto\032\031google/protobuf/any.proto\032\034goo" + - "gle/api/annotations.proto\"\346\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\022[\n\025video_" + - "object_tracking\030\010 \001(\0132:.google.cloud.aut" + - "oml.v1beta1.VideoObjectTrackingAnnotatio" + - "nH\000\022P\n\017text_extraction\030\006 \001(\01325.google.cl" + - "oud.automl.v1beta1.TextExtractionAnnotat" + - "ionH\000\022N\n\016text_sentiment\030\007 \001(\01324.google.c" + - "loud.automl.v1beta1.TextSentimentAnnotat" + - "ionH\000\022?\n\006tables\030\n \001(\0132-.google.cloud.aut" + - "oml.v1beta1.TablesAnnotationH\000\022\032\n\022annota" + - "tion_spec_id\030\001 \001(\t\022\024\n\014display_name\030\005 \001(\t" + - "B\010\n\006detailB\245\001\n\037com.google.cloud.automl.v" + - "1beta1P\001ZAgoogle.golang.org/genproto/goo" + - "gleapis/cloud/automl/v1beta1;automl\312\002\033Go" + - "ogle\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Clou" + - "d::AutoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - 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(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor, - new java.lang.String[] { "Translation", "Classification", "ImageObjectDetection", "VideoClassification", "VideoObjectTracking", "TextExtraction", "TextSentiment", "Tables", "AnnotationSpecId", "DisplayName", "Detail", }); - 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(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java deleted file mode 100644 index 221ed2a92..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/annotation_spec.proto - -package com.google.cloud.automl.v1beta1; - -public final class AnnotationSpecOuterClass { - private AnnotationSpecOuterClass() {} - 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_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; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/automl/v1beta1/annotation" + - "_spec.proto\022\033google.cloud.automl.v1beta1" + - "\032\031google/api/resource.proto\032\034google/api/" + - "annotations.proto\"\326\001\n\016AnnotationSpec\022\014\n\004" + - "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\025\n\rexam" + - "ple_count\030\t \001(\005:\210\001\352A\204\001\n$automl.googleapi" + - "s.com/AnnotationSpec\022\\projects/{project}" + - "/locations/{location}/datasets/{dataset}" + - "/annotationSpecs/{annotation_spec}B\245\001\n\037c" + - "om.google.cloud.automl.v1beta1P\001ZAgoogle" + - ".golang.org/genproto/googleapis/cloud/au" + - "toml/v1beta1;automl\312\002\033Google\\Cloud\\AutoM" + - "l\\V1beta1\352\002\036Google::Cloud::AutoML::V1bet" + - "a1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - 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.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java deleted file mode 100644 index bfb37a4f5..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java +++ /dev/null @@ -1,643 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public final class AutoMlProto { - private AutoMlProto() {} - 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_CreateDatasetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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 - internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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 - internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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 - internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_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/service.pr" + - "oto\022\033google.cloud.automl.v1beta1\032\034google" + - "/api/annotations.proto\032\027google/api/clien" + - "t.proto\032\037google/api/field_behavior.proto" + - "\032\031google/api/resource.proto\0324google/clou" + - "d/automl/v1beta1/annotation_payload.prot" + - "o\0321google/cloud/automl/v1beta1/annotatio" + - "n_spec.proto\032-google/cloud/automl/v1beta" + - "1/column_spec.proto\032)google/cloud/automl" + - "/v1beta1/dataset.proto\032\'google/cloud/aut" + - "oml/v1beta1/image.proto\032$google/cloud/au" + - "toml/v1beta1/io.proto\032\'google/cloud/auto" + - "ml/v1beta1/model.proto\0322google/cloud/aut" + - "oml/v1beta1/model_evaluation.proto\032,goog" + - "le/cloud/automl/v1beta1/operations.proto" + - "\032,google/cloud/automl/v1beta1/table_spec" + - ".proto\032#google/longrunning/operations.pr" + - "oto\032 google/protobuf/field_mask.proto\"\215\001" + - "\n\024CreateDatasetRequest\0229\n\006parent\030\001 \001(\tB)" + - "\340A\002\372A#\n!locations.googleapis.com/Locatio" + - "n\022:\n\007dataset\030\002 \001(\0132$.google.cloud.automl" + - ".v1beta1.DatasetB\003\340A\002\"H\n\021GetDatasetReque" + - "st\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googlea" + - "pis.com/Dataset\"\207\001\n\023ListDatasetsRequest\022" + - "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" + - "eapis.com/Location\022\016\n\006filter\030\003 \001(\t\022\021\n\tpa" + - "ge_size\030\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"g\n\024Lis" + - "tDatasetsResponse\0226\n\010datasets\030\001 \003(\0132$.go" + - "ogle.cloud.automl.v1beta1.Dataset\022\027\n\017nex" + - "t_page_token\030\002 \001(\t\"\203\001\n\024UpdateDatasetRequ" + - "est\022:\n\007dataset\030\001 \001(\0132$.google.cloud.auto" + - "ml.v1beta1.DatasetB\003\340A\002\022/\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMask\"K\n\024Dele" + - "teDatasetRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035" + - "automl.googleapis.com/Dataset\"\215\001\n\021Import" + - "DataRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035autom" + - "l.googleapis.com/Dataset\022C\n\014input_config" + - "\030\003 \001(\0132(.google.cloud.automl.v1beta1.Inp" + - "utConfigB\003\340A\002\"\217\001\n\021ExportDataRequest\0223\n\004n" + - "ame\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleapis.com" + - "/Dataset\022E\n\routput_config\030\003 \001(\0132).google" + - ".cloud.automl.v1beta1.OutputConfigB\003\340A\002\"" + - "V\n\030GetAnnotationSpecRequest\022:\n\004name\030\001 \001(" + - "\tB,\340A\002\372A&\n$automl.googleapis.com/Annotat" + - "ionSpec\"|\n\023GetTableSpecRequest\0225\n\004name\030\001" + - " \001(\tB\'\340A\002\372A!\n\037automl.googleapis.com/Tabl" + - "eSpec\022.\n\nfield_mask\030\002 \001(\0132\032.google.proto" + - "buf.FieldMask\"\265\001\n\025ListTableSpecsRequest\022" + - "5\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleap" + - "is.com/Dataset\022.\n\nfield_mask\030\002 \001(\0132\032.goo" + - "gle.protobuf.FieldMask\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\"n\n" + - "\026ListTableSpecsResponse\022;\n\013table_specs\030\001" + - " \003(\0132&.google.cloud.automl.v1beta1.Table" + - "Spec\022\027\n\017next_page_token\030\002 \001(\t\"\212\001\n\026Update" + - "TableSpecRequest\022?\n\ntable_spec\030\001 \001(\0132&.g" + - "oogle.cloud.automl.v1beta1.TableSpecB\003\340A" + - "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + - ".FieldMask\"~\n\024GetColumnSpecRequest\0226\n\004na" + - "me\030\001 \001(\tB(\340A\002\372A\"\n automl.googleapis.com/" + - "ColumnSpec\022.\n\nfield_mask\030\002 \001(\0132\032.google." + - "protobuf.FieldMask\"\270\001\n\026ListColumnSpecsRe" + - "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037automl.go" + - "ogleapis.com/TableSpec\022.\n\nfield_mask\030\002 \001" + - "(\0132\032.google.protobuf.FieldMask\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\"q\n\027ListColumnSpecsResponse\022=\n\014colu" + - "mn_specs\030\001 \003(\0132\'.google.cloud.automl.v1b" + - "eta1.ColumnSpec\022\027\n\017next_page_token\030\002 \001(\t" + - "\"\215\001\n\027UpdateColumnSpecRequest\022A\n\013column_s" + - "pec\030\001 \001(\0132\'.google.cloud.automl.v1beta1." + - "ColumnSpecB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" + - "oogle.protobuf.FieldMask\"\207\001\n\022CreateModel" + - "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locatio" + - "ns.googleapis.com/Location\0226\n\005model\030\004 \001(" + - "\0132\".google.cloud.automl.v1beta1.ModelB\003\340" + - "A\002\"D\n\017GetModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002" + - "\372A\035\n\033automl.googleapis.com/Model\"\205\001\n\021Lis" + - "tModelsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" + - "locations.googleapis.com/Location\022\016\n\006fil" + - "ter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_tok" + - "en\030\006 \001(\t\"`\n\022ListModelsResponse\0221\n\005model\030" + - "\001 \003(\0132\".google.cloud.automl.v1beta1.Mode" + - "l\022\027\n\017next_page_token\030\002 \001(\t\"G\n\022DeleteMode" + - "lRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.g" + - "oogleapis.com/Model\"\357\002\n\022DeployModelReque" + - "st\022\204\001\n0image_object_detection_model_depl" + - "oyment_metadata\030\002 \001(\0132H.google.cloud.aut" + - "oml.v1beta1.ImageObjectDetectionModelDep" + - "loymentMetadataH\000\022\201\001\n.image_classificati" + - "on_model_deployment_metadata\030\004 \001(\0132G.goo" + - "gle.cloud.automl.v1beta1.ImageClassifica" + - "tionModelDeploymentMetadataH\000\0221\n\004name\030\001 " + - "\001(\tB#\340A\002\372A\035\n\033automl.googleapis.com/Model" + - "B\033\n\031model_deployment_metadata\"I\n\024Undeplo" + - "yModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033aut" + - "oml.googleapis.com/Model\"\231\001\n\022ExportModel" + - "Request\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.go" + - "ogleapis.com/Model\022P\n\routput_config\030\003 \001(" + - "\01324.google.cloud.automl.v1beta1.ModelExp" + - "ortOutputConfigB\003\340A\002\"\261\001\n\036ExportEvaluated" + - "ExamplesRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033a" + - "utoml.googleapis.com/Model\022\\\n\routput_con" + - "fig\030\003 \001(\0132@.google.cloud.automl.v1beta1." + - "ExportEvaluatedExamplesOutputConfigB\003\340A\002" + - "\"X\n\031GetModelEvaluationRequest\022;\n\004name\030\001 " + - "\001(\tB-\340A\002\372A\'\n%automl.googleapis.com/Model" + - "Evaluation\"\211\001\n\033ListModelEvaluationsReque" + - "st\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googl" + - "eapis.com/Model\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\034ListMo" + - "delEvaluationsResponse\022F\n\020model_evaluati" + - "on\030\001 \003(\0132,.google.cloud.automl.v1beta1.M" + - "odelEvaluation\022\027\n\017next_page_token\030\002 \001(\t2" + - "\355\'\n\006AutoMl\022\275\001\n\rCreateDataset\0221.google.cl" + - "oud.automl.v1beta1.CreateDatasetRequest\032" + - "$.google.cloud.automl.v1beta1.Dataset\"S\202" + - "\323\344\223\002<\"1/v1beta1/{parent=projects/*/locat" + - "ions/*}/datasets:\007dataset\332A\016parent,datas" + - "et\022\244\001\n\nGetDataset\022..google.cloud.automl." + - "v1beta1.GetDatasetRequest\032$.google.cloud" + - ".automl.v1beta1.Dataset\"@\202\323\344\223\0023\0221/v1beta" + - "1/{name=projects/*/locations/*/datasets/" + - "*}\332A\004name\022\267\001\n\014ListDatasets\0220.google.clou" + - "d.automl.v1beta1.ListDatasetsRequest\0321.g" + - "oogle.cloud.automl.v1beta1.ListDatasetsR" + - "esponse\"B\202\323\344\223\0023\0221/v1beta1/{parent=projec" + - "ts/*/locations/*}/datasets\332A\006parent\022\276\001\n\r" + - "UpdateDataset\0221.google.cloud.automl.v1be" + - "ta1.UpdateDatasetRequest\032$.google.cloud." + - "automl.v1beta1.Dataset\"T\202\323\344\223\002D29/v1beta1" + - "/{dataset.name=projects/*/locations/*/da" + - "tasets/*}:\007dataset\332A\007dataset\022\320\001\n\rDeleteD" + - "ataset\0221.google.cloud.automl.v1beta1.Del" + - "eteDatasetRequest\032\035.google.longrunning.O" + - "peration\"m\202\323\344\223\0023*1/v1beta1/{name=project" + - "s/*/locations/*/datasets/*}\332A\004name\312A*\n\025g" + - "oogle.protobuf.Empty\022\021OperationMetadata\022" + - "\346\001\n\nImportData\022..google.cloud.automl.v1b" + - "eta1.ImportDataRequest\032\035.google.longrunn" + - "ing.Operation\"\210\001\202\323\344\223\002A\"/v1beta1/{n" + - "ame=projects/*/locations/*/datasets/*/ta" + - "bleSpecs/*}\332A\004name\022\312\001\n\016ListTableSpecs\0222." + - "google.cloud.automl.v1beta1.ListTableSpe" + - "csRequest\0323.google.cloud.automl.v1beta1." + - "ListTableSpecsResponse\"O\202\323\344\223\002@\022>/v1beta1" + - "/{parent=projects/*/locations/*/datasets" + - "/*}/tableSpecs\332A\006parent\022\332\001\n\017UpdateTableS" + - "pec\0223.google.cloud.automl.v1beta1.Update" + - "TableSpecRequest\032&.google.cloud.automl.v" + - "1beta1.TableSpec\"j\202\323\344\223\002W2I/v1beta1/{tabl" + - "e_spec.name=projects/*/locations/*/datas" + - "ets/*/tableSpecs/*}:\ntable_spec\332A\ntable_" + - "spec\022\310\001\n\rGetColumnSpec\0221.google.cloud.au" + - "toml.v1beta1.GetColumnSpecRequest\032\'.goog" + - "le.cloud.automl.v1beta1.ColumnSpec\"[\202\323\344\223" + - "\002N\022L/v1beta1/{name=projects/*/locations/" + - "*/datasets/*/tableSpecs/*/columnSpecs/*}" + - "\332A\004name\022\333\001\n\017ListColumnSpecs\0223.google.clo" + - "ud.automl.v1beta1.ListColumnSpecsRequest" + - "\0324.google.cloud.automl.v1beta1.ListColum" + - "nSpecsResponse\"]\202\323\344\223\002N\022L/v1beta1/{parent" + - "=projects/*/locations/*/datasets/*/table" + - "Specs/*}/columnSpecs\332A\006parent\022\356\001\n\020Update" + - "ColumnSpec\0224.google.cloud.automl.v1beta1" + - ".UpdateColumnSpecRequest\032\'.google.cloud." + - "automl.v1beta1.ColumnSpec\"{\202\323\344\223\002g2X/v1be" + - "ta1/{column_spec.name=projects/*/locatio" + - "ns/*/datasets/*/tableSpecs/*/columnSpecs" + - "/*}:\013column_spec\332A\013column_spec\022\311\001\n\013Creat" + - "eModel\022/.google.cloud.automl.v1beta1.Cre" + - "ateModelRequest\032\035.google.longrunning.Ope" + - "ration\"j\202\323\344\223\0028\"//v1beta1/{parent=project" + - "s/*/locations/*}/models:\005model\332A\014parent," + - "model\312A\032\n\005Model\022\021OperationMetadata\022\234\001\n\010G" + - "etModel\022,.google.cloud.automl.v1beta1.Ge" + - "tModelRequest\032\".google.cloud.automl.v1be" + - "ta1.Model\">\202\323\344\223\0021\022//v1beta1/{name=projec" + - "ts/*/locations/*/models/*}\332A\004name\022\257\001\n\nLi" + - "stModels\022..google.cloud.automl.v1beta1.L" + - "istModelsRequest\032/.google.cloud.automl.v" + - "1beta1.ListModelsResponse\"@\202\323\344\223\0021\022//v1be" + - "ta1/{parent=projects/*/locations/*}/mode" + - "ls\332A\006parent\022\312\001\n\013DeleteModel\022/.google.clo" + - "ud.automl.v1beta1.DeleteModelRequest\032\035.g" + - "oogle.longrunning.Operation\"k\202\323\344\223\0021*//v1" + - "beta1/{name=projects/*/locations/*/model" + - "s/*}\332A\004name\312A*\n\025google.protobuf.Empty\022\021O" + - "perationMetadata\022\324\001\n\013DeployModel\022/.googl" + - "e.cloud.automl.v1beta1.DeployModelReques" + - "t\032\035.google.longrunning.Operation\"u\202\323\344\223\002;" + - "\"6/v1beta1/{name=projects/*/locations/*/" + - "models/*}:deploy:\001*\332A\004name\312A*\n\025google.pr" + - "otobuf.Empty\022\021OperationMetadata\022\332\001\n\rUnde" + - "ployModel\0221.google.cloud.automl.v1beta1." + - "UndeployModelRequest\032\035.google.longrunnin" + - "g.Operation\"w\202\323\344\223\002=\"8/v1beta1/{name=proj" + - "ects/*/locations/*/models/*}:undeploy:\001*" + - "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + - "tionMetadata\022\343\001\n\013ExportModel\022/.google.cl" + - "oud.automl.v1beta1.ExportModelRequest\032\035." + - "google.longrunning.Operation\"\203\001\202\323\344\223\002;\"6/" + - "v1beta1/{name=projects/*/locations/*/mod" + - "els/*}:export:\001*\332A\022name,output_config\312A*" + - "\n\025google.protobuf.Empty\022\021OperationMetada" + - "ta\022\214\002\n\027ExportEvaluatedExamples\022;.google." + - "cloud.automl.v1beta1.ExportEvaluatedExam" + - "plesRequest\032\035.google.longrunning.Operati" + - "on\"\224\001\202\323\344\223\002L\"G/v1beta1/{name=projects/*/l" + - "ocations/*/models/*}:exportEvaluatedExam" + - "ples:\001*\332A\022name,output_config\312A*\n\025google." + - "protobuf.Empty\022\021OperationMetadata\022\315\001\n\022Ge" + - "tModelEvaluation\0226.google.cloud.automl.v" + - "1beta1.GetModelEvaluationRequest\032,.googl" + - "e.cloud.automl.v1beta1.ModelEvaluation\"Q" + - "\202\323\344\223\002D\022B/v1beta1/{name=projects/*/locati" + - "ons/*/models/*/modelEvaluations/*}\332A\004nam" + - "e\022\340\001\n\024ListModelEvaluations\0228.google.clou" + - "d.automl.v1beta1.ListModelEvaluationsReq" + - "uest\0329.google.cloud.automl.v1beta1.ListM" + - "odelEvaluationsResponse\"S\202\323\344\223\002D\022B/v1beta" + - "1/{parent=projects/*/locations/*/models/" + - "*}/modelEvaluations\332A\006parent\032I\312A\025automl." + - "googleapis.com\322A.https://www.googleapis." + - "com/auth/cloud-platformB\262\001\n\037com.google.c" + - "loud.automl.v1beta1B\013AutoMlProtoP\001ZAgoog" + - "le.golang.org/genproto/googleapis/cloud/" + - "automl/v1beta1;automl\312\002\033Google\\Cloud\\Aut" + - "oMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1b" + - "eta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor(), - com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.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(), - }); - internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor, - new java.lang.String[] { "Parent", "Dataset", }); - internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor, - new java.lang.String[] { "Datasets", "NextPageToken", }); - 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, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor = - 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, - new java.lang.String[] { "Name", "InputConfig", }); - internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor = - 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(17); - internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor, - new java.lang.String[] { "Parent", "Model", }); - internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor = - 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, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor = - 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, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor = - 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, - new java.lang.String[] { "Model", "NextPageToken", }); - internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor = - 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, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor = - 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[] { "ImageObjectDetectionModelDeploymentMetadata", "ImageClassificationModelDeploymentMetadata", "Name", "ModelDeploymentMetadata", }); - internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor = - 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(26); - internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor = - 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, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor = - 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, - new java.lang.String[] { "ModelEvaluation", "NextPageToken", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor(); - com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java deleted file mode 100644 index f0a6d40e4..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java +++ /dev/null @@ -1,93 +0,0 @@ -// 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\031go" + - "ogle/api/resource.proto\032,google/cloud/au" + - "toml/v1beta1/data_stats.proto\032,google/cl" + - "oud/automl/v1beta1/data_types.proto\032\034goo" + - "gle/api/annotations.proto\"\233\004\n\nColumnSpec" + - "\022\014\n\004name\030\001 \001(\t\0228\n\tdata_type\030\002 \001(\0132%.goog" + - "le.cloud.automl.v1beta1.DataType\022\024\n\014disp" + - "lay_name\030\003 \001(\t\022:\n\ndata_stats\030\004 \001(\0132&.goo" + - "gle.cloud.automl.v1beta1.DataStats\022X\n\026to" + - "p_correlated_columns\030\005 \003(\01328.google.clou" + - "d.automl.v1beta1.ColumnSpec.CorrelatedCo" + - "lumn\022\014\n\004etag\030\006 \001(\t\032t\n\020CorrelatedColumn\022\026" + - "\n\016column_spec_id\030\001 \001(\t\022H\n\021correlation_st" + - "ats\030\002 \001(\0132-.google.cloud.automl.v1beta1." + - "CorrelationStats:\224\001\352A\220\001\n automl.googleap" + - "is.com/ColumnSpec\022lprojects/{project}/lo" + - "cations/{location}/datasets/{dataset}/ta" + - "bleSpecs/{table_spec}/columnSpecs/{colum" + - "n_spec}B\245\001\n\037com.google.cloud.automl.v1be" + - "ta1P\001ZAgoogle.golang.org/genproto/google" + - "apis/cloud/automl/v1beta1;automl\312\002\033Googl" + - "e\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::" + - "AutoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(), - com.google.cloud.automl.v1beta1.DataTypes.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(); - com.google.cloud.automl.v1beta1.DataTypes.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java deleted file mode 100644 index 297133d32..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// 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; - * @return The cramersV. - */ - double getCramersV(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java deleted file mode 100644 index 9e46df498..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface CreateDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CreateDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the project to create the dataset for.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The resource name of the project to create the dataset for.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The dataset to create.
-   * 
- * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataset field is set. - */ - boolean hasDataset(); - /** - *
-   * Required. The dataset to create.
-   * 
- * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataset. - */ - com.google.cloud.automl.v1beta1.Dataset getDataset(); - /** - *
-   * Required. The dataset to create.
-   * 
- * - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java deleted file mode 100644 index e47039a43..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/operations.proto - -package com.google.cloud.automl.v1beta1; - -public interface CreateModelOperationMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CreateModelOperationMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java deleted file mode 100644 index 5cd83c6c2..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java +++ /dev/null @@ -1,179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/data_items.proto - -package com.google.cloud.automl.v1beta1; - -public final class DataItems { - private DataItems() {} - 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_Image_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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_DocumentDimensions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_DocumentDimensions_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_Document_Layout_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_Document_Layout_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 - internal_static_google_cloud_automl_v1beta1_ExamplePayload_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_items" + - ".proto\022\033google.cloud.automl.v1beta1\032*goo" + - "gle/cloud/automl/v1beta1/geometry.proto\032" + - "$google/cloud/automl/v1beta1/io.proto\032*g" + - "oogle/cloud/automl/v1beta1/temporal.prot" + - "o\032.google/cloud/automl/v1beta1/text_segm" + - "ent.proto\032\031google/protobuf/any.proto\032\036go" + - "ogle/protobuf/duration.proto\032\034google/pro" + - "tobuf/struct.proto\032\034google/api/annotatio" + - "ns.proto\"\177\n\005Image\022\025\n\013image_bytes\030\001 \001(\014H\000" + - "\022@\n\014input_config\030\006 \001(\0132(.google.cloud.au" + - "toml.v1beta1.InputConfigH\000\022\025\n\rthumbnail_" + - "uri\030\004 \001(\tB\006\n\004data\"F\n\013TextSnippet\022\017\n\007cont" + - "ent\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\022\023\n\013content_" + - "uri\030\004 \001(\t\"\357\001\n\022DocumentDimensions\022S\n\004unit" + - "\030\001 \001(\0162E.google.cloud.automl.v1beta1.Doc" + - "umentDimensions.DocumentDimensionUnit\022\r\n" + - "\005width\030\002 \001(\002\022\016\n\006height\030\003 \001(\002\"e\n\025Document" + - "DimensionUnit\022\'\n#DOCUMENT_DIMENSION_UNIT" + - "_UNSPECIFIED\020\000\022\010\n\004INCH\020\001\022\016\n\nCENTIMETER\020\002" + - "\022\t\n\005POINT\020\003\"\371\005\n\010Document\022F\n\014input_config" + - "\030\001 \001(\01320.google.cloud.automl.v1beta1.Doc" + - "umentInputConfig\022?\n\rdocument_text\030\002 \001(\0132" + - "(.google.cloud.automl.v1beta1.TextSnippe" + - "t\022<\n\006layout\030\003 \003(\0132,.google.cloud.automl." + - "v1beta1.Document.Layout\022L\n\023document_dime" + - "nsions\030\004 \001(\0132/.google.cloud.automl.v1bet" + - "a1.DocumentDimensions\022\022\n\npage_count\030\005 \001(" + - "\005\032\303\003\n\006Layout\022>\n\014text_segment\030\001 \001(\0132(.goo" + - "gle.cloud.automl.v1beta1.TextSegment\022\023\n\013" + - "page_number\030\002 \001(\005\022@\n\rbounding_poly\030\003 \001(\013" + - "2).google.cloud.automl.v1beta1.BoundingP" + - "oly\022W\n\021text_segment_type\030\004 \001(\0162<.google." + - "cloud.automl.v1beta1.Document.Layout.Tex" + - "tSegmentType\"\310\001\n\017TextSegmentType\022!\n\035TEXT" + - "_SEGMENT_TYPE_UNSPECIFIED\020\000\022\t\n\005TOKEN\020\001\022\r" + - "\n\tPARAGRAPH\020\002\022\016\n\nFORM_FIELD\020\003\022\023\n\017FORM_FI" + - "ELD_NAME\020\004\022\027\n\023FORM_FIELD_CONTENTS\020\005\022\t\n\005T" + - "ABLE\020\006\022\020\n\014TABLE_HEADER\020\007\022\r\n\tTABLE_ROW\020\010\022" + - "\016\n\nTABLE_CELL\020\t\"F\n\003Row\022\027\n\017column_spec_id" + - "s\030\002 \003(\t\022&\n\006values\030\003 \003(\0132\026.google.protobu" + - "f.Value\"\376\001\n\016ExamplePayload\0223\n\005image\030\001 \001(" + - "\0132\".google.cloud.automl.v1beta1.ImageH\000\022" + - "@\n\014text_snippet\030\002 \001(\0132(.google.cloud.aut" + - "oml.v1beta1.TextSnippetH\000\0229\n\010document\030\004 " + - "\001(\0132%.google.cloud.automl.v1beta1.Docume" + - "ntH\000\022/\n\003row\030\003 \001(\0132 .google.cloud.automl." + - "v1beta1.RowH\000B\t\n\007payloadB\245\001\n\037com.google." + - "cloud.automl.v1beta1P\001ZAgoogle.golang.or" + - "g/genproto/googleapis/cloud/automl/v1bet" + - "a1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352" + - "\002\036Google::Cloud::AutoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.Geometry.getDescriptor(), - com.google.cloud.automl.v1beta1.Io.getDescriptor(), - com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), - com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_Image_descriptor, - new java.lang.String[] { "ImageBytes", "InputConfig", "ThumbnailUri", "Data", }); - internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor, - new java.lang.String[] { "Content", "MimeType", "ContentUri", }); - internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor, - new java.lang.String[] { "Unit", "Width", "Height", }); - internal_static_google_cloud_automl_v1beta1_Document_descriptor = - getDescriptor().getMessageTypes().get(3); - 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", "DocumentText", "Layout", "DocumentDimensions", "PageCount", }); - internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor = - internal_static_google_cloud_automl_v1beta1_Document_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_automl_v1beta1_Document_Layout_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor, - new java.lang.String[] { "TextSegment", "PageNumber", "BoundingPoly", "TextSegmentType", }); - internal_static_google_cloud_automl_v1beta1_Row_descriptor = - getDescriptor().getMessageTypes().get(4); - 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(5); - 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", "Document", "Row", "Payload", }); - com.google.cloud.automl.v1beta1.Geometry.getDescriptor(); - com.google.cloud.automl.v1beta1.Io.getDescriptor(); - com.google.cloud.automl.v1beta1.Temporal.getDescriptor(); - com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java deleted file mode 100644 index ee8efe7c8..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java +++ /dev/null @@ -1,251 +0,0 @@ -// 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\"\375\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(\003\022\031\n\021valid_value_cou" + - "nt\030\t \001(\003B\007\n\005stats\"\335\001\n\014Float64Stats\022\014\n\004me" + - "an\030\001 \001(\001\022\032\n\022standard_deviation\030\002 \001(\001\022\021\n\t" + - "quantiles\030\003 \003(\001\022T\n\021histogram_buckets\030\004 \003" + - "(\01329.google.cloud.automl.v1beta1.Float64" + - "Stats.HistogramBucket\032:\n\017HistogramBucket" + - "\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_unigram_stats\030\001" + - " \003(\01325.google.cloud.automl.v1beta1.Strin" + - "gStats.UnigramStats\032,\n\014UnigramStats\022\r\n\005v" + - "alue\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"\364\002\n\016TimestampS" + - "tats\022V\n\016granular_stats\030\001 \003(\0132>.google.cl" + - "oud.automl.v1beta1.TimestampStats.Granul" + - "arStatsEntry\032\230\001\n\rGranularStats\022W\n\007bucket" + - "s\030\001 \003(\0132F.google.cloud.automl.v1beta1.Ti" + - "mestampStats.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\022GranularStatsEntry\022\013\n\003key\030\001 \001" + - "(\t\022H\n\005value\030\002 \001(\01329.google.cloud.automl." + - "v1beta1.TimestampStats.GranularStats:\0028\001" + - "\"J\n\nArrayStats\022<\n\014member_stats\030\002 \001(\0132&.g" + - "oogle.cloud.automl.v1beta1.DataStats\"\267\001\n" + - "\013StructStats\022M\n\013field_stats\030\001 \003(\01328.goog" + - "le.cloud.automl.v1beta1.StructStats.Fiel" + - "dStatsEntry\032Y\n\017FieldStatsEntry\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\rCategoryStats" + - "\022Z\n\022top_category_stats\030\001 \003(\0132>.google.cl" + - "oud.automl.v1beta1.CategoryStats.SingleC" + - "ategoryStats\0323\n\023SingleCategoryStats\022\r\n\005v" + - "alue\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"%\n\020Correlation" + - "Stats\022\021\n\tcramers_v\030\001 \001(\001B\245\001\n\037com.google." + - "cloud.automl.v1beta1P\001ZAgoogle.golang.or" + - "g/genproto/googleapis/cloud/automl/v1bet" + - "a1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352" + - "\002\036Google::Cloud::AutoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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", "ValidValueCount", "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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java deleted file mode 100644 index dbc295173..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java +++ /dev/null @@ -1,90 +0,0 @@ -// 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\"\374\001\n\010DataType\022B" + - "\n\021list_element_type\030\002 \001(\0132%.google.cloud" + - ".automl.v1beta1.DataTypeH\000\022>\n\013struct_typ" + - "e\030\003 \001(\0132\'.google.cloud.automl.v1beta1.St" + - "ructTypeH\000\022\025\n\013time_format\030\005 \001(\tH\000\0228\n\ttyp" + - "e_code\030\001 \001(\0162%.google.cloud.automl.v1bet" + - "a1.TypeCode\022\020\n\010nullable\030\004 \001(\010B\t\n\007details" + - "\"\247\001\n\nStructType\022C\n\006fields\030\001 \003(\01323.google" + - ".cloud.automl.v1beta1.StructType.FieldsE" + - "ntry\032T\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0224\n\005valu" + - "e\030\002 \001(\0132%.google.cloud.automl.v1beta1.Da" + - "taType:\0028\001*r\n\010TypeCode\022\031\n\025TYPE_CODE_UNSP" + - "ECIFIED\020\000\022\013\n\007FLOAT64\020\003\022\r\n\tTIMESTAMP\020\004\022\n\n" + - "\006STRING\020\006\022\t\n\005ARRAY\020\010\022\n\n\006STRUCT\020\t\022\014\n\010CATE" + - "GORY\020\nB\245\001\n\037com.google.cloud.automl.v1bet" + - "a1P\001ZAgoogle.golang.org/genproto/googlea" + - "pis/cloud/automl/v1beta1;automl\312\002\033Google" + - "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" + - "utoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java deleted file mode 100644 index d54e0fb7e..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java +++ /dev/null @@ -1,111 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/dataset.proto - -package com.google.cloud.automl.v1beta1; - -public final class DatasetOuterClass { - private DatasetOuterClass() {} - 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_Dataset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_Dataset_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/dataset.pr" + - "oto\022\033google.cloud.automl.v1beta1\032\031google" + - "/api/resource.proto\032\'google/cloud/automl" + - "/v1beta1/image.proto\032(google/cloud/autom" + - "l/v1beta1/tables.proto\032&google/cloud/aut" + - "oml/v1beta1/text.proto\032-google/cloud/aut" + - "oml/v1beta1/translation.proto\032\'google/cl" + - "oud/automl/v1beta1/video.proto\032\037google/p" + - "rotobuf/timestamp.proto\032\034google/api/anno" + - "tations.proto\"\316\t\n\007Dataset\022_\n\034translation" + - "_dataset_metadata\030\027 \001(\01327.google.cloud.a" + - "utoml.v1beta1.TranslationDatasetMetadata" + - "H\000\022p\n%image_classification_dataset_metad" + - "ata\030\030 \001(\0132?.google.cloud.automl.v1beta1." + - "ImageClassificationDatasetMetadataH\000\022n\n$" + - "text_classification_dataset_metadata\030\031 \001" + - "(\0132>.google.cloud.automl.v1beta1.TextCla" + - "ssificationDatasetMetadataH\000\022s\n\'image_ob" + - "ject_detection_dataset_metadata\030\032 \001(\0132@." + - "google.cloud.automl.v1beta1.ImageObjectD" + - "etectionDatasetMetadataH\000\022p\n%video_class" + - "ification_dataset_metadata\030\037 \001(\0132?.googl" + - "e.cloud.automl.v1beta1.VideoClassificati" + - "onDatasetMetadataH\000\022q\n&video_object_trac" + - "king_dataset_metadata\030\035 \001(\0132?.google.clo" + - "ud.automl.v1beta1.VideoObjectTrackingDat" + - "asetMetadataH\000\022f\n text_extraction_datase" + - "t_metadata\030\034 \001(\0132:.google.cloud.automl.v" + - "1beta1.TextExtractionDatasetMetadataH\000\022d" + - "\n\037text_sentiment_dataset_metadata\030\036 \001(\0132" + - "9.google.cloud.automl.v1beta1.TextSentim" + - "entDatasetMetadataH\000\022U\n\027tables_dataset_m" + - "etadata\030! \001(\01322.google.cloud.automl.v1be" + - "ta1.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_ti" + - "me\030\016 \001(\0132\032.google.protobuf.Timestamp\022\014\n\004" + - "etag\030\021 \001(\t:^\352A[\n\035automl.googleapis.com/D" + - "ataset\022:projects/{project}/locations/{lo" + - "cation}/datasets/{dataset}B\022\n\020dataset_me" + - "tadataB\245\001\n\037com.google.cloud.automl.v1bet" + - "a1P\001ZAgoogle.golang.org/genproto/googlea" + - "pis/cloud/automl/v1beta1;automl\312\002\033Google" + - "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" + - "utoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.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(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_Dataset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_Dataset_descriptor, - new java.lang.String[] { "TranslationDatasetMetadata", "ImageClassificationDatasetMetadata", "TextClassificationDatasetMetadata", "ImageObjectDetectionDatasetMetadata", "VideoClassificationDatasetMetadata", "VideoObjectTrackingDatasetMetadata", "TextExtractionDatasetMetadata", "TextSentimentDatasetMetadata", "TablesDatasetMetadata", "Name", "DisplayName", "Description", "ExampleCount", "CreateTime", "Etag", "DatasetMetadata", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.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(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java deleted file mode 100644 index 5acebd5d8..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface DeleteDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeleteDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the dataset to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the dataset to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java deleted file mode 100644 index f4c403c37..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface DeleteModelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeleteModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the model being deleted.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the model being deleted.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java deleted file mode 100644 index 792bd8eea..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java deleted file mode 100644 index 6c4c7d26e..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java deleted file mode 100644 index a1b15c339..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface DeployModelRequestOrBuilder extends - // @@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; - * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. - */ - boolean hasImageObjectDetectionModelDeploymentMetadata(); - /** - *
-   * Model deployment metadata specific to Image Object Detection.
-   * 
- * - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * @return The imageObjectDetectionModelDeploymentMetadata. - */ - 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(); - - /** - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * @return Whether the imageClassificationModelDeploymentMetadata field is set. - */ - boolean hasImageClassificationModelDeploymentMetadata(); - /** - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * @return The imageClassificationModelDeploymentMetadata. - */ - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata(); - /** - *
-   * Model deployment metadata specific to Image Classification.
-   * 
- * - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - */ - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder(); - - /** - *
-   * Required. Resource name of the model to deploy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the model to deploy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - public com.google.cloud.automl.v1beta1.DeployModelRequest.ModelDeploymentMetadataCase getModelDeploymentMetadataCase(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java deleted file mode 100644 index 79d8c2f0c..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java +++ /dev/null @@ -1,142 +0,0 @@ -// 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_VideoObjectTrackingAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_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*goog" + - "le/cloud/automl/v1beta1/geometry.proto\032\036" + - "google/protobuf/duration.proto\032\034google/a" + - "pi/annotations.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\"\264\001\n\035VideoObjectTrackingAn" + - "notation\022\023\n\013instance_id\030\001 \001(\t\022.\n\013time_of" + - "fset\030\002 \001(\0132\031.google.protobuf.Duration\022?\n" + - "\014bounding_box\030\003 \001(\0132).google.cloud.autom" + - "l.v1beta1.BoundingPoly\022\r\n\005score\030\004 \001(\002\"\256\002" + - "\n\027BoundingBoxMetricsEntry\022\025\n\riou_thresho" + - "ld\030\001 \001(\002\022\036\n\026mean_average_precision\030\002 \001(\002" + - "\022o\n\032confidence_metrics_entries\030\003 \003(\0132K.g" + - "oogle.cloud.automl.v1beta1.BoundingBoxMe" + - "tricsEntry.ConfidenceMetricsEntry\032k\n\026Con" + - "fidenceMetricsEntry\022\034\n\024confidence_thresh" + - "old\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%ImageObjectDe" + - "tectionEvaluationMetrics\022$\n\034evaluated_bo" + - "unding_box_count\030\001 \001(\005\022Z\n\034bounding_box_m" + - "etrics_entries\030\002 \003(\01324.google.cloud.auto" + - "ml.v1beta1.BoundingBoxMetricsEntry\022+\n#bo" + - "unding_box_mean_average_precision\030\003 \001(\002\"" + - "\364\001\n$VideoObjectTrackingEvaluationMetrics" + - "\022\035\n\025evaluated_frame_count\030\001 \001(\005\022$\n\034evalu" + - "ated_bounding_box_count\030\002 \001(\005\022Z\n\034boundin" + - "g_box_metrics_entries\030\004 \003(\01324.google.clo" + - "ud.automl.v1beta1.BoundingBoxMetricsEntr" + - "y\022+\n#bounding_box_mean_average_precision" + - "\030\006 \001(\002B\245\001\n\037com.google.cloud.automl.v1bet" + - "a1P\001ZAgoogle.golang.org/genproto/googlea" + - "pis/cloud/automl/v1beta1;automl\312\002\033Google" + - "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" + - "utoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.Geometry.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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_VideoObjectTrackingAnnotation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor, - new java.lang.String[] { "InstanceId", "TimeOffset", "BoundingBox", "Score", }); - internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor = - getDescriptor().getMessageTypes().get(2); - 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(3); - 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", }); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor, - new java.lang.String[] { "EvaluatedFrameCount", "EvaluatedBoundingBoxCount", "BoundingBoxMetricsEntries", "BoundingBoxMeanAveragePrecision", }); - com.google.cloud.automl.v1beta1.Geometry.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java deleted file mode 100644 index 0883b35ec..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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; - * @return The start. - */ - double getStart(); - - /** - *
-   * End of the range, exclusive.
-   * 
- * - * double end = 2; - * @return The end. - */ - double getEnd(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java deleted file mode 100644 index 5343daaba..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// 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; - * @return Whether the outputInfo field is set. - */ - boolean hasOutputInfo(); - /** - *
-   * Output only. Information further describing this export data's output.
-   * 
- * - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * @return The outputInfo. - */ - 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java deleted file mode 100644 index 6ca186555..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface ExportDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the dataset.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the dataset.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The desired output location.
-   * 
- * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - *
-   * Required. The desired output location.
-   * 
- * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The outputConfig. - */ - com.google.cloud.automl.v1beta1.OutputConfig getOutputConfig(); - /** - *
-   * Required. The desired output location.
-   * 
- * - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java deleted file mode 100644 index b82ed95d1..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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; - * @return Whether the outputInfo field is set. - */ - boolean hasOutputInfo(); - /** - *
-   * Output only. Information further describing the output of this evaluated
-   * examples export.
-   * 
- * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; - * @return The outputInfo. - */ - 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java deleted file mode 100644 index 8f769b39a..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the model whose evaluated examples are to
-   * be exported.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The desired output location and configuration.
-   * 
- * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - *
-   * Required. The desired output location and configuration.
-   * 
- * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The outputConfig. - */ - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig(); - /** - *
-   * Required. The desired output location and configuration.
-   * 
- * - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java deleted file mode 100644 index 0361fb0d2..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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; - * @return Whether the outputInfo field is set. - */ - boolean hasOutputInfo(); - /** - *
-   * Output only. Information further describing the output of this model
-   * export.
-   * 
- * - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * @return The outputInfo. - */ - 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java deleted file mode 100644 index 9f127c221..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the model to export.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The desired output location and configuration.
-   * 
- * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - *
-   * Required. The desired output location and configuration.
-   * 
- * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The outputConfig. - */ - com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig(); - /** - *
-   * Required. The desired output location and configuration.
-   * 
- * - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java deleted file mode 100644 index d9be48d79..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java +++ /dev/null @@ -1,69 +0,0 @@ -// 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\245\001" + - "\n\037com.google.cloud.automl.v1beta1P\001ZAgoo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" + - "toMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1" + - "beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java deleted file mode 100644 index a84b04bf9..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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 { - - /** - *
-   * Required. The resource name of the annotation spec to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the annotation spec to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java deleted file mode 100644 index 8f2f6aa51..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface GetDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the dataset to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the dataset to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java deleted file mode 100644 index ff0e1d238..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface GetModelEvaluationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetModelEvaluationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name for the model evaluation.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name for the model evaluation.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java deleted file mode 100644 index ab4ad8ed3..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface GetModelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the model.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the model.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java deleted file mode 100644 index 12ca4ebdc..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java deleted file mode 100644 index e076c0b7c..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java +++ /dev/null @@ -1,138 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/image.proto - -package com.google.cloud.automl.v1beta1; - -public final class ImageProto { - private ImageProto() {} - 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_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_ImageClassificationModelDeploymentMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_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; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/automl/v1beta1/image.prot" + - "o\022\033google.cloud.automl.v1beta1\032\031google/a" + - "pi/resource.proto\0321google/cloud/automl/v" + - "1beta1/annotation_spec.proto\0320google/clo" + - "ud/automl/v1beta1/classification.proto\032\037" + - "google/protobuf/timestamp.proto\032\034google/" + - "api/annotations.proto\"r\n\"ImageClassifica" + - "tionDatasetMetadata\022L\n\023classification_ty" + - "pe\030\001 \001(\0162/.google.cloud.automl.v1beta1.C" + - "lassificationType\"%\n#ImageObjectDetectio" + - "nDatasetMetadata\"\262\001\n ImageClassification" + - "ModelMetadata\022\025\n\rbase_model_id\030\001 \001(\t\022\024\n\014" + - "train_budget\030\002 \001(\003\022\022\n\ntrain_cost\030\003 \001(\003\022\023" + - "\n\013stop_reason\030\005 \001(\t\022\022\n\nmodel_type\030\007 \001(\t\022" + - "\020\n\010node_qps\030\r \001(\001\022\022\n\nnode_count\030\016 \001(\003\"\276\001" + - "\n!ImageObjectDetectionModelMetadata\022\022\n\nm" + - "odel_type\030\001 \001(\t\022\022\n\nnode_count\030\003 \001(\003\022\020\n\010n" + - "ode_qps\030\004 \001(\001\022\023\n\013stop_reason\030\005 \001(\t\022%\n\035tr" + - "ain_budget_milli_node_hours\030\006 \001(\003\022#\n\033tra" + - "in_cost_milli_node_hours\030\007 \001(\003\"@\n*ImageC" + - "lassificationModelDeploymentMetadata\022\022\n\n" + - "node_count\030\001 \001(\003\"A\n+ImageObjectDetection" + - "ModelDeploymentMetadata\022\022\n\nnode_count\030\001 " + - "\001(\003B\261\001\n\037com.google.cloud.automl.v1beta1B" + - "\nImageProtoP\001ZAgoogle.golang.org/genprot" + - "o/googleapis/cloud/automl/v1beta1;automl" + - "\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Google:" + - ":Cloud::AutoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.getDescriptor(), - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor, - new java.lang.String[] { "ClassificationType", }); - 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", "ModelType", "NodeQps", "NodeCount", }); - 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", "StopReason", "TrainBudgetMilliNodeHours", "TrainCostMilliNodeHours", }); - internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor, - new java.lang.String[] { "NodeCount", }); - internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - 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.ResourceProto.getDescriptor(); - com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.getDescriptor(); - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java deleted file mode 100644 index 8398529f0..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java deleted file mode 100644 index 2f97b0796..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface ImportDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImportDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Dataset name. Dataset must already exist. All imported
-   * annotations and examples will be added.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Dataset name. Dataset must already exist. All imported
-   * annotations and examples will be added.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the inputConfig field is set. - */ - boolean hasInputConfig(); - /** - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The inputConfig. - */ - com.google.cloud.automl.v1beta1.InputConfig getInputConfig(); - /** - *
-   * Required. The desired input location and its domain specific semantics,
-   * if any.
-   * 
- * - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java deleted file mode 100644 index aea29332e..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java +++ /dev/null @@ -1,237 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/io.proto - -package com.google.cloud.automl.v1beta1; - -public final class Io { - private Io() {} - 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_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; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$google/cloud/automl/v1beta1/io.proto\022\033" + - "google.cloud.automl.v1beta1\032\034google/api/" + - "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\245\001\n\037com.google.cloud.automl.v1beta1" + - "P\001ZAgoogle.golang.org/genproto/googleapi" + - "s/cloud/automl/v1beta1;automl\312\002\033Google\\C" + - "loud\\AutoMl\\V1beta1\352\002\036Google::Cloud::Aut" + - "oML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor, - new java.lang.String[] { "GcsSource", "BigquerySource", "Params", "Source", }); - 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", "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(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(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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java deleted file mode 100644 index e984018c0..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java +++ /dev/null @@ -1,114 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/model_evaluation.proto - -package com.google.cloud.automl.v1beta1; - -public final class ModelEvaluationOuterClass { - private ModelEvaluationOuterClass() {} - 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_ModelEvaluation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/automl/v1beta1/model_eval" + - "uation.proto\022\033google.cloud.automl.v1beta" + - "1\032\031google/api/resource.proto\0320google/clo" + - "ud/automl/v1beta1/classification.proto\032+" + - "google/cloud/automl/v1beta1/detection.pr" + - "oto\032,google/cloud/automl/v1beta1/regress" + - "ion.proto\032(google/cloud/automl/v1beta1/t" + - "ables.proto\0321google/cloud/automl/v1beta1" + - "/text_extraction.proto\0320google/cloud/aut" + - "oml/v1beta1/text_sentiment.proto\032-google" + - "/cloud/automl/v1beta1/translation.proto\032" + - "\037google/protobuf/timestamp.proto\032\034google" + - "/api/annotations.proto\"\261\010\n\017ModelEvaluati" + - "on\022i\n!classification_evaluation_metrics\030" + - "\010 \001(\0132<.google.cloud.automl.v1beta1.Clas" + - "sificationEvaluationMetricsH\000\022a\n\035regress" + - "ion_evaluation_metrics\030\030 \001(\01328.google.cl" + - "oud.automl.v1beta1.RegressionEvaluationM" + - "etricsH\000\022c\n\036translation_evaluation_metri" + - "cs\030\t \001(\01329.google.cloud.automl.v1beta1.T" + - "ranslationEvaluationMetricsH\000\022w\n)image_o" + - "bject_detection_evaluation_metrics\030\014 \001(\013" + - "2B.google.cloud.automl.v1beta1.ImageObje" + - "ctDetectionEvaluationMetricsH\000\022u\n(video_" + - "object_tracking_evaluation_metrics\030\016 \001(\013" + - "2A.google.cloud.automl.v1beta1.VideoObje" + - "ctTrackingEvaluationMetricsH\000\022h\n!text_se" + - "ntiment_evaluation_metrics\030\013 \001(\0132;.googl" + - "e.cloud.automl.v1beta1.TextSentimentEval" + - "uationMetricsH\000\022j\n\"text_extraction_evalu" + - "ation_metrics\030\r \001(\0132<.google.cloud.autom" + - "l.v1beta1.TextExtractionEvaluationMetric" + - "sH\000\022\014\n\004name\030\001 \001(\t\022\032\n\022annotation_spec_id\030" + - "\002 \001(\t\022\024\n\014display_name\030\017 \001(\t\022/\n\013create_ti" + - "me\030\005 \001(\0132\032.google.protobuf.Timestamp\022\037\n\027" + - "evaluated_example_count\030\006 \001(\005:\207\001\352A\203\001\n%au" + - "toml.googleapis.com/ModelEvaluation\022Zpro" + - "jects/{project}/locations/{location}/mod" + - "els/{model}/modelEvaluations/{model_eval" + - "uation}B\t\n\007metricsB\245\001\n\037com.google.cloud." + - "automl.v1beta1P\001ZAgoogle.golang.org/genp" + - "roto/googleapis/cloud/automl/v1beta1;aut" + - "oml\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Goog" + - "le::Cloud::AutoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.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(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor, - new java.lang.String[] { "ClassificationEvaluationMetrics", "RegressionEvaluationMetrics", "TranslationEvaluationMetrics", "ImageObjectDetectionEvaluationMetrics", "VideoObjectTrackingEvaluationMetrics", "TextSentimentEvaluationMetrics", "TextExtractionEvaluationMetrics", "Name", "AnnotationSpecId", "DisplayName", "CreateTime", "EvaluatedExampleCount", "Metrics", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.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(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java deleted file mode 100644 index db6056552..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java +++ /dev/null @@ -1,114 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/model.proto - -package com.google.cloud.automl.v1beta1; - -public final class ModelOuterClass { - private ModelOuterClass() {} - 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_Model_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_Model_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/model.prot" + - "o\022\033google.cloud.automl.v1beta1\032\031google/a" + - "pi/resource.proto\032\'google/cloud/automl/v" + - "1beta1/image.proto\032(google/cloud/automl/" + - "v1beta1/tables.proto\032&google/cloud/autom" + - "l/v1beta1/text.proto\032-google/cloud/autom" + - "l/v1beta1/translation.proto\032\'google/clou" + - "d/automl/v1beta1/video.proto\032\037google/pro" + - "tobuf/timestamp.proto\032\034google/api/annota" + - "tions.proto\"\314\n\n\005Model\022[\n\032translation_mod" + - "el_metadata\030\017 \001(\01325.google.cloud.automl." + - "v1beta1.TranslationModelMetadataH\000\022l\n#im" + - "age_classification_model_metadata\030\r \001(\0132" + - "=.google.cloud.automl.v1beta1.ImageClass" + - "ificationModelMetadataH\000\022j\n\"text_classif" + - "ication_model_metadata\030\016 \001(\0132<.google.cl" + - "oud.automl.v1beta1.TextClassificationMod" + - "elMetadataH\000\022o\n%image_object_detection_m" + - "odel_metadata\030\024 \001(\0132>.google.cloud.autom" + - "l.v1beta1.ImageObjectDetectionModelMetad" + - "ataH\000\022l\n#video_classification_model_meta" + - "data\030\027 \001(\0132=.google.cloud.automl.v1beta1" + - ".VideoClassificationModelMetadataH\000\022m\n$v" + - "ideo_object_tracking_model_metadata\030\025 \001(" + - "\0132=.google.cloud.automl.v1beta1.VideoObj" + - "ectTrackingModelMetadataH\000\022b\n\036text_extra" + - "ction_model_metadata\030\023 \001(\01328.google.clou" + - "d.automl.v1beta1.TextExtractionModelMeta" + - "dataH\000\022Q\n\025tables_model_metadata\030\030 \001(\01320." + - "google.cloud.automl.v1beta1.TablesModelM" + - "etadataH\000\022`\n\035text_sentiment_model_metada" + - "ta\030\026 \001(\01327.google.cloud.automl.v1beta1.T" + - "extSentimentModelMetadataH\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.protob" + - "uf.Timestamp\022/\n\013update_time\030\013 \001(\0132\032.goog" + - "le.protobuf.Timestamp\022L\n\020deployment_stat" + - "e\030\010 \001(\01622.google.cloud.automl.v1beta1.Mo" + - "del.DeploymentState\"Q\n\017DeploymentState\022 " + - "\n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\014\n\010DEPL" + - "OYED\020\001\022\016\n\nUNDEPLOYED\020\002:X\352AU\n\033automl.goog" + - "leapis.com/Model\0226projects/{project}/loc" + - "ations/{location}/models/{model}B\020\n\016mode" + - "l_metadataB\245\001\n\037com.google.cloud.automl.v" + - "1beta1P\001ZAgoogle.golang.org/genproto/goo" + - "gleapis/cloud/automl/v1beta1;automl\312\002\033Go" + - "ogle\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Clou" + - "d::AutoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.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(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_Model_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_Model_descriptor, - new java.lang.String[] { "TranslationModelMetadata", "ImageClassificationModelMetadata", "TextClassificationModelMetadata", "ImageObjectDetectionModelMetadata", "VideoClassificationModelMetadata", "VideoObjectTrackingModelMetadata", "TextExtractionModelMetadata", "TablesModelMetadata", "TextSentimentModelMetadata", "Name", "DisplayName", "DatasetId", "CreateTime", "UpdateTime", "DeploymentState", "ModelMetadata", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.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(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java deleted file mode 100644 index 954f6483a..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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; - * @return The x. - */ - float getX(); - - /** - *
-   * Required. Vertical coordinate.
-   * 
- * - * float y = 2; - * @return The y. - */ - float getY(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java deleted file mode 100644 index 35499f823..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java +++ /dev/null @@ -1,270 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/operations.proto - -package com.google.cloud.automl.v1beta1; - -public final class Operations { - private Operations() {} - 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_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; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/automl/v1beta1/operations" + - ".proto\022\033google.cloud.automl.v1beta1\032$goo" + - "gle/cloud/automl/v1beta1/io.proto\032\'googl" + - "e/cloud/automl/v1beta1/model.proto\0322goog" + - "le/cloud/automl/v1beta1/model_evaluation" + - ".proto\032\033google/protobuf/empty.proto\032\037goo" + - "gle/protobuf/timestamp.proto\032\027google/rpc" + - "/status.proto\032\034google/api/annotations.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\245\001\n" + - "\037com.google.cloud.automl.v1beta1P\001ZAgoog" + - "le.golang.org/genproto/googleapis/cloud/" + - "automl/v1beta1;automl\312\002\033Google\\Cloud\\Aut" + - "oMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1b" + - "eta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - 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(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_OperationMetadata_fieldAccessorTable = 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_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.cloud.automl.v1beta1.Io.getDescriptor(); - com.google.cloud.automl.v1beta1.ModelOuterClass.getDescriptor(); - com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java deleted file mode 100644 index 4a4ad5f3d..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java +++ /dev/null @@ -1,207 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/prediction_service.proto - -package com.google.cloud.automl.v1beta1; - -public final class PredictionServiceProto { - private PredictionServiceProto() {} - 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_PredictRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_PredictRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_PredictRequest_ParamsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_PredictResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/automl/v1beta1/prediction" + - "_service.proto\022\033google.cloud.automl.v1be" + - "ta1\032\034google/api/annotations.proto\032\027googl" + - "e/api/client.proto\032\037google/api/field_beh" + - "avior.proto\032\031google/api/resource.proto\0324" + - "google/cloud/automl/v1beta1/annotation_p" + - "ayload.proto\032,google/cloud/automl/v1beta" + - "1/data_items.proto\032$google/cloud/automl/" + - "v1beta1/io.proto\032,google/cloud/automl/v1" + - "beta1/operations.proto\032#google/longrunni" + - "ng/operations.proto\"\376\001\n\016PredictRequest\0221" + - "\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis." + - "com/Model\022A\n\007payload\030\002 \001(\0132+.google.clou" + - "d.automl.v1beta1.ExamplePayloadB\003\340A\002\022G\n\006" + - "params\030\003 \003(\01327.google.cloud.automl.v1bet" + - "a1.PredictRequest.ParamsEntry\032-\n\013ParamsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\002\n" + - "\017PredictResponse\022?\n\007payload\030\001 \003(\0132..goog" + - "le.cloud.automl.v1beta1.AnnotationPayloa" + - "d\022G\n\022preprocessed_input\030\003 \001(\0132+.google.c" + - "loud.automl.v1beta1.ExamplePayload\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\"\356\002\n\023BatchPredictRequest\0221\n\004name\030\001 \001(\tB" + - "#\340A\002\372A\035\n\033automl.googleapis.com/Model\022O\n\014" + - "input_config\030\003 \001(\01324.google.cloud.automl" + - ".v1beta1.BatchPredictInputConfigB\003\340A\002\022Q\n" + - "\routput_config\030\004 \001(\01325.google.cloud.auto" + - "ml.v1beta1.BatchPredictOutputConfigB\003\340A\002" + - "\022Q\n\006params\030\005 \003(\0132<.google.cloud.automl.v" + - "1beta1.BatchPredictRequest.ParamsEntryB\003" + - "\340A\002\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + - "\030\002 \001(\t:\0028\001\"\226\001\n\022BatchPredictResult\022O\n\010met" + - "adata\030\001 \003(\0132=.google.cloud.automl.v1beta" + - "1.BatchPredictResult.MetadataEntry\032/\n\rMe" + - "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\0012\236\004\n\021PredictionService\022\276\001\n\007Predict\022+." + - "google.cloud.automl.v1beta1.PredictReque" + - "st\032,.google.cloud.automl.v1beta1.Predict" + - "Response\"X\202\323\344\223\002<\"7/v1beta1/{name=project" + - "s/*/locations/*/models/*}:predict:\001*\332A\023n" + - "ame,payload,params\022\374\001\n\014BatchPredict\0220.go" + - "ogle.cloud.automl.v1beta1.BatchPredictRe" + - "quest\032\035.google.longrunning.Operation\"\232\001\202" + - "\323\344\223\002A\" - * Output only. The Area under precision recall curve metric. - *
- * - * float au_prc = 1; - * @return The auPrc. - */ - 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 - 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 - 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java deleted file mode 100644 index 309ad97f6..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java +++ /dev/null @@ -1,123 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/text.proto - -package com.google.cloud.automl.v1beta1; - -public final class TextProto { - private TextProto() {} - 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_TextClassificationDatasetMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/automl/v1beta1/text.proto" + - "\022\033google.cloud.automl.v1beta1\0320google/cl" + - "oud/automl/v1beta1/classification.proto\032" + - "\034google/api/annotations.proto\"q\n!TextCla" + - "ssificationDatasetMetadata\022L\n\023classifica" + - "tion_type\030\001 \001(\0162/.google.cloud.automl.v1" + - "beta1.ClassificationType\"o\n\037TextClassifi" + - "cationModelMetadata\022L\n\023classification_ty" + - "pe\030\003 \001(\0162/.google.cloud.automl.v1beta1.C" + - "lassificationType\"\037\n\035TextExtractionDatas" + - "etMetadata\"1\n\033TextExtractionModelMetadat" + - "a\022\022\n\nmodel_hint\030\003 \001(\t\"5\n\034TextSentimentDa" + - "tasetMetadata\022\025\n\rsentiment_max\030\001 \001(\005\"\034\n\032" + - "TextSentimentModelMetadataB\260\001\n\037com.googl" + - "e.cloud.automl.v1beta1B\tTextProtoP\001ZAgoo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" + - "toMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1" + - "beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor, - new java.lang.String[] { "ClassificationType", }); - internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor, - new java.lang.String[] { "ClassificationType", }); - 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[] { "ModelHint", }); - 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.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java deleted file mode 100644 index d42b21dd4..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java +++ /dev/null @@ -1,57 +0,0 @@ -// 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\267\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\\V1beta1\352\002\036Google::Cloud::AutoML::" + - "V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java deleted file mode 100644 index 9cd9352b1..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java deleted file mode 100644 index 173713f7c..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/translation.proto - -package com.google.cloud.automl.v1beta1; - -public interface TranslationEvaluationMetricsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. BLEU score.
-   * 
- * - * double bleu_score = 1; - * @return The bleuScore. - */ - double getBleuScore(); - - /** - *
-   * Output only. BLEU score for base model.
-   * 
- * - * double base_bleu_score = 2; - * @return The baseBleuScore. - */ - double getBaseBleuScore(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java deleted file mode 100644 index 50b78ba98..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/translation.proto - -package com.google.cloud.automl.v1beta1; - -public final class TranslationProto { - private TranslationProto() {} - 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_TranslationDatasetMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_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/translatio" + - "n.proto\022\033google.cloud.automl.v1beta1\032\037go" + - "ogle/api/field_behavior.proto\032,google/cl" + - "oud/automl/v1beta1/data_items.proto\032\034goo" + - "gle/api/annotations.proto\"b\n\032Translation" + - "DatasetMetadata\022!\n\024source_language_code\030" + - "\001 \001(\tB\003\340A\002\022!\n\024target_language_code\030\002 \001(\t" + - "B\003\340A\002\"K\n\034TranslationEvaluationMetrics\022\022\n" + - "\nbleu_score\030\001 \001(\001\022\027\n\017base_bleu_score\030\002 \001" + - "(\001\"j\n\030TranslationModelMetadata\022\022\n\nbase_m" + - "odel\030\001 \001(\t\022\034\n\024source_language_code\030\002 \001(\t" + - "\022\034\n\024target_language_code\030\003 \001(\t\"]\n\025Transl" + - "ationAnnotation\022D\n\022translated_content\030\001 " + - "\001(\0132(.google.cloud.automl.v1beta1.TextSn" + - "ippetB\267\001\n\037com.google.cloud.automl.v1beta" + - "1B\020TranslationProtoP\001ZAgoogle.golang.org" + - "/genproto/googleapis/cloud/automl/v1beta" + - "1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002" + - "\036Google::Cloud::AutoML::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.automl.v1beta1.DataItems.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor, - new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); - internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor, - new java.lang.String[] { "BleuScore", "BaseBleuScore", }); - internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor, - new java.lang.String[] { "BaseModel", "SourceLanguageCode", "TargetLanguageCode", }); - internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor, - new java.lang.String[] { "TranslatedContent", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.automl.v1beta1.DataItems.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java deleted file mode 100644 index e3bd8a83d..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java deleted file mode 100644 index 88eae7fba..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/service.proto - -package com.google.cloud.automl.v1beta1; - -public interface UndeployModelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UndeployModelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the model to undeploy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the model to undeploy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java deleted file mode 100644 index 35d957d66..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java deleted file mode 100644 index 856a8b216..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java deleted file mode 100644 index bd78a2ea3..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/video.proto - -package com.google.cloud.automl.v1beta1; - -public interface VideoObjectTrackingDatasetMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java deleted file mode 100644 index 8d936c71a..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/automl/v1beta1/video.proto - -package com.google.cloud.automl.v1beta1; - -public interface VideoObjectTrackingModelMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java deleted file mode 100644 index d7d1733c6..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java +++ /dev/null @@ -1,95 +0,0 @@ -// 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_VideoObjectTrackingDatasetMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_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\0320google/c" + - "loud/automl/v1beta1/classification.proto" + - "\032\034google/api/annotations.proto\"$\n\"VideoC" + - "lassificationDatasetMetadata\"$\n\"VideoObj" + - "ectTrackingDatasetMetadata\"\"\n VideoClass" + - "ificationModelMetadata\"\"\n VideoObjectTra" + - "ckingModelMetadataB\261\001\n\037com.google.cloud." + - "automl.v1beta1B\nVideoProtoP\001ZAgoogle.gol" + - "ang.org/genproto/googleapis/cloud/automl" + - "/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1" + - "beta1\352\002\036Google::Cloud::AutoML::V1beta1b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - 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_VideoObjectTrackingDatasetMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - 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[] { }); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor, - new java.lang.String[] { }); - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java index ae1735b54..06dec9a5e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayload.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/annotation_payload.proto package com.google.cloud.automl.v1; /** + * + * *
  * Contains annotation information that is relevant to AutoML.
  * 
* * Protobuf type {@code google.cloud.automl.v1.AnnotationPayload} */ -public final class AnnotationPayload extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotationPayload extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.AnnotationPayload) AnnotationPayloadOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotationPayload.newBuilder() to construct. private AnnotationPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotationPayload() { annotationSpecId_ = ""; displayName_ = ""; @@ -26,16 +44,15 @@ private AnnotationPayload() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotationPayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotationPayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,124 +71,151 @@ private AnnotationPayload( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecId_ = s; - break; - } - case 18: { - com.google.cloud.automl.v1.TranslationAnnotation.Builder subBuilder = null; - if (detailCase_ == 2) { - subBuilder = ((com.google.cloud.automl.v1.TranslationAnnotation) detail_).toBuilder(); + annotationSpecId_ = s; + break; } - detail_ = - input.readMessage(com.google.cloud.automl.v1.TranslationAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TranslationAnnotation) detail_); - detail_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.automl.v1.TranslationAnnotation.Builder subBuilder = null; + if (detailCase_ == 2) { + subBuilder = + ((com.google.cloud.automl.v1.TranslationAnnotation) detail_).toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1.TranslationAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TranslationAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 2; + break; } - detailCase_ = 2; - break; - } - case 26: { - com.google.cloud.automl.v1.ClassificationAnnotation.Builder subBuilder = null; - if (detailCase_ == 3) { - subBuilder = ((com.google.cloud.automl.v1.ClassificationAnnotation) detail_).toBuilder(); - } - detail_ = - input.readMessage(com.google.cloud.automl.v1.ClassificationAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ClassificationAnnotation) detail_); - detail_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1.ClassificationAnnotation.Builder subBuilder = null; + if (detailCase_ == 3) { + subBuilder = + ((com.google.cloud.automl.v1.ClassificationAnnotation) detail_).toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1.ClassificationAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.ClassificationAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 3; + break; } - detailCase_ = 3; - break; - } - case 34: { - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder subBuilder = null; - if (detailCase_ == 4) { - subBuilder = ((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_).toBuilder(); + case 34: + { + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder subBuilder = null; + if (detailCase_ == 4) { + subBuilder = + ((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_) + .toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 4; + break; } - detail_ = - input.readMessage(com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 4; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 50: { - com.google.cloud.automl.v1.TextExtractionAnnotation.Builder subBuilder = null; - if (detailCase_ == 6) { - subBuilder = ((com.google.cloud.automl.v1.TextExtractionAnnotation) detail_).toBuilder(); + displayName_ = s; + break; } - detail_ = - input.readMessage(com.google.cloud.automl.v1.TextExtractionAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextExtractionAnnotation) detail_); - detail_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.automl.v1.TextExtractionAnnotation.Builder subBuilder = null; + if (detailCase_ == 6) { + subBuilder = + ((com.google.cloud.automl.v1.TextExtractionAnnotation) detail_).toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1.TextExtractionAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextExtractionAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 6; + break; } - detailCase_ = 6; - break; - } - case 58: { - com.google.cloud.automl.v1.TextSentimentAnnotation.Builder subBuilder = null; - if (detailCase_ == 7) { - subBuilder = ((com.google.cloud.automl.v1.TextSentimentAnnotation) detail_).toBuilder(); + case 58: + { + com.google.cloud.automl.v1.TextSentimentAnnotation.Builder subBuilder = null; + if (detailCase_ == 7) { + subBuilder = + ((com.google.cloud.automl.v1.TextSentimentAnnotation) detail_).toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1.TextSentimentAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSentimentAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 7; + break; } - detail_ = - input.readMessage(com.google.cloud.automl.v1.TextSentimentAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSentimentAnnotation) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 7; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AnnotationPayloadOuterClass + .internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1_AnnotationPayload_fieldAccessorTable + return com.google.cloud.automl.v1.AnnotationPayloadOuterClass + .internal_static_google_cloud_automl_v1_AnnotationPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.AnnotationPayload.class, com.google.cloud.automl.v1.AnnotationPayload.Builder.class); + com.google.cloud.automl.v1.AnnotationPayload.class, + com.google.cloud.automl.v1.AnnotationPayload.Builder.class); } private int detailCase_ = 0; private java.lang.Object detail_; + public enum DetailCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION(2), CLASSIFICATION(3), @@ -180,6 +224,7 @@ public enum DetailCase TEXT_SENTIMENT(7), DETAIL_NOT_SET(0); private final int value; + private DetailCase(int value) { this.value = value; } @@ -195,33 +240,42 @@ public static DetailCase valueOf(int value) { public static DetailCase forNumber(int value) { switch (value) { - case 2: return TRANSLATION; - case 3: return CLASSIFICATION; - case 4: return IMAGE_OBJECT_DETECTION; - case 6: return TEXT_EXTRACTION; - case 7: return TEXT_SENTIMENT; - case 0: return DETAIL_NOT_SET; - default: return null; + case 2: + return TRANSLATION; + case 3: + return CLASSIFICATION; + case 4: + return IMAGE_OBJECT_DETECTION; + case 6: + return TEXT_EXTRACTION; + case 7: + return TEXT_SENTIMENT; + case 0: + return DETAIL_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DetailCase - getDetailCase() { - return DetailCase.forNumber( - detailCase_); + public DetailCase getDetailCase() { + return DetailCase.forNumber(detailCase_); } public static final int TRANSLATION_FIELD_NUMBER = 2; /** + * + * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; + * * @return Whether the translation field is set. */ @java.lang.Override @@ -229,21 +283,26 @@ public boolean hasTranslation() { return detailCase_ == 2; } /** + * + * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; + * * @return The translation. */ @java.lang.Override public com.google.cloud.automl.v1.TranslationAnnotation getTranslation() { if (detailCase_ == 2) { - return (com.google.cloud.automl.v1.TranslationAnnotation) detail_; + return (com.google.cloud.automl.v1.TranslationAnnotation) detail_; } return com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation details for translation.
    * 
@@ -253,18 +312,21 @@ public com.google.cloud.automl.v1.TranslationAnnotation getTranslation() { @java.lang.Override public com.google.cloud.automl.v1.TranslationAnnotationOrBuilder getTranslationOrBuilder() { if (detailCase_ == 2) { - return (com.google.cloud.automl.v1.TranslationAnnotation) detail_; + return (com.google.cloud.automl.v1.TranslationAnnotation) detail_; } return com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance(); } public static final int CLASSIFICATION_FIELD_NUMBER = 3; /** + * + * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; + * * @return Whether the classification field is set. */ @java.lang.Override @@ -272,21 +334,26 @@ public boolean hasClassification() { return detailCase_ == 3; } /** + * + * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; + * * @return The classification. */ @java.lang.Override public com.google.cloud.automl.v1.ClassificationAnnotation getClassification() { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1.ClassificationAnnotation) detail_; + return (com.google.cloud.automl.v1.ClassificationAnnotation) detail_; } return com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation details for content or image classification.
    * 
@@ -296,18 +363,21 @@ public com.google.cloud.automl.v1.ClassificationAnnotation getClassification() { @java.lang.Override public com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder getClassificationOrBuilder() { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1.ClassificationAnnotation) detail_; + return (com.google.cloud.automl.v1.ClassificationAnnotation) detail_; } return com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance(); } public static final int IMAGE_OBJECT_DETECTION_FIELD_NUMBER = 4; /** + * + * *
    * Annotation details for image object detection.
    * 
* * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * * @return Whether the imageObjectDetection field is set. */ @java.lang.Override @@ -315,21 +385,26 @@ public boolean hasImageObjectDetection() { return detailCase_ == 4; } /** + * + * *
    * Annotation details for image object detection.
    * 
* * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * * @return The imageObjectDetection. */ @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectDetection() { if (detailCase_ == 4) { - return (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_; + return (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_; } return com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation details for image object detection.
    * 
@@ -337,20 +412,24 @@ public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectD * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder + getImageObjectDetectionOrBuilder() { if (detailCase_ == 4) { - return (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_; + return (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_; } return com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance(); } public static final int TEXT_EXTRACTION_FIELD_NUMBER = 6; /** + * + * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; + * * @return Whether the textExtraction field is set. */ @java.lang.Override @@ -358,21 +437,26 @@ public boolean hasTextExtraction() { return detailCase_ == 6; } /** + * + * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; + * * @return The textExtraction. */ @java.lang.Override public com.google.cloud.automl.v1.TextExtractionAnnotation getTextExtraction() { if (detailCase_ == 6) { - return (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_; + return (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_; } return com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation details for text extraction.
    * 
@@ -382,18 +466,21 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation getTextExtraction() { @java.lang.Override public com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder() { if (detailCase_ == 6) { - return (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_; + return (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_; } return com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance(); } public static final int TEXT_SENTIMENT_FIELD_NUMBER = 7; /** + * + * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; + * * @return Whether the textSentiment field is set. */ @java.lang.Override @@ -401,21 +488,26 @@ public boolean hasTextSentiment() { return detailCase_ == 7; } /** + * + * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; + * * @return The textSentiment. */ @java.lang.Override public com.google.cloud.automl.v1.TextSentimentAnnotation getTextSentiment() { if (detailCase_ == 7) { - return (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_; + return (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_; } return com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation details for text sentiment.
    * 
@@ -425,7 +517,7 @@ public com.google.cloud.automl.v1.TextSentimentAnnotation getTextSentiment() { @java.lang.Override public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder() { if (detailCase_ == 7) { - return (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_; + return (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_; } return com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance(); } @@ -433,6 +525,8 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecId_; /** + * + * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -440,6 +534,7 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim
    * 
* * string annotation_spec_id = 1; + * * @return The annotationSpecId. */ @java.lang.Override @@ -448,14 +543,15 @@ public java.lang.String getAnnotationSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; } } /** + * + * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -463,16 +559,15 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string annotation_spec_id = 1; + * * @return The bytes for annotationSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -483,6 +578,8 @@ public java.lang.String getAnnotationSpecId() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -493,6 +590,7 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string display_name = 5; + * * @return The displayName. */ @java.lang.Override @@ -501,14 +599,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -519,16 +618,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -537,6 +635,7 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -548,8 +647,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecId_); } @@ -584,27 +682,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, annotationSpecId_); } if (detailCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.automl.v1.TranslationAnnotation) detail_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1.TranslationAnnotation) detail_); } if (detailCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.automl.v1.ClassificationAnnotation) detail_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.automl.v1.ClassificationAnnotation) detail_); } if (detailCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (detailCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_); } if (detailCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -614,38 +717,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.AnnotationPayload)) { return super.equals(obj); } - com.google.cloud.automl.v1.AnnotationPayload other = (com.google.cloud.automl.v1.AnnotationPayload) obj; + com.google.cloud.automl.v1.AnnotationPayload other = + (com.google.cloud.automl.v1.AnnotationPayload) obj; - if (!getAnnotationSpecId() - .equals(other.getAnnotationSpecId())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getAnnotationSpecId().equals(other.getAnnotationSpecId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDetailCase().equals(other.getDetailCase())) return false; switch (detailCase_) { case 2: - if (!getTranslation() - .equals(other.getTranslation())) return false; + if (!getTranslation().equals(other.getTranslation())) return false; break; case 3: - if (!getClassification() - .equals(other.getClassification())) return false; + if (!getClassification().equals(other.getClassification())) return false; break; case 4: - if (!getImageObjectDetection() - .equals(other.getImageObjectDetection())) return false; + if (!getImageObjectDetection().equals(other.getImageObjectDetection())) return false; break; case 6: - if (!getTextExtraction() - .equals(other.getTextExtraction())) return false; + if (!getTextExtraction().equals(other.getTextExtraction())) return false; break; case 7: - if (!getTextSentiment() - .equals(other.getTextSentiment())) return false; + if (!getTextSentiment().equals(other.getTextSentiment())) return false; break; case 0: default: @@ -694,118 +791,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.AnnotationPayload parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.AnnotationPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.AnnotationPayload 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.v1.AnnotationPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.AnnotationPayload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.AnnotationPayload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.AnnotationPayload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.AnnotationPayload parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.AnnotationPayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.AnnotationPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains annotation information that is relevant to AutoML.
    * 
* * Protobuf type {@code google.cloud.automl.v1.AnnotationPayload} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.AnnotationPayload) com.google.cloud.automl.v1.AnnotationPayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AnnotationPayloadOuterClass + .internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1_AnnotationPayload_fieldAccessorTable + return com.google.cloud.automl.v1.AnnotationPayloadOuterClass + .internal_static_google_cloud_automl_v1_AnnotationPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.AnnotationPayload.class, com.google.cloud.automl.v1.AnnotationPayload.Builder.class); + com.google.cloud.automl.v1.AnnotationPayload.class, + com.google.cloud.automl.v1.AnnotationPayload.Builder.class); } // Construct using com.google.cloud.automl.v1.AnnotationPayload.newBuilder() @@ -813,16 +919,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -836,9 +941,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AnnotationPayloadOuterClass + .internal_static_google_cloud_automl_v1_AnnotationPayload_descriptor; } @java.lang.Override @@ -857,7 +962,8 @@ public com.google.cloud.automl.v1.AnnotationPayload build() { @java.lang.Override public com.google.cloud.automl.v1.AnnotationPayload buildPartial() { - com.google.cloud.automl.v1.AnnotationPayload result = new com.google.cloud.automl.v1.AnnotationPayload(this); + com.google.cloud.automl.v1.AnnotationPayload result = + new com.google.cloud.automl.v1.AnnotationPayload(this); if (detailCase_ == 2) { if (translationBuilder_ == null) { result.detail_ = detail_; @@ -904,38 +1010,39 @@ public com.google.cloud.automl.v1.AnnotationPayload buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.AnnotationPayload) { - return mergeFrom((com.google.cloud.automl.v1.AnnotationPayload)other); + return mergeFrom((com.google.cloud.automl.v1.AnnotationPayload) other); } else { super.mergeFrom(other); return this; @@ -953,29 +1060,35 @@ public Builder mergeFrom(com.google.cloud.automl.v1.AnnotationPayload other) { onChanged(); } switch (other.getDetailCase()) { - case TRANSLATION: { - mergeTranslation(other.getTranslation()); - break; - } - case CLASSIFICATION: { - mergeClassification(other.getClassification()); - break; - } - case IMAGE_OBJECT_DETECTION: { - mergeImageObjectDetection(other.getImageObjectDetection()); - break; - } - case TEXT_EXTRACTION: { - mergeTextExtraction(other.getTextExtraction()); - break; - } - case TEXT_SENTIMENT: { - mergeTextSentiment(other.getTextSentiment()); - break; - } - case DETAIL_NOT_SET: { - break; - } + case TRANSLATION: + { + mergeTranslation(other.getTranslation()); + break; + } + case CLASSIFICATION: + { + mergeClassification(other.getClassification()); + break; + } + case IMAGE_OBJECT_DETECTION: + { + mergeImageObjectDetection(other.getImageObjectDetection()); + break; + } + case TEXT_EXTRACTION: + { + mergeTextExtraction(other.getTextExtraction()); + break; + } + case TEXT_SENTIMENT: + { + mergeTextSentiment(other.getTextSentiment()); + break; + } + case DETAIL_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1005,12 +1118,12 @@ public Builder mergeFrom( } return this; } + private int detailCase_ = 0; private java.lang.Object detail_; - public DetailCase - getDetailCase() { - return DetailCase.forNumber( - detailCase_); + + public DetailCase getDetailCase() { + return DetailCase.forNumber(detailCase_); } public Builder clearDetail() { @@ -1020,15 +1133,20 @@ public Builder clearDetail() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationAnnotation, com.google.cloud.automl.v1.TranslationAnnotation.Builder, com.google.cloud.automl.v1.TranslationAnnotationOrBuilder> translationBuilder_; + com.google.cloud.automl.v1.TranslationAnnotation, + com.google.cloud.automl.v1.TranslationAnnotation.Builder, + com.google.cloud.automl.v1.TranslationAnnotationOrBuilder> + translationBuilder_; /** + * + * *
      * Annotation details for translation.
      * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; + * * @return Whether the translation field is set. */ @java.lang.Override @@ -1036,11 +1154,14 @@ public boolean hasTranslation() { return detailCase_ == 2; } /** + * + * *
      * Annotation details for translation.
      * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; + * * @return The translation. */ @java.lang.Override @@ -1058,6 +1179,8 @@ public com.google.cloud.automl.v1.TranslationAnnotation getTranslation() { } } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1078,6 +1201,8 @@ public Builder setTranslation(com.google.cloud.automl.v1.TranslationAnnotation v return this; } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1096,6 +1221,8 @@ public Builder setTranslation( return this; } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1104,10 +1231,13 @@ public Builder setTranslation( */ public Builder mergeTranslation(com.google.cloud.automl.v1.TranslationAnnotation value) { if (translationBuilder_ == null) { - if (detailCase_ == 2 && - detail_ != com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance()) { - detail_ = com.google.cloud.automl.v1.TranslationAnnotation.newBuilder((com.google.cloud.automl.v1.TranslationAnnotation) detail_) - .mergeFrom(value).buildPartial(); + if (detailCase_ == 2 + && detail_ != com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1.TranslationAnnotation.newBuilder( + (com.google.cloud.automl.v1.TranslationAnnotation) detail_) + .mergeFrom(value) + .buildPartial(); } else { detail_ = value; } @@ -1122,6 +1252,8 @@ public Builder mergeTranslation(com.google.cloud.automl.v1.TranslationAnnotation return this; } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1145,6 +1277,8 @@ public Builder clearTranslation() { return this; } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1155,6 +1289,8 @@ public com.google.cloud.automl.v1.TranslationAnnotation.Builder getTranslationBu return getTranslationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1173,6 +1309,8 @@ public com.google.cloud.automl.v1.TranslationAnnotationOrBuilder getTranslationO } } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1180,32 +1318,44 @@ public com.google.cloud.automl.v1.TranslationAnnotationOrBuilder getTranslationO * .google.cloud.automl.v1.TranslationAnnotation translation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationAnnotation, com.google.cloud.automl.v1.TranslationAnnotation.Builder, com.google.cloud.automl.v1.TranslationAnnotationOrBuilder> + com.google.cloud.automl.v1.TranslationAnnotation, + com.google.cloud.automl.v1.TranslationAnnotation.Builder, + com.google.cloud.automl.v1.TranslationAnnotationOrBuilder> getTranslationFieldBuilder() { if (translationBuilder_ == null) { if (!(detailCase_ == 2)) { detail_ = com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance(); } - translationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationAnnotation, com.google.cloud.automl.v1.TranslationAnnotation.Builder, com.google.cloud.automl.v1.TranslationAnnotationOrBuilder>( + translationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TranslationAnnotation, + com.google.cloud.automl.v1.TranslationAnnotation.Builder, + com.google.cloud.automl.v1.TranslationAnnotationOrBuilder>( (com.google.cloud.automl.v1.TranslationAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 2; - onChanged();; + onChanged(); + ; return translationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationAnnotation, com.google.cloud.automl.v1.ClassificationAnnotation.Builder, com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder> classificationBuilder_; + com.google.cloud.automl.v1.ClassificationAnnotation, + com.google.cloud.automl.v1.ClassificationAnnotation.Builder, + com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder> + classificationBuilder_; /** + * + * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; + * * @return Whether the classification field is set. */ @java.lang.Override @@ -1213,11 +1363,14 @@ public boolean hasClassification() { return detailCase_ == 3; } /** + * + * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; + * * @return The classification. */ @java.lang.Override @@ -1235,6 +1388,8 @@ public com.google.cloud.automl.v1.ClassificationAnnotation getClassification() { } } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1255,6 +1410,8 @@ public Builder setClassification(com.google.cloud.automl.v1.ClassificationAnnota return this; } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1273,6 +1430,8 @@ public Builder setClassification( return this; } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1281,10 +1440,14 @@ public Builder setClassification( */ public Builder mergeClassification(com.google.cloud.automl.v1.ClassificationAnnotation value) { if (classificationBuilder_ == null) { - if (detailCase_ == 3 && - detail_ != com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance()) { - detail_ = com.google.cloud.automl.v1.ClassificationAnnotation.newBuilder((com.google.cloud.automl.v1.ClassificationAnnotation) detail_) - .mergeFrom(value).buildPartial(); + if (detailCase_ == 3 + && detail_ + != com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1.ClassificationAnnotation.newBuilder( + (com.google.cloud.automl.v1.ClassificationAnnotation) detail_) + .mergeFrom(value) + .buildPartial(); } else { detail_ = value; } @@ -1299,6 +1462,8 @@ public Builder mergeClassification(com.google.cloud.automl.v1.ClassificationAnno return this; } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1322,6 +1487,8 @@ public Builder clearClassification() { return this; } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1332,6 +1499,8 @@ public com.google.cloud.automl.v1.ClassificationAnnotation.Builder getClassifica return getClassificationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1339,7 +1508,8 @@ public com.google.cloud.automl.v1.ClassificationAnnotation.Builder getClassifica * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder getClassificationOrBuilder() { + public com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder + getClassificationOrBuilder() { if ((detailCase_ == 3) && (classificationBuilder_ != null)) { return classificationBuilder_.getMessageOrBuilder(); } else { @@ -1350,6 +1520,8 @@ public com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder getClassific } } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1357,32 +1529,45 @@ public com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder getClassific * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationAnnotation, com.google.cloud.automl.v1.ClassificationAnnotation.Builder, com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder> + com.google.cloud.automl.v1.ClassificationAnnotation, + com.google.cloud.automl.v1.ClassificationAnnotation.Builder, + com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder> getClassificationFieldBuilder() { if (classificationBuilder_ == null) { if (!(detailCase_ == 3)) { detail_ = com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance(); } - classificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationAnnotation, com.google.cloud.automl.v1.ClassificationAnnotation.Builder, com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder>( + classificationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationAnnotation, + com.google.cloud.automl.v1.ClassificationAnnotation.Builder, + com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder>( (com.google.cloud.automl.v1.ClassificationAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 3; - onChanged();; + onChanged(); + ; return classificationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder> imageObjectDetectionBuilder_; + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder> + imageObjectDetectionBuilder_; /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + * * @return Whether the imageObjectDetection field is set. */ @java.lang.Override @@ -1390,11 +1575,15 @@ public boolean hasImageObjectDetection() { return detailCase_ == 4; } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + * * @return The imageObjectDetection. */ @java.lang.Override @@ -1412,13 +1601,17 @@ public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectD } } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ - public Builder setImageObjectDetection(com.google.cloud.automl.v1.ImageObjectDetectionAnnotation value) { + public Builder setImageObjectDetection( + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation value) { if (imageObjectDetectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1432,11 +1625,14 @@ public Builder setImageObjectDetection(com.google.cloud.automl.v1.ImageObjectDet return this; } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ public Builder setImageObjectDetection( com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder builderForValue) { @@ -1450,18 +1646,26 @@ public Builder setImageObjectDetection( return this; } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ - public Builder mergeImageObjectDetection(com.google.cloud.automl.v1.ImageObjectDetectionAnnotation value) { + public Builder mergeImageObjectDetection( + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation value) { if (imageObjectDetectionBuilder_ == null) { - if (detailCase_ == 4 && - detail_ != com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance()) { - detail_ = com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.newBuilder((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_) - .mergeFrom(value).buildPartial(); + if (detailCase_ == 4 + && detail_ + != com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.newBuilder( + (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_) + .mergeFrom(value) + .buildPartial(); } else { detail_ = value; } @@ -1476,11 +1680,14 @@ public Builder mergeImageObjectDetection(com.google.cloud.automl.v1.ImageObjectD return this; } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ public Builder clearImageObjectDetection() { if (imageObjectDetectionBuilder_ == null) { @@ -1499,24 +1706,32 @@ public Builder clearImageObjectDetection() { return this; } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ - public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder getImageObjectDetectionBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder + getImageObjectDetectionBuilder() { return getImageObjectDetectionFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder + getImageObjectDetectionOrBuilder() { if ((detailCase_ == 4) && (imageObjectDetectionBuilder_ != null)) { return imageObjectDetectionBuilder_.getMessageOrBuilder(); } else { @@ -1527,39 +1742,54 @@ public com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder getIma } } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder> + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder> getImageObjectDetectionFieldBuilder() { if (imageObjectDetectionBuilder_ == null) { if (!(detailCase_ == 4)) { detail_ = com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance(); } - imageObjectDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder>( + imageObjectDetectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation, + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder>( (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 4; - onChanged();; + onChanged(); + ; return imageObjectDetectionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionAnnotation, com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder> textExtractionBuilder_; + com.google.cloud.automl.v1.TextExtractionAnnotation, + com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, + com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder> + textExtractionBuilder_; /** + * + * *
      * Annotation details for text extraction.
      * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; + * * @return Whether the textExtraction field is set. */ @java.lang.Override @@ -1567,11 +1797,14 @@ public boolean hasTextExtraction() { return detailCase_ == 6; } /** + * + * *
      * Annotation details for text extraction.
      * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; + * * @return The textExtraction. */ @java.lang.Override @@ -1589,6 +1822,8 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation getTextExtraction() { } } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -1609,6 +1844,8 @@ public Builder setTextExtraction(com.google.cloud.automl.v1.TextExtractionAnnota return this; } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -1627,6 +1864,8 @@ public Builder setTextExtraction( return this; } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -1635,10 +1874,14 @@ public Builder setTextExtraction( */ public Builder mergeTextExtraction(com.google.cloud.automl.v1.TextExtractionAnnotation value) { if (textExtractionBuilder_ == null) { - if (detailCase_ == 6 && - detail_ != com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance()) { - detail_ = com.google.cloud.automl.v1.TextExtractionAnnotation.newBuilder((com.google.cloud.automl.v1.TextExtractionAnnotation) detail_) - .mergeFrom(value).buildPartial(); + if (detailCase_ == 6 + && detail_ + != com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1.TextExtractionAnnotation.newBuilder( + (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_) + .mergeFrom(value) + .buildPartial(); } else { detail_ = value; } @@ -1653,6 +1896,8 @@ public Builder mergeTextExtraction(com.google.cloud.automl.v1.TextExtractionAnno return this; } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -1676,6 +1921,8 @@ public Builder clearTextExtraction() { return this; } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -1686,6 +1933,8 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation.Builder getTextExtrac return getTextExtractionFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -1693,7 +1942,8 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation.Builder getTextExtrac * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder + getTextExtractionOrBuilder() { if ((detailCase_ == 6) && (textExtractionBuilder_ != null)) { return textExtractionBuilder_.getMessageOrBuilder(); } else { @@ -1704,6 +1954,8 @@ public com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder getTextExtra } } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -1711,32 +1963,44 @@ public com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder getTextExtra * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionAnnotation, com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder> + com.google.cloud.automl.v1.TextExtractionAnnotation, + com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, + com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder> getTextExtractionFieldBuilder() { if (textExtractionBuilder_ == null) { if (!(detailCase_ == 6)) { detail_ = com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance(); } - textExtractionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionAnnotation, com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder>( + textExtractionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextExtractionAnnotation, + com.google.cloud.automl.v1.TextExtractionAnnotation.Builder, + com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder>( (com.google.cloud.automl.v1.TextExtractionAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 6; - onChanged();; + onChanged(); + ; return textExtractionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentAnnotation, com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder> textSentimentBuilder_; + com.google.cloud.automl.v1.TextSentimentAnnotation, + com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, + com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder> + textSentimentBuilder_; /** + * + * *
      * Annotation details for text sentiment.
      * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; + * * @return Whether the textSentiment field is set. */ @java.lang.Override @@ -1744,11 +2008,14 @@ public boolean hasTextSentiment() { return detailCase_ == 7; } /** + * + * *
      * Annotation details for text sentiment.
      * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; + * * @return The textSentiment. */ @java.lang.Override @@ -1766,6 +2033,8 @@ public com.google.cloud.automl.v1.TextSentimentAnnotation getTextSentiment() { } } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -1786,6 +2055,8 @@ public Builder setTextSentiment(com.google.cloud.automl.v1.TextSentimentAnnotati return this; } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -1804,6 +2075,8 @@ public Builder setTextSentiment( return this; } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -1812,10 +2085,13 @@ public Builder setTextSentiment( */ public Builder mergeTextSentiment(com.google.cloud.automl.v1.TextSentimentAnnotation value) { if (textSentimentBuilder_ == null) { - if (detailCase_ == 7 && - detail_ != com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance()) { - detail_ = com.google.cloud.automl.v1.TextSentimentAnnotation.newBuilder((com.google.cloud.automl.v1.TextSentimentAnnotation) detail_) - .mergeFrom(value).buildPartial(); + if (detailCase_ == 7 + && detail_ != com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1.TextSentimentAnnotation.newBuilder( + (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_) + .mergeFrom(value) + .buildPartial(); } else { detail_ = value; } @@ -1830,6 +2106,8 @@ public Builder mergeTextSentiment(com.google.cloud.automl.v1.TextSentimentAnnota return this; } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -1853,6 +2131,8 @@ public Builder clearTextSentiment() { return this; } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -1863,6 +2143,8 @@ public com.google.cloud.automl.v1.TextSentimentAnnotation.Builder getTextSentime return getTextSentimentFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -1881,6 +2163,8 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim } } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -1888,26 +2172,34 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentAnnotation, com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder> + com.google.cloud.automl.v1.TextSentimentAnnotation, + com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, + com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder> getTextSentimentFieldBuilder() { if (textSentimentBuilder_ == null) { if (!(detailCase_ == 7)) { detail_ = com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance(); } - textSentimentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentAnnotation, com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder>( + textSentimentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSentimentAnnotation, + com.google.cloud.automl.v1.TextSentimentAnnotation.Builder, + com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder>( (com.google.cloud.automl.v1.TextSentimentAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 7; - onChanged();; + onChanged(); + ; return textSentimentBuilder_; } private java.lang.Object annotationSpecId_ = ""; /** + * + * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -1915,13 +2207,13 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim
      * 
* * string annotation_spec_id = 1; + * * @return The annotationSpecId. */ public java.lang.String getAnnotationSpecId() { java.lang.Object ref = annotationSpecId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; @@ -1930,6 +2222,8 @@ public java.lang.String getAnnotationSpecId() { } } /** + * + * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -1937,15 +2231,14 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 1; + * * @return The bytes for annotationSpecId. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -1953,6 +2246,8 @@ public java.lang.String getAnnotationSpecId() { } } /** + * + * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -1960,20 +2255,22 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 1; + * * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId( - java.lang.String value) { + public Builder setAnnotationSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecId_ = value; onChanged(); return this; } /** + * + * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -1981,15 +2278,18 @@ public Builder setAnnotationSpecId(
      * 
* * string annotation_spec_id = 1; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { - + annotationSpecId_ = getDefaultInstance().getAnnotationSpecId(); onChanged(); return this; } /** + * + * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -1997,16 +2297,16 @@ public Builder clearAnnotationSpecId() {
      * 
* * string annotation_spec_id = 1; + * * @param value The bytes for annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecId_ = value; onChanged(); return this; @@ -2014,6 +2314,8 @@ public Builder setAnnotationSpecIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2024,13 +2326,13 @@ public Builder setAnnotationSpecIdBytes(
      * 
* * string display_name = 5; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2039,6 +2341,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2049,15 +2353,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2065,6 +2368,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2075,20 +2380,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 5; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2099,15 +2406,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 5; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2118,23 +2428,23 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 5; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2144,12 +2454,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.AnnotationPayload) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.AnnotationPayload) private static final com.google.cloud.automl.v1.AnnotationPayload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.AnnotationPayload(); } @@ -2158,16 +2468,16 @@ public static com.google.cloud.automl.v1.AnnotationPayload getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationPayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationPayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationPayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2182,6 +2492,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.AnnotationPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java index c5d384498..aef287dcd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/annotation_payload.proto package com.google.cloud.automl.v1; -public interface AnnotationPayloadOrBuilder extends +public interface AnnotationPayloadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.AnnotationPayload) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; + * * @return Whether the translation field is set. */ boolean hasTranslation(); /** + * + * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1.TranslationAnnotation translation = 2; + * * @return The translation. */ com.google.cloud.automl.v1.TranslationAnnotation getTranslation(); /** + * + * *
    * Annotation details for translation.
    * 
@@ -35,24 +59,32 @@ public interface AnnotationPayloadOrBuilder extends com.google.cloud.automl.v1.TranslationAnnotationOrBuilder getTranslationOrBuilder(); /** + * + * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; + * * @return Whether the classification field is set. */ boolean hasClassification(); /** + * + * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1.ClassificationAnnotation classification = 3; + * * @return The classification. */ com.google.cloud.automl.v1.ClassificationAnnotation getClassification(); /** + * + * *
    * Annotation details for content or image classification.
    * 
@@ -62,51 +94,68 @@ public interface AnnotationPayloadOrBuilder extends com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder getClassificationOrBuilder(); /** + * + * *
    * Annotation details for image object detection.
    * 
* * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * * @return Whether the imageObjectDetection field is set. */ boolean hasImageObjectDetection(); /** + * + * *
    * Annotation details for image object detection.
    * 
* * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; + * * @return The imageObjectDetection. */ com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectDetection(); /** + * + * *
    * Annotation details for image object detection.
    * 
* * .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; */ - com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder(); + com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder + getImageObjectDetectionOrBuilder(); /** + * + * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; + * * @return Whether the textExtraction field is set. */ boolean hasTextExtraction(); /** + * + * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; + * * @return The textExtraction. */ com.google.cloud.automl.v1.TextExtractionAnnotation getTextExtraction(); /** + * + * *
    * Annotation details for text extraction.
    * 
@@ -116,24 +165,32 @@ public interface AnnotationPayloadOrBuilder extends com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder(); /** + * + * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; + * * @return Whether the textSentiment field is set. */ boolean hasTextSentiment(); /** + * + * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; + * * @return The textSentiment. */ com.google.cloud.automl.v1.TextSentimentAnnotation getTextSentiment(); /** + * + * *
    * Annotation details for text sentiment.
    * 
@@ -143,6 +200,8 @@ public interface AnnotationPayloadOrBuilder extends com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder(); /** + * + * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -150,10 +209,13 @@ public interface AnnotationPayloadOrBuilder extends
    * 
* * string annotation_spec_id = 1; + * * @return The annotationSpecId. */ java.lang.String getAnnotationSpecId(); /** + * + * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -161,12 +223,14 @@ public interface AnnotationPayloadOrBuilder extends
    * 
* * string annotation_spec_id = 1; + * * @return The bytes for annotationSpecId. */ - com.google.protobuf.ByteString - getAnnotationSpecIdBytes(); + com.google.protobuf.ByteString getAnnotationSpecIdBytes(); /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -177,10 +241,13 @@ public interface AnnotationPayloadOrBuilder extends
    * 
* * string display_name = 5; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -191,10 +258,10 @@ public interface AnnotationPayloadOrBuilder extends
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); public com.google.cloud.automl.v1.AnnotationPayload.DetailCase getDetailCase(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java new file mode 100644 index 000000000..ec50b812f --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationPayloadOuterClass.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/annotation_payload.proto + +package com.google.cloud.automl.v1; + +public final class AnnotationPayloadOuterClass { + private AnnotationPayloadOuterClass() {} + + 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_v1_AnnotationPayload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_AnnotationPayload_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/v1/annotation_payl" + + "oad.proto\022\026google.cloud.automl.v1\032+googl" + + "e/cloud/automl/v1/classification.proto\032&" + + "google/cloud/automl/v1/detection.proto\032," + + "google/cloud/automl/v1/text_extraction.p" + + "roto\032+google/cloud/automl/v1/text_sentim" + + "ent.proto\032(google/cloud/automl/v1/transl" + + "ation.proto\032\031google/protobuf/any.proto\032\034" + + "google/api/annotations.proto\"\323\003\n\021Annotat" + + "ionPayload\022D\n\013translation\030\002 \001(\0132-.google" + + ".cloud.automl.v1.TranslationAnnotationH\000" + + "\022J\n\016classification\030\003 \001(\01320.google.cloud." + + "automl.v1.ClassificationAnnotationH\000\022X\n\026" + + "image_object_detection\030\004 \001(\01326.google.cl" + + "oud.automl.v1.ImageObjectDetectionAnnota" + + "tionH\000\022K\n\017text_extraction\030\006 \001(\01320.google" + + ".cloud.automl.v1.TextExtractionAnnotatio" + + "nH\000\022I\n\016text_sentiment\030\007 \001(\0132/.google.clo" + + "ud.automl.v1.TextSentimentAnnotationH\000\022\032" + + "\n\022annotation_spec_id\030\001 \001(\t\022\024\n\014display_na" + + "me\030\005 \001(\tB\010\n\006detailB\252\001\n\032com.google.cloud." + + "automl.v1P\001Z * A definition of an annotation spec. *
* * Protobuf type {@code google.cloud.automl.v1.AnnotationSpec} */ -public final class AnnotationSpec extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotationSpec extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.AnnotationSpec) AnnotationSpecOrBuilder { -private static final long serialVersionUID = 0L; + 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_ = ""; @@ -26,16 +44,15 @@ private AnnotationSpec() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotationSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotationSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,64 @@ private AnnotationSpec( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 72: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - exampleCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + displayName_ = s; + break; + } + case 72: + { + exampleCount_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AnnotationSpecOuterClass + .internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1_AnnotationSpec_fieldAccessorTable + return com.google.cloud.automl.v1.AnnotationSpecOuterClass + .internal_static_google_cloud_automl_v1_AnnotationSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.AnnotationSpec.class, com.google.cloud.automl.v1.AnnotationSpec.Builder.class); + com.google.cloud.automl.v1.AnnotationSpec.class, + com.google.cloud.automl.v1.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:
@@ -113,6 +136,7 @@ private AnnotationSpec(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -121,14 +145,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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:
@@ -136,16 +161,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -156,12 +180,15 @@ public java.lang.String getName() { 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -170,30 +197,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -204,12 +231,15 @@ public java.lang.String getDisplayName() { 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; + * * @return The exampleCount. */ @java.lang.Override @@ -218,6 +248,7 @@ public int getExampleCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -256,8 +286,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (exampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, exampleCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, exampleCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,19 +296,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.AnnotationSpec)) { return super.equals(obj); } - com.google.cloud.automl.v1.AnnotationSpec other = (com.google.cloud.automl.v1.AnnotationSpec) obj; + com.google.cloud.automl.v1.AnnotationSpec other = + (com.google.cloud.automl.v1.AnnotationSpec) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (getExampleCount() - != other.getExampleCount()) return false; + 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; } @@ -302,118 +329,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.AnnotationSpec parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.AnnotationSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.AnnotationSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.AnnotationSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.AnnotationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.AnnotationSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.AnnotationSpec parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.AnnotationSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.AnnotationSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.AnnotationSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.AnnotationSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.AnnotationSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.AnnotationSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A definition of an annotation spec.
    * 
* * Protobuf type {@code google.cloud.automl.v1.AnnotationSpec} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.AnnotationSpec) com.google.cloud.automl.v1.AnnotationSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AnnotationSpecOuterClass + .internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1_AnnotationSpec_fieldAccessorTable + return com.google.cloud.automl.v1.AnnotationSpecOuterClass + .internal_static_google_cloud_automl_v1_AnnotationSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.AnnotationSpec.class, com.google.cloud.automl.v1.AnnotationSpec.Builder.class); + com.google.cloud.automl.v1.AnnotationSpec.class, + com.google.cloud.automl.v1.AnnotationSpec.Builder.class); } // Construct using com.google.cloud.automl.v1.AnnotationSpec.newBuilder() @@ -421,16 +457,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AnnotationSpecOuterClass + .internal_static_google_cloud_automl_v1_AnnotationSpec_descriptor; } @java.lang.Override @@ -465,7 +500,8 @@ public com.google.cloud.automl.v1.AnnotationSpec build() { @java.lang.Override public com.google.cloud.automl.v1.AnnotationSpec buildPartial() { - com.google.cloud.automl.v1.AnnotationSpec result = new com.google.cloud.automl.v1.AnnotationSpec(this); + com.google.cloud.automl.v1.AnnotationSpec result = + new com.google.cloud.automl.v1.AnnotationSpec(this); result.name_ = name_; result.displayName_ = displayName_; result.exampleCount_ = exampleCount_; @@ -477,38 +513,39 @@ public com.google.cloud.automl.v1.AnnotationSpec buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.AnnotationSpec) { - return mergeFrom((com.google.cloud.automl.v1.AnnotationSpec)other); + return mergeFrom((com.google.cloud.automl.v1.AnnotationSpec) other); } else { super.mergeFrom(other); return this; @@ -559,6 +596,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -566,13 +605,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -581,6 +620,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -588,15 +629,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -604,6 +644,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -611,20 +653,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -632,15 +676,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -648,16 +695,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -665,19 +712,21 @@ public Builder setNameBytes( 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -686,21 +735,22 @@ public 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -708,70 +758,80 @@ public 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int exampleCount_ ; + private int exampleCount_; /** + * + * *
      * Output only. The number of examples in the parent dataset
      * labeled by the annotation spec.
      * 
* * int32 example_count = 9; + * * @return The exampleCount. */ @java.lang.Override @@ -779,39 +839,45 @@ public int getExampleCount() { return exampleCount_; } /** + * + * *
      * Output only. The number of examples in the parent dataset
      * labeled by the annotation spec.
      * 
* * int32 example_count = 9; + * * @param value The exampleCount to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -821,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.AnnotationSpec) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.AnnotationSpec) private static final com.google.cloud.automl.v1.AnnotationSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.AnnotationSpec(); } @@ -835,16 +901,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -859,6 +925,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.AnnotationSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java index 26380334f..c22128d6a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/annotation_spec.proto package com.google.cloud.automl.v1; -public interface AnnotationSpecOrBuilder extends +public interface AnnotationSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.AnnotationSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Resource name of the annotation spec.
    * Form:
@@ -15,10 +33,13 @@ public interface AnnotationSpecOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the annotation spec.
    * Form:
@@ -26,40 +47,48 @@ public interface AnnotationSpecOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; + * * @return The displayName. */ 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The number of examples in the parent dataset
    * labeled by the annotation spec.
    * 
* * int32 example_count = 9; + * * @return The exampleCount. */ int getExampleCount(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOuterClass.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOuterClass.java new file mode 100644 index 000000000..e59e6af39 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecOuterClass.java @@ -0,0 +1,83 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/annotation_spec.proto + +package com.google.cloud.automl.v1; + +public final class AnnotationSpecOuterClass { + private AnnotationSpecOuterClass() {} + + 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_v1_AnnotationSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_AnnotationSpec_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/v1/annotation_spec" + + ".proto\022\026google.cloud.automl.v1\032\031google/a" + + "pi/resource.proto\032\034google/api/annotation" + + "s.proto\"\326\001\n\016AnnotationSpec\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(\005:\210\001\352A\204\001\n$automl.googleapis.com/Anno" + + "tationSpec\022\\projects/{project}/locations" + + "/{location}/datasets/{dataset}/annotatio" + + "nSpecs/{annotation_spec}B\252\001\n\032com.google." + + "cloud.automl.v1P\001Z\n\014input" + + "_config\030\003 \001(\0132#.google.cloud.automl.v1.I" + + "nputConfigB\003\340A\002\"\212\001\n\021ExportDataRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleapis.c" + + "om/Dataset\022@\n\routput_config\030\003 \001(\0132$.goog" + + "le.cloud.automl.v1.OutputConfigB\003\340A\002\"V\n\030" + + "GetAnnotationSpecRequest\022:\n\004name\030\001 \001(\tB," + + "\340A\002\372A&\n$automl.googleapis.com/Annotation" + + "Spec\"\202\001\n\022CreateModelRequest\0229\n\006parent\030\001 " + + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" + + "cation\0221\n\005model\030\004 \001(\0132\035.google.cloud.aut" + + "oml.v1.ModelB\003\340A\002\"D\n\017GetModelRequest\0221\n\004" + + "name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis.co" + + "m/Model\"\205\001\n\021ListModelsRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\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\"[\n\022ListModelsRes" + + "ponse\022,\n\005model\030\001 \003(\0132\035.google.cloud.auto" + + "ml.v1.Model\022\027\n\017next_page_token\030\002 \001(\t\"G\n\022" + + "DeleteModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035" + + "\n\033automl.googleapis.com/Model\"}\n\022UpdateM" + + "odelRequest\0221\n\005model\030\001 \001(\0132\035.google.clou" + + "d.automl.v1.ModelB\003\340A\002\0224\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\343\002\n" + + "\022DeployModelRequest\022\177\n0image_object_dete" + + "ction_model_deployment_metadata\030\002 \001(\0132C." + + "google.cloud.automl.v1.ImageObjectDetect" + + "ionModelDeploymentMetadataH\000\022|\n.image_cl" + + "assification_model_deployment_metadata\030\004" + + " \001(\0132B.google.cloud.automl.v1.ImageClass" + + "ificationModelDeploymentMetadataH\000\0221\n\004na" + + "me\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis.com/" + + "ModelB\033\n\031model_deployment_metadata\"I\n\024Un" + + "deployModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035" + + "\n\033automl.googleapis.com/Model\"\224\001\n\022Export" + + "ModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033auto" + + "ml.googleapis.com/Model\022K\n\routput_config" + + "\030\003 \001(\0132/.google.cloud.automl.v1.ModelExp" + + "ortOutputConfigB\003\340A\002\"X\n\031GetModelEvaluati" + + "onRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%automl." + + "googleapis.com/ModelEvaluation\"\216\001\n\033ListM" + + "odelEvaluationsRequest\0223\n\006parent\030\001 \001(\tB#" + + "\340A\002\372A\035\n\033automl.googleapis.com/Model\022\023\n\006f" + + "ilter\030\003 \001(\tB\003\340A\002\022\021\n\tpage_size\030\004 \001(\005\022\022\n\np" + + "age_token\030\006 \001(\t\"z\n\034ListModelEvaluationsR" + + "esponse\022A\n\020model_evaluation\030\001 \003(\0132\'.goog" + + "le.cloud.automl.v1.ModelEvaluation\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t2\350\033\n\006AutoMl\022\313\001\n\rCreat" + + "eDataset\022,.google.cloud.automl.v1.Create" + + "DatasetRequest\032\035.google.longrunning.Oper" + + "ation\"m\202\323\344\223\0027\",/v1/{parent=projects/*/lo" + + "cations/*}/datasets:\007dataset\332A\016parent,da" + + "taset\312A\034\n\007Dataset\022\021OperationMetadata\022\225\001\n" + + "\nGetDataset\022).google.cloud.automl.v1.Get" + + "DatasetRequest\032\037.google.cloud.automl.v1." + + "Dataset\";\202\323\344\223\002.\022,/v1/{name=projects/*/lo" + + "cations/*/datasets/*}\332A\004name\022\250\001\n\014ListDat" + + "asets\022+.google.cloud.automl.v1.ListDatas" + + "etsRequest\032,.google.cloud.automl.v1.List" + + "DatasetsResponse\"=\202\323\344\223\002.\022,/v1/{parent=pr" + + "ojects/*/locations/*}/datasets\332A\006parent\022" + + "\273\001\n\rUpdateDataset\022,.google.cloud.automl." + + "v1.UpdateDatasetRequest\032\037.google.cloud.a" + + "utoml.v1.Dataset\"[\202\323\344\223\002?24/v1/{dataset.n" + + "ame=projects/*/locations/*/datasets/*}:\007" + + "dataset\332A\023dataset,update_mask\022\306\001\n\rDelete" + + "Dataset\022,.google.cloud.automl.v1.DeleteD" + + "atasetRequest\032\035.google.longrunning.Opera" + + "tion\"h\202\323\344\223\002.*,/v1/{name=projects/*/locat" + + "ions/*/datasets/*}\332A\004name\312A*\n\025google.pro" + + "tobuf.Empty\022\021OperationMetadata\022\334\001\n\nImpor" + + "tData\022).google.cloud.automl.v1.ImportDat" + + "aRequest\032\035.google.longrunning.Operation\"" + + "\203\001\202\323\344\223\002<\"7/v1/{name=projects/*/locations" + + "/*/datasets/*}:importData:\001*\332A\021name,inpu" + + "t_config\312A*\n\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\022\335\001\n\nExportData\022).google.cl" + + "oud.automl.v1.ExportDataRequest\032\035.google" + + ".longrunning.Operation\"\204\001\202\323\344\223\002<\"7/v1/{na" + + "me=projects/*/locations/*/datasets/*}:ex" + + "portData:\001*\332A\022name,output_config\312A*\n\025goo" + + "gle.protobuf.Empty\022\021OperationMetadata\022\274\001" + + "\n\021GetAnnotationSpec\0220.google.cloud.autom" + + "l.v1.GetAnnotationSpecRequest\032&.google.c" + + "loud.automl.v1.AnnotationSpec\"M\202\323\344\223\002@\022>/" + + "v1/{name=projects/*/locations/*/datasets" + + "/*/annotationSpecs/*}\332A\004name\022\277\001\n\013CreateM" + + "odel\022*.google.cloud.automl.v1.CreateMode" + + "lRequest\032\035.google.longrunning.Operation\"" + + "e\202\323\344\223\0023\"*/v1/{parent=projects/*/location" + + "s/*}/models:\005model\332A\014parent,model\312A\032\n\005Mo" + + "del\022\021OperationMetadata\022\215\001\n\010GetModel\022\'.go" + + "ogle.cloud.automl.v1.GetModelRequest\032\035.g" + + "oogle.cloud.automl.v1.Model\"9\202\323\344\223\002,\022*/v1" + + "/{name=projects/*/locations/*/models/*}\332" + + "A\004name\022\240\001\n\nListModels\022).google.cloud.aut" + + "oml.v1.ListModelsRequest\032*.google.cloud." + + "automl.v1.ListModelsResponse\";\202\323\344\223\002,\022*/v" + + "1/{parent=projects/*/locations/*}/models" + + "\332A\006parent\022\300\001\n\013DeleteModel\022*.google.cloud" + + ".automl.v1.DeleteModelRequest\032\035.google.l" + + "ongrunning.Operation\"f\202\323\344\223\002,**/v1/{name=" + + "projects/*/locations/*/models/*}\332A\004name\312" + + "A*\n\025google.protobuf.Empty\022\021OperationMeta" + + "data\022\255\001\n\013UpdateModel\022*.google.cloud.auto" + + "ml.v1.UpdateModelRequest\032\035.google.cloud." + + "automl.v1.Model\"S\202\323\344\223\002920/v1/{model.name" + + "=projects/*/locations/*/models/*}:\005model" + + "\332A\021model,update_mask\022\312\001\n\013DeployModel\022*.g" + + "oogle.cloud.automl.v1.DeployModelRequest" + + "\032\035.google.longrunning.Operation\"p\202\323\344\223\0026\"" + + "1/v1/{name=projects/*/locations/*/models" + + "/*}:deploy:\001*\332A\004name\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\022\320\001\n\rUndeployMo" + + "del\022,.google.cloud.automl.v1.UndeployMod" + + "elRequest\032\035.google.longrunning.Operation" + + "\"r\202\323\344\223\0028\"3/v1/{name=projects/*/locations" + + "/*/models/*}:undeploy:\001*\332A\004name\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\022\330\001\n" + + "\013ExportModel\022*.google.cloud.automl.v1.Ex" + + "portModelRequest\032\035.google.longrunning.Op" + + "eration\"~\202\323\344\223\0026\"1/v1/{name=projects/*/lo" + + "cations/*/models/*}:export:\001*\332A\022name,out" + + "put_config\312A*\n\025google.protobuf.Empty\022\021Op" + + "erationMetadata\022\276\001\n\022GetModelEvaluation\0221" + + ".google.cloud.automl.v1.GetModelEvaluati" + + "onRequest\032\'.google.cloud.automl.v1.Model" + + "Evaluation\"L\202\323\344\223\002?\022=/v1/{name=projects/*" + + "/locations/*/models/*/modelEvaluations/*" + + "}\332A\004name\022\330\001\n\024ListModelEvaluations\0223.goog" + + "le.cloud.automl.v1.ListModelEvaluationsR" + + "equest\0324.google.cloud.automl.v1.ListMode" + + "lEvaluationsResponse\"U\202\323\344\223\002?\022=/v1/{paren" + + "t=projects/*/locations/*/models/*}/model" + + "Evaluations\332A\rparent,filter\032I\312A\025automl.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\267\001\n\032com.google.cl" + + "oud.automl.v1B\013AutoMlProtoP\001Z * Input configuration for BatchPredict Action. * The format of input depends on the ML problem of the model used for @@ -215,30 +232,29 @@ * * Protobuf type {@code google.cloud.automl.v1.BatchPredictInputConfig} */ -public final class BatchPredictInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchPredictInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictInputConfig) BatchPredictInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchPredictInputConfig.newBuilder() to construct. private BatchPredictInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchPredictInputConfig() { - } + + private BatchPredictInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchPredictInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchPredictInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -257,60 +273,67 @@ private BatchPredictInputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.automl.v1.GcsSource) source_).toBuilder(); + case 10: + { + com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 1; - 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); + 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.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictInputConfig.class, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder.class); + com.google.cloud.automl.v1.BatchPredictInputConfig.class, + com.google.cloud.automl.v1.BatchPredictInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -326,29 +349,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Required. The Google Cloud Storage location for the input content.
    * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -356,36 +386,46 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Required. The Google Cloud Storage location for the input content.
    * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.automl.v1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.automl.v1.GcsSource) source_; + return (com.google.cloud.automl.v1.GcsSource) source_; } return com.google.cloud.automl.v1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Required. The Google Cloud Storage location for the input content.
    * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.automl.v1.GcsSource) source_; + return (com.google.cloud.automl.v1.GcsSource) source_; } return com.google.cloud.automl.v1.GcsSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -397,8 +437,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1.GcsSource) source_); } @@ -412,8 +451,9 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.automl.v1.GcsSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.automl.v1.GcsSource) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -423,18 +463,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictInputConfig)) { return super.equals(obj); } - com.google.cloud.automl.v1.BatchPredictInputConfig other = (com.google.cloud.automl.v1.BatchPredictInputConfig) obj; + com.google.cloud.automl.v1.BatchPredictInputConfig other = + (com.google.cloud.automl.v1.BatchPredictInputConfig) obj; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 0: default: @@ -464,96 +504,103 @@ public int hashCode() { } public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.BatchPredictInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.BatchPredictInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.BatchPredictInputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.BatchPredictInputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.BatchPredictInputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.BatchPredictInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -765,21 +812,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.BatchPredictInputConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictInputConfig)
       com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.BatchPredictInputConfig.class, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder.class);
+              com.google.cloud.automl.v1.BatchPredictInputConfig.class,
+              com.google.cloud.automl.v1.BatchPredictInputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.BatchPredictInputConfig.newBuilder()
@@ -787,16 +836,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -806,9 +854,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -827,7 +875,8 @@ public com.google.cloud.automl.v1.BatchPredictInputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.BatchPredictInputConfig buildPartial() {
-      com.google.cloud.automl.v1.BatchPredictInputConfig result = new com.google.cloud.automl.v1.BatchPredictInputConfig(this);
+      com.google.cloud.automl.v1.BatchPredictInputConfig result =
+          new com.google.cloud.automl.v1.BatchPredictInputConfig(this);
       if (sourceCase_ == 1) {
         if (gcsSourceBuilder_ == null) {
           result.source_ = source_;
@@ -844,38 +893,39 @@ public com.google.cloud.automl.v1.BatchPredictInputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.BatchPredictInputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1.BatchPredictInputConfig)other);
+        return mergeFrom((com.google.cloud.automl.v1.BatchPredictInputConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -883,15 +933,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictInputConfig other) {
-      if (other == com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance())
+        return this;
       switch (other.getSourceCase()) {
-        case GCS_SOURCE: {
-          mergeGcsSource(other.getGcsSource());
-          break;
-        }
-        case SOURCE_NOT_SET: {
-          break;
-        }
+        case GCS_SOURCE:
+          {
+            mergeGcsSource(other.getGcsSource());
+            break;
+          }
+        case SOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -912,7 +965,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1.BatchPredictInputConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1.BatchPredictInputConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -921,12 +975,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-    public SourceCase
-        getSourceCase() {
-      return SourceCase.forNumber(
-          sourceCase_);
+
+    public SourceCase getSourceCase() {
+      return SourceCase.forNumber(sourceCase_);
     }
 
     public Builder clearSource() {
@@ -936,15 +990,22 @@ public Builder clearSource() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> gcsSourceBuilder_;
+            com.google.cloud.automl.v1.GcsSource,
+            com.google.cloud.automl.v1.GcsSource.Builder,
+            com.google.cloud.automl.v1.GcsSourceOrBuilder>
+        gcsSourceBuilder_;
     /**
+     *
+     *
      * 
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -952,11 +1013,16 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsSource. */ @java.lang.Override @@ -974,11 +1040,15 @@ public com.google.cloud.automl.v1.GcsSource getGcsSource() { } } /** + * + * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { @@ -994,14 +1064,17 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) { return this; } /** + * + * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setGcsSource( - com.google.cloud.automl.v1.GcsSource.Builder builderForValue) { + public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1012,18 +1085,25 @@ public Builder setGcsSource( return this; } /** + * + * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 1 && - source_ != com.google.cloud.automl.v1.GcsSource.getDefaultInstance()) { - source_ = com.google.cloud.automl.v1.GcsSource.newBuilder((com.google.cloud.automl.v1.GcsSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 1 + && source_ != com.google.cloud.automl.v1.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.automl.v1.GcsSource.newBuilder( + (com.google.cloud.automl.v1.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -1038,11 +1118,15 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) { return this; } /** + * + * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGcsSource() { if (gcsSourceBuilder_ == null) { @@ -1061,21 +1145,29 @@ public Builder clearGcsSource() { return this; } /** + * + * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.GcsSource.Builder getGcsSourceBuilder() { return getGcsSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { @@ -1089,33 +1181,41 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { } } /** + * + * *
      * Required. The Google Cloud Storage location for the input content.
      * 
* - * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> + com.google.cloud.automl.v1.GcsSource, + com.google.cloud.automl.v1.GcsSource.Builder, + com.google.cloud.automl.v1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.automl.v1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder>( - (com.google.cloud.automl.v1.GcsSource) source_, - getParentForChildren(), - isClean()); + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.GcsSource, + com.google.cloud.automl.v1.GcsSource.Builder, + com.google.cloud.automl.v1.GcsSourceOrBuilder>( + (com.google.cloud.automl.v1.GcsSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged();; + onChanged(); + ; return gcsSourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1125,12 +1225,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictInputConfig) private static final com.google.cloud.automl.v1.BatchPredictInputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictInputConfig(); } @@ -1139,16 +1239,16 @@ public static com.google.cloud.automl.v1.BatchPredictInputConfig getDefaultInsta 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); - } - }; + 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; @@ -1163,6 +1263,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.BatchPredictInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfigOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfigOrBuilder.java new file mode 100644 index 000000000..b6f7ea4e6 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfigOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/io.proto + +package com.google.cloud.automl.v1; + +public interface BatchPredictInputConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BatchPredictInputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Google Cloud Storage location for the input content.
+   * 
+ * + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
+   * Required. The Google Cloud Storage location for the input content.
+   * 
+ * + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsSource. + */ + com.google.cloud.automl.v1.GcsSource getGcsSource(); + /** + * + * + *
+   * Required. The Google Cloud Storage location for the input content.
+   * 
+ * + * + * .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + public com.google.cloud.automl.v1.BatchPredictInputConfig.SourceCase getSourceCase(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java index 52cf0629f..ea634e5c6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** + * + * *
  * Details of BatchPredict operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.BatchPredictOperationMetadata} */ -public final class BatchPredictOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchPredictOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictOperationMetadata) BatchPredictOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchPredictOperationMetadata.newBuilder() to construct. private BatchPredictOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchPredictOperationMetadata() { - } + + private BatchPredictOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchPredictOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchPredictOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,135 +68,161 @@ private BatchPredictOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.BatchPredictInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.automl.v1.BatchPredictInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.automl.v1.BatchPredictInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.automl.v1.BatchPredictInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder subBuilder = null; - if (outputInfo_ != null) { - subBuilder = outputInfo_.toBuilder(); - } - outputInfo_ = input.readMessage(com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputInfo_); - outputInfo_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder + subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); + } + outputInfo_ = + input.readMessage( + com.google.cloud.automl.v1.BatchPredictOperationMetadata + .BatchPredictOutputInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputInfo_); + outputInfo_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.class, com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder.class); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.class, + com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder.class); } - public interface BatchPredictOutputInfoOrBuilder extends + public interface BatchPredictOutputInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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; + * * @return Whether the gcsOutputDirectory field is set. */ boolean hasGcsOutputDirectory(); /** + * + * *
      * The full path of the Google Cloud Storage directory created, into which
      * the prediction output is written.
      * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ 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; + * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString - getGcsOutputDirectoryBytes(); + com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.OutputLocationCase getOutputLocationCase(); + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .OutputLocationCase + getOutputLocationCase(); } /** + * + * *
    * Further describes this batch predict's output.
    * Supplements
    * [BatchPredictOutputConfig][google.cloud.automl.v1.BatchPredictOutputConfig].
    * 
* - * Protobuf type {@code google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo} + * Protobuf type {@code + * google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo} */ - public static final class BatchPredictOutputInfo extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class BatchPredictOutputInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) BatchPredictOutputInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchPredictOutputInfo.newBuilder() to construct. private BatchPredictOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchPredictOutputInfo() { - } + + private BatchPredictOutputInfo() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchPredictOutputInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchPredictOutputInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -199,52 +241,59 @@ private BatchPredictOutputInfo( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputLocationCase_ = 1; - outputLocation_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputLocationCase_ = 1; + outputLocation_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.class, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder.class); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.class, + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder.class); } private int outputLocationCase_ = 0; private java.lang.Object outputLocation_; + public enum OutputLocationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_OUTPUT_DIRECTORY(1), OUTPUTLOCATION_NOT_SET(0); private final int value; + private OutputLocationCase(int value) { this.value = value; } @@ -260,42 +309,50 @@ public static OutputLocationCase valueOf(int value) { public static OutputLocationCase forNumber(int value) { switch (value) { - case 1: return GCS_OUTPUT_DIRECTORY; - case 0: return OUTPUTLOCATION_NOT_SET; - default: return null; + case 1: + return GCS_OUTPUT_DIRECTORY; + case 0: + return OUTPUTLOCATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public OutputLocationCase - getOutputLocationCase() { - return OutputLocationCase.forNumber( - outputLocationCase_); + 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; + * * @return Whether the gcsOutputDirectory field is set. */ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** + * + * *
      * The full path of the Google Cloud Storage directory created, into which
      * the prediction output is written.
      * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ public java.lang.String getGcsOutputDirectory() { @@ -306,8 +363,7 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -316,24 +372,25 @@ public 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; + * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -344,6 +401,7 @@ public java.lang.String getGcsOutputDirectory() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -355,8 +413,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputLocationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocation_); } @@ -380,18 +437,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo)) { + if (!(obj + instanceof + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo)) { return super.equals(obj); } - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo other = (com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) obj; + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo other = + (com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) obj; if (!getOutputLocationCase().equals(other.getOutputLocationCase())) return false; switch (outputLocationCase_) { case 1: - if (!getGcsOutputDirectory() - .equals(other.getGcsOutputDirectory())) return false; + if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; break; case 0: default: @@ -420,88 +479,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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); + + public static com.google.cloud.automl.v1.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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -511,46 +583,54 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further describes this batch predict's output.
      * Supplements
      * [BatchPredictOutputConfig][google.cloud.automl.v1.BatchPredictOutputConfig].
      * 
* - * Protobuf type {@code google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo} + * Protobuf type {@code + * google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.class, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder.class); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .class, + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder.class); } - // Construct using com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.newBuilder() + // Construct using + // com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -560,19 +640,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getDefaultInstanceForType() { - return com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance(); + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + getDefaultInstanceForType() { + return com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo build() { - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo result = buildPartial(); + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + build() { + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -580,8 +664,11 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutp } @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo buildPartial() { - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo result = new com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo(this); + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + buildPartial() { + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo result = + new com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo( + this); if (outputLocationCase_ == 1) { result.outputLocation_ = outputLocation_; } @@ -594,56 +681,68 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) { - return mergeFrom((com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo)other); + if (other + instanceof + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) { + return mergeFrom( + (com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo other) { - if (other == com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo other) { + if (other + == com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .getDefaultInstance()) return this; switch (other.getOutputLocationCase()) { - case GCS_OUTPUT_DIRECTORY: { - outputLocationCase_ = 1; - outputLocation_ = other.outputLocation_; - onChanged(); - break; - } - case OUTPUTLOCATION_NOT_SET: { - break; - } + case GCS_OUTPUT_DIRECTORY: + { + outputLocationCase_ = 1; + outputLocation_ = other.outputLocation_; + onChanged(); + break; + } + case OUTPUTLOCATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -660,11 +759,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo parsedMessage = null; + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -673,12 +775,12 @@ public Builder mergeFrom( } return this; } + private int outputLocationCase_ = 0; private java.lang.Object outputLocation_; - public OutputLocationCase - getOutputLocationCase() { - return OutputLocationCase.forNumber( - outputLocationCase_); + + public OutputLocationCase getOutputLocationCase() { + return OutputLocationCase.forNumber(outputLocationCase_); } public Builder clearOutputLocation() { @@ -688,14 +790,16 @@ public Builder clearOutputLocation() { return this; } - /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; + * * @return Whether the gcsOutputDirectory field is set. */ @java.lang.Override @@ -703,12 +807,15 @@ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -718,8 +825,7 @@ public java.lang.String getGcsOutputDirectory() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -730,25 +836,26 @@ public 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; + * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -758,32 +865,37 @@ public 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; + * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory( - java.lang.String value) { + public Builder setGcsOutputDirectory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 1; + 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; + * * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { @@ -795,26 +907,29 @@ public Builder clearGcsOutputDirectory() { return this; } /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; + * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputLocationCase_ = 1; outputLocation_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -827,30 +942,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo) - private static final com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo(); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -862,21 +981,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getDefaultInstanceForType() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.BatchPredictInputConfig inputConfig_; /** + * + * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -884,19 +1006,26 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
@@ -910,13 +1039,19 @@ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfi
   }
 
   public static final int OUTPUT_INFO_FIELD_NUMBER = 2;
-  private com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo outputInfo_;
+  private com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo
+      outputInfo_;
   /**
+   *
+   *
    * 
    * Output only. Information further describing this batch predict's output.
    * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -924,30 +1059,45 @@ public boolean hasOutputInfo() { return outputInfo_ != null; } /** + * + * *
    * Output only. Information further describing this batch predict's output.
    * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getOutputInfo() { - return outputInfo_ == null ? com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance() : outputInfo_; + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + getOutputInfo() { + return outputInfo_ == null + ? com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .getDefaultInstance() + : outputInfo_; } /** + * + * *
    * Output only. Information further describing this batch predict's output.
    * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder + getOutputInfoOrBuilder() { return getOutputInfo(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -959,8 +1109,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -977,12 +1126,10 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -992,22 +1139,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.BatchPredictOperationMetadata other = (com.google.cloud.automl.v1.BatchPredictOperationMetadata) obj; + com.google.cloud.automl.v1.BatchPredictOperationMetadata other = + (com.google.cloud.automl.v1.BatchPredictOperationMetadata) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (hasOutputInfo() != other.hasOutputInfo()) return false; if (hasOutputInfo()) { - if (!getOutputInfo() - .equals(other.getOutputInfo())) return false; + if (!getOutputInfo().equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1034,117 +1180,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.BatchPredictOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.BatchPredictOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.BatchPredictOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.BatchPredictOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.BatchPredictOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictOperationMetadata) com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.class, com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder.class); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.class, + com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.BatchPredictOperationMetadata.newBuilder() @@ -1152,16 +1308,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1181,9 +1336,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; } @java.lang.Override @@ -1202,7 +1357,8 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.BatchPredictOperationMetadata buildPartial() { - com.google.cloud.automl.v1.BatchPredictOperationMetadata result = new com.google.cloud.automl.v1.BatchPredictOperationMetadata(this); + com.google.cloud.automl.v1.BatchPredictOperationMetadata result = + new com.google.cloud.automl.v1.BatchPredictOperationMetadata(this); if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; } else { @@ -1221,38 +1377,39 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.BatchPredictOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.BatchPredictOperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.BatchPredictOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1260,7 +1417,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictOperationMetadata other) { - if (other == com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance()) + return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -1286,7 +1444,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.BatchPredictOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.BatchPredictOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1298,36 +1457,49 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.BatchPredictInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.automl.v1.BatchPredictInputConfig, + com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, + com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Output only. The input config that was given upon starting this
      * batch predict operation.
      * 
* * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ 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.v1.BatchPredictInputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1349,6 +1521,8 @@ public Builder setInputConfig(com.google.cloud.automl.v1.BatchPredictInputConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1368,6 +1542,8 @@ public Builder setInputConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1379,7 +1555,9 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.BatchPredictInputConf
       if (inputConfigBuilder_ == null) {
         if (inputConfig_ != null) {
           inputConfig_ =
-            com.google.cloud.automl.v1.BatchPredictInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.automl.v1.BatchPredictInputConfig.newBuilder(inputConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           inputConfig_ = value;
         }
@@ -1391,6 +1569,8 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.BatchPredictInputConf
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1410,6 +1590,8 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1418,11 +1600,13 @@ public Builder clearInputConfig() {
      * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1;
      */
     public com.google.cloud.automl.v1.BatchPredictInputConfig.Builder getInputConfigBuilder() {
-      
+
       onChanged();
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1434,11 +1618,14 @@ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfi
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null ?
-            com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_;
+        return inputConfig_ == null
+            ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance()
+            : inputConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1447,56 +1634,83 @@ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfi
      * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> 
+            com.google.cloud.automl.v1.BatchPredictInputConfig,
+            com.google.cloud.automl.v1.BatchPredictInputConfig.Builder,
+            com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder>
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder>(
-                getInputConfig(),
-                getParentForChildren(),
-                isClean());
+        inputConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.automl.v1.BatchPredictInputConfig,
+                com.google.cloud.automl.v1.BatchPredictInputConfig.Builder,
+                com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder>(
+                getInputConfig(), getParentForChildren(), isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo outputInfo_;
+    private com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo
+        outputInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder> outputInfoBuilder_;
+            com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo,
+            com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder,
+            com.google.cloud.automl.v1.BatchPredictOperationMetadata
+                .BatchPredictOutputInfoOrBuilder>
+        outputInfoBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { return outputInfoBuilder_ != null || outputInfo_ != null; } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return The outputInfo. */ - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getOutputInfo() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null ? com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance() : outputInfo_; + return outputInfo_ == null + ? com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .getDefaultInstance() + : outputInfo_; } else { return outputInfoBuilder_.getMessage(); } } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ - public Builder setOutputInfo(com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { + public Builder setOutputInfo( + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1510,14 +1724,19 @@ public Builder setOutputInfo(com.google.cloud.automl.v1.BatchPredictOperationMet return this; } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ public Builder setOutputInfo( - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder builderForValue) { + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder + builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1528,17 +1747,25 @@ public Builder setOutputInfo( return this; } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ - public Builder mergeOutputInfo(com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { + public Builder mergeOutputInfo( + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { if (outputInfoBuilder_ == null) { if (outputInfo_ != null) { outputInfo_ = - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); } else { outputInfo_ = value; } @@ -1550,11 +1777,15 @@ public Builder mergeOutputInfo(com.google.cloud.automl.v1.BatchPredictOperationM return this; } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1568,55 +1799,77 @@ public Builder clearOutputInfo() { return this; } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder getOutputInfoBuilder() { - + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder + getOutputInfoBuilder() { + onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder + getOutputInfoOrBuilder() { if (outputInfoBuilder_ != null) { return outputInfoBuilder_.getMessageOrBuilder(); } else { - return outputInfo_ == null ? - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance() : outputInfo_; + return outputInfo_ == null + ? com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .getDefaultInstance() + : outputInfo_; } } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder> + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder, + com.google.cloud.automl.v1.BatchPredictOperationMetadata + .BatchPredictOutputInfoOrBuilder> getOutputInfoFieldBuilder() { if (outputInfoBuilder_ == null) { - outputInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder>( - getOutputInfo(), - getParentForChildren(), - isClean()); + outputInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder, + com.google.cloud.automl.v1.BatchPredictOperationMetadata + .BatchPredictOutputInfoOrBuilder>( + getOutputInfo(), getParentForChildren(), isClean()); outputInfo_ = null; } return outputInfoBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1626,12 +1879,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictOperationMetadata) private static final com.google.cloud.automl.v1.BatchPredictOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictOperationMetadata(); } @@ -1640,16 +1893,16 @@ public static com.google.cloud.automl.v1.BatchPredictOperationMetadata getDefaul 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); - } - }; + 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; @@ -1664,6 +1917,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.automl.v1.BatchPredictOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java index 2732f4722..f3f8822f1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOperationMetadataOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; -public interface BatchPredictOperationMetadataOrBuilder extends +public interface BatchPredictOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BatchPredictOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig(); /** + * + * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
@@ -38,29 +62,44 @@ public interface BatchPredictOperationMetadataOrBuilder extends
   com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. Information further describing this batch predict's output.
    * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ boolean hasOutputInfo(); /** + * + * *
    * Output only. Information further describing this batch predict's output.
    * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return The outputInfo. */ com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo getOutputInfo(); /** + * + * *
    * Output only. Information further describing this batch predict's output.
    * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ - com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder getOutputInfoOrBuilder(); + com.google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder + getOutputInfoOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java index c36ed7e35..2dedd3620 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; /** + * + * *
  * Output configuration for BatchPredict Action.
  * As destination the
@@ -250,30 +267,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.BatchPredictOutputConfig}
  */
-public final class BatchPredictOutputConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchPredictOutputConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictOutputConfig)
     BatchPredictOutputConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchPredictOutputConfig.newBuilder() to construct.
   private BatchPredictOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchPredictOutputConfig() {
-  }
+
+  private BatchPredictOutputConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchPredictOutputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchPredictOutputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -292,60 +308,67 @@ private BatchPredictOutputConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null;
-            if (destinationCase_ == 1) {
-              subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder();
+          case 10:
+            {
+              com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null;
+              if (destinationCase_ == 1) {
+                subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder();
+              }
+              destination_ =
+                  input.readMessage(
+                      com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_);
+                destination_ = subBuilder.buildPartial();
+              }
+              destinationCase_ = 1;
+              break;
             }
-            destination_ =
-                input.readMessage(com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_);
-              destination_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            destinationCase_ = 1;
-            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);
+      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.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1.Io
+        .internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable
+    return com.google.cloud.automl.v1.Io
+        .internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.BatchPredictOutputConfig.class, com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder.class);
+            com.google.cloud.automl.v1.BatchPredictOutputConfig.class,
+            com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder.class);
   }
 
   private int destinationCase_ = 0;
   private java.lang.Object destination_;
+
   public enum DestinationCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_DESTINATION(1),
     DESTINATION_NOT_SET(0);
     private final int value;
+
     private DestinationCase(int value) {
       this.value = value;
     }
@@ -361,30 +384,37 @@ public static DestinationCase valueOf(int value) {
 
     public static DestinationCase forNumber(int value) {
       switch (value) {
-        case 1: return GCS_DESTINATION;
-        case 0: return DESTINATION_NOT_SET;
-        default: return null;
+        case 1:
+          return GCS_DESTINATION;
+        case 0:
+          return DESTINATION_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DestinationCase
-  getDestinationCase() {
-    return DestinationCase.forNumber(
-        destinationCase_);
+  public DestinationCase getDestinationCase() {
+    return DestinationCase.forNumber(destinationCase_);
   }
 
   public static final int GCS_DESTINATION_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -392,38 +422,48 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,8 +475,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1.GcsDestination) destination_); } @@ -450,8 +489,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.automl.v1.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.automl.v1.GcsDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -461,18 +501,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictOutputConfig)) { return super.equals(obj); } - com.google.cloud.automl.v1.BatchPredictOutputConfig other = (com.google.cloud.automl.v1.BatchPredictOutputConfig) obj; + com.google.cloud.automl.v1.BatchPredictOutputConfig other = + (com.google.cloud.automl.v1.BatchPredictOutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 0: default: @@ -502,96 +542,103 @@ public int hashCode() { } public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.BatchPredictOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.BatchPredictOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.BatchPredictOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Output configuration for BatchPredict Action.
    * As destination the
@@ -838,21 +885,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.BatchPredictOutputConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictOutputConfig)
       com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.BatchPredictOutputConfig.class, com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder.class);
+              com.google.cloud.automl.v1.BatchPredictOutputConfig.class,
+              com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.BatchPredictOutputConfig.newBuilder()
@@ -860,16 +909,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -879,9 +927,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -900,7 +948,8 @@ public com.google.cloud.automl.v1.BatchPredictOutputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.BatchPredictOutputConfig buildPartial() {
-      com.google.cloud.automl.v1.BatchPredictOutputConfig result = new com.google.cloud.automl.v1.BatchPredictOutputConfig(this);
+      com.google.cloud.automl.v1.BatchPredictOutputConfig result =
+          new com.google.cloud.automl.v1.BatchPredictOutputConfig(this);
       if (destinationCase_ == 1) {
         if (gcsDestinationBuilder_ == null) {
           result.destination_ = destination_;
@@ -917,38 +966,39 @@ public com.google.cloud.automl.v1.BatchPredictOutputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.BatchPredictOutputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1.BatchPredictOutputConfig)other);
+        return mergeFrom((com.google.cloud.automl.v1.BatchPredictOutputConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -956,15 +1006,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictOutputConfig other) {
-      if (other == com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance())
+        return this;
       switch (other.getDestinationCase()) {
-        case GCS_DESTINATION: {
-          mergeGcsDestination(other.getGcsDestination());
-          break;
-        }
-        case DESTINATION_NOT_SET: {
-          break;
-        }
+        case GCS_DESTINATION:
+          {
+            mergeGcsDestination(other.getGcsDestination());
+            break;
+          }
+        case DESTINATION_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -985,7 +1038,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1.BatchPredictOutputConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1.BatchPredictOutputConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -994,12 +1048,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-    public DestinationCase
-        getDestinationCase() {
-      return DestinationCase.forNumber(
-          destinationCase_);
+
+    public DestinationCase getDestinationCase() {
+      return DestinationCase.forNumber(destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -1009,16 +1063,23 @@ public Builder clearDestination() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_;
+            com.google.cloud.automl.v1.GcsDestination,
+            com.google.cloud.automl.v1.GcsDestination.Builder,
+            com.google.cloud.automl.v1.GcsDestinationOrBuilder>
+        gcsDestinationBuilder_;
     /**
+     *
+     *
      * 
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -1026,12 +1087,17 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsDestination. */ @java.lang.Override @@ -1049,12 +1115,16 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -1070,12 +1140,16 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value return this; } /** + * + * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGcsDestination( com.google.cloud.automl.v1.GcsDestination.Builder builderForValue) { @@ -1089,19 +1163,26 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.automl.v1.GcsDestination.newBuilder((com.google.cloud.automl.v1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.automl.v1.GcsDestination.newBuilder( + (com.google.cloud.automl.v1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -1116,12 +1197,16 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val return this; } /** + * + * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1140,23 +1225,31 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1170,34 +1263,44 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui } } /** + * + * *
      * Required. The Google Cloud Storage location of the directory where the output is to
      * be written to.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> + com.google.cloud.automl.v1.GcsDestination, + com.google.cloud.automl.v1.GcsDestination.Builder, + com.google.cloud.automl.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.GcsDestination, + com.google.cloud.automl.v1.GcsDestination.Builder, + com.google.cloud.automl.v1.GcsDestinationOrBuilder>( (com.google.cloud.automl.v1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1207,12 +1310,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictOutputConfig) private static final com.google.cloud.automl.v1.BatchPredictOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictOutputConfig(); } @@ -1221,16 +1324,16 @@ public static com.google.cloud.automl.v1.BatchPredictOutputConfig getDefaultInst 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); - } - }; + 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; @@ -1245,6 +1348,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.BatchPredictOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java index b429849fa..f93c0054b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java @@ -1,39 +1,69 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; -public interface BatchPredictOutputConfigOrBuilder extends +public interface BatchPredictOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BatchPredictOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsDestination. */ com.google.cloud.automl.v1.GcsDestination getGcsDestination(); /** + * + * *
    * Required. The Google Cloud Storage location of the directory where the output is to
    * be written to.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java index f8a769aa8..8b373be87 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/prediction_service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [PredictionService.BatchPredict][google.cloud.automl.v1.PredictionService.BatchPredict].
  * 
* * Protobuf type {@code google.cloud.automl.v1.BatchPredictRequest} */ -public final class BatchPredictRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchPredictRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictRequest) BatchPredictRequestOrBuilder { -private static final long serialVersionUID = 0L; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchPredictRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchPredictRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,103 +71,118 @@ private BatchPredictRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: { - com.google.cloud.automl.v1.BatchPredictInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); + name_ = s; + break; } - inputConfig_ = input.readMessage(com.google.cloud.automl.v1.BatchPredictInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1.BatchPredictInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.automl.v1.BatchPredictInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 34: { - com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + case 34: + { + com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.automl.v1.BatchPredictOutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - outputConfig_ = input.readMessage(com.google.cloud.automl.v1.BatchPredictOutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_BatchPredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictRequest.class, com.google.cloud.automl.v1.BatchPredictRequest.Builder.class); + com.google.cloud.automl.v1.BatchPredictRequest.class, + com.google.cloud.automl.v1.BatchPredictRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -159,29 +191,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -192,11 +226,16 @@ public java.lang.String getName() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1.BatchPredictInputConfig inputConfig_; /** + * + * *
    * Required. The input configuration for batch prediction.
    * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -204,23 +243,34 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. The input configuration for batch prediction.
    * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. The input configuration for batch prediction.
    * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder() { @@ -230,12 +280,17 @@ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfi public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.automl.v1.BatchPredictOutputConfig outputConfig_; /** + * + * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -243,25 +298,36 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -269,24 +335,23 @@ public com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder getOutputCon } public static final int PARAMS_FIELD_NUMBER = 5; + private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_BatchPredictRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -295,6 +360,8 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -365,22 +432,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 5;
    */
-
   @java.lang.Override
-  public boolean containsParams(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsParams(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetParams().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Override
   @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.
@@ -452,11 +519,12 @@ public java.util.Map getParams() {
    * map<string, string> params = 5;
    */
   @java.lang.Override
-
   public java.util.Map getParamsMap() {
     return internalGetParams().getMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -528,16 +596,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 5;
    */
   @java.lang.Override
-
-  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();
+  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.
@@ -609,12 +677,11 @@ public java.lang.String getParamsOrDefault(
    * map<string, string> params = 5;
    */
   @java.lang.Override
-
-  public java.lang.String getParamsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetParams().getMap();
+  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();
     }
@@ -622,6 +689,7 @@ public java.lang.String getParamsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -633,8 +701,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -644,12 +711,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (outputConfig_ != null) {
       output.writeMessage(4, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetParams(),
-        ParamsDefaultEntryHolder.defaultEntry,
-        5);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 5);
     unknownFields.writeTo(output);
   }
 
@@ -663,22 +726,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (inputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getInputConfig());
+      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 += 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;
@@ -688,27 +749,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.BatchPredictRequest other = (com.google.cloud.automl.v1.BatchPredictRequest) obj;
+    com.google.cloud.automl.v1.BatchPredictRequest other =
+        (com.google.cloud.automl.v1.BatchPredictRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasInputConfig() != other.hasInputConfig()) return false;
     if (hasInputConfig()) {
-      if (!getInputConfig()
-          .equals(other.getInputConfig())) return false;
+      if (!getInputConfig().equals(other.getInputConfig())) return false;
     }
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig()
-          .equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetParams().equals(
-        other.internalGetParams())) return false;
+    if (!internalGetParams().equals(other.internalGetParams())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -739,140 +797,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.BatchPredictRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.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.v1.BatchPredictRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.automl.v1.BatchPredictRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.automl.v1.BatchPredictRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for [PredictionService.BatchPredict][google.cloud.automl.v1.PredictionService.BatchPredict].
    * 
* * Protobuf type {@code google.cloud.automl.v1.BatchPredictRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictRequest) com.google.cloud.automl.v1.BatchPredictRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_BatchPredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BatchPredictRequest.class, com.google.cloud.automl.v1.BatchPredictRequest.Builder.class); + com.google.cloud.automl.v1.BatchPredictRequest.class, + com.google.cloud.automl.v1.BatchPredictRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.BatchPredictRequest.newBuilder() @@ -880,16 +945,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -912,9 +976,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor; } @java.lang.Override @@ -933,7 +997,8 @@ public com.google.cloud.automl.v1.BatchPredictRequest build() { @java.lang.Override public com.google.cloud.automl.v1.BatchPredictRequest buildPartial() { - com.google.cloud.automl.v1.BatchPredictRequest result = new com.google.cloud.automl.v1.BatchPredictRequest(this); + com.google.cloud.automl.v1.BatchPredictRequest result = + new com.google.cloud.automl.v1.BatchPredictRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (inputConfigBuilder_ == null) { @@ -956,38 +1021,39 @@ public com.google.cloud.automl.v1.BatchPredictRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.BatchPredictRequest) { - return mergeFrom((com.google.cloud.automl.v1.BatchPredictRequest)other); + return mergeFrom((com.google.cloud.automl.v1.BatchPredictRequest) other); } else { super.mergeFrom(other); return this; @@ -1006,8 +1072,7 @@ public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictRequest other) { if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableParams().mergeFrom( - other.internalGetParams()); + internalGetMutableParams().mergeFrom(other.internalGetParams()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1036,22 +1101,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1060,20 +1130,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1081,54 +1154,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1136,39 +1222,58 @@ public Builder setNameBytes( private com.google.cloud.automl.v1.BatchPredictInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.automl.v1.BatchPredictInputConfig, + com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, + com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.automl.v1.BatchPredictInputConfig value) { if (inputConfigBuilder_ == null) { @@ -1184,11 +1289,15 @@ public Builder setInputConfig(com.google.cloud.automl.v1.BatchPredictInputConfig return this; } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.automl.v1.BatchPredictInputConfig.Builder builderForValue) { @@ -1202,17 +1311,23 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInputConfig(com.google.cloud.automl.v1.BatchPredictInputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.automl.v1.BatchPredictInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.BatchPredictInputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -1224,11 +1339,15 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.BatchPredictInputConf return this; } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -1242,48 +1361,64 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.BatchPredictInputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> + com.google.cloud.automl.v1.BatchPredictInputConfig, + com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, + com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictInputConfig, com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.BatchPredictInputConfig, + com.google.cloud.automl.v1.BatchPredictInputConfig.Builder, + com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -1291,42 +1426,61 @@ public com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfi private com.google.cloud.automl.v1.BatchPredictOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOutputConfig, com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.automl.v1.BatchPredictOutputConfig, + com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, + com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.automl.v1.BatchPredictOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.automl.v1.BatchPredictOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1342,12 +1496,16 @@ public Builder setOutputConfig(com.google.cloud.automl.v1.BatchPredictOutputConf return this; } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder builderForValue) { @@ -1361,18 +1519,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.automl.v1.BatchPredictOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.automl.v1.BatchPredictOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.BatchPredictOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1384,12 +1548,16 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1.BatchPredictOutputCo return this; } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1403,72 +1571,87 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1.BatchPredictOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOutputConfig, com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder> + com.google.cloud.automl.v1.BatchPredictOutputConfig, + com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, + com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOutputConfig, com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.BatchPredictOutputConfig, + com.google.cloud.automl.v1.BatchPredictOutputConfig.Builder, + com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } + private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged();; + internalGetMutableParams() { + onChanged(); + ; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1480,6 +1663,8 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
      * Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1550,22 +1735,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 5;
      */
-
     @java.lang.Override
-    public boolean containsParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsParams(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetParams().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getParamsMap()} instead.
-     */
+    /** Use {@link #getParamsMap()} instead. */
     @java.lang.Override
     @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.
@@ -1637,11 +1822,12 @@ public java.util.Map getParams() {
      * map<string, string> params = 5;
      */
     @java.lang.Override
-
     public java.util.Map getParamsMap() {
       return internalGetParams().getMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1713,16 +1899,17 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 5;
      */
     @java.lang.Override
-
     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();
+        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.
@@ -1794,12 +1981,11 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 5;
      */
     @java.lang.Override
-
-    public java.lang.String getParamsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetParams().getMap();
+    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();
       }
@@ -1807,11 +1993,12 @@ public java.lang.String getParamsOrThrow(
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap()
-          .clear();
+      internalGetMutableParams().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1882,23 +2069,21 @@ public Builder clearParams() {
      *
      * map<string, string> params = 5;
      */
-
-    public Builder removeParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableParams().getMutableMap()
-          .remove(key);
+    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.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableParams() {
+    public java.util.Map getMutableParams() {
       return internalGetMutableParams().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1969,16 +2154,19 @@ public Builder removeParams(
      *
      * 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);
+    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.
@@ -2049,16 +2237,13 @@ public Builder putParams(
      *
      * map<string, string> params = 5;
      */
-
-    public Builder putAllParams(
-        java.util.Map values) {
-      internalGetMutableParams().getMutableMap()
-          .putAll(values);
+    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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2068,12 +2253,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictRequest)
   private static final com.google.cloud.automl.v1.BatchPredictRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictRequest();
   }
@@ -2082,16 +2267,16 @@ public static com.google.cloud.automl.v1.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);
-    }
-  };
+  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;
@@ -2106,6 +2291,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.BatchPredictRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java
similarity index 89%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java
index d0485b710..41e20d029 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictRequestOrBuilder.java
@@ -1,90 +1,145 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
-public interface BatchPredictRequestOrBuilder extends
+public interface BatchPredictRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BatchPredictRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The input configuration for batch prediction.
    * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. The input configuration for batch prediction.
    * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ com.google.cloud.automl.v1.BatchPredictInputConfig getInputConfig(); /** + * + * *
    * Required. The input configuration for batch prediction.
    * 
* - * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.automl.v1.BatchPredictOutputConfig getOutputConfig(); /** + * + * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -157,6 +212,8 @@ public interface BatchPredictRequestOrBuilder extends
    */
   int getParamsCount();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -227,15 +284,13 @@ public interface BatchPredictRequestOrBuilder extends
    *
    * map<string, string> params = 5;
    */
-  boolean containsParams(
-      java.lang.String key);
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  boolean containsParams(java.lang.String key);
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getParams();
+  java.util.Map getParams();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -306,9 +361,10 @@ boolean containsParams(
    *
    * map<string, string> params = 5;
    */
-  java.util.Map
-  getParamsMap();
+  java.util.Map getParamsMap();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -379,11 +435,10 @@ boolean containsParams(
    *
    * map<string, string> params = 5;
    */
-
-  java.lang.String getParamsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  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.
@@ -454,7 +509,5 @@ java.lang.String getParamsOrDefault(
    *
    * map<string, string> params = 5;
    */
-
-  java.lang.String getParamsOrThrow(
-      java.lang.String key);
+  java.lang.String getParamsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java
similarity index 65%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java
index 1d3bdb266..dbb32814d 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResult.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
 /**
+ *
+ *
  * 
  * Result of the Batch Predict. This message is returned in
  * [response][google.longrunning.Operation.response] of the operation returned
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.BatchPredictResult}
  */
-public final class BatchPredictResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchPredictResult extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BatchPredictResult)
     BatchPredictResultOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchPredictResult.newBuilder() to construct.
   private BatchPredictResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchPredictResult() {
-  }
+
+  private BatchPredictResult() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchPredictResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchPredictResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,82 +71,84 @@ private BatchPredictResult(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              metadata_ = com.google.protobuf.MapField.newMapField(
-                  MetadataDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                metadata_ =
+                    com.google.protobuf.MapField.newMapField(
+                        MetadataDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry metadata__ =
+                  input.readMessage(
+                      MetadataDefaultEntryHolder.defaultEntry.getParserForType(),
+                      extensionRegistry);
+              metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue());
+              break;
             }
-            com.google.protobuf.MapEntry
-            metadata__ = input.readMessage(
-                MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            metadata_.getMutableMap().put(
-                metadata__.getKey(), metadata__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1.PredictionServiceProto
+        .internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 1:
         return internalGetMetadata();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_fieldAccessorTable
+    return com.google.cloud.automl.v1.PredictionServiceProto
+        .internal_static_google_cloud_automl_v1_BatchPredictResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.BatchPredictResult.class, com.google.cloud.automl.v1.BatchPredictResult.Builder.class);
+            com.google.cloud.automl.v1.BatchPredictResult.class,
+            com.google.cloud.automl.v1.BatchPredictResult.Builder.class);
   }
 
   public static final int METADATA_FIELD_NUMBER = 1;
+
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_MetadataEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
-  }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> metadata_;
-  private com.google.protobuf.MapField
-  internalGetMetadata() {
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.automl.v1.PredictionServiceProto
+                .internal_static_google_cloud_automl_v1_BatchPredictResult_MetadataEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
+  }
+
+  private com.google.protobuf.MapField metadata_;
+
+  private com.google.protobuf.MapField internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
@@ -139,6 +157,8 @@ public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -151,22 +171,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 1;
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -180,11 +200,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -198,16 +219,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -221,12 +243,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -234,6 +255,7 @@ public java.lang.String getMetadataOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -245,14 +267,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetMetadata(),
-        MetadataDefaultEntryHolder.defaultEntry,
-        1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 1);
     unknownFields.writeTo(output);
   }
 
@@ -262,15 +279,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, metadata__);
+    for (java.util.Map.Entry entry :
+        internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry metadata__ =
+          MetadataDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metadata__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -280,15 +297,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.BatchPredictResult)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.BatchPredictResult other = (com.google.cloud.automl.v1.BatchPredictResult) obj;
+    com.google.cloud.automl.v1.BatchPredictResult other =
+        (com.google.cloud.automl.v1.BatchPredictResult) obj;
 
-    if (!internalGetMetadata().equals(
-        other.internalGetMetadata())) return false;
+    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -309,97 +326,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.BatchPredictResult parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.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.v1.BatchPredictResult parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.automl.v1.BatchPredictResult parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.automl.v1.BatchPredictResult parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictResult parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.BatchPredictResult parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1.BatchPredictResult prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Result of the Batch Predict. This message is returned in
    * [response][google.longrunning.Operation.response] of the operation returned
@@ -408,43 +432,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.BatchPredictResult}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BatchPredictResult)
       com.google.cloud.automl.v1.BatchPredictResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.PredictionServiceProto
+          .internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetMetadata();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 1:
           return internalGetMutableMetadata();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_fieldAccessorTable
+      return com.google.cloud.automl.v1.PredictionServiceProto
+          .internal_static_google_cloud_automl_v1_BatchPredictResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.BatchPredictResult.class, com.google.cloud.automl.v1.BatchPredictResult.Builder.class);
+              com.google.cloud.automl.v1.BatchPredictResult.class,
+              com.google.cloud.automl.v1.BatchPredictResult.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.BatchPredictResult.newBuilder()
@@ -452,16 +476,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -470,9 +493,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.PredictionServiceProto
+          .internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
     }
 
     @java.lang.Override
@@ -491,7 +514,8 @@ public com.google.cloud.automl.v1.BatchPredictResult build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.BatchPredictResult buildPartial() {
-      com.google.cloud.automl.v1.BatchPredictResult result = new com.google.cloud.automl.v1.BatchPredictResult(this);
+      com.google.cloud.automl.v1.BatchPredictResult result =
+          new com.google.cloud.automl.v1.BatchPredictResult(this);
       int from_bitField0_ = bitField0_;
       result.metadata_ = internalGetMetadata();
       result.metadata_.makeImmutable();
@@ -503,38 +527,39 @@ public com.google.cloud.automl.v1.BatchPredictResult buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.BatchPredictResult) {
-        return mergeFrom((com.google.cloud.automl.v1.BatchPredictResult)other);
+        return mergeFrom((com.google.cloud.automl.v1.BatchPredictResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -543,8 +568,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.automl.v1.BatchPredictResult other) {
       if (other == com.google.cloud.automl.v1.BatchPredictResult.getDefaultInstance()) return this;
-      internalGetMutableMetadata().mergeFrom(
-          other.internalGetMetadata());
+      internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -573,24 +597,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> metadata_;
-    private com.google.protobuf.MapField
-    internalGetMetadata() {
+    private com.google.protobuf.MapField metadata_;
+
+    private com.google.protobuf.MapField internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableMetadata() {
-      onChanged();;
+        internalGetMutableMetadata() {
+      onChanged();
+      ;
       if (metadata_ == null) {
-        metadata_ = com.google.protobuf.MapField.newMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ =
+            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -602,6 +627,8 @@ public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -614,22 +641,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 1;
      */
-
     @java.lang.Override
-    public boolean containsMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetadataMap()} instead.
-     */
+    /** Use {@link #getMetadataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -643,11 +670,12 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
-
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -661,16 +689,17 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
-
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -684,12 +713,11 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
-
-    public java.lang.String getMetadataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+    public java.lang.String getMetadataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -697,11 +725,12 @@ public java.lang.String getMetadataOrThrow(
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap()
-          .clear();
+      internalGetMutableMetadata().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -714,23 +743,21 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 1;
      */
-
-    public Builder removeMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableMetadata().getMutableMap()
-          .remove(key);
+    public Builder removeMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMetadata() {
+    public java.util.Map getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -743,16 +770,19 @@ public Builder removeMetadata(
      *
      * map<string, string> metadata = 1;
      */
-    public Builder putMetadata(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableMetadata().getMutableMap()
-          .put(key, value);
+    public Builder putMetadata(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -765,16 +795,13 @@ public Builder putMetadata(
      *
      * map<string, string> metadata = 1;
      */
-
-    public Builder putAllMetadata(
-        java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetadata(java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -784,12 +811,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BatchPredictResult)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BatchPredictResult)
   private static final com.google.cloud.automl.v1.BatchPredictResult DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BatchPredictResult();
   }
@@ -798,16 +825,16 @@ public static com.google.cloud.automl.v1.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);
-    }
-  };
+  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;
@@ -822,6 +849,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.BatchPredictResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java
index 0d829ea0b..fe4dcb37e 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictResultOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
-public interface BatchPredictResultOrBuilder extends
+public interface BatchPredictResultOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BatchPredictResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -22,6 +40,8 @@ public interface BatchPredictResultOrBuilder extends
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -34,15 +54,13 @@ public interface BatchPredictResultOrBuilder extends
    *
    * map<string, string> metadata = 1;
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -55,9 +73,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 1;
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -70,11 +89,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 1;
    */
-
-  java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -87,7 +105,5 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 1;
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java
similarity index 65%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java
index d3be91aef..91d10f159 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntry.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/detection.proto
 
 package com.google.cloud.automl.v1;
 
 /**
+ *
+ *
  * 
  * Bounding box matching model metrics for a single intersection-over-union
  * threshold and multiple label match confidence thresholds.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry}
  */
-public final class BoundingBoxMetricsEntry extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BoundingBoxMetricsEntry extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry)
     BoundingBoxMetricsEntryOrBuilder {
-private static final long serialVersionUID = 0L;
+  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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BoundingBoxMetricsEntry();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BoundingBoxMetricsEntry(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,135 +72,159 @@ private BoundingBoxMetricsEntry(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            iouThreshold_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            meanAveragePrecision_ = input.readFloat();
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              confidenceMetricsEntries_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 13:
+            {
+              iouThreshold_ = input.readFloat();
+              break;
             }
-            confidenceMetricsEntries_.add(
-                input.readMessage(com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 21:
+            {
+              meanAveragePrecision_ = input.readFloat();
+              break;
+            }
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                confidenceMetricsEntries_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.automl.v1.BoundingBoxMetricsEntry
+                            .ConfidenceMetricsEntry>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              confidenceMetricsEntries_.add(
+                  input.readMessage(
+                      com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+                          .parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
+        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.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1.Detection
+        .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable
+    return com.google.cloud.automl.v1.Detection
+        .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder.class);
+            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.class,
+            com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder.class);
   }
 
-  public interface ConfidenceMetricsEntryOrBuilder extends
+  public interface ConfidenceMetricsEntryOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Output only. The confidence threshold value used to compute the metrics.
      * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** + * + * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 2; + * * @return The recall. */ float getRecall(); /** + * + * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 3; + * * @return The precision. */ float getPrecision(); /** + * + * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 4; + * * @return The f1Score. */ float getF1Score(); } /** + * + * *
    * Metrics for a single confidence threshold.
    * 
* * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) ConfidenceMetricsEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfidenceMetricsEntry() { - } + + private ConfidenceMetricsEntry() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -202,66 +243,72 @@ private ConfidenceMetricsEntry( 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; + 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; } - 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); + 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.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Detection + .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.Detection + .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, + com.google.cloud.automl.v1.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; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -272,11 +319,14 @@ public float getConfidenceThreshold() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** + * + * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -287,11 +337,14 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** + * + * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 3; + * * @return The precision. */ @java.lang.Override @@ -302,11 +355,14 @@ public float getPrecision() { 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; + * * @return The f1Score. */ @java.lang.Override @@ -315,6 +371,7 @@ public float getF1Score() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,8 +383,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -350,20 +406,16 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, precision_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, f1Score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -373,25 +425,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)) { + if (!(obj + instanceof com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)) { return super.equals(obj); } - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) obj; + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other = + (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) - != java.lang.Float.floatToIntBits( - other.getConfidenceThreshold())) return false; + != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits( - other.getRecall())) return false; + != java.lang.Float.floatToIntBits(other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits( - other.getPrecision())) return false; + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits( - other.getF1Score())) return false; + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -404,104 +454,113 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidenceThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1Score()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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); + + public static com.google.cloud.automl.v1.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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -511,44 +570,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metrics for a single confidence threshold.
      * 
* * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Detection + .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.Detection + .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + .class); } - // Construct using com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.newBuilder() + // Construct using + // com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,19 +629,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Detection + .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstanceForType() { - return com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.getDefaultInstance(); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getDefaultInstanceForType() { + return com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry build() { - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = buildPartial(); + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -584,8 +652,10 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry } @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry buildPartial() { - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(this); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + buildPartial() { + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = + new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(this); result.confidenceThreshold_ = confidenceThreshold_; result.recall_ = recall_; result.precision_ = precision_; @@ -598,46 +668,54 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) { - return mergeFrom((com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)other); + if (other + instanceof com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) { + return mergeFrom( + (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other) { - if (other == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other) { + if (other + == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + .getDefaultInstance()) return this; if (other.getConfidenceThreshold() != 0F) { setConfidenceThreshold(other.getConfidenceThreshold()); } @@ -665,11 +743,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parsedMessage = null; + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -679,13 +760,16 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_ ; + private float confidenceThreshold_; /** + * + * *
        * Output only. The confidence threshold value used to compute the metrics.
        * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -693,42 +777,51 @@ public float getConfidenceThreshold() { return confidenceThreshold_; } /** + * + * *
        * Output only. The confidence threshold value used to compute the metrics.
        * 
* * float confidence_threshold = 1; + * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private float recall_ ; + private float recall_; /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -736,42 +829,51 @@ public float getRecall() { return recall_; } /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; + * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; + * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_ ; + private float precision_; /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; + * * @return The precision. */ @java.lang.Override @@ -779,42 +881,51 @@ public float getPrecision() { return precision_; } /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float f1Score_ ; + private float f1Score_; /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @return The f1Score. */ @java.lang.Override @@ -822,34 +933,41 @@ public float getF1Score() { return f1Score_; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -862,30 +980,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) - private static final com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -897,21 +1018,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstanceForType() { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } 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; + * * @return The iouThreshold. */ @java.lang.Override @@ -922,11 +1046,14 @@ public float getIouThreshold() { 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; + * * @return The meanAveragePrecision. */ @java.lang.Override @@ -935,76 +1062,102 @@ public float getMeanAveragePrecision() { } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 3; - private java.util.List confidenceMetricsEntries_; + private java.util.List + 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public java.util.List getConfidenceMetricsEntriesList() { + public java.util.List + 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { return confidenceMetricsEntries_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1016,8 +1169,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (iouThreshold_ != 0F) { output.writeFloat(1, iouThreshold_); } @@ -1037,16 +1189,15 @@ public int getSerializedSize() { size = 0; if (iouThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, iouThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, iouThreshold_); } if (meanAveragePrecision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, meanAveragePrecision_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, confidenceMetricsEntries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1056,21 +1207,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.BoundingBoxMetricsEntry)) { return super.equals(obj); } - com.google.cloud.automl.v1.BoundingBoxMetricsEntry other = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) obj; + com.google.cloud.automl.v1.BoundingBoxMetricsEntry other = + (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getIouThreshold()) - != java.lang.Float.floatToIntBits( - other.getIouThreshold())) return false; + != 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; + != java.lang.Float.floatToIntBits(other.getMeanAveragePrecision())) return false; + if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1083,11 +1233,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IOU_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getIouThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getIouThreshold()); hash = (37 * hash) + MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMeanAveragePrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAveragePrecision()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); @@ -1098,96 +1246,103 @@ public int hashCode() { } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.BoundingBoxMetricsEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.BoundingBoxMetricsEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -1195,21 +1350,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry)
       com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.Detection
+          .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable
+      return com.google.cloud.automl.v1.Detection
+          .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder.class);
+              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.class,
+              com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.BoundingBoxMetricsEntry.newBuilder()
@@ -1217,17 +1374,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getConfidenceMetricsEntriesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1245,9 +1402,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.Detection
+          .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor;
     }
 
     @java.lang.Override
@@ -1266,13 +1423,15 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.BoundingBoxMetricsEntry buildPartial() {
-      com.google.cloud.automl.v1.BoundingBoxMetricsEntry result = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry(this);
+      com.google.cloud.automl.v1.BoundingBoxMetricsEntry result =
+          new com.google.cloud.automl.v1.BoundingBoxMetricsEntry(this);
       int from_bitField0_ = bitField0_;
       result.iouThreshold_ = iouThreshold_;
       result.meanAveragePrecision_ = meanAveragePrecision_;
       if (confidenceMetricsEntriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
+          confidenceMetricsEntries_ =
+              java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.confidenceMetricsEntries_ = confidenceMetricsEntries_;
@@ -1287,38 +1446,39 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.BoundingBoxMetricsEntry) {
-        return mergeFrom((com.google.cloud.automl.v1.BoundingBoxMetricsEntry)other);
+        return mergeFrom((com.google.cloud.automl.v1.BoundingBoxMetricsEntry) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1326,7 +1486,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1.BoundingBoxMetricsEntry other) {
-      if (other == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance()) return this;
+      if (other == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance())
+        return this;
       if (other.getIouThreshold() != 0F) {
         setIouThreshold(other.getIouThreshold());
       }
@@ -1351,9 +1512,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.BoundingBoxMetricsEntry othe
             confidenceMetricsEntriesBuilder_ = null;
             confidenceMetricsEntries_ = other.confidenceMetricsEntries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            confidenceMetricsEntriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConfidenceMetricsEntriesFieldBuilder() : null;
+            confidenceMetricsEntriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConfidenceMetricsEntriesFieldBuilder()
+                    : null;
           } else {
             confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_);
           }
@@ -1378,7 +1540,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1387,16 +1550,20 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private float iouThreshold_ ;
+    private float iouThreshold_;
     /**
+     *
+     *
      * 
      * Output only. The intersection-over-union threshold value used to compute
      * this metrics entry.
      * 
* * float iou_threshold = 1; + * * @return The iouThreshold. */ @java.lang.Override @@ -1404,44 +1571,53 @@ public float getIouThreshold() { return iouThreshold_; } /** + * + * *
      * Output only. The intersection-over-union threshold value used to compute
      * this metrics entry.
      * 
* * float iou_threshold = 1; + * * @param value The iouThreshold to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearIouThreshold() { - + iouThreshold_ = 0F; onChanged(); return this; } - private float meanAveragePrecision_ ; + private float meanAveragePrecision_; /** + * + * *
      * Output only. The mean average precision, most often close to au_prc.
      * 
* * float mean_average_precision = 2; + * * @return The meanAveragePrecision. */ @java.lang.Override @@ -1449,57 +1625,76 @@ public float getMeanAveragePrecision() { return meanAveragePrecision_; } /** + * + * *
      * Output only. The mean average precision, most often close to au_prc.
      * 
* * float mean_average_precision = 2; + * * @param value The meanAveragePrecision to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearMeanAveragePrecision() { - + meanAveragePrecision_ = 0F; onChanged(); return this; } - private java.util.List confidenceMetricsEntries_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + private void ensureConfidenceMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = new java.util.ArrayList(confidenceMetricsEntries_); + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>( + confidenceMetricsEntries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> confidenceMetricsEntriesBuilder_; + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, + com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public java.util.List getConfidenceMetricsEntriesList() { + public java.util.List + getConfidenceMetricsEntriesList() { if (confidenceMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } else { @@ -1507,13 +1702,17 @@ public java.util.List * 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1523,15 +1722,20 @@ public 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { @@ -1539,16 +1743,21 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry } } /** + * + * *
      * 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder setConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1562,16 +1771,22 @@ public Builder setConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder setConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); @@ -1582,15 +1797,20 @@ public Builder setConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntries( + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1604,16 +1824,21 @@ public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1.BoundingBo 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1627,16 +1852,21 @@ public Builder addConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); @@ -1647,16 +1877,22 @@ public Builder addConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); @@ -1667,20 +1903,25 @@ public Builder addConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addAllConfidenceMetricsEntries( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> + values) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, confidenceMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); onChanged(); } else { confidenceMetricsEntriesBuilder_.addAllMessages(values); @@ -1688,13 +1929,17 @@ public Builder addAllConfidenceMetricsEntries( 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1707,13 +1952,17 @@ public Builder clearConfidenceMetricsEntries() { 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1726,45 +1975,60 @@ public Builder removeConfidenceMetricsEntries(int 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder( - int index) { + public com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { if (confidenceMetricsEntriesBuilder_ == null) { - return confidenceMetricsEntries_.get(index); } else { + 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public java.util.List - getConfidenceMetricsEntriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1772,51 +2036,76 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry } } /** + * + * *
      * 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder() { - return getConfidenceMetricsEntriesFieldBuilder().addBuilder( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntriesBuilder() { + return getConfidenceMetricsEntriesFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder( - int index) { - return getConfidenceMetricsEntriesFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntriesBuilder(int index) { + return getConfidenceMetricsEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public java.util.List - getConfidenceMetricsEntriesBuilderList() { + public java.util.List< + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder> + getConfidenceMetricsEntriesBuilderList() { return getConfidenceMetricsEntriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesFieldBuilder() { if (confidenceMetricsEntriesBuilder_ == null) { - confidenceMetricsEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1825,9 +2114,9 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry } return confidenceMetricsEntriesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1837,12 +2126,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry) private static final com.google.cloud.automl.v1.BoundingBoxMetricsEntry DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry(); } @@ -1851,16 +2140,16 @@ public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry getDefaultInsta 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); - } - }; + 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; @@ -1875,6 +2164,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java index 0205df724..c5a0cd54c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingBoxMetricsEntryOrBuilder.java @@ -1,84 +1,129 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/detection.proto package com.google.cloud.automl.v1; -public interface BoundingBoxMetricsEntryOrBuilder extends +public interface BoundingBoxMetricsEntryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BoundingBoxMetricsEntry) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The intersection-over-union threshold value used to compute
    * this metrics entry.
    * 
* * float iou_threshold = 1; + * * @return The iouThreshold. */ float getIouThreshold(); /** + * + * *
    * Output only. The mean average precision, most often close to au_prc.
    * 
* * float mean_average_precision = 2; + * * @return The meanAveragePrecision. */ 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - java.util.List + 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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index); + com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.automl.v1.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.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index); + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java index b4d535d73..cac83c27e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPoly.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/geometry.proto package com.google.cloud.automl.v1; /** + * + * *
  * A bounding polygon of a detected object on a plane.
  * On output both vertices and normalized_vertices are provided.
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.BoundingPoly}
  */
-public final class BoundingPoly extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BoundingPoly)
     BoundingPolyOrBuilder {
-private static final long serialVersionUID = 0L;
+  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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BoundingPoly();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BoundingPoly(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,29 +73,31 @@ private BoundingPoly(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              normalizedVertices_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                normalizedVertices_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              normalizedVertices_.add(
+                  input.readMessage(
+                      com.google.cloud.automl.v1.NormalizedVertex.parser(), extensionRegistry));
+              break;
             }
-            normalizedVertices_.add(
-                input.readMessage(com.google.cloud.automl.v1.NormalizedVertex.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         normalizedVertices_ = java.util.Collections.unmodifiableList(normalizedVertices_);
@@ -87,22 +106,27 @@ private BoundingPoly(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1.Geometry
+        .internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_BoundingPoly_fieldAccessorTable
+    return com.google.cloud.automl.v1.Geometry
+        .internal_static_google_cloud_automl_v1_BoundingPoly_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.BoundingPoly.class, com.google.cloud.automl.v1.BoundingPoly.Builder.class);
+            com.google.cloud.automl.v1.BoundingPoly.class,
+            com.google.cloud.automl.v1.BoundingPoly.Builder.class);
   }
 
   public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2;
   private java.util.List normalizedVertices_;
   /**
+   *
+   *
    * 
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -114,6 +138,8 @@ public java.util.List getNormalized return normalizedVertices_; } /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -121,11 +147,13 @@ public java.util.List getNormalized * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -137,6 +165,8 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -148,6 +178,8 @@ public com.google.cloud.automl.v1.NormalizedVertex getNormalizedVertices(int ind return normalizedVertices_.get(index); } /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -161,6 +193,7 @@ public com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVertice } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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)); } @@ -187,8 +219,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < normalizedVertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, normalizedVertices_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +230,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.BoundingPoly)) { return super.equals(obj); } com.google.cloud.automl.v1.BoundingPoly other = (com.google.cloud.automl.v1.BoundingPoly) obj; - if (!getNormalizedVerticesList() - .equals(other.getNormalizedVerticesList())) return false; + if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,97 +258,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.BoundingPoly parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.BoundingPoly parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.BoundingPoly parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.BoundingPoly parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.BoundingPoly parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -326,21 +364,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.BoundingPoly}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BoundingPoly)
       com.google.cloud.automl.v1.BoundingPolyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.Geometry
+          .internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_BoundingPoly_fieldAccessorTable
+      return com.google.cloud.automl.v1.Geometry
+          .internal_static_google_cloud_automl_v1_BoundingPoly_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.BoundingPoly.class, com.google.cloud.automl.v1.BoundingPoly.Builder.class);
+              com.google.cloud.automl.v1.BoundingPoly.class,
+              com.google.cloud.automl.v1.BoundingPoly.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.BoundingPoly.newBuilder()
@@ -348,17 +388,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getNormalizedVerticesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.Geometry
+          .internal_static_google_cloud_automl_v1_BoundingPoly_descriptor;
     }
 
     @java.lang.Override
@@ -393,7 +433,8 @@ public com.google.cloud.automl.v1.BoundingPoly build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.BoundingPoly buildPartial() {
-      com.google.cloud.automl.v1.BoundingPoly result = new com.google.cloud.automl.v1.BoundingPoly(this);
+      com.google.cloud.automl.v1.BoundingPoly result =
+          new com.google.cloud.automl.v1.BoundingPoly(this);
       int from_bitField0_ = bitField0_;
       if (normalizedVerticesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -412,38 +453,39 @@ public com.google.cloud.automl.v1.BoundingPoly buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.BoundingPoly) {
-        return mergeFrom((com.google.cloud.automl.v1.BoundingPoly)other);
+        return mergeFrom((com.google.cloud.automl.v1.BoundingPoly) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -470,9 +512,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.BoundingPoly other) {
             normalizedVerticesBuilder_ = null;
             normalizedVertices_ = other.normalizedVertices_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            normalizedVerticesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getNormalizedVerticesFieldBuilder() : null;
+            normalizedVerticesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getNormalizedVerticesFieldBuilder()
+                    : null;
           } else {
             normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_);
           }
@@ -506,21 +549,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List normalizedVertices_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureNormalizedVerticesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        normalizedVertices_ = new java.util.ArrayList(normalizedVertices_);
+        normalizedVertices_ =
+            new java.util.ArrayList(
+                normalizedVertices_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.automl.v1.NormalizedVertex, com.google.cloud.automl.v1.NormalizedVertex.Builder, com.google.cloud.automl.v1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_;
+            com.google.cloud.automl.v1.NormalizedVertex,
+            com.google.cloud.automl.v1.NormalizedVertex.Builder,
+            com.google.cloud.automl.v1.NormalizedVertexOrBuilder>
+        normalizedVerticesBuilder_;
 
     /**
+     *
+     *
      * 
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -535,6 +587,8 @@ public java.util.List getNormalized } } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -549,6 +603,8 @@ public int getNormalizedVerticesCount() { } } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -563,6 +619,8 @@ public com.google.cloud.automl.v1.NormalizedVertex getNormalizedVertices(int ind } } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -584,6 +642,8 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -602,6 +662,8 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -622,6 +684,8 @@ public Builder addNormalizedVertices(com.google.cloud.automl.v1.NormalizedVertex return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -643,6 +707,8 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -661,6 +727,8 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -679,6 +747,8 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -689,8 +759,7 @@ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -698,6 +767,8 @@ public Builder addAllNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -715,6 +786,8 @@ public Builder clearNormalizedVertices() { return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -732,6 +805,8 @@ public Builder removeNormalizedVertices(int index) { return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -743,6 +818,8 @@ public com.google.cloud.automl.v1.NormalizedVertex.Builder getNormalizedVertices return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -752,19 +829,22 @@ public com.google.cloud.automl.v1.NormalizedVertex.Builder getNormalizedVertices public com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); } else { + return normalizedVertices_.get(index); + } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
* * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -772,6 +852,8 @@ public com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVertice } } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -779,10 +861,12 @@ public com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVertice * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.automl.v1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder().addBuilder( - com.google.cloud.automl.v1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder() + .addBuilder(com.google.cloud.automl.v1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -791,26 +875,34 @@ public com.google.cloud.automl.v1.NormalizedVertex.Builder addNormalizedVertices */ public com.google.cloud.automl.v1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
* * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.NormalizedVertex, com.google.cloud.automl.v1.NormalizedVertex.Builder, com.google.cloud.automl.v1.NormalizedVertexOrBuilder> + com.google.cloud.automl.v1.NormalizedVertex, + com.google.cloud.automl.v1.NormalizedVertex.Builder, + com.google.cloud.automl.v1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.NormalizedVertex, com.google.cloud.automl.v1.NormalizedVertex.Builder, com.google.cloud.automl.v1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.NormalizedVertex, + com.google.cloud.automl.v1.NormalizedVertex.Builder, + com.google.cloud.automl.v1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -819,9 +911,9 @@ public com.google.cloud.automl.v1.NormalizedVertex.Builder addNormalizedVertices } return normalizedVerticesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,12 +923,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BoundingPoly) private static final com.google.cloud.automl.v1.BoundingPoly DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BoundingPoly(); } @@ -845,16 +937,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -869,6 +961,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java index 7c7af0a67..f05c8f55d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BoundingPolyOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/geometry.proto package com.google.cloud.automl.v1; -public interface BoundingPolyOrBuilder extends +public interface BoundingPolyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ - java.util.List - getNormalizedVerticesList(); + java.util.List getNormalizedVerticesList(); /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -25,6 +44,8 @@ public interface BoundingPolyOrBuilder extends */ com.google.cloud.automl.v1.NormalizedVertex getNormalizedVertices(int index); /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -33,21 +54,24 @@ public interface BoundingPolyOrBuilder extends */ int getNormalizedVerticesCount(); /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; */ - com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( - int index); + com.google.cloud.automl.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java index 1bfea6061..7a0b4ed82 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotation.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/classification.proto package com.google.cloud.automl.v1; /** + * + * *
  * Contains annotation details specific to classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ClassificationAnnotation} */ -public final class ClassificationAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ClassificationAnnotation) ClassificationAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassificationAnnotation.newBuilder() to construct. private ClassificationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClassificationAnnotation() { - } + + private ClassificationAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClassificationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,46 +68,50 @@ private ClassificationAnnotation( case 0: done = true; break; - case 13: { - - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 13: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationAnnotation.class, com.google.cloud.automl.v1.ClassificationAnnotation.Builder.class); + com.google.cloud.automl.v1.ClassificationAnnotation.class, + com.google.cloud.automl.v1.ClassificationAnnotation.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 that the annotation is positive. If a user
@@ -101,6 +121,7 @@ private ClassificationAnnotation(
    * 
* * float score = 1; + * * @return The score. */ @java.lang.Override @@ -109,6 +130,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +142,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (score_ != 0F) { output.writeFloat(1, score_); } @@ -135,8 +156,7 @@ public int getSerializedSize() { size = 0; if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -146,16 +166,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ClassificationAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1.ClassificationAnnotation other = (com.google.cloud.automl.v1.ClassificationAnnotation) obj; + com.google.cloud.automl.v1.ClassificationAnnotation other = + (com.google.cloud.automl.v1.ClassificationAnnotation) obj; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -168,125 +188,133 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ClassificationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ClassificationAnnotation 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.v1.ClassificationAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ClassificationAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ClassificationAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ClassificationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.ClassificationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains annotation details specific to classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ClassificationAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ClassificationAnnotation) com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationAnnotation.class, com.google.cloud.automl.v1.ClassificationAnnotation.Builder.class); + com.google.cloud.automl.v1.ClassificationAnnotation.class, + com.google.cloud.automl.v1.ClassificationAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1.ClassificationAnnotation.newBuilder() @@ -294,16 +322,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -313,9 +340,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationAnnotation_descriptor; } @java.lang.Override @@ -334,7 +361,8 @@ public com.google.cloud.automl.v1.ClassificationAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1.ClassificationAnnotation buildPartial() { - com.google.cloud.automl.v1.ClassificationAnnotation result = new com.google.cloud.automl.v1.ClassificationAnnotation(this); + com.google.cloud.automl.v1.ClassificationAnnotation result = + new com.google.cloud.automl.v1.ClassificationAnnotation(this); result.score_ = score_; onBuilt(); return result; @@ -344,38 +372,39 @@ public com.google.cloud.automl.v1.ClassificationAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ClassificationAnnotation) { - return mergeFrom((com.google.cloud.automl.v1.ClassificationAnnotation)other); + return mergeFrom((com.google.cloud.automl.v1.ClassificationAnnotation) other); } else { super.mergeFrom(other); return this; @@ -383,7 +412,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationAnnotation other) { - if (other == com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.ClassificationAnnotation.getDefaultInstance()) + return this; if (other.getScore() != 0F) { setScore(other.getScore()); } @@ -406,7 +436,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ClassificationAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ClassificationAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -416,8 +447,10 @@ public Builder mergeFrom( return this; } - private float score_ ; + private float score_; /** + * + * *
      * Output only. A confidence estimate between 0.0 and 1.0. A higher value
      * means greater confidence that the annotation is positive. If a user
@@ -427,6 +460,7 @@ public Builder mergeFrom(
      * 
* * float score = 1; + * * @return The score. */ @java.lang.Override @@ -434,6 +468,8 @@ public float getScore() { return score_; } /** + * + * *
      * Output only. A confidence estimate between 0.0 and 1.0. A higher value
      * means greater confidence that the annotation is positive. If a user
@@ -443,16 +479,19 @@ public float getScore() {
      * 
* * float score = 1; + * * @param value The score to set. * @return This builder for chaining. */ 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 that the annotation is positive. If a user
@@ -462,17 +501,18 @@ public Builder setScore(float value) {
      * 
* * float score = 1; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -482,12 +522,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ClassificationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ClassificationAnnotation) private static final com.google.cloud.automl.v1.ClassificationAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ClassificationAnnotation(); } @@ -496,16 +536,16 @@ public static com.google.cloud.automl.v1.ClassificationAnnotation getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -520,6 +560,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ClassificationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java index 9899f91fd..5ccb0a082 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/classification.proto package com.google.cloud.automl.v1; -public interface ClassificationAnnotationOrBuilder extends +public interface ClassificationAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. A confidence estimate between 0.0 and 1.0. A higher value
    * means greater confidence that the annotation is positive. If a user
@@ -17,6 +35,7 @@ public interface ClassificationAnnotationOrBuilder extends
    * 
* * float score = 1; + * * @return The score. */ float getScore(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java index f7fc7657c..ac1d4d9b8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetrics.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/classification.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model evaluation metrics for classification problems.
  * Note: For Video Classification this metrics only describe quality of the
@@ -12,15 +29,17 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics}
  */
-public final class ClassificationEvaluationMetrics extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ClassificationEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics)
     ClassificationEvaluationMetricsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ClassificationEvaluationMetrics.newBuilder() to construct.
-  private ClassificationEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ClassificationEvaluationMetrics(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ClassificationEvaluationMetrics() {
     confidenceMetricsEntry_ = java.util.Collections.emptyList();
     annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -28,16 +47,15 @@ private ClassificationEvaluationMetrics() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ClassificationEvaluationMetrics();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ClassificationEvaluationMetrics(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,66 +75,79 @@ private ClassificationEvaluationMetrics(
           case 0:
             done = true;
             break;
-          case 13: {
+          case 13:
+            {
+              auPrc_ = input.readFloat();
+              break;
+            }
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                confidenceMetricsEntry_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.automl.v1.ClassificationEvaluationMetrics
+                            .ConfidenceMetricsEntry>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              confidenceMetricsEntry_.add(
+                  input.readMessage(
+                      com.google.cloud.automl.v1.ClassificationEvaluationMetrics
+                          .ConfidenceMetricsEntry.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 34:
+            {
+              com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder
+                  subBuilder = null;
+              if (confusionMatrix_ != null) {
+                subBuilder = confusionMatrix_.toBuilder();
+              }
+              confusionMatrix_ =
+                  input.readMessage(
+                      com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(confusionMatrix_);
+                confusionMatrix_ = subBuilder.buildPartial();
+              }
 
-            auPrc_ = input.readFloat();
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              confidenceMetricsEntry_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            confidenceMetricsEntry_.add(
-                input.readMessage(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder subBuilder = null;
-            if (confusionMatrix_ != null) {
-              subBuilder = confusionMatrix_.toBuilder();
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                annotationSpecId_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              annotationSpecId_.add(s);
+              break;
             }
-            confusionMatrix_ = input.readMessage(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(confusionMatrix_);
-              confusionMatrix_ = subBuilder.buildPartial();
+          case 53:
+            {
+              auRoc_ = input.readFloat();
+              break;
             }
-
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              annotationSpecId_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 61:
+            {
+              logLoss_ = input.readFloat();
+              break;
             }
-            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;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         confidenceMetricsEntry_ = java.util.Collections.unmodifiableList(confidenceMetricsEntry_);
@@ -128,35 +159,44 @@ private ClassificationEvaluationMetrics(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1.ClassificationProto
+        .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable
+    return com.google.cloud.automl.v1.ClassificationProto
+        .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.ClassificationEvaluationMetrics.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder.class);
+            com.google.cloud.automl.v1.ClassificationEvaluationMetrics.class,
+            com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder.class);
   }
 
-  public interface ConfidenceMetricsEntryOrBuilder extends
+  public interface ConfidenceMetricsEntryOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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; + * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** + * + * *
      * Output only. Metrics are computed with an assumption that the model
      * always returns at most this many predictions (ordered by their score,
@@ -164,52 +204,67 @@ public interface ConfidenceMetricsEntryOrBuilder extends
      * 
* * int32 position_threshold = 14; + * * @return The positionThreshold. */ int getPositionThreshold(); /** + * + * *
      * Output only. Recall (True Positive Rate) for the given confidence
      * threshold.
      * 
* * float recall = 2; + * * @return The recall. */ float getRecall(); /** + * + * *
      * Output only. Precision for the given confidence threshold.
      * 
* * float precision = 3; + * * @return The precision. */ float getPrecision(); /** + * + * *
      * Output only. False Positive Rate for the given confidence threshold.
      * 
* * float false_positive_rate = 8; + * * @return The falsePositiveRate. */ float getFalsePositiveRate(); /** + * + * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 4; + * * @return The f1Score. */ float getF1Score(); /** + * + * *
      * Output only. The Recall (True Positive Rate) when only considering the
      * label that has the highest prediction score and not below the confidence
@@ -217,11 +272,14 @@ public interface ConfidenceMetricsEntryOrBuilder extends
      * 
* * float recall_at1 = 5; + * * @return The recallAt1. */ float getRecallAt1(); /** + * + * *
      * Output only. The precision when only considering the label that has the
      * highest prediction score and not below the confidence threshold for each
@@ -229,11 +287,14 @@ public interface ConfidenceMetricsEntryOrBuilder extends
      * 
* * float precision_at1 = 6; + * * @return The precisionAt1. */ float getPrecisionAt1(); /** + * + * *
      * Output only. The False Positive Rate when only considering the label that
      * has the highest prediction score and not below the confidence threshold
@@ -241,95 +302,113 @@ public interface ConfidenceMetricsEntryOrBuilder extends
      * 
* * float false_positive_rate_at1 = 9; + * * @return The falsePositiveRateAt1. */ float getFalsePositiveRateAt1(); /** + * + * *
      * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
      * 
* * float f1_score_at1 = 7; + * * @return The f1ScoreAt1. */ float getF1ScoreAt1(); /** + * + * *
      * Output only. The number of model created labels that match a ground truth
      * label.
      * 
* * int64 true_positive_count = 10; + * * @return The truePositiveCount. */ long getTruePositiveCount(); /** + * + * *
      * Output only. The number of model created labels that do not match a
      * ground truth label.
      * 
* * int64 false_positive_count = 11; + * * @return The falsePositiveCount. */ long getFalsePositiveCount(); /** + * + * *
      * Output only. The number of ground truth labels that are not matched
      * by a model created label.
      * 
* * int64 false_negative_count = 12; + * * @return The falseNegativeCount. */ 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; + * * @return The trueNegativeCount. */ long getTrueNegativeCount(); } /** + * + * *
    * Metrics for a single confidence threshold.
    * 
* - * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code + * google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) ConfidenceMetricsEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfidenceMetricsEntry() { - } + + private ConfidenceMetricsEntry() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -348,117 +427,124 @@ private ConfidenceMetricsEntry( 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; - } - case 45: { - - recallAt1_ = input.readFloat(); - break; - } - case 53: { - - precisionAt1_ = input.readFloat(); - break; - } - case 61: { - - 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)) { - done = true; + case 13: + { + confidenceThreshold_ = input.readFloat(); + break; + } + case 21: + { + recall_ = input.readFloat(); + break; + } + case 29: + { + precision_ = input.readFloat(); + break; + } + case 37: + { + f1Score_ = input.readFloat(); + break; + } + case 45: + { + recallAt1_ = input.readFloat(); + break; + } + case 53: + { + precisionAt1_ = input.readFloat(); + break; + } + case 61: + { + 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)) { + done = true; + } + break; } - 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); + 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.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .class, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .Builder.class); } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; 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; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -469,6 +555,8 @@ public float getConfidenceThreshold() { 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,
@@ -476,6 +564,7 @@ public float getConfidenceThreshold() {
      * 
* * int32 position_threshold = 14; + * * @return The positionThreshold. */ @java.lang.Override @@ -486,12 +575,15 @@ public int getPositionThreshold() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** + * + * *
      * Output only. Recall (True Positive Rate) for the given confidence
      * threshold.
      * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -502,11 +594,14 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** + * + * *
      * Output only. Precision for the given confidence threshold.
      * 
* * float precision = 3; + * * @return The precision. */ @java.lang.Override @@ -517,11 +612,14 @@ public float getPrecision() { 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; + * * @return The falsePositiveRate. */ @java.lang.Override @@ -532,11 +630,14 @@ public float getFalsePositiveRate() { 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; + * * @return The f1Score. */ @java.lang.Override @@ -547,6 +648,8 @@ public float getF1Score() { public static final int RECALL_AT1_FIELD_NUMBER = 5; 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
@@ -554,6 +657,7 @@ public float getF1Score() {
      * 
* * float recall_at1 = 5; + * * @return The recallAt1. */ @java.lang.Override @@ -564,6 +668,8 @@ public float getRecallAt1() { public static final int PRECISION_AT1_FIELD_NUMBER = 6; private float precisionAt1_; /** + * + * *
      * Output only. The precision when only considering the label that has the
      * highest prediction score and not below the confidence threshold for each
@@ -571,6 +677,7 @@ public float getRecallAt1() {
      * 
* * float precision_at1 = 6; + * * @return The precisionAt1. */ @java.lang.Override @@ -581,6 +688,8 @@ public float getPrecisionAt1() { 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
@@ -588,6 +697,7 @@ public float getPrecisionAt1() {
      * 
* * float false_positive_rate_at1 = 9; + * * @return The falsePositiveRateAt1. */ @java.lang.Override @@ -598,11 +708,14 @@ public float getFalsePositiveRateAt1() { public static final int F1_SCORE_AT1_FIELD_NUMBER = 7; private float f1ScoreAt1_; /** + * + * *
      * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
      * 
* * float f1_score_at1 = 7; + * * @return The f1ScoreAt1. */ @java.lang.Override @@ -613,12 +726,15 @@ public float getF1ScoreAt1() { 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; + * * @return The truePositiveCount. */ @java.lang.Override @@ -629,12 +745,15 @@ public long getTruePositiveCount() { 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; + * * @return The falsePositiveCount. */ @java.lang.Override @@ -645,12 +764,15 @@ public long getFalsePositiveCount() { 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; + * * @return The falseNegativeCount. */ @java.lang.Override @@ -661,12 +783,15 @@ public long getFalseNegativeCount() { 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; + * * @return The trueNegativeCount. */ @java.lang.Override @@ -675,6 +800,7 @@ public long getTrueNegativeCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -686,8 +812,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -740,60 +865,46 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, precision_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, f1Score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); } if (recallAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, recallAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, recallAt1_); } if (precisionAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, precisionAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, precisionAt1_); } if (f1ScoreAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, f1ScoreAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, f1ScoreAt1_); } if (falsePositiveRate_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(8, falsePositiveRate_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, falsePositiveRate_); } if (falsePositiveRateAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(9, falsePositiveRateAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, falsePositiveRateAt1_); } if (truePositiveCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, truePositiveCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, truePositiveCount_); } if (falsePositiveCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, falsePositiveCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, falsePositiveCount_); } if (falseNegativeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, falseNegativeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, falseNegativeCount_); } if (trueNegativeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(13, trueNegativeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, trueNegativeCount_); } if (positionThreshold_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, positionThreshold_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, positionThreshold_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -803,50 +914,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry)) { + if (!(obj + instanceof + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry)) { return super.equals(obj); } - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry other = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) obj; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry other = + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) - != java.lang.Float.floatToIntBits( - other.getConfidenceThreshold())) return false; - if (getPositionThreshold() - != other.getPositionThreshold()) return false; + != 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; + != java.lang.Float.floatToIntBits(other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits( - other.getPrecision())) return false; + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getFalsePositiveRate()) - != java.lang.Float.floatToIntBits( - other.getFalsePositiveRate())) return false; + != java.lang.Float.floatToIntBits(other.getFalsePositiveRate())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits( - other.getF1Score())) return false; + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; if (java.lang.Float.floatToIntBits(getRecallAt1()) - != java.lang.Float.floatToIntBits( - other.getRecallAt1())) return false; + != java.lang.Float.floatToIntBits(other.getRecallAt1())) return false; if (java.lang.Float.floatToIntBits(getPrecisionAt1()) - != java.lang.Float.floatToIntBits( - other.getPrecisionAt1())) return false; + != java.lang.Float.floatToIntBits(other.getPrecisionAt1())) return false; if (java.lang.Float.floatToIntBits(getFalsePositiveRateAt1()) - != java.lang.Float.floatToIntBits( - other.getFalsePositiveRateAt1())) return false; + != 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; + != 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; } @@ -859,133 +959,134 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidenceThreshold()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecision()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits(getFalsePositiveRate()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1Score()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); hash = (37 * hash) + RECALL_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRecallAt1()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecallAt1()); hash = (37 * hash) + PRECISION_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecisionAt1()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits(getFalsePositiveRateAt1()); hash = (37 * hash) + F1_SCORE_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1ScoreAt1()); + 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 = (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 = (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 = (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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrueNegativeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.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.v1.ClassificationEvaluationMetrics.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); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -995,44 +1096,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metrics for a single confidence threshold.
      * 
* - * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code + * google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .class, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .Builder.class); } - // Construct using com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() + // Construct using + // com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1068,19 +1177,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance(); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry build() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry result = buildPartial(); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + build() { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1088,8 +1201,11 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry buildPartial() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry result = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry(this); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + buildPartial() { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry result = + new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry( + this); result.confidenceThreshold_ = confidenceThreshold_; result.positionThreshold_ = positionThreshold_; result.recall_ = recall_; @@ -1112,46 +1228,56 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) { - return mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry)other); + if (other + instanceof + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) { + return mergeFrom( + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry other) { - if (other == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry other) { + if (other + == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .getDefaultInstance()) return this; if (other.getConfidenceThreshold() != 0F) { setConfidenceThreshold(other.getConfidenceThreshold()); } @@ -1209,11 +1335,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parsedMessage = null; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1223,14 +1352,17 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_ ; + 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; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -1238,39 +1370,47 @@ 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; + * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private int positionThreshold_ ; + 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,
@@ -1278,6 +1418,7 @@ public Builder clearConfidenceThreshold() {
        * 
* * int32 position_threshold = 14; + * * @return The positionThreshold. */ @java.lang.Override @@ -1285,6 +1426,8 @@ 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,
@@ -1292,16 +1435,19 @@ public int getPositionThreshold() {
        * 
* * int32 position_threshold = 14; + * * @param value The positionThreshold to set. * @return This builder for chaining. */ 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,
@@ -1309,23 +1455,27 @@ public Builder setPositionThreshold(int value) {
        * 
* * int32 position_threshold = 14; + * * @return This builder for chaining. */ public Builder clearPositionThreshold() { - + positionThreshold_ = 0; onChanged(); return this; } - private float recall_ ; + private float recall_; /** + * + * *
        * Output only. Recall (True Positive Rate) for the given confidence
        * threshold.
        * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -1333,44 +1483,53 @@ public float getRecall() { return recall_; } /** + * + * *
        * Output only. Recall (True Positive Rate) for the given confidence
        * threshold.
        * 
* * float recall = 2; + * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Recall (True Positive Rate) for the given confidence
        * threshold.
        * 
* * float recall = 2; + * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_ ; + private float precision_; /** + * + * *
        * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; + * * @return The precision. */ @java.lang.Override @@ -1378,42 +1537,51 @@ public float getPrecision() { return precision_; } /** + * + * *
        * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float falsePositiveRate_ ; + private float falsePositiveRate_; /** + * + * *
        * Output only. False Positive Rate for the given confidence threshold.
        * 
* * float false_positive_rate = 8; + * * @return The falsePositiveRate. */ @java.lang.Override @@ -1421,42 +1589,51 @@ public float getFalsePositiveRate() { return falsePositiveRate_; } /** + * + * *
        * Output only. False Positive Rate for the given confidence threshold.
        * 
* * float false_positive_rate = 8; + * * @param value The falsePositiveRate to set. * @return This builder for chaining. */ public Builder setFalsePositiveRate(float value) { - + falsePositiveRate_ = value; onChanged(); return this; } /** + * + * *
        * Output only. False Positive Rate for the given confidence threshold.
        * 
* * float false_positive_rate = 8; + * * @return This builder for chaining. */ public Builder clearFalsePositiveRate() { - + falsePositiveRate_ = 0F; onChanged(); return this; } - private float f1Score_ ; + private float f1Score_; /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @return The f1Score. */ @java.lang.Override @@ -1464,37 +1641,45 @@ public float getF1Score() { return f1Score_; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - private float recallAt1_ ; + 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
@@ -1502,6 +1687,7 @@ public Builder clearF1Score() {
        * 
* * float recall_at1 = 5; + * * @return The recallAt1. */ @java.lang.Override @@ -1509,6 +1695,8 @@ 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
@@ -1516,16 +1704,19 @@ public float getRecallAt1() {
        * 
* * float recall_at1 = 5; + * * @param value The recallAt1 to set. * @return This builder for chaining. */ public Builder setRecallAt1(float value) { - + 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
@@ -1533,17 +1724,20 @@ public Builder setRecallAt1(float value) {
        * 
* * float recall_at1 = 5; + * * @return This builder for chaining. */ public Builder clearRecallAt1() { - + recallAt1_ = 0F; onChanged(); return this; } - private float precisionAt1_ ; + private float precisionAt1_; /** + * + * *
        * Output only. The precision when only considering the label that has the
        * highest prediction score and not below the confidence threshold for each
@@ -1551,6 +1745,7 @@ public Builder clearRecallAt1() {
        * 
* * float precision_at1 = 6; + * * @return The precisionAt1. */ @java.lang.Override @@ -1558,6 +1753,8 @@ public float getPrecisionAt1() { return precisionAt1_; } /** + * + * *
        * Output only. The precision when only considering the label that has the
        * highest prediction score and not below the confidence threshold for each
@@ -1565,16 +1762,19 @@ public float getPrecisionAt1() {
        * 
* * float precision_at1 = 6; + * * @param value The precisionAt1 to set. * @return This builder for chaining. */ public Builder setPrecisionAt1(float value) { - + precisionAt1_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The precision when only considering the label that has the
        * highest prediction score and not below the confidence threshold for each
@@ -1582,17 +1782,20 @@ public Builder setPrecisionAt1(float value) {
        * 
* * float precision_at1 = 6; + * * @return This builder for chaining. */ public Builder clearPrecisionAt1() { - + precisionAt1_ = 0F; onChanged(); return this; } - private float falsePositiveRateAt1_ ; + 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
@@ -1600,6 +1803,7 @@ public Builder clearPrecisionAt1() {
        * 
* * float false_positive_rate_at1 = 9; + * * @return The falsePositiveRateAt1. */ @java.lang.Override @@ -1607,6 +1811,8 @@ public float getFalsePositiveRateAt1() { return falsePositiveRateAt1_; } /** + * + * *
        * Output only. The False Positive Rate when only considering the label that
        * has the highest prediction score and not below the confidence threshold
@@ -1614,16 +1820,19 @@ public float getFalsePositiveRateAt1() {
        * 
* * float false_positive_rate_at1 = 9; + * * @param value The falsePositiveRateAt1 to set. * @return This builder for chaining. */ public Builder setFalsePositiveRateAt1(float value) { - + falsePositiveRateAt1_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The False Positive Rate when only considering the label that
        * has the highest prediction score and not below the confidence threshold
@@ -1631,22 +1840,26 @@ public Builder setFalsePositiveRateAt1(float value) {
        * 
* * float false_positive_rate_at1 = 9; + * * @return This builder for chaining. */ public Builder clearFalsePositiveRateAt1() { - + falsePositiveRateAt1_ = 0F; onChanged(); return this; } - private float f1ScoreAt1_ ; + private float f1ScoreAt1_; /** + * + * *
        * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; + * * @return The f1ScoreAt1. */ @java.lang.Override @@ -1654,43 +1867,52 @@ public float getF1ScoreAt1() { return f1ScoreAt1_; } /** + * + * *
        * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; + * * @param value The f1ScoreAt1 to set. * @return This builder for chaining. */ public Builder setF1ScoreAt1(float value) { - + f1ScoreAt1_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; + * * @return This builder for chaining. */ public Builder clearF1ScoreAt1() { - + f1ScoreAt1_ = 0F; onChanged(); return this; } - private long truePositiveCount_ ; + private long truePositiveCount_; /** + * + * *
        * Output only. The number of model created labels that match a ground truth
        * label.
        * 
* * int64 true_positive_count = 10; + * * @return The truePositiveCount. */ @java.lang.Override @@ -1698,45 +1920,54 @@ public long getTruePositiveCount() { return truePositiveCount_; } /** + * + * *
        * Output only. The number of model created labels that match a ground truth
        * label.
        * 
* * int64 true_positive_count = 10; + * * @param value The truePositiveCount to set. * @return This builder for chaining. */ public Builder setTruePositiveCount(long value) { - + truePositiveCount_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The number of model created labels that match a ground truth
        * label.
        * 
* * int64 true_positive_count = 10; + * * @return This builder for chaining. */ public Builder clearTruePositiveCount() { - + truePositiveCount_ = 0L; onChanged(); return this; } - private long falsePositiveCount_ ; + private long falsePositiveCount_; /** + * + * *
        * Output only. The number of model created labels that do not match a
        * ground truth label.
        * 
* * int64 false_positive_count = 11; + * * @return The falsePositiveCount. */ @java.lang.Override @@ -1744,45 +1975,54 @@ public long getFalsePositiveCount() { return falsePositiveCount_; } /** + * + * *
        * Output only. The number of model created labels that do not match a
        * ground truth label.
        * 
* * int64 false_positive_count = 11; + * * @param value The falsePositiveCount to set. * @return This builder for chaining. */ public Builder setFalsePositiveCount(long value) { - + falsePositiveCount_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The number of model created labels that do not match a
        * ground truth label.
        * 
* * int64 false_positive_count = 11; + * * @return This builder for chaining. */ public Builder clearFalsePositiveCount() { - + falsePositiveCount_ = 0L; onChanged(); return this; } - private long falseNegativeCount_ ; + 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; + * * @return The falseNegativeCount. */ @java.lang.Override @@ -1790,45 +2030,54 @@ public long getFalseNegativeCount() { return falseNegativeCount_; } /** + * + * *
        * Output only. The number of ground truth labels that are not matched
        * by a model created label.
        * 
* * int64 false_negative_count = 12; + * * @param value The falseNegativeCount to set. * @return This builder for chaining. */ public Builder setFalseNegativeCount(long value) { - + falseNegativeCount_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The number of ground truth labels that are not matched
        * by a model created label.
        * 
* * int64 false_negative_count = 12; + * * @return This builder for chaining. */ public Builder clearFalseNegativeCount() { - + falseNegativeCount_ = 0L; onChanged(); return this; } - private long trueNegativeCount_ ; + 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; + * * @return The trueNegativeCount. */ @java.lang.Override @@ -1836,36 +2085,43 @@ public long getTrueNegativeCount() { return 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; + * * @param value The trueNegativeCount to set. * @return This builder for chaining. */ public Builder setTrueNegativeCount(long value) { - + trueNegativeCount_ = value; onChanged(); return this; } /** + * + * *
        * 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; + * * @return This builder for chaining. */ public Builder clearTrueNegativeCount() { - + trueNegativeCount_ = 0L; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1878,30 +2134,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) - private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstance() { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.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); - } - }; + 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; @@ -1913,17 +2173,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ConfusionMatrixOrBuilder extends + public interface ConfusionMatrixOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -1932,11 +2195,13 @@ public interface ConfusionMatrixOrBuilder extends
      * 
* * repeated string annotation_spec_id = 1; + * * @return A list containing the annotationSpecId. */ - java.util.List - getAnnotationSpecIdList(); + java.util.List getAnnotationSpecIdList(); /** + * + * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -1945,10 +2210,13 @@ public interface ConfusionMatrixOrBuilder extends
      * 
* * repeated string annotation_spec_id = 1; + * * @return The count of annotationSpecId. */ int getAnnotationSpecIdCount(); /** + * + * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -1957,11 +2225,14 @@ public interface ConfusionMatrixOrBuilder extends
      * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ java.lang.String getAnnotationSpecId(int index); /** + * + * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -1970,13 +2241,15 @@ public interface ConfusionMatrixOrBuilder extends
      * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index); + com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); /** + * + * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -1987,11 +2260,13 @@ public interface ConfusionMatrixOrBuilder extends
      * 
* * repeated string display_name = 3; + * * @return A list containing the displayName. */ - java.util.List - getDisplayNameList(); + java.util.List getDisplayNameList(); /** + * + * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -2002,10 +2277,13 @@ public interface ConfusionMatrixOrBuilder extends
      * 
* * repeated string display_name = 3; + * * @return The count of displayName. */ int getDisplayNameCount(); /** + * + * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -2016,11 +2294,14 @@ public interface ConfusionMatrixOrBuilder extends
      * 
* * repeated string display_name = 3; + * * @param index The index of the element to return. * @return The displayName at the given index. */ java.lang.String getDisplayName(int index); /** + * + * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -2031,13 +2312,15 @@ public interface ConfusionMatrixOrBuilder extends
      * 
* * repeated string display_name = 3; + * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - com.google.protobuf.ByteString - getDisplayNameBytes(int index); + com.google.protobuf.ByteString getDisplayNameBytes(int index); /** + * + * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -2046,11 +2329,15 @@ public interface ConfusionMatrixOrBuilder extends
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - java.util.List + java.util.List getRowList(); /** + * + * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -2059,10 +2346,15 @@ public interface ConfusionMatrixOrBuilder extends
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow( + int index); /** + * + * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -2071,10 +2363,14 @@ public interface ConfusionMatrixOrBuilder extends
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ int getRowCount(); /** + * + * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -2083,11 +2379,18 @@ public interface ConfusionMatrixOrBuilder extends
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .RowOrBuilder> getRowOrBuilderList(); /** + * + * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -2096,27 +2399,32 @@ public interface ConfusionMatrixOrBuilder extends
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( - int index); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder + getRowOrBuilder(int index); } /** + * + * *
    * Confusion matrix of the model running the classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix} */ - public static final class ConfusionMatrix extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ConfusionMatrix extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) ConfusionMatrixOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfusionMatrix.newBuilder() to construct. private ConfusionMatrix(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfusionMatrix() { annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; displayName_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -2125,16 +2433,15 @@ private ConfusionMatrix() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfusionMatrix(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfusionMatrix( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2154,47 +2461,55 @@ private ConfusionMatrix( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + annotationSpecId_.add(s); + break; } - annotationSpecId_.add(s); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - row_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 18: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + row_ = + new java.util.ArrayList< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .Row>(); + mutable_bitField0_ |= 0x00000004; + } + row_.add( + input.readMessage( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .Row.parser(), + extensionRegistry)); + break; } - row_.add( - input.readMessage(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.parser(), extensionRegistry)); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - displayName_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + displayName_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + displayName_.add(s); + break; } - displayName_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); @@ -2209,24 +2524,31 @@ private ConfusionMatrix( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder.class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.class, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder + .class); } - public interface RowOrBuilder extends + public interface RowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2235,10 +2557,13 @@ public interface RowOrBuilder extends
        * 
* * repeated int32 example_count = 1; + * * @return A list containing the exampleCount. */ java.util.List getExampleCountList(); /** + * + * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2247,10 +2572,13 @@ public interface RowOrBuilder extends
        * 
* * repeated int32 example_count = 1; + * * @return The count of exampleCount. */ int getExampleCountCount(); /** + * + * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2259,43 +2587,47 @@ public interface RowOrBuilder extends
        * 
* * repeated int32 example_count = 1; + * * @param index The index of the element to return. * @return The exampleCount at the given index. */ int getExampleCount(int index); } /** + * + * *
      * Output only. A row in the confusion matrix.
      * 
* - * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} + * Protobuf type {@code + * google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} */ - public static final class Row extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Row extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) RowOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Row() { exampleCount_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Row(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Row( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2315,41 +2647,43 @@ private Row( case 0: done = true; break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exampleCount_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - exampleCount_.addInt(input.readInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - exampleCount_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { + case 8: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exampleCount_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } exampleCount_.addInt(input.readInt32()); + break; } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + exampleCount_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + exampleCount_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { exampleCount_.makeImmutable(); // C @@ -2358,22 +2692,29 @@ private Row( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .class, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .Builder.class); } public static final int EXAMPLE_COUNT_FIELD_NUMBER = 1; private com.google.protobuf.Internal.IntList exampleCount_; /** + * + * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2382,14 +2723,16 @@ private Row(
        * 
* * repeated int32 example_count = 1; + * * @return A list containing the exampleCount. */ @java.lang.Override - public java.util.List - getExampleCountList() { + public java.util.List getExampleCountList() { return exampleCount_; } /** + * + * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2398,12 +2741,15 @@ private Row(
        * 
* * repeated int32 example_count = 1; + * * @return The count of exampleCount. */ public int getExampleCountCount() { return exampleCount_.size(); } /** + * + * *
        * Output only. Value of the specific cell in the confusion matrix.
        * The number of values each row has (i.e. the length of the row) is equal
@@ -2412,15 +2758,18 @@ public int getExampleCountCount() {
        * 
* * repeated int32 example_count = 1; + * * @param index The index of the element to return. * @return The exampleCount at the given index. */ public int getExampleCount(int index) { return exampleCount_.getInt(index); } + private int exampleCountMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2432,8 +2781,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getExampleCountList().size() > 0) { output.writeUInt32NoTag(10); @@ -2454,14 +2802,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < exampleCount_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(exampleCount_.getInt(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + exampleCount_.getInt(i)); } size += dataSize; if (!getExampleCountList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } exampleCountMemoizedSerializedSize = dataSize; } @@ -2473,15 +2821,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row)) { + if (!(obj + instanceof + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row)) { return super.equals(obj); } - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row other = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) obj; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row other = + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) obj; - if (!getExampleCountList() - .equals(other.getExampleCountList())) return false; + if (!getExampleCountList().equals(other.getExampleCountList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2502,88 +2852,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2593,44 +2959,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Output only. A row in the confusion matrix.
        * 
* - * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} + * Protobuf type {@code + * google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .class, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .Builder.class); } - // Construct using com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.newBuilder() + // Construct using + // com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2640,19 +3014,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance(); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row build() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = buildPartial(); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + build() { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2660,8 +3038,11 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row buildPartial() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row(this); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + buildPartial() { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = + new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row( + this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { exampleCount_.makeImmutable(); @@ -2676,46 +3057,56 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) { - return mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row)other); + if (other + instanceof + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) { + return mergeFrom( + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row other) { - if (other == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row other) { + if (other + == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .getDefaultInstance()) return this; if (!other.exampleCount_.isEmpty()) { if (exampleCount_.isEmpty()) { exampleCount_ = other.exampleCount_; @@ -2741,11 +3132,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row parsedMessage = null; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2754,16 +3148,20 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Internal.IntList exampleCount_ = emptyIntList(); + private void ensureExampleCountIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { exampleCount_ = mutableCopy(exampleCount_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -2772,14 +3170,17 @@ private void ensureExampleCountIsMutable() {
          * 
* * repeated int32 example_count = 1; + * * @return A list containing the exampleCount. */ - public java.util.List - getExampleCountList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(exampleCount_) : exampleCount_; + public java.util.List getExampleCountList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(exampleCount_) + : exampleCount_; } /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -2788,12 +3189,15 @@ private void ensureExampleCountIsMutable() {
          * 
* * repeated int32 example_count = 1; + * * @return The count of exampleCount. */ public int getExampleCountCount() { return exampleCount_.size(); } /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -2802,6 +3206,7 @@ public int getExampleCountCount() {
          * 
* * repeated int32 example_count = 1; + * * @param index The index of the element to return. * @return The exampleCount at the given index. */ @@ -2809,6 +3214,8 @@ public int getExampleCount(int index) { return exampleCount_.getInt(index); } /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -2817,18 +3224,20 @@ public int getExampleCount(int index) {
          * 
* * repeated int32 example_count = 1; + * * @param index The index to set the value at. * @param value The exampleCount to set. * @return This builder for chaining. */ - public Builder setExampleCount( - int index, int value) { + public Builder setExampleCount(int index, int value) { ensureExampleCountIsMutable(); exampleCount_.setInt(index, value); onChanged(); return this; } /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -2837,6 +3246,7 @@ public Builder setExampleCount(
          * 
* * repeated int32 example_count = 1; + * * @param value The exampleCount to add. * @return This builder for chaining. */ @@ -2847,6 +3257,8 @@ public Builder addExampleCount(int value) { return this; } /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -2855,18 +3267,19 @@ public Builder addExampleCount(int value) {
          * 
* * repeated int32 example_count = 1; + * * @param values The exampleCount to add. * @return This builder for chaining. */ - public Builder addAllExampleCount( - java.lang.Iterable values) { + public Builder addAllExampleCount(java.lang.Iterable values) { ensureExampleCountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exampleCount_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exampleCount_); onChanged(); return this; } /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -2875,6 +3288,7 @@ public Builder addAllExampleCount(
          * 
* * repeated int32 example_count = 1; + * * @return This builder for chaining. */ public Builder clearExampleCount() { @@ -2883,6 +3297,7 @@ public Builder clearExampleCount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2895,30 +3310,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) - private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row(); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstance() { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.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); - } - }; + 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; @@ -2930,15 +3349,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList annotationSpecId_; /** + * + * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -2947,13 +3368,15 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
      * 
* * repeated string annotation_spec_id = 1; + * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList - getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { return annotationSpecId_; } /** + * + * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -2962,12 +3385,15 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
      * 
* * repeated string annotation_spec_id = 1; + * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** + * + * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -2976,6 +3402,7 @@ public int getAnnotationSpecIdCount() {
      * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -2983,6 +3410,8 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** + * + * *
      * Output only. IDs of the annotation specs used in the confusion matrix.
      * For Tables CLASSIFICATION
@@ -2991,17 +3420,19 @@ public java.lang.String getAnnotationSpecId(int index) {
      * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList displayName_; /** + * + * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -3012,13 +3443,15 @@ public java.lang.String getAnnotationSpecId(int index) {
      * 
* * repeated string display_name = 3; + * * @return A list containing the displayName. */ - public com.google.protobuf.ProtocolStringList - getDisplayNameList() { + public com.google.protobuf.ProtocolStringList getDisplayNameList() { return displayName_; } /** + * + * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -3029,12 +3462,15 @@ public java.lang.String getAnnotationSpecId(int index) {
      * 
* * repeated string display_name = 3; + * * @return The count of displayName. */ public int getDisplayNameCount() { return displayName_.size(); } /** + * + * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -3045,6 +3481,7 @@ public int getDisplayNameCount() {
      * 
* * repeated string display_name = 3; + * * @param index The index of the element to return. * @return The displayName at the given index. */ @@ -3052,6 +3489,8 @@ public java.lang.String getDisplayName(int index) { return displayName_.get(index); } /** + * + * *
      * Output only. Display name of the annotation specs used in the confusion
      * matrix, as they were at the moment of the evaluation. For Tables
@@ -3062,17 +3501,21 @@ public java.lang.String getDisplayName(int index) {
      * 
* * repeated string display_name = 3; + * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - public com.google.protobuf.ByteString - getDisplayNameBytes(int index) { + public com.google.protobuf.ByteString getDisplayNameBytes(int index) { return displayName_.getByteString(index); } public static final int ROW_FIELD_NUMBER = 2; - private java.util.List row_; + private java.util.List< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row> + row_; /** + * + * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -3081,13 +3524,19 @@ public java.lang.String getDisplayName(int index) {
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ @java.lang.Override - public java.util.List getRowList() { + public java.util.List< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row> + getRowList() { return row_; } /** + * + * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -3096,14 +3545,21 @@ public java.util.List
      *
-     * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
+     * 
+     * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
+     * 
      */
     @java.lang.Override
-    public java.util.List 
+    public java.util.List<
+            ? extends
+                com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+                    .RowOrBuilder>
         getRowOrBuilderList() {
       return row_;
     }
     /**
+     *
+     *
      * 
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -3112,13 +3568,17 @@ public java.util.List
      *
-     * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
+     * 
+     * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
+     * 
      */
     @java.lang.Override
     public int getRowCount() {
       return row_.size();
     }
     /**
+     *
+     *
      * 
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -3127,13 +3587,18 @@ public int getRowCount() {
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow( + int index) { return row_.get(index); } /** + * + * *
      * Output only. Rows in the confusion matrix. The number of rows is equal to
      * the size of `annotation_spec_id`.
@@ -3142,15 +3607,18 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
      * `annotation_spec_id[j]` by the model being evaluated.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( - int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder + getRowOrBuilder(int index) { return row_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3162,8 +3630,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < annotationSpecId_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecId_.getRaw(i)); } @@ -3191,8 +3658,7 @@ public int getSerializedSize() { size += 1 * getAnnotationSpecIdList().size(); } for (int i = 0; i < row_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, row_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, row_.get(i)); } { int dataSize = 0; @@ -3210,19 +3676,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix)) { + if (!(obj + instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix)) { return super.equals(obj); } - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix other = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) obj; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix other = + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) obj; - if (!getAnnotationSpecIdList() - .equals(other.getAnnotationSpecIdList())) return false; - if (!getDisplayNameList() - .equals(other.getDisplayNameList())) return false; - if (!getRowList() - .equals(other.getRowList())) return false; + if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; + if (!getDisplayNameList().equals(other.getDisplayNameList())) return false; + if (!getRowList().equals(other.getRowList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3251,88 +3716,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix + 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix + 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - com.google.protobuf.CodedInputStream 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3342,45 +3820,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Confusion matrix of the model running the classification.
      * 
* * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder.class); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.class, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder + .class); } - // Construct using com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder() + // Construct using + // com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRowFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -3398,19 +3883,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ClassificationProto + .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance(); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix build() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix result = buildPartial(); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3418,8 +3906,10 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix buildPartial() { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix result = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix(this); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + buildPartial() { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix result = + new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); @@ -3448,46 +3938,54 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix) { - return mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix)other); + if (other + instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) { + return mergeFrom( + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix other) { - if (other == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix other) { + if (other + == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .getDefaultInstance()) return this; if (!other.annotationSpecId_.isEmpty()) { if (annotationSpecId_.isEmpty()) { annotationSpecId_ = other.annotationSpecId_; @@ -3526,9 +4024,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetr rowBuilder_ = null; row_ = other.row_; bitField0_ = (bitField0_ & ~0x00000004); - rowBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRowFieldBuilder() : null; + rowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRowFieldBuilder() + : null; } else { rowBuilder_.addAllMessages(other.row_); } @@ -3549,11 +4048,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parsedMessage = null; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3562,16 +4064,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList annotationSpecId_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAnnotationSpecIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -3580,13 +4087,15 @@ private void ensureAnnotationSpecIdIsMutable() {
        * 
* * repeated string annotation_spec_id = 1; + * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList - getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { return annotationSpecId_.getUnmodifiableView(); } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -3595,12 +4104,15 @@ private void ensureAnnotationSpecIdIsMutable() {
        * 
* * repeated string annotation_spec_id = 1; + * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -3609,6 +4121,7 @@ public int getAnnotationSpecIdCount() {
        * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -3616,6 +4129,8 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -3624,14 +4139,16 @@ public java.lang.String getAnnotationSpecId(int index) {
        * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -3640,21 +4157,23 @@ public java.lang.String getAnnotationSpecId(int index) {
        * 
* * repeated string annotation_spec_id = 1; + * * @param index The index to set the value at. * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId( - int index, java.lang.String value) { + public Builder setAnnotationSpecId(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.set(index, value); onChanged(); return this; } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -3663,20 +4182,22 @@ public Builder setAnnotationSpecId(
        * 
* * repeated string annotation_spec_id = 1; + * * @param value The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecId( - java.lang.String value) { + public Builder addAnnotationSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -3685,18 +4206,19 @@ public Builder addAnnotationSpecId(
        * 
* * repeated string annotation_spec_id = 1; + * * @param values The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAllAnnotationSpecId( - java.lang.Iterable values) { + public Builder addAllAnnotationSpecId(java.lang.Iterable values) { ensureAnnotationSpecIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, annotationSpecId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); onChanged(); return this; } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -3705,6 +4227,7 @@ public Builder addAllAnnotationSpecId(
        * 
* * repeated string annotation_spec_id = 1; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { @@ -3714,6 +4237,8 @@ public Builder clearAnnotationSpecId() { return this; } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -3722,29 +4247,33 @@ public Builder clearAnnotationSpecId() {
        * 
* * repeated string annotation_spec_id = 1; + * * @param value The bytes of the annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList displayName_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList displayName_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDisplayNameIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { displayName_ = new com.google.protobuf.LazyStringArrayList(displayName_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -3755,13 +4284,15 @@ private void ensureDisplayNameIsMutable() {
        * 
* * repeated string display_name = 3; + * * @return A list containing the displayName. */ - public com.google.protobuf.ProtocolStringList - getDisplayNameList() { + public com.google.protobuf.ProtocolStringList getDisplayNameList() { return displayName_.getUnmodifiableView(); } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -3772,12 +4303,15 @@ private void ensureDisplayNameIsMutable() {
        * 
* * repeated string display_name = 3; + * * @return The count of displayName. */ public int getDisplayNameCount() { return displayName_.size(); } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -3788,6 +4322,7 @@ public int getDisplayNameCount() {
        * 
* * repeated string display_name = 3; + * * @param index The index of the element to return. * @return The displayName at the given index. */ @@ -3795,6 +4330,8 @@ public java.lang.String getDisplayName(int index) { return displayName_.get(index); } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -3805,14 +4342,16 @@ public java.lang.String getDisplayName(int index) {
        * 
* * repeated string display_name = 3; + * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - public com.google.protobuf.ByteString - getDisplayNameBytes(int index) { + public com.google.protobuf.ByteString getDisplayNameBytes(int index) { return displayName_.getByteString(index); } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -3823,21 +4362,23 @@ public java.lang.String getDisplayName(int index) {
        * 
* * repeated string display_name = 3; + * * @param index The index to set the value at. * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - int index, java.lang.String value) { + public Builder setDisplayName(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDisplayNameIsMutable(); + throw new NullPointerException(); + } + ensureDisplayNameIsMutable(); displayName_.set(index, value); onChanged(); return this; } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -3848,20 +4389,22 @@ public Builder setDisplayName(
        * 
* * repeated string display_name = 3; + * * @param value The displayName to add. * @return This builder for chaining. */ - public Builder addDisplayName( - java.lang.String value) { + public Builder addDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDisplayNameIsMutable(); + throw new NullPointerException(); + } + ensureDisplayNameIsMutable(); displayName_.add(value); onChanged(); return this; } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -3872,18 +4415,19 @@ public Builder addDisplayName(
        * 
* * repeated string display_name = 3; + * * @param values The displayName to add. * @return This builder for chaining. */ - public Builder addAllDisplayName( - java.lang.Iterable values) { + public Builder addAllDisplayName(java.lang.Iterable values) { ensureDisplayNameIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, displayName_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, displayName_); onChanged(); return this; } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -3894,6 +4438,7 @@ public Builder addAllDisplayName(
        * 
* * repeated string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3903,6 +4448,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -3913,34 +4460,46 @@ public Builder clearDisplayName() {
        * 
* * repeated string display_name = 3; + * * @param value The bytes of the displayName to add. * @return This builder for chaining. */ - public Builder addDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder addDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDisplayNameIsMutable(); displayName_.add(value); onChanged(); return this; } - private java.util.List row_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row> + row_ = java.util.Collections.emptyList(); + private void ensureRowIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - row_ = new java.util.ArrayList(row_); + row_ = + new java.util.ArrayList< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row>( + row_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> rowBuilder_; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .RowOrBuilder> + rowBuilder_; /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -3949,9 +4508,13 @@ private void ensureRowIsMutable() {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public java.util.List getRowList() { + public java.util.List< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row> + getRowList() { if (rowBuilder_ == null) { return java.util.Collections.unmodifiableList(row_); } else { @@ -3959,6 +4522,8 @@ public java.util.List * Output only. Rows in the confusion matrix. The number of rows is equal to * the size of `annotation_spec_id`. @@ -3967,7 +4532,9 @@ public java.util.List * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public int getRowCount() { if (rowBuilder_ == null) { @@ -3977,6 +4544,8 @@ public int getRowCount() { } } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -3985,9 +4554,12 @@ public int getRowCount() {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow( + int index) { if (rowBuilder_ == null) { return row_.get(index); } else { @@ -3995,6 +4567,8 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri } } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4003,10 +4577,13 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder setRow( - int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { + int index, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4020,6 +4597,8 @@ public Builder setRow( return this; } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4028,10 +4607,14 @@ public Builder setRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder setRow( - int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { + int index, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder + builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.set(index, builderForValue.build()); @@ -4042,6 +4625,8 @@ public Builder setRow( return this; } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4050,9 +4635,12 @@ public Builder setRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public Builder addRow(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { + public Builder addRow( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4066,6 +4654,8 @@ public Builder addRow(com.google.cloud.automl.v1.ClassificationEvaluationMetrics return this; } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4074,10 +4664,13 @@ public Builder addRow(com.google.cloud.automl.v1.ClassificationEvaluationMetrics
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder addRow( - int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { + int index, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4091,6 +4684,8 @@ public Builder addRow( return this; } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4099,10 +4694,13 @@ public Builder addRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder addRow( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder + builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.add(builderForValue.build()); @@ -4113,6 +4711,8 @@ public Builder addRow( return this; } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4121,10 +4721,14 @@ public Builder addRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder addRow( - int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { + int index, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder + builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.add(index, builderForValue.build()); @@ -4135,6 +4739,8 @@ public Builder addRow( return this; } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4143,14 +4749,19 @@ public Builder addRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder addAllRow( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .Row> + values) { if (rowBuilder_ == null) { ensureRowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, row_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, row_); onChanged(); } else { rowBuilder_.addAllMessages(values); @@ -4158,6 +4769,8 @@ public Builder addAllRow( return this; } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4166,7 +4779,9 @@ public Builder addAllRow(
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder clearRow() { if (rowBuilder_ == null) { @@ -4179,6 +4794,8 @@ public Builder clearRow() { return this; } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4187,7 +4804,9 @@ public Builder clearRow() {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder removeRow(int index) { if (rowBuilder_ == null) { @@ -4200,6 +4819,8 @@ public Builder removeRow(int index) { return this; } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4208,13 +4829,17 @@ public Builder removeRow(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder getRowBuilder( - int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder + getRowBuilder(int index) { return getRowFieldBuilder().getBuilder(index); } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4223,16 +4848,21 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( - int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder + getRowOrBuilder(int index) { if (rowBuilder_ == null) { - return row_.get(index); } else { + return row_.get(index); + } else { return rowBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4241,10 +4871,15 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public java.util.List - getRowOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .RowOrBuilder> + getRowOrBuilderList() { if (rowBuilder_ != null) { return rowBuilder_.getMessageOrBuilderList(); } else { @@ -4252,6 +4887,8 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri } } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4260,13 +4897,20 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addRowBuilder() { - return getRowFieldBuilder().addBuilder( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder + addRowBuilder() { + return getRowFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .getDefaultInstance()); } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4275,14 +4919,21 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addRowBuilder( - int index) { - return getRowFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder + addRowBuilder(int index) { + return getRowFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .getDefaultInstance()); } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4291,26 +4942,38 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public java.util.List - getRowBuilderList() { + public java.util.List< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .Builder> + getRowBuilderList() { return getRowFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .RowOrBuilder> getRowFieldBuilder() { if (rowBuilder_ == null) { - rowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder>( - row_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + rowBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row + .Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .RowOrBuilder>( + row_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); row_ = null; } return rowBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4323,30 +4986,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix) - private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix(); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance() { + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfusionMatrix parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfusionMatrix(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfusionMatrix parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfusionMatrix(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4358,21 +5024,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int AU_PRC_FIELD_NUMBER = 1; private float auPrc_; /** + * + * *
    * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
    * for the overall evaluation.
    * 
* * float au_prc = 1; + * * @return The auPrc. */ @java.lang.Override @@ -4383,12 +5052,15 @@ public float getAuPrc() { 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; + * * @return The auRoc. */ @java.lang.Override @@ -4399,11 +5071,14 @@ public float getAuRoc() { public static final int LOG_LOSS_FIELD_NUMBER = 7; private float logLoss_; /** + * + * *
    * Output only. The Log Loss metric.
    * 
* * float log_loss = 7; + * * @return The logLoss. */ @java.lang.Override @@ -4412,8 +5087,12 @@ public float getLogLoss() { } public static final int CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER = 3; - private java.util.List confidenceMetricsEntry_; + private java.util.List< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry> + confidenceMetricsEntry_; /** + * + * *
    * 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
@@ -4424,13 +5103,19 @@ public float getLogLoss() {
    * metrics are computed.
    * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ @java.lang.Override - public java.util.List getConfidenceMetricsEntryList() { + public java.util.List< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry> + getConfidenceMetricsEntryList() { return confidenceMetricsEntry_; } /** + * + * *
    * 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
@@ -4441,14 +5126,21 @@ public java.util.List
    *
-   * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
+   * 
+   * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends
+              com.google.cloud.automl.v1.ClassificationEvaluationMetrics
+                  .ConfidenceMetricsEntryOrBuilder>
       getConfidenceMetricsEntryOrBuilderList() {
     return confidenceMetricsEntry_;
   }
   /**
+   *
+   *
    * 
    * 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
@@ -4459,13 +5151,17 @@ public java.util.List
    *
-   * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
+   * 
+   * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
+   * 
    */
   @java.lang.Override
   public int getConfidenceMetricsEntryCount() {
     return confidenceMetricsEntry_.size();
   }
   /**
+   *
+   *
    * 
    * 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
@@ -4476,13 +5172,18 @@ public int getConfidenceMetricsEntryCount() {
    * metrics are computed.
    * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + getConfidenceMetricsEntry(int index) { return confidenceMetricsEntry_.get(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
@@ -4493,17 +5194,22 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr
    * metrics are computed.
    * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( - int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntryOrBuilder(int index) { return confidenceMetricsEntry_.get(index); } public static final int CONFUSION_MATRIX_FIELD_NUMBER = 4; - private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; + private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + confusionMatrix_; /** + * + * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -4511,7 +5217,10 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return Whether the confusionMatrix field is set. */ @java.lang.Override @@ -4519,6 +5228,8 @@ public boolean hasConfusionMatrix() { return confusionMatrix_ != null; } /** + * + * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -4526,14 +5237,23 @@ public boolean hasConfusionMatrix() {
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return The confusionMatrix. */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { - return confusionMatrix_ == null ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + getConfusionMatrix() { + return confusionMatrix_ == null + ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .getDefaultInstance() + : confusionMatrix_; } /** + * + * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -4541,44 +5261,55 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder() { return getConfusionMatrix(); } public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList annotationSpecId_; /** + * + * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; + * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList - getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { return annotationSpecId_; } /** + * + * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; + * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** + * + * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -4586,20 +5317,23 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** + * + * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index) { + 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; @@ -4611,8 +5345,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (auPrc_ != 0F) { output.writeFloat(1, auPrc_); } @@ -4641,16 +5374,15 @@ public int getSerializedSize() { size = 0; if (auPrc_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, auPrc_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, auPrc_); } for (int i = 0; i < confidenceMetricsEntry_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, confidenceMetricsEntry_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, confidenceMetricsEntry_.get(i)); } if (confusionMatrix_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getConfusionMatrix()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfusionMatrix()); } { int dataSize = 0; @@ -4661,12 +5393,10 @@ public int getSerializedSize() { size += 1 * getAnnotationSpecIdList().size(); } if (auRoc_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, auRoc_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, auRoc_); } if (logLoss_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, logLoss_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, logLoss_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4676,31 +5406,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ClassificationEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1.ClassificationEvaluationMetrics other = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) obj; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics other = + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) obj; if (java.lang.Float.floatToIntBits(getAuPrc()) - != java.lang.Float.floatToIntBits( - other.getAuPrc())) return false; + != java.lang.Float.floatToIntBits(other.getAuPrc())) return false; if (java.lang.Float.floatToIntBits(getAuRoc()) - != java.lang.Float.floatToIntBits( - other.getAuRoc())) return false; + != 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; + != java.lang.Float.floatToIntBits(other.getLogLoss())) return false; + if (!getConfidenceMetricsEntryList().equals(other.getConfidenceMetricsEntryList())) + return false; if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; if (hasConfusionMatrix()) { - if (!getConfusionMatrix() - .equals(other.getConfusionMatrix())) return false; + if (!getConfusionMatrix().equals(other.getConfusionMatrix())) return false; } - if (!getAnnotationSpecIdList() - .equals(other.getAnnotationSpecIdList())) return false; + if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4713,14 +5439,11 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AU_PRC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAuPrc()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuPrc()); hash = (37 * hash) + AU_ROC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAuRoc()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuRoc()); hash = (37 * hash) + LOG_LOSS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLogLoss()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLogLoss()); if (getConfidenceMetricsEntryCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntryList().hashCode(); @@ -4739,96 +5462,104 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ClassificationEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics 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.v1.ClassificationEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ClassificationEvaluationMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model evaluation metrics for classification problems.
    * Note: For Video Classification this metrics only describe quality of the
@@ -4837,21 +5568,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.ClassificationEvaluationMetrics}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ClassificationEvaluationMetrics)
       com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.ClassificationProto
+          .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable
+      return com.google.cloud.automl.v1.ClassificationProto
+          .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.ClassificationEvaluationMetrics.class, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder.class);
+              com.google.cloud.automl.v1.ClassificationEvaluationMetrics.class,
+              com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.ClassificationEvaluationMetrics.newBuilder()
@@ -4859,17 +5592,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getConfidenceMetricsEntryFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4897,9 +5630,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.ClassificationProto.internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.ClassificationProto
+          .internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
@@ -4918,7 +5651,8 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.ClassificationEvaluationMetrics buildPartial() {
-      com.google.cloud.automl.v1.ClassificationEvaluationMetrics result = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics(this);
+      com.google.cloud.automl.v1.ClassificationEvaluationMetrics result =
+          new com.google.cloud.automl.v1.ClassificationEvaluationMetrics(this);
       int from_bitField0_ = bitField0_;
       result.auPrc_ = auPrc_;
       result.auRoc_ = auRoc_;
@@ -4950,38 +5684,39 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.ClassificationEvaluationMetrics) {
-        return mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics)other);
+        return mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4989,7 +5724,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetrics other) {
-      if (other == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance()) return this;
+      if (other == com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance())
+        return this;
       if (other.getAuPrc() != 0F) {
         setAuPrc(other.getAuPrc());
       }
@@ -5017,9 +5753,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ClassificationEvaluationMetr
             confidenceMetricsEntryBuilder_ = null;
             confidenceMetricsEntry_ = other.confidenceMetricsEntry_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            confidenceMetricsEntryBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConfidenceMetricsEntryFieldBuilder() : null;
+            confidenceMetricsEntryBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConfidenceMetricsEntryFieldBuilder()
+                    : null;
           } else {
             confidenceMetricsEntryBuilder_.addAllMessages(other.confidenceMetricsEntry_);
           }
@@ -5057,7 +5794,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -5066,16 +5804,20 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private float auPrc_ ;
+    private float auPrc_;
     /**
+     *
+     *
      * 
      * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
      * for the overall evaluation.
      * 
* * float au_prc = 1; + * * @return The auPrc. */ @java.lang.Override @@ -5083,45 +5825,54 @@ public float getAuPrc() { return auPrc_; } /** + * + * *
      * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
      * for the overall evaluation.
      * 
* * float au_prc = 1; + * * @param value The auPrc to set. * @return This builder for chaining. */ public Builder setAuPrc(float value) { - + auPrc_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
      * for the overall evaluation.
      * 
* * float au_prc = 1; + * * @return This builder for chaining. */ public Builder clearAuPrc() { - + auPrc_ = 0F; onChanged(); return this; } - private float auRoc_ ; + private float auRoc_; /** + * + * *
      * Output only. The Area Under Receiver Operating Characteristic curve metric.
      * Micro-averaged for the overall evaluation.
      * 
* * float au_roc = 6; + * * @return The auRoc. */ @java.lang.Override @@ -5129,44 +5880,53 @@ 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; + * * @param value The auRoc to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearAuRoc() { - + auRoc_ = 0F; onChanged(); return this; } - private float logLoss_ ; + private float logLoss_; /** + * + * *
      * Output only. The Log Loss metric.
      * 
* * float log_loss = 7; + * * @return The logLoss. */ @java.lang.Override @@ -5174,48 +5934,66 @@ public float getLogLoss() { return logLoss_; } /** + * + * *
      * Output only. The Log Loss metric.
      * 
* * float log_loss = 7; + * * @param value The logLoss to set. * @return This builder for chaining. */ public Builder setLogLoss(float value) { - + logLoss_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The Log Loss metric.
      * 
* * float log_loss = 7; + * * @return This builder for chaining. */ public Builder clearLogLoss() { - + logLoss_ = 0F; onChanged(); return this; } - private java.util.List confidenceMetricsEntry_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry> + confidenceMetricsEntry_ = java.util.Collections.emptyList(); + private void ensureConfidenceMetricsEntryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntry_ = new java.util.ArrayList(confidenceMetricsEntry_); + confidenceMetricsEntry_ = + new java.util.ArrayList< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry>( + confidenceMetricsEntry_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> confidenceMetricsEntryBuilder_; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + confidenceMetricsEntryBuilder_; /** + * + * *
      * 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
@@ -5226,9 +6004,13 @@ private void ensureConfidenceMetricsEntryIsMutable() {
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public java.util.List getConfidenceMetricsEntryList() { + public java.util.List< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry> + getConfidenceMetricsEntryList() { if (confidenceMetricsEntryBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntry_); } else { @@ -5236,6 +6018,8 @@ public java.util.List * 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 @@ -5246,7 +6030,9 @@ public java.util.List * - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public int getConfidenceMetricsEntryCount() { if (confidenceMetricsEntryBuilder_ == null) { @@ -5256,6 +6042,8 @@ public 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
@@ -5266,9 +6054,12 @@ public int getConfidenceMetricsEntryCount() {
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + getConfidenceMetricsEntry(int index) { if (confidenceMetricsEntryBuilder_ == null) { return confidenceMetricsEntry_.get(index); } else { @@ -5276,6 +6067,8 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr } } /** + * + * *
      * 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
@@ -5286,10 +6079,13 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder setConfidenceMetricsEntry( - int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5303,6 +6099,8 @@ public Builder setConfidenceMetricsEntry( return this; } /** + * + * *
      * 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
@@ -5313,10 +6111,14 @@ public Builder setConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder setConfidenceMetricsEntry( - int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.set(index, builderForValue.build()); @@ -5327,6 +6129,8 @@ public Builder setConfidenceMetricsEntry( return this; } /** + * + * *
      * 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
@@ -5337,9 +6141,12 @@ public Builder setConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public Builder addConfidenceMetricsEntry(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntry( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5353,6 +6160,8 @@ public Builder addConfidenceMetricsEntry(com.google.cloud.automl.v1.Classificati return this; } /** + * + * *
      * 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
@@ -5363,10 +6172,13 @@ public Builder addConfidenceMetricsEntry(com.google.cloud.automl.v1.Classificati
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder addConfidenceMetricsEntry( - int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5380,6 +6192,8 @@ public Builder addConfidenceMetricsEntry( return this; } /** + * + * *
      * 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
@@ -5390,10 +6204,13 @@ public Builder addConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder addConfidenceMetricsEntry( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.add(builderForValue.build()); @@ -5404,6 +6221,8 @@ public Builder addConfidenceMetricsEntry( return this; } /** + * + * *
      * 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
@@ -5414,10 +6233,14 @@ public Builder addConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder addConfidenceMetricsEntry( - int index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.add(index, builderForValue.build()); @@ -5428,6 +6251,8 @@ public Builder addConfidenceMetricsEntry( return this; } /** + * + * *
      * 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
@@ -5438,14 +6263,19 @@ public Builder addConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder addAllConfidenceMetricsEntry( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry> + values) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, confidenceMetricsEntry_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntry_); onChanged(); } else { confidenceMetricsEntryBuilder_.addAllMessages(values); @@ -5453,6 +6283,8 @@ public Builder addAllConfidenceMetricsEntry( return this; } /** + * + * *
      * 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
@@ -5463,7 +6295,9 @@ public Builder addAllConfidenceMetricsEntry(
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder clearConfidenceMetricsEntry() { if (confidenceMetricsEntryBuilder_ == null) { @@ -5476,6 +6310,8 @@ public Builder clearConfidenceMetricsEntry() { return this; } /** + * + * *
      * 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
@@ -5486,7 +6322,9 @@ public Builder clearConfidenceMetricsEntry() {
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder removeConfidenceMetricsEntry(int index) { if (confidenceMetricsEntryBuilder_ == null) { @@ -5499,6 +6337,8 @@ public Builder removeConfidenceMetricsEntry(int index) { return this; } /** + * + * *
      * 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
@@ -5509,13 +6349,17 @@ public Builder removeConfidenceMetricsEntry(int index) {
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntryBuilder( - int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder + getConfidenceMetricsEntryBuilder(int index) { return getConfidenceMetricsEntryFieldBuilder().getBuilder(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
@@ -5526,16 +6370,22 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( - int index) { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntryOrBuilder(int index) { if (confidenceMetricsEntryBuilder_ == null) { - return confidenceMetricsEntry_.get(index); } else { + return confidenceMetricsEntry_.get(index); + } else { return confidenceMetricsEntryBuilder_.getMessageOrBuilder(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
@@ -5546,10 +6396,15 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public java.util.List - getConfidenceMetricsEntryOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntryOrBuilderList() { if (confidenceMetricsEntryBuilder_ != null) { return confidenceMetricsEntryBuilder_.getMessageOrBuilderList(); } else { @@ -5557,6 +6412,8 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr } } /** + * + * *
      * 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
@@ -5567,13 +6424,20 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntryBuilder() { - return getConfidenceMetricsEntryFieldBuilder().addBuilder( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntryBuilder() { + return getConfidenceMetricsEntryFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .getDefaultInstance()); } /** + * + * *
      * 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
@@ -5584,14 +6448,21 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntryBuilder( - int index) { - return getConfidenceMetricsEntryFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntryBuilder(int index) { + return getConfidenceMetricsEntryFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .getDefaultInstance()); } /** + * + * *
      * 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
@@ -5602,18 +6473,32 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public java.util.List - getConfidenceMetricsEntryBuilderList() { + public java.util.List< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .Builder> + getConfidenceMetricsEntryBuilderList() { return getConfidenceMetricsEntryFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntryFieldBuilder() { if (confidenceMetricsEntryBuilder_ == null) { - confidenceMetricsEntryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry + .Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntry_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -5623,10 +6508,16 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr return confidenceMetricsEntryBuilder_; } - private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; + private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + confusionMatrix_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> confusionMatrixBuilder_; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> + confusionMatrixBuilder_; /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -5634,13 +6525,18 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetr
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return Whether the confusionMatrix field is set. */ public boolean hasConfusionMatrix() { return confusionMatrixBuilder_ != null || confusionMatrix_ != null; } /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -5648,17 +6544,26 @@ public boolean hasConfusionMatrix() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return The confusionMatrix. */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + getConfusionMatrix() { if (confusionMatrixBuilder_ == null) { - return confusionMatrix_ == null ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + return confusionMatrix_ == null + ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .getDefaultInstance() + : confusionMatrix_; } else { return confusionMatrixBuilder_.getMessage(); } } /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -5666,9 +6571,12 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ - public Builder setConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { + public Builder setConfusionMatrix( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5682,6 +6590,8 @@ public Builder setConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvalu return this; } /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -5689,10 +6599,13 @@ public Builder setConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvalu
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ public Builder setConfusionMatrix( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue) { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder + builderForValue) { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = builderForValue.build(); onChanged(); @@ -5703,6 +6616,8 @@ public Builder setConfusionMatrix( return this; } /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -5710,13 +6625,19 @@ public Builder setConfusionMatrix(
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ - public Builder mergeConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { + public Builder mergeConfusionMatrix( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (confusionMatrix_ != null) { confusionMatrix_ = - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder(confusionMatrix_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder( + confusionMatrix_) + .mergeFrom(value) + .buildPartial(); } else { confusionMatrix_ = value; } @@ -5728,6 +6649,8 @@ public Builder mergeConfusionMatrix(com.google.cloud.automl.v1.ClassificationEva return this; } /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -5735,7 +6658,9 @@ public Builder mergeConfusionMatrix(com.google.cloud.automl.v1.ClassificationEva
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ public Builder clearConfusionMatrix() { if (confusionMatrixBuilder_ == null) { @@ -5749,6 +6674,8 @@ public Builder clearConfusionMatrix() { return this; } /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -5756,14 +6683,19 @@ public Builder clearConfusionMatrix() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder getConfusionMatrixBuilder() { - + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder + getConfusionMatrixBuilder() { + onChanged(); return getConfusionMatrixFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -5771,17 +6703,24 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder() { if (confusionMatrixBuilder_ != null) { return confusionMatrixBuilder_.getMessageOrBuilder(); } else { - return confusionMatrix_ == null ? - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + return confusionMatrix_ == null + ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .getDefaultInstance() + : confusionMatrix_; } } /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -5789,58 +6728,74 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatri
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> getConfusionMatrixFieldBuilder() { if (confusionMatrixBuilder_ == null) { - confusionMatrixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder>( - getConfusionMatrix(), - getParentForChildren(), - isClean()); + confusionMatrixBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder>( + getConfusionMatrix(), getParentForChildren(), isClean()); confusionMatrix_ = null; } return confusionMatrixBuilder_; } - private com.google.protobuf.LazyStringList annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList annotationSpecId_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAnnotationSpecIdIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList - getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { return annotationSpecId_.getUnmodifiableView(); } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -5848,80 +6803,90 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @param index The index to set the value at. * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId( - int index, java.lang.String value) { + public Builder setAnnotationSpecId(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @param value The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecId( - java.lang.String value) { + public Builder addAnnotationSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @param values The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAllAnnotationSpecId( - java.lang.Iterable values) { + public Builder addAllAnnotationSpecId(java.lang.Iterable values) { ensureAnnotationSpecIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, annotationSpecId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); onChanged(); return this; } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { @@ -5931,28 +6896,30 @@ public Builder clearAnnotationSpecId() { return this; } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @param value The bytes of the annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5962,12 +6929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ClassificationEvaluationMetrics) private static final com.google.cloud.automl.v1.ClassificationEvaluationMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ClassificationEvaluationMetrics(); } @@ -5976,16 +6943,16 @@ public static com.google.cloud.automl.v1.ClassificationEvaluationMetrics getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationEvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationEvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationEvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6000,6 +6967,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.automl.v1.ClassificationEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java index ec2127145..ec77cd9c9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationEvaluationMetricsOrBuilder.java @@ -1,45 +1,72 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/classification.proto package com.google.cloud.automl.v1; -public interface ClassificationEvaluationMetricsOrBuilder extends +public interface ClassificationEvaluationMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ClassificationEvaluationMetrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
    * for the overall evaluation.
    * 
* * float au_prc = 1; + * * @return The auPrc. */ float getAuPrc(); /** + * + * *
    * Output only. The Area Under Receiver Operating Characteristic curve metric.
    * Micro-averaged for the overall evaluation.
    * 
* * float au_roc = 6; + * * @return The auRoc. */ float getAuRoc(); /** + * + * *
    * Output only. The Log Loss metric.
    * 
* * float log_loss = 7; + * * @return The logLoss. */ 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
@@ -50,11 +77,15 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
    * metrics are computed.
    * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - java.util.List + java.util.List 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
@@ -65,10 +96,15 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
    * metrics are computed.
    * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index); + com.google.cloud.automl.v1.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
@@ -79,10 +115,14 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
    * metrics are computed.
    * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.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
@@ -93,11 +133,18 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
    * metrics are computed.
    * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.automl.v1.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
@@ -108,12 +155,16 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
    * metrics are computed.
    * 
* - * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( - int index); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntryOrBuilder(int index); /** + * + * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -121,11 +172,16 @@ com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntr
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return Whether the confusionMatrix field is set. */ boolean hasConfusionMatrix(); /** + * + * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -133,11 +189,16 @@ com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntr
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return The confusionMatrix. */ com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix(); /** + * + * *
    * Output only. Confusion matrix of the evaluation.
    * Only set for MULTICLASS classification problems where number
@@ -145,48 +206,61 @@ com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntr
    * Only set for model level evaluation, not for evaluation per label.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder(); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder(); /** + * + * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; + * * @return A list containing the annotationSpecId. */ - java.util.List - getAnnotationSpecIdList(); + java.util.List getAnnotationSpecIdList(); /** + * + * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; + * * @return The count of annotationSpecId. */ int getAnnotationSpecIdCount(); /** + * + * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ java.lang.String getAnnotationSpecId(int index); /** + * + * *
    * Output only. The annotation spec ids used for this evaluation.
    * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index); + com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java new file mode 100644 index 000000000..6c4fbaa46 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ClassificationProto.java @@ -0,0 +1,168 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/classification.proto + +package com.google.cloud.automl.v1; + +public final class ClassificationProto { + private ClassificationProto() {} + + 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_v1_ClassificationAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ClassificationAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_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/v1/classification." + + "proto\022\026google.cloud.automl.v1\032\034google/ap" + + "i/annotations.proto\")\n\030ClassificationAnn" + + "otation\022\r\n\005score\030\001 \001(\002\"\201\007\n\037Classificatio" + + "nEvaluationMetrics\022\016\n\006au_prc\030\001 \001(\002\022\016\n\006au" + + "_roc\030\006 \001(\002\022\020\n\010log_loss\030\007 \001(\002\022p\n\030confiden" + + "ce_metrics_entry\030\003 \003(\0132N.google.cloud.au" + + "toml.v1.ClassificationEvaluationMetrics." + + "ConfidenceMetricsEntry\022a\n\020confusion_matr" + + "ix\030\004 \001(\0132G.google.cloud.automl.v1.Classi" + + "ficationEvaluationMetrics.ConfusionMatri" + + "x\022\032\n\022annotation_spec_id\030\005 \003(\t\032\374\002\n\026Confid" + + "enceMetricsEntry\022\034\n\024confidence_threshold" + + "\030\001 \001(\002\022\032\n\022position_threshold\030\016 \001(\005\022\016\n\006re" + + "call\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\002\022\033\n\023false_p" + + "ositive_rate\030\010 \001(\002\022\020\n\010f1_score\030\004 \001(\002\022\022\n\n" + + "recall_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_s" + + "core_at1\030\007 \001(\002\022\033\n\023true_positive_count\030\n " + + "\001(\003\022\034\n\024false_positive_count\030\013 \001(\003\022\034\n\024fal" + + "se_negative_count\030\014 \001(\003\022\033\n\023true_negative" + + "_count\030\r \001(\003\032\273\001\n\017ConfusionMatrix\022\032\n\022anno" + + "tation_spec_id\030\001 \003(\t\022\024\n\014display_name\030\003 \003" + + "(\t\022X\n\003row\030\002 \003(\0132K.google.cloud.automl.v1" + + ".ClassificationEvaluationMetrics.Confusi" + + "onMatrix.Row\032\034\n\003Row\022\025\n\rexample_count\030\001 \003" + + "(\005*Y\n\022ClassificationType\022#\n\037CLASSIFICATI" + + "ON_TYPE_UNSPECIFIED\020\000\022\016\n\nMULTICLASS\020\001\022\016\n" + + "\nMULTILABEL\020\002B\277\001\n\032com.google.cloud.autom" + + "l.v1B\023ClassificationProtoP\001Z * Type of the classification problem. *
* * Protobuf enum {@code google.cloud.automl.v1.ClassificationType} */ -public enum ClassificationType - implements com.google.protobuf.ProtocolMessageEnum { +public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * An un-set value of this enum.
    * 
@@ -21,6 +39,8 @@ public enum ClassificationType */ CLASSIFICATION_TYPE_UNSPECIFIED(0), /** + * + * *
    * At most one label is allowed per example.
    * 
@@ -29,6 +49,8 @@ public enum ClassificationType */ MULTICLASS(1), /** + * + * *
    * Multiple labels are allowed for one example.
    * 
@@ -40,6 +62,8 @@ public enum ClassificationType ; /** + * + * *
    * An un-set value of this enum.
    * 
@@ -48,6 +72,8 @@ public enum ClassificationType */ public static final int CLASSIFICATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * At most one label is allowed per example.
    * 
@@ -56,6 +82,8 @@ public enum ClassificationType */ public static final int MULTICLASS_VALUE = 1; /** + * + * *
    * Multiple labels are allowed for one example.
    * 
@@ -64,7 +92,6 @@ public enum ClassificationType */ public static final int MULTILABEL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,39 +116,42 @@ public static ClassificationType valueOf(int value) { */ public static ClassificationType forNumber(int value) { switch (value) { - case 0: return CLASSIFICATION_TYPE_UNSPECIFIED; - case 1: return MULTICLASS; - case 2: return MULTILABEL; - default: return null; + case 0: + return CLASSIFICATION_TYPE_UNSPECIFIED; + case 1: + return MULTICLASS; + case 2: + return MULTILABEL; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ClassificationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ClassificationType findValueByNumber(int number) { - return ClassificationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClassificationType findValueByNumber(int number) { + return ClassificationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.automl.v1.ClassificationProto.getDescriptor().getEnumTypes().get(0); } @@ -130,8 +160,7 @@ public ClassificationType findValueByNumber(int number) { public static ClassificationType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +176,3 @@ private ClassificationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.automl.v1.ClassificationType) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java index 467649f3b..82f43ebcb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadata.java @@ -1,39 +1,56 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** + * + * *
  * Details of CreateDataset operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.CreateDatasetOperationMetadata} */ -public final class CreateDatasetOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDatasetOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.CreateDatasetOperationMetadata) CreateDatasetOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDatasetOperationMetadata.newBuilder() to construct. - private CreateDatasetOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateDatasetOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDatasetOperationMetadata() { - } + + private CreateDatasetOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDatasetOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateDatasetOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,42 @@ private CreateDatasetOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Operations.internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.class, com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder.class); + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.class, + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +116,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +134,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.CreateDatasetOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.CreateDatasetOperationMetadata other = (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) obj; + com.google.cloud.automl.v1.CreateDatasetOperationMetadata other = + (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +159,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CreateDatasetOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata 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.v1.CreateDatasetOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.CreateDatasetOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.CreateDatasetOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Details of CreateDataset operation.
    * 
* * Protobuf type {@code google.cloud.automl.v1.CreateDatasetOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.CreateDatasetOperationMetadata) com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.class, com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder.class); + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.class, + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.CreateDatasetOperationMetadata.newBuilder() @@ -257,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +303,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; } @java.lang.Override @@ -295,7 +324,8 @@ public com.google.cloud.automl.v1.CreateDatasetOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.CreateDatasetOperationMetadata buildPartial() { - com.google.cloud.automl.v1.CreateDatasetOperationMetadata result = new com.google.cloud.automl.v1.CreateDatasetOperationMetadata(this); + com.google.cloud.automl.v1.CreateDatasetOperationMetadata result = + new com.google.cloud.automl.v1.CreateDatasetOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +334,39 @@ public com.google.cloud.automl.v1.CreateDatasetOperationMetadata buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.CreateDatasetOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.CreateDatasetOperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.CreateDatasetOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +374,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.CreateDatasetOperationMetadata other) { - if (other == com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +395,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +405,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +417,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.CreateDatasetOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.CreateDatasetOperationMetadata) private static final com.google.cloud.automl.v1.CreateDatasetOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.CreateDatasetOperationMetadata(); } @@ -398,16 +431,16 @@ public static com.google.cloud.automl.v1.CreateDatasetOperationMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDatasetOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDatasetOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDatasetOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -422,6 +455,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.automl.v1.CreateDatasetOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadataOrBuilder.java new file mode 100644 index 000000000..368344f02 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface CreateDatasetOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.CreateDatasetOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java index 211b35583..673d80eff 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.CreateDataset][google.cloud.automl.v1.AutoMl.CreateDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1.CreateDatasetRequest} */ -public final class CreateDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.CreateDatasetRequest) CreateDatasetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDatasetRequest.newBuilder() to construct. private CreateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateDatasetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,75 @@ private CreateDatasetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.automl.v1.Dataset.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); + parent_ = s; + break; } - dataset_ = input.readMessage(com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.automl.v1.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = + input.readMessage(com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateDatasetRequest.class, com.google.cloud.automl.v1.CreateDatasetRequest.Builder.class); + com.google.cloud.automl.v1.CreateDatasetRequest.class, + com.google.cloud.automl.v1.CreateDatasetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -120,29 +147,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -153,11 +182,15 @@ public java.lang.String getParent() { public static final int DATASET_FIELD_NUMBER = 2; private com.google.cloud.automl.v1.Dataset dataset_; /** + * + * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ @java.lang.Override @@ -165,11 +198,15 @@ public boolean hasDataset() { return dataset_ != null; } /** + * + * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ @java.lang.Override @@ -177,11 +214,14 @@ public com.google.cloud.automl.v1.Dataset getDataset() { return dataset_ == null ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; } /** + * + * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { @@ -189,6 +229,7 @@ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +241,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -221,8 +261,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDataset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataset()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,19 +271,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.CreateDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.CreateDatasetRequest other = (com.google.cloud.automl.v1.CreateDatasetRequest) obj; + com.google.cloud.automl.v1.CreateDatasetRequest other = + (com.google.cloud.automl.v1.CreateDatasetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasDataset() != other.hasDataset()) return false; if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) return false; + if (!getDataset().equals(other.getDataset())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -268,118 +306,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CreateDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateDatasetRequest 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.v1.CreateDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.CreateDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateDatasetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.CreateDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.CreateDataset][google.cloud.automl.v1.AutoMl.CreateDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1.CreateDatasetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.CreateDatasetRequest) com.google.cloud.automl.v1.CreateDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateDatasetRequest.class, com.google.cloud.automl.v1.CreateDatasetRequest.Builder.class); + com.google.cloud.automl.v1.CreateDatasetRequest.class, + com.google.cloud.automl.v1.CreateDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.CreateDatasetRequest.newBuilder() @@ -387,16 +434,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_CreateDatasetRequest_descriptor; } @java.lang.Override @@ -433,7 +479,8 @@ public com.google.cloud.automl.v1.CreateDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1.CreateDatasetRequest buildPartial() { - com.google.cloud.automl.v1.CreateDatasetRequest result = new com.google.cloud.automl.v1.CreateDatasetRequest(this); + com.google.cloud.automl.v1.CreateDatasetRequest result = + new com.google.cloud.automl.v1.CreateDatasetRequest(this); result.parent_ = parent_; if (datasetBuilder_ == null) { result.dataset_ = dataset_; @@ -448,38 +495,39 @@ public com.google.cloud.automl.v1.CreateDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.CreateDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1.CreateDatasetRequest)other); + return mergeFrom((com.google.cloud.automl.v1.CreateDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -487,7 +535,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.CreateDatasetRequest other) { - if (other == com.google.cloud.automl.v1.CreateDatasetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.CreateDatasetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -526,18 +575,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -546,20 +599,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -567,54 +623,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -622,39 +691,55 @@ public Builder setParentBytes( private com.google.cloud.automl.v1.Dataset dataset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> datasetBuilder_; + com.google.cloud.automl.v1.Dataset, + com.google.cloud.automl.v1.Dataset.Builder, + com.google.cloud.automl.v1.DatasetOrBuilder> + datasetBuilder_; /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ public boolean hasDataset() { return datasetBuilder_ != null || dataset_ != null; } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ public com.google.cloud.automl.v1.Dataset getDataset() { if (datasetBuilder_ == null) { - return dataset_ == null ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() + : dataset_; } else { return datasetBuilder_.getMessage(); } } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataset(com.google.cloud.automl.v1.Dataset value) { if (datasetBuilder_ == null) { @@ -670,14 +755,16 @@ public Builder setDataset(com.google.cloud.automl.v1.Dataset value) { return this; } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDataset( - com.google.cloud.automl.v1.Dataset.Builder builderForValue) { + public Builder setDataset(com.google.cloud.automl.v1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); onChanged(); @@ -688,17 +775,22 @@ public Builder setDataset( return this; } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDataset(com.google.cloud.automl.v1.Dataset value) { if (datasetBuilder_ == null) { if (dataset_ != null) { dataset_ = - com.google.cloud.automl.v1.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.Dataset.newBuilder(dataset_) + .mergeFrom(value) + .buildPartial(); } else { dataset_ = value; } @@ -710,11 +802,14 @@ public Builder mergeDataset(com.google.cloud.automl.v1.Dataset value) { return this; } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -728,55 +823,68 @@ public Builder clearDataset() { return this; } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.Dataset.Builder getDatasetBuilder() { - + onChanged(); return getDatasetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { if (datasetBuilder_ != null) { return datasetBuilder_.getMessageOrBuilder(); } else { - return dataset_ == null ? - com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() + : dataset_; } } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> + com.google.cloud.automl.v1.Dataset, + com.google.cloud.automl.v1.Dataset.Builder, + com.google.cloud.automl.v1.DatasetOrBuilder> getDatasetFieldBuilder() { if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); + datasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Dataset, + com.google.cloud.automl.v1.Dataset.Builder, + com.google.cloud.automl.v1.DatasetOrBuilder>( + getDataset(), getParentForChildren(), isClean()); dataset_ = null; } return datasetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -786,12 +894,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.CreateDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.CreateDatasetRequest) private static final com.google.cloud.automl.v1.CreateDatasetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.CreateDatasetRequest(); } @@ -800,16 +908,16 @@ public static com.google.cloud.automl.v1.CreateDatasetRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,6 +932,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.CreateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java index 8d4bf52ca..848a48922 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateDatasetRequestOrBuilder.java @@ -1,56 +1,92 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface CreateDatasetRequestOrBuilder extends +public interface CreateDatasetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.CreateDatasetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ boolean hasDataset(); /** + * + * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ com.google.cloud.automl.v1.Dataset getDataset(); /** + * + * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java index 52934f43d..7e2db6ce0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** + * + * *
  * Details of CreateModel operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.CreateModelOperationMetadata} */ -public final class CreateModelOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.CreateModelOperationMetadata) CreateModelOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateModelOperationMetadata.newBuilder() to construct. private CreateModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateModelOperationMetadata() { - } + + private CreateModelOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private CreateModelOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Operations.internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateModelOperationMetadata.class, com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.CreateModelOperationMetadata.class, + com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.CreateModelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.CreateModelOperationMetadata other = (com.google.cloud.automl.v1.CreateModelOperationMetadata) obj; + com.google.cloud.automl.v1.CreateModelOperationMetadata other = + (com.google.cloud.automl.v1.CreateModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CreateModelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateModelOperationMetadata 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.v1.CreateModelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateModelOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.CreateModelOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.CreateModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Details of CreateModel operation.
    * 
* * Protobuf type {@code google.cloud.automl.v1.CreateModelOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.CreateModelOperationMetadata) com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateModelOperationMetadata.class, com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.CreateModelOperationMetadata.class, + com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.CreateModelOperationMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; } @java.lang.Override @@ -295,7 +323,8 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.CreateModelOperationMetadata buildPartial() { - com.google.cloud.automl.v1.CreateModelOperationMetadata result = new com.google.cloud.automl.v1.CreateModelOperationMetadata(this); + com.google.cloud.automl.v1.CreateModelOperationMetadata result = + new com.google.cloud.automl.v1.CreateModelOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +333,39 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.CreateModelOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.CreateModelOperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.CreateModelOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +373,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.CreateModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.CreateModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.CreateModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +404,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.CreateModelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.CreateModelOperationMetadata) private static final com.google.cloud.automl.v1.CreateModelOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.CreateModelOperationMetadata(); } @@ -398,16 +430,16 @@ public static com.google.cloud.automl.v1.CreateModelOperationMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateModelOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateModelOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateModelOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateModelOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -422,6 +454,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.CreateModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..3fa1562da --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface CreateModelOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.CreateModelOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java index 1968f9c6f..58bd26551 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.CreateModel][google.cloud.automl.v1.AutoMl.CreateModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1.CreateModelRequest} */ -public final class CreateModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.CreateModelRequest) CreateModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateModelRequest.newBuilder() to construct. private CreateModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateModelRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,75 @@ private CreateModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 34: { - com.google.cloud.automl.v1.Model.Builder subBuilder = null; - if (model_ != null) { - subBuilder = model_.toBuilder(); + parent_ = s; + break; } - model_ = input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(model_); - model_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.automl.v1.Model.Builder subBuilder = null; + if (model_ != null) { + subBuilder = model_.toBuilder(); + } + model_ = + input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(model_); + model_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_CreateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateModelRequest.class, com.google.cloud.automl.v1.CreateModelRequest.Builder.class); + com.google.cloud.automl.v1.CreateModelRequest.class, + com.google.cloud.automl.v1.CreateModelRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -120,29 +147,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -153,11 +182,14 @@ public java.lang.String getParent() { public static final int MODEL_FIELD_NUMBER = 4; private com.google.cloud.automl.v1.Model model_; /** + * + * *
    * Required. The model to create.
    * 
* * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the model field is set. */ @java.lang.Override @@ -165,11 +197,14 @@ public boolean hasModel() { return model_ != null; } /** + * + * *
    * Required. The model to create.
    * 
* * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The model. */ @java.lang.Override @@ -177,6 +212,8 @@ public com.google.cloud.automl.v1.Model getModel() { return model_ == null ? com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; } /** + * + * *
    * Required. The model to create.
    * 
@@ -189,6 +226,7 @@ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +238,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -221,8 +258,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (model_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getModel()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getModel()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,19 +268,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.CreateModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.CreateModelRequest other = (com.google.cloud.automl.v1.CreateModelRequest) obj; + com.google.cloud.automl.v1.CreateModelRequest other = + (com.google.cloud.automl.v1.CreateModelRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasModel() != other.hasModel()) return false; if (hasModel()) { - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -268,118 +303,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.CreateModelRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CreateModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateModelRequest 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.v1.CreateModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.CreateModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.CreateModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.CreateModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.CreateModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.CreateModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.CreateModel][google.cloud.automl.v1.AutoMl.CreateModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1.CreateModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.CreateModelRequest) com.google.cloud.automl.v1.CreateModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_CreateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.CreateModelRequest.class, com.google.cloud.automl.v1.CreateModelRequest.Builder.class); + com.google.cloud.automl.v1.CreateModelRequest.class, + com.google.cloud.automl.v1.CreateModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.CreateModelRequest.newBuilder() @@ -387,16 +431,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +455,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_CreateModelRequest_descriptor; } @java.lang.Override @@ -433,7 +476,8 @@ public com.google.cloud.automl.v1.CreateModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.CreateModelRequest buildPartial() { - com.google.cloud.automl.v1.CreateModelRequest result = new com.google.cloud.automl.v1.CreateModelRequest(this); + com.google.cloud.automl.v1.CreateModelRequest result = + new com.google.cloud.automl.v1.CreateModelRequest(this); result.parent_ = parent_; if (modelBuilder_ == null) { result.model_ = model_; @@ -448,38 +492,39 @@ public com.google.cloud.automl.v1.CreateModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.CreateModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.CreateModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1.CreateModelRequest) other); } else { super.mergeFrom(other); return this; @@ -526,18 +571,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -546,20 +595,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -567,54 +619,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -622,24 +687,35 @@ public Builder setParentBytes( private com.google.cloud.automl.v1.Model model_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> modelBuilder_; + com.google.cloud.automl.v1.Model, + com.google.cloud.automl.v1.Model.Builder, + com.google.cloud.automl.v1.ModelOrBuilder> + modelBuilder_; /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The model. */ public com.google.cloud.automl.v1.Model getModel() { @@ -650,11 +726,14 @@ public com.google.cloud.automl.v1.Model getModel() { } } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setModel(com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { @@ -670,14 +749,16 @@ public Builder setModel(com.google.cloud.automl.v1.Model value) { return this; } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setModel( - com.google.cloud.automl.v1.Model.Builder builderForValue) { + public Builder setModel(com.google.cloud.automl.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); @@ -688,17 +769,20 @@ public Builder setModel( return this; } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeModel(com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = - com.google.cloud.automl.v1.Model.newBuilder(model_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } @@ -710,11 +794,14 @@ public Builder mergeModel(com.google.cloud.automl.v1.Model value) { return this; } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearModel() { if (modelBuilder_ == null) { @@ -728,55 +815,66 @@ public Builder clearModel() { return this; } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.Model.Builder getModelBuilder() { - + onChanged(); return getModelFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { - return model_ == null ? - com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; + return model_ == null ? com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; } } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> + com.google.cloud.automl.v1.Model, + com.google.cloud.automl.v1.Model.Builder, + com.google.cloud.automl.v1.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder>( - getModel(), - getParentForChildren(), - isClean()); + modelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Model, + com.google.cloud.automl.v1.Model.Builder, + com.google.cloud.automl.v1.ModelOrBuilder>( + getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -786,12 +884,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.CreateModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.CreateModelRequest) private static final com.google.cloud.automl.v1.CreateModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.CreateModelRequest(); } @@ -800,16 +898,16 @@ public static com.google.cloud.automl.v1.CreateModelRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,6 +922,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.CreateModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java index 0b1561871..686452a64 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/CreateModelRequestOrBuilder.java @@ -1,51 +1,84 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface CreateModelRequestOrBuilder extends +public interface CreateModelRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.CreateModelRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The model to create.
    * 
* * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the model field is set. */ boolean hasModel(); /** + * + * *
    * Required. The model to create.
    * 
* * .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The model. */ com.google.cloud.automl.v1.Model getModel(); /** + * + * *
    * Required. The model to create.
    * 
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DataItems.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DataItems.java new file mode 100644 index 000000000..bc889ee2d --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DataItems.java @@ -0,0 +1,179 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/data_items.proto + +package com.google.cloud.automl.v1; + +public final class DataItems { + private DataItems() {} + + 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_v1_Image_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextSnippet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextSnippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_DocumentDimensions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_Document_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_Document_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_Document_Layout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_Document_Layout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ExamplePayload_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/v1/data_items.prot" + + "o\022\026google.cloud.automl.v1\032%google/cloud/" + + "automl/v1/geometry.proto\032\037google/cloud/a" + + "utoml/v1/io.proto\032)google/cloud/automl/v" + + "1/text_segment.proto\032\031google/protobuf/an" + + "y.proto\032\036google/protobuf/duration.proto\032" + + "\034google/protobuf/struct.proto\032\034google/ap" + + "i/annotations.proto\"=\n\005Image\022\025\n\013image_by" + + "tes\030\001 \001(\014H\000\022\025\n\rthumbnail_uri\030\004 \001(\tB\006\n\004da" + + "ta\"F\n\013TextSnippet\022\017\n\007content\030\001 \001(\t\022\021\n\tmi" + + "me_type\030\002 \001(\t\022\023\n\013content_uri\030\004 \001(\t\"\352\001\n\022D" + + "ocumentDimensions\022N\n\004unit\030\001 \001(\0162@.google" + + ".cloud.automl.v1.DocumentDimensions.Docu" + + "mentDimensionUnit\022\r\n\005width\030\002 \001(\002\022\016\n\006heig" + + "ht\030\003 \001(\002\"e\n\025DocumentDimensionUnit\022\'\n#DOC" + + "UMENT_DIMENSION_UNIT_UNSPECIFIED\020\000\022\010\n\004IN" + + "CH\020\001\022\016\n\nCENTIMETER\020\002\022\t\n\005POINT\020\003\"\326\005\n\010Docu" + + "ment\022A\n\014input_config\030\001 \001(\0132+.google.clou" + + "d.automl.v1.DocumentInputConfig\022:\n\rdocum" + + "ent_text\030\002 \001(\0132#.google.cloud.automl.v1." + + "TextSnippet\0227\n\006layout\030\003 \003(\0132\'.google.clo" + + "ud.automl.v1.Document.Layout\022G\n\023document" + + "_dimensions\030\004 \001(\0132*.google.cloud.automl." + + "v1.DocumentDimensions\022\022\n\npage_count\030\005 \001(" + + "\005\032\264\003\n\006Layout\0229\n\014text_segment\030\001 \001(\0132#.goo" + + "gle.cloud.automl.v1.TextSegment\022\023\n\013page_" + + "number\030\002 \001(\005\022;\n\rbounding_poly\030\003 \001(\0132$.go" + + "ogle.cloud.automl.v1.BoundingPoly\022R\n\021tex" + + "t_segment_type\030\004 \001(\01627.google.cloud.auto" + + "ml.v1.Document.Layout.TextSegmentType\"\310\001" + + "\n\017TextSegmentType\022!\n\035TEXT_SEGMENT_TYPE_U" + + "NSPECIFIED\020\000\022\t\n\005TOKEN\020\001\022\r\n\tPARAGRAPH\020\002\022\016" + + "\n\nFORM_FIELD\020\003\022\023\n\017FORM_FIELD_NAME\020\004\022\027\n\023F" + + "ORM_FIELD_CONTENTS\020\005\022\t\n\005TABLE\020\006\022\020\n\014TABLE" + + "_HEADER\020\007\022\r\n\tTABLE_ROW\020\010\022\016\n\nTABLE_CELL\020\t" + + "\"\276\001\n\016ExamplePayload\022.\n\005image\030\001 \001(\0132\035.goo" + + "gle.cloud.automl.v1.ImageH\000\022;\n\014text_snip" + + "pet\030\002 \001(\0132#.google.cloud.automl.v1.TextS" + + "nippetH\000\0224\n\010document\030\004 \001(\0132 .google.clou" + + "d.automl.v1.DocumentH\000B\t\n\007payloadB\252\001\n\032co" + + "m.google.cloud.automl.v1P\001Z * A workspace for solving a single, particular machine learning (ML) problem. * A workspace contains examples that may be annotated. @@ -11,15 +28,16 @@ * * Protobuf type {@code google.cloud.automl.v1.Dataset} */ -public final class Dataset extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Dataset extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.Dataset) DatasetOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Dataset.newBuilder() to construct. private Dataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Dataset() { name_ = ""; displayName_ = ""; @@ -29,16 +47,15 @@ private Dataset() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Dataset(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Dataset( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,193 +75,247 @@ private Dataset( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 114: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - case 168: { - - exampleCount_ = input.readInt32(); - break; - } - case 186: { - com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder subBuilder = null; - if (datasetMetadataCase_ == 23) { - subBuilder = ((com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_).toBuilder(); - } - datasetMetadata_ = - input.readMessage(com.google.cloud.automl.v1.TranslationDatasetMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); + displayName_ = s; + break; } - datasetMetadataCase_ = 23; - break; - } - case 194: { - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder subBuilder = null; - if (datasetMetadataCase_ == 24) { - subBuilder = ((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_).toBuilder(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; } - datasetMetadata_ = - input.readMessage(com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); + case 114: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - datasetMetadataCase_ = 24; - break; - } - case 202: { - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder subBuilder = null; - if (datasetMetadataCase_ == 25) { - subBuilder = ((com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_).toBuilder(); + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; } - datasetMetadata_ = - input.readMessage(com.google.cloud.automl.v1.TextClassificationDatasetMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); + case 168: + { + exampleCount_ = input.readInt32(); + break; } - datasetMetadataCase_ = 25; - break; - } - case 210: { - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder subBuilder = null; - if (datasetMetadataCase_ == 26) { - subBuilder = ((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_).toBuilder(); + case 186: + { + com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder subBuilder = null; + if (datasetMetadataCase_ == 23) { + subBuilder = + ((com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.TranslationDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 23; + break; } - datasetMetadata_ = - input.readMessage(com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); + case 194: + { + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder subBuilder = + null; + if (datasetMetadataCase_ == 24) { + subBuilder = + ((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) + datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) + datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 24; + break; } - datasetMetadataCase_ = 26; - break; - } - case 226: { - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder subBuilder = null; - if (datasetMetadataCase_ == 28) { - subBuilder = ((com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_).toBuilder(); + case 202: + { + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder subBuilder = + null; + if (datasetMetadataCase_ == 25) { + subBuilder = + ((com.google.cloud.automl.v1.TextClassificationDatasetMetadata) + datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) + datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 25; + break; } - datasetMetadata_ = - input.readMessage(com.google.cloud.automl.v1.TextExtractionDatasetMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); + case 210: + { + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder subBuilder = + null; + if (datasetMetadataCase_ == 26) { + subBuilder = + ((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) + datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) + datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 26; + break; } - datasetMetadataCase_ = 28; - break; - } - case 242: { - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder subBuilder = null; - if (datasetMetadataCase_ == 30) { - subBuilder = ((com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_).toBuilder(); + case 226: + { + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder subBuilder = null; + if (datasetMetadataCase_ == 28) { + subBuilder = + ((com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 28; + break; } - datasetMetadata_ = - input.readMessage(com.google.cloud.automl.v1.TextSentimentDatasetMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_); - datasetMetadata_ = subBuilder.buildPartial(); + case 242: + { + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder subBuilder = null; + if (datasetMetadataCase_ == 30) { + subBuilder = + ((com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 30; + break; } - datasetMetadataCase_ = 30; - break; - } - case 314: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 314: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DatasetOuterClass + .internal_static_google_cloud_automl_v1_Dataset_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 39: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_fieldAccessorTable + return com.google.cloud.automl.v1.DatasetOuterClass + .internal_static_google_cloud_automl_v1_Dataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Dataset.class, com.google.cloud.automl.v1.Dataset.Builder.class); + com.google.cloud.automl.v1.Dataset.class, + com.google.cloud.automl.v1.Dataset.Builder.class); } private int datasetMetadataCase_ = 0; private java.lang.Object datasetMetadata_; + public enum DatasetMetadataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION_DATASET_METADATA(23), IMAGE_CLASSIFICATION_DATASET_METADATA(24), @@ -254,6 +325,7 @@ public enum DatasetMetadataCase TEXT_SENTIMENT_DATASET_METADATA(30), DATASETMETADATA_NOT_SET(0); private final int value; + private DatasetMetadataCase(int value) { this.value = value; } @@ -269,34 +341,45 @@ public static DatasetMetadataCase valueOf(int value) { public static DatasetMetadataCase forNumber(int value) { switch (value) { - case 23: return TRANSLATION_DATASET_METADATA; - case 24: return IMAGE_CLASSIFICATION_DATASET_METADATA; - case 25: return TEXT_CLASSIFICATION_DATASET_METADATA; - case 26: return IMAGE_OBJECT_DETECTION_DATASET_METADATA; - case 28: return TEXT_EXTRACTION_DATASET_METADATA; - case 30: return TEXT_SENTIMENT_DATASET_METADATA; - case 0: return DATASETMETADATA_NOT_SET; - default: return null; + case 23: + return TRANSLATION_DATASET_METADATA; + case 24: + return IMAGE_CLASSIFICATION_DATASET_METADATA; + case 25: + return TEXT_CLASSIFICATION_DATASET_METADATA; + case 26: + return IMAGE_OBJECT_DETECTION_DATASET_METADATA; + case 28: + return TEXT_EXTRACTION_DATASET_METADATA; + case 30: + return TEXT_SENTIMENT_DATASET_METADATA; + case 0: + return DATASETMETADATA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DatasetMetadataCase - getDatasetMetadataCase() { - return DatasetMetadataCase.forNumber( - datasetMetadataCase_); + public DatasetMetadataCase getDatasetMetadataCase() { + return DatasetMetadataCase.forNumber(datasetMetadataCase_); } public static final int TRANSLATION_DATASET_METADATA_FIELD_NUMBER = 23; /** + * + * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return Whether the translationDatasetMetadata field is set. */ @java.lang.Override @@ -304,42 +387,55 @@ public boolean hasTranslationDatasetMetadata() { return datasetMetadataCase_ == 23; } /** + * + * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return The translationDatasetMetadata. */ @java.lang.Override public com.google.cloud.automl.v1.TranslationDatasetMetadata getTranslationDatasetMetadata() { if (datasetMetadataCase_ == 23) { - return (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder + getTranslationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 23) { - return (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER = 24; /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return Whether the imageClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -347,42 +443,58 @@ public boolean hasImageClassificationDatasetMetadata() { return datasetMetadataCase_ == 24; } /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return The imageClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata + getImageClassificationDatasetMetadata() { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder + getImageClassificationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER = 25; /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return Whether the textClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -390,42 +502,58 @@ public boolean hasTextClassificationDatasetMetadata() { return datasetMetadataCase_ == 25; } /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return The textClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadata + getTextClassificationDatasetMetadata() { if (datasetMetadataCase_ == 25) { - return (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder + getTextClassificationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 25) { - return (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.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.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ @java.lang.Override @@ -433,42 +561,58 @@ public boolean hasImageObjectDetectionDatasetMetadata() { return datasetMetadataCase_ == 26; } /** + * + * *
    * Metadata for a dataset used for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return The imageObjectDetectionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata + getImageObjectDetectionDatasetMetadata() { if (datasetMetadataCase_ == 26) { - return (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for a dataset used for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder + getImageObjectDetectionDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 26) { - return (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); } public static final int TEXT_EXTRACTION_DATASET_METADATA_FIELD_NUMBER = 28; /** + * + * *
    * Metadata for a dataset used for text extraction.
    * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return Whether the textExtractionDatasetMetadata field is set. */ @java.lang.Override @@ -476,42 +620,58 @@ public boolean hasTextExtractionDatasetMetadata() { return datasetMetadataCase_ == 28; } /** + * + * *
    * Metadata for a dataset used for text extraction.
    * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return The textExtractionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionDatasetMetadata getTextExtractionDatasetMetadata() { + public com.google.cloud.automl.v1.TextExtractionDatasetMetadata + getTextExtractionDatasetMetadata() { if (datasetMetadataCase_ == 28) { - return (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for a dataset used for text extraction.
    * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder + getTextExtractionDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 28) { - return (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance(); } public static final int TEXT_SENTIMENT_DATASET_METADATA_FIELD_NUMBER = 30; /** + * + * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return Whether the textSentimentDatasetMetadata field is set. */ @java.lang.Override @@ -519,31 +679,41 @@ public boolean hasTextSentimentDatasetMetadata() { return datasetMetadataCase_ == 30; } /** + * + * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return The textSentimentDatasetMetadata. */ @java.lang.Override public com.google.cloud.automl.v1.TextSentimentDatasetMetadata getTextSentimentDatasetMetadata() { if (datasetMetadataCase_ == 30) { - return (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder + getTextSentimentDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 30) { - return (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance(); } @@ -551,12 +721,15 @@ public com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder getTextS public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -565,30 +738,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -599,6 +772,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * 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
@@ -607,6 +782,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -615,14 +791,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 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
@@ -631,16 +808,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -651,12 +827,15 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -665,30 +844,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -699,11 +878,14 @@ public java.lang.String getDescription() { 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; + * * @return The exampleCount. */ @java.lang.Override @@ -714,11 +896,14 @@ public int getExampleCount() { public static final int CREATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -726,11 +911,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return The createTime. */ @java.lang.Override @@ -738,6 +926,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
@@ -752,12 +942,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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; + * * @return The etag. */ @java.lang.Override @@ -766,30 +959,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -798,24 +991,23 @@ public java.lang.String getEtag() { } public static final int LABELS_FIELD_NUMBER = 39; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.automl.v1.DatasetOuterClass + .internal_static_google_cloud_automl_v1_Dataset_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -824,6 +1016,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -835,22 +1029,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 39;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -863,11 +1057,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 39;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -880,16 +1075,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 39;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -902,12 +1097,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 39;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -915,6 +1109,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -926,8 +1121,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -947,29 +1141,31 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       output.writeInt32(21, exampleCount_);
     }
     if (datasetMetadataCase_ == 23) {
-      output.writeMessage(23, (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_);
+      output.writeMessage(
+          23, (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 24) {
-      output.writeMessage(24, (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_);
+      output.writeMessage(
+          24, (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 25) {
-      output.writeMessage(25, (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_);
+      output.writeMessage(
+          25, (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 26) {
-      output.writeMessage(26, (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_);
+      output.writeMessage(
+          26, (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 28) {
-      output.writeMessage(28, (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_);
+      output.writeMessage(
+          28, (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 30) {
-      output.writeMessage(30, (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_);
-    }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        39);
+      output.writeMessage(
+          30, (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_);
+    }
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 39);
     unknownFields.writeTo(output);
   }
 
@@ -989,49 +1185,54 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(14, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCreateTime());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_);
     }
     if (exampleCount_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(21, exampleCount_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, exampleCount_);
     }
     if (datasetMetadataCase_ == 23) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(23, (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              23, (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 24) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(24, (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              24, (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 25) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(25, (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              25, (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 26) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(26, (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              26,
+              (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 28) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(28, (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              28, (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_);
     }
     if (datasetMetadataCase_ == 30) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(30, (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(39, labels__);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              30, (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1041,35 +1242,28 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.Dataset)) {
       return super.equals(obj);
     }
     com.google.cloud.automl.v1.Dataset other = (com.google.cloud.automl.v1.Dataset) 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 (!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 (!getCreateTime().equals(other.getCreateTime())) return false;
     }
-    if (!getEtag()
-        .equals(other.getEtag())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getEtag().equals(other.getEtag())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getDatasetMetadataCase().equals(other.getDatasetMetadataCase())) return false;
     switch (datasetMetadataCase_) {
       case 23:
-        if (!getTranslationDatasetMetadata()
-            .equals(other.getTranslationDatasetMetadata())) return false;
+        if (!getTranslationDatasetMetadata().equals(other.getTranslationDatasetMetadata()))
+          return false;
         break;
       case 24:
         if (!getImageClassificationDatasetMetadata()
@@ -1084,12 +1278,12 @@ public boolean equals(final java.lang.Object obj) {
             .equals(other.getImageObjectDetectionDatasetMetadata())) return false;
         break;
       case 28:
-        if (!getTextExtractionDatasetMetadata()
-            .equals(other.getTextExtractionDatasetMetadata())) return false;
+        if (!getTextExtractionDatasetMetadata().equals(other.getTextExtractionDatasetMetadata()))
+          return false;
         break;
       case 30:
-        if (!getTextSentimentDatasetMetadata()
-            .equals(other.getTextSentimentDatasetMetadata())) return false;
+        if (!getTextSentimentDatasetMetadata().equals(other.getTextSentimentDatasetMetadata()))
+          return false;
         break;
       case 0:
       default:
@@ -1156,97 +1350,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.Dataset parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.Dataset parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.Dataset parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.Dataset parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.automl.v1.Dataset parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.Dataset 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.v1.Dataset parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.Dataset parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.Dataset parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.Dataset parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.Dataset parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.Dataset parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.Dataset parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.Dataset parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1.Dataset prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A workspace for solving a single, particular machine learning (ML) problem.
    * A workspace contains examples that may be annotated.
@@ -1254,43 +1454,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.Dataset}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.Dataset)
       com.google.cloud.automl.v1.DatasetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.DatasetOuterClass
+          .internal_static_google_cloud_automl_v1_Dataset_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 39:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 39:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_fieldAccessorTable
+      return com.google.cloud.automl.v1.DatasetOuterClass
+          .internal_static_google_cloud_automl_v1_Dataset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.Dataset.class, com.google.cloud.automl.v1.Dataset.Builder.class);
+              com.google.cloud.automl.v1.Dataset.class,
+              com.google.cloud.automl.v1.Dataset.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.Dataset.newBuilder()
@@ -1298,16 +1498,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1334,9 +1533,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.DatasetOuterClass.internal_static_google_cloud_automl_v1_Dataset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.DatasetOuterClass
+          .internal_static_google_cloud_automl_v1_Dataset_descriptor;
     }
 
     @java.lang.Override
@@ -1420,38 +1619,39 @@ public com.google.cloud.automl.v1.Dataset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.Dataset) {
-        return mergeFrom((com.google.cloud.automl.v1.Dataset)other);
+        return mergeFrom((com.google.cloud.automl.v1.Dataset) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1482,36 +1682,43 @@ public Builder mergeFrom(com.google.cloud.automl.v1.Dataset other) {
         etag_ = other.etag_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       switch (other.getDatasetMetadataCase()) {
-        case TRANSLATION_DATASET_METADATA: {
-          mergeTranslationDatasetMetadata(other.getTranslationDatasetMetadata());
-          break;
-        }
-        case IMAGE_CLASSIFICATION_DATASET_METADATA: {
-          mergeImageClassificationDatasetMetadata(other.getImageClassificationDatasetMetadata());
-          break;
-        }
-        case TEXT_CLASSIFICATION_DATASET_METADATA: {
-          mergeTextClassificationDatasetMetadata(other.getTextClassificationDatasetMetadata());
-          break;
-        }
-        case IMAGE_OBJECT_DETECTION_DATASET_METADATA: {
-          mergeImageObjectDetectionDatasetMetadata(other.getImageObjectDetectionDatasetMetadata());
-          break;
-        }
-        case TEXT_EXTRACTION_DATASET_METADATA: {
-          mergeTextExtractionDatasetMetadata(other.getTextExtractionDatasetMetadata());
-          break;
-        }
-        case TEXT_SENTIMENT_DATASET_METADATA: {
-          mergeTextSentimentDatasetMetadata(other.getTextSentimentDatasetMetadata());
-          break;
-        }
-        case DATASETMETADATA_NOT_SET: {
-          break;
-        }
+        case TRANSLATION_DATASET_METADATA:
+          {
+            mergeTranslationDatasetMetadata(other.getTranslationDatasetMetadata());
+            break;
+          }
+        case IMAGE_CLASSIFICATION_DATASET_METADATA:
+          {
+            mergeImageClassificationDatasetMetadata(other.getImageClassificationDatasetMetadata());
+            break;
+          }
+        case TEXT_CLASSIFICATION_DATASET_METADATA:
+          {
+            mergeTextClassificationDatasetMetadata(other.getTextClassificationDatasetMetadata());
+            break;
+          }
+        case IMAGE_OBJECT_DETECTION_DATASET_METADATA:
+          {
+            mergeImageObjectDetectionDatasetMetadata(
+                other.getImageObjectDetectionDatasetMetadata());
+            break;
+          }
+        case TEXT_EXTRACTION_DATASET_METADATA:
+          {
+            mergeTextExtractionDatasetMetadata(other.getTextExtractionDatasetMetadata());
+            break;
+          }
+        case TEXT_SENTIMENT_DATASET_METADATA:
+          {
+            mergeTextSentimentDatasetMetadata(other.getTextSentimentDatasetMetadata());
+            break;
+          }
+        case DATASETMETADATA_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1541,12 +1748,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int datasetMetadataCase_ = 0;
     private java.lang.Object datasetMetadata_;
-    public DatasetMetadataCase
-        getDatasetMetadataCase() {
-      return DatasetMetadataCase.forNumber(
-          datasetMetadataCase_);
+
+    public DatasetMetadataCase getDatasetMetadataCase() {
+      return DatasetMetadataCase.forNumber(datasetMetadataCase_);
     }
 
     public Builder clearDatasetMetadata() {
@@ -1559,13 +1766,20 @@ public Builder clearDatasetMetadata() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.TranslationDatasetMetadata, com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder> translationDatasetMetadataBuilder_;
+            com.google.cloud.automl.v1.TranslationDatasetMetadata,
+            com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder,
+            com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder>
+        translationDatasetMetadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return Whether the translationDatasetMetadata field is set. */ @java.lang.Override @@ -1573,11 +1787,15 @@ public boolean hasTranslationDatasetMetadata() { return datasetMetadataCase_ == 23; } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return The translationDatasetMetadata. */ @java.lang.Override @@ -1595,13 +1813,17 @@ public com.google.cloud.automl.v1.TranslationDatasetMetadata getTranslationDatas } } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ - public Builder setTranslationDatasetMetadata(com.google.cloud.automl.v1.TranslationDatasetMetadata value) { + public Builder setTranslationDatasetMetadata( + com.google.cloud.automl.v1.TranslationDatasetMetadata value) { if (translationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1615,11 +1837,14 @@ public Builder setTranslationDatasetMetadata(com.google.cloud.automl.v1.Translat return this; } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ public Builder setTranslationDatasetMetadata( com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder builderForValue) { @@ -1633,18 +1858,26 @@ public Builder setTranslationDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ - public Builder mergeTranslationDatasetMetadata(com.google.cloud.automl.v1.TranslationDatasetMetadata value) { + public Builder mergeTranslationDatasetMetadata( + com.google.cloud.automl.v1.TranslationDatasetMetadata value) { if (translationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 23 && - datasetMetadata_ != com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = com.google.cloud.automl.v1.TranslationDatasetMetadata.newBuilder((com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_) - .mergeFrom(value).buildPartial(); + if (datasetMetadataCase_ == 23 + && datasetMetadata_ + != com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1.TranslationDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_) + .mergeFrom(value) + .buildPartial(); } else { datasetMetadata_ = value; } @@ -1659,11 +1892,14 @@ public Builder mergeTranslationDatasetMetadata(com.google.cloud.automl.v1.Transl return this; } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ public Builder clearTranslationDatasetMetadata() { if (translationDatasetMetadataBuilder_ == null) { @@ -1682,24 +1918,32 @@ public Builder clearTranslationDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ - public com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder getTranslationDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder + getTranslationDatasetMetadataBuilder() { return getTranslationDatasetMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder + getTranslationDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 23) && (translationDatasetMetadataBuilder_ != null)) { return translationDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -1710,39 +1954,57 @@ public com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder getTransla } } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationDatasetMetadata, com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.TranslationDatasetMetadata, + com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder, + com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder> getTranslationDatasetMetadataFieldBuilder() { if (translationDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 23)) { - datasetMetadata_ = com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = + com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance(); } - translationDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationDatasetMetadata, com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder>( + translationDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TranslationDatasetMetadata, + com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder, + com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.TranslationDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 23; - onChanged();; + onChanged(); + ; return translationDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder> imageClassificationDatasetMetadataBuilder_; + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder> + imageClassificationDatasetMetadataBuilder_; /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return Whether the imageClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -1750,15 +2012,21 @@ public boolean hasImageClassificationDatasetMetadata() { return datasetMetadataCase_ == 24; } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return The imageClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata + getImageClassificationDatasetMetadata() { if (imageClassificationDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 24) { return (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_; @@ -1772,13 +2040,18 @@ public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getImageCla } } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ - public Builder setImageClassificationDatasetMetadata(com.google.cloud.automl.v1.ImageClassificationDatasetMetadata value) { + public Builder setImageClassificationDatasetMetadata( + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata value) { if (imageClassificationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1792,11 +2065,15 @@ public Builder setImageClassificationDatasetMetadata(com.google.cloud.automl.v1. return this; } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ public Builder setImageClassificationDatasetMetadata( com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder builderForValue) { @@ -1810,18 +2087,29 @@ public Builder setImageClassificationDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ - public Builder mergeImageClassificationDatasetMetadata(com.google.cloud.automl.v1.ImageClassificationDatasetMetadata value) { + public Builder mergeImageClassificationDatasetMetadata( + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata value) { if (imageClassificationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 24 && - datasetMetadata_ != com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.newBuilder((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_) - .mergeFrom(value).buildPartial(); + if (datasetMetadataCase_ == 24 + && datasetMetadata_ + != com.google.cloud.automl.v1.ImageClassificationDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) + datasetMetadata_) + .mergeFrom(value) + .buildPartial(); } else { datasetMetadata_ = value; } @@ -1836,11 +2124,15 @@ public Builder mergeImageClassificationDatasetMetadata(com.google.cloud.automl.v return this; } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ public Builder clearImageClassificationDatasetMetadata() { if (imageClassificationDatasetMetadataBuilder_ == null) { @@ -1859,24 +2151,34 @@ public Builder clearImageClassificationDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder getImageClassificationDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder + getImageClassificationDatasetMetadataBuilder() { return getImageClassificationDatasetMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder + getImageClassificationDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 24) && (imageClassificationDatasetMetadataBuilder_ != null)) { return imageClassificationDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -1887,39 +2189,58 @@ public com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder ge } } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder> getImageClassificationDatasetMetadataFieldBuilder() { if (imageClassificationDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 24)) { - datasetMetadata_ = com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance(); } - imageClassificationDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder>( + imageClassificationDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata, + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 24; - onChanged();; + onChanged(); + ; return imageClassificationDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationDatasetMetadata, com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder> textClassificationDatasetMetadataBuilder_; + com.google.cloud.automl.v1.TextClassificationDatasetMetadata, + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder> + textClassificationDatasetMetadataBuilder_; /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return Whether the textClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -1927,15 +2248,21 @@ public boolean hasTextClassificationDatasetMetadata() { return datasetMetadataCase_ == 25; } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return The textClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadata + getTextClassificationDatasetMetadata() { if (textClassificationDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 25) { return (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_; @@ -1949,13 +2276,18 @@ public com.google.cloud.automl.v1.TextClassificationDatasetMetadata getTextClass } } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ - public Builder setTextClassificationDatasetMetadata(com.google.cloud.automl.v1.TextClassificationDatasetMetadata value) { + public Builder setTextClassificationDatasetMetadata( + com.google.cloud.automl.v1.TextClassificationDatasetMetadata value) { if (textClassificationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1969,11 +2301,15 @@ public Builder setTextClassificationDatasetMetadata(com.google.cloud.automl.v1.T return this; } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ public Builder setTextClassificationDatasetMetadata( com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder builderForValue) { @@ -1987,18 +2323,29 @@ public Builder setTextClassificationDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ - public Builder mergeTextClassificationDatasetMetadata(com.google.cloud.automl.v1.TextClassificationDatasetMetadata value) { + public Builder mergeTextClassificationDatasetMetadata( + com.google.cloud.automl.v1.TextClassificationDatasetMetadata value) { if (textClassificationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 25 && - datasetMetadata_ != com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = com.google.cloud.automl.v1.TextClassificationDatasetMetadata.newBuilder((com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_) - .mergeFrom(value).buildPartial(); + if (datasetMetadataCase_ == 25 + && datasetMetadata_ + != com.google.cloud.automl.v1.TextClassificationDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) + datasetMetadata_) + .mergeFrom(value) + .buildPartial(); } else { datasetMetadata_ = value; } @@ -2013,11 +2360,15 @@ public Builder mergeTextClassificationDatasetMetadata(com.google.cloud.automl.v1 return this; } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ public Builder clearTextClassificationDatasetMetadata() { if (textClassificationDatasetMetadataBuilder_ == null) { @@ -2036,24 +2387,34 @@ public Builder clearTextClassificationDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ - public com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder getTextClassificationDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder + getTextClassificationDatasetMetadataBuilder() { return getTextClassificationDatasetMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder + getTextClassificationDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 25) && (textClassificationDatasetMetadataBuilder_ != null)) { return textClassificationDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2064,39 +2425,58 @@ public com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder get } } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationDatasetMetadata, com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.TextClassificationDatasetMetadata, + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder> getTextClassificationDatasetMetadataFieldBuilder() { if (textClassificationDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 25)) { - datasetMetadata_ = com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance(); } - textClassificationDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationDatasetMetadata, com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder>( + textClassificationDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextClassificationDatasetMetadata, + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 25; - onChanged();; + onChanged(); + ; return textClassificationDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder> imageObjectDetectionDatasetMetadataBuilder_; + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder> + imageObjectDetectionDatasetMetadataBuilder_; /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ @java.lang.Override @@ -2104,15 +2484,21 @@ public boolean hasImageObjectDetectionDatasetMetadata() { return datasetMetadataCase_ == 26; } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return The imageObjectDetectionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata + getImageObjectDetectionDatasetMetadata() { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 26) { return (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; @@ -2126,13 +2512,18 @@ public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getImageOb } } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ - public Builder setImageObjectDetectionDatasetMetadata(com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata value) { + public Builder setImageObjectDetectionDatasetMetadata( + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata value) { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2146,11 +2537,15 @@ public Builder setImageObjectDetectionDatasetMetadata(com.google.cloud.automl.v1 return this; } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ public Builder setImageObjectDetectionDatasetMetadata( com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder builderForValue) { @@ -2164,18 +2559,29 @@ public Builder setImageObjectDetectionDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ - public Builder mergeImageObjectDetectionDatasetMetadata(com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata value) { + public Builder mergeImageObjectDetectionDatasetMetadata( + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata value) { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 26 && - datasetMetadata_ != com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.newBuilder((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_) - .mergeFrom(value).buildPartial(); + if (datasetMetadataCase_ == 26 + && datasetMetadata_ + != com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) + datasetMetadata_) + .mergeFrom(value) + .buildPartial(); } else { datasetMetadata_ = value; } @@ -2190,11 +2596,15 @@ public Builder mergeImageObjectDetectionDatasetMetadata(com.google.cloud.automl. return this; } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ public Builder clearImageObjectDetectionDatasetMetadata() { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { @@ -2213,24 +2623,34 @@ public Builder clearImageObjectDetectionDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder getImageObjectDetectionDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder + getImageObjectDetectionDatasetMetadataBuilder() { return getImageObjectDetectionDatasetMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder + getImageObjectDetectionDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 26) && (imageObjectDetectionDatasetMetadataBuilder_ != null)) { return imageObjectDetectionDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2241,39 +2661,58 @@ public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder g } } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder> getImageObjectDetectionDatasetMetadataFieldBuilder() { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 26)) { - datasetMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); } - imageObjectDetectionDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder>( + imageObjectDetectionDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 26; - onChanged();; + onChanged(); + ; return imageObjectDetectionDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionDatasetMetadata, com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder> textExtractionDatasetMetadataBuilder_; + com.google.cloud.automl.v1.TextExtractionDatasetMetadata, + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, + com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder> + textExtractionDatasetMetadataBuilder_; /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return Whether the textExtractionDatasetMetadata field is set. */ @java.lang.Override @@ -2281,15 +2720,21 @@ public boolean hasTextExtractionDatasetMetadata() { return datasetMetadataCase_ == 28; } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return The textExtractionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionDatasetMetadata getTextExtractionDatasetMetadata() { + public com.google.cloud.automl.v1.TextExtractionDatasetMetadata + getTextExtractionDatasetMetadata() { if (textExtractionDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 28) { return (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_; @@ -2303,13 +2748,18 @@ public com.google.cloud.automl.v1.TextExtractionDatasetMetadata getTextExtractio } } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ - public Builder setTextExtractionDatasetMetadata(com.google.cloud.automl.v1.TextExtractionDatasetMetadata value) { + public Builder setTextExtractionDatasetMetadata( + com.google.cloud.automl.v1.TextExtractionDatasetMetadata value) { if (textExtractionDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2323,11 +2773,15 @@ public Builder setTextExtractionDatasetMetadata(com.google.cloud.automl.v1.TextE return this; } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ public Builder setTextExtractionDatasetMetadata( com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder builderForValue) { @@ -2341,18 +2795,27 @@ public Builder setTextExtractionDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ - public Builder mergeTextExtractionDatasetMetadata(com.google.cloud.automl.v1.TextExtractionDatasetMetadata value) { + public Builder mergeTextExtractionDatasetMetadata( + com.google.cloud.automl.v1.TextExtractionDatasetMetadata value) { if (textExtractionDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 28 && - datasetMetadata_ != com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = com.google.cloud.automl.v1.TextExtractionDatasetMetadata.newBuilder((com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_) - .mergeFrom(value).buildPartial(); + if (datasetMetadataCase_ == 28 + && datasetMetadata_ + != com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_) + .mergeFrom(value) + .buildPartial(); } else { datasetMetadata_ = value; } @@ -2367,11 +2830,15 @@ public Builder mergeTextExtractionDatasetMetadata(com.google.cloud.automl.v1.Tex return this; } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ public Builder clearTextExtractionDatasetMetadata() { if (textExtractionDatasetMetadataBuilder_ == null) { @@ -2390,24 +2857,34 @@ public Builder clearTextExtractionDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ - public com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder getTextExtractionDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder + getTextExtractionDatasetMetadataBuilder() { return getTextExtractionDatasetMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder + getTextExtractionDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 28) && (textExtractionDatasetMetadataBuilder_ != null)) { return textExtractionDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2418,39 +2895,58 @@ public com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder getText } } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionDatasetMetadata, com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.TextExtractionDatasetMetadata, + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, + com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder> getTextExtractionDatasetMetadataFieldBuilder() { if (textExtractionDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 28)) { - datasetMetadata_ = com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance(); } - textExtractionDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionDatasetMetadata, com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder>( + textExtractionDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextExtractionDatasetMetadata, + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder, + com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 28; - onChanged();; + onChanged(); + ; return textExtractionDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentDatasetMetadata, com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder> textSentimentDatasetMetadataBuilder_; + com.google.cloud.automl.v1.TextSentimentDatasetMetadata, + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, + com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder> + textSentimentDatasetMetadataBuilder_; /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return Whether the textSentimentDatasetMetadata field is set. */ @java.lang.Override @@ -2458,15 +2954,21 @@ public boolean hasTextSentimentDatasetMetadata() { return datasetMetadataCase_ == 30; } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return The textSentimentDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentDatasetMetadata getTextSentimentDatasetMetadata() { + public com.google.cloud.automl.v1.TextSentimentDatasetMetadata + getTextSentimentDatasetMetadata() { if (textSentimentDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 30) { return (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_; @@ -2480,13 +2982,18 @@ public com.google.cloud.automl.v1.TextSentimentDatasetMetadata getTextSentimentD } } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ - public Builder setTextSentimentDatasetMetadata(com.google.cloud.automl.v1.TextSentimentDatasetMetadata value) { + public Builder setTextSentimentDatasetMetadata( + com.google.cloud.automl.v1.TextSentimentDatasetMetadata value) { if (textSentimentDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2500,11 +3007,15 @@ public Builder setTextSentimentDatasetMetadata(com.google.cloud.automl.v1.TextSe return this; } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ public Builder setTextSentimentDatasetMetadata( com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder builderForValue) { @@ -2518,18 +3029,27 @@ public Builder setTextSentimentDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ - public Builder mergeTextSentimentDatasetMetadata(com.google.cloud.automl.v1.TextSentimentDatasetMetadata value) { + public Builder mergeTextSentimentDatasetMetadata( + com.google.cloud.automl.v1.TextSentimentDatasetMetadata value) { if (textSentimentDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 30 && - datasetMetadata_ != com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = com.google.cloud.automl.v1.TextSentimentDatasetMetadata.newBuilder((com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_) - .mergeFrom(value).buildPartial(); + if (datasetMetadataCase_ == 30 + && datasetMetadata_ + != com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_) + .mergeFrom(value) + .buildPartial(); } else { datasetMetadata_ = value; } @@ -2544,11 +3064,15 @@ public Builder mergeTextSentimentDatasetMetadata(com.google.cloud.automl.v1.Text return this; } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ public Builder clearTextSentimentDatasetMetadata() { if (textSentimentDatasetMetadataBuilder_ == null) { @@ -2567,24 +3091,34 @@ public Builder clearTextSentimentDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ - public com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder getTextSentimentDatasetMetadataBuilder() { + public com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder + getTextSentimentDatasetMetadataBuilder() { return getTextSentimentDatasetMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder + getTextSentimentDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 30) && (textSentimentDatasetMetadataBuilder_ != null)) { return textSentimentDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2595,46 +3129,59 @@ public com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder getTextS } } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentDatasetMetadata, com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder> + com.google.cloud.automl.v1.TextSentimentDatasetMetadata, + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, + com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder> getTextSentimentDatasetMetadataFieldBuilder() { if (textSentimentDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 30)) { - datasetMetadata_ = com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance(); } - textSentimentDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentDatasetMetadata, com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder>( + textSentimentDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSentimentDatasetMetadata, + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder, + com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 30; - onChanged();; + onChanged(); + ; return textSentimentDatasetMetadataBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2643,21 +3190,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2665,57 +3213,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2723,6 +3278,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * 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
@@ -2731,13 +3288,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2746,6 +3303,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
@@ -2754,15 +3313,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2770,6 +3328,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
@@ -2778,20 +3338,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * 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
@@ -2800,15 +3362,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * 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
@@ -2817,16 +3382,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2834,19 +3399,21 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; + * * @return The description. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2855,21 +3422,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2877,69 +3445,79 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private int exampleCount_ ; + private int exampleCount_; /** + * + * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; + * * @return The exampleCount. */ @java.lang.Override @@ -2947,30 +3525,36 @@ public int getExampleCount() { return exampleCount_; } /** + * + * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; + * * @param value The exampleCount to set. * @return This builder for chaining. */ public Builder setExampleCount(int value) { - + exampleCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; + * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0; onChanged(); return this; @@ -2978,34 +3562,47 @@ public Builder clearExampleCount() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3026,14 +3623,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3044,6 +3642,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3054,7 +3654,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3066,6 +3666,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3084,6 +3686,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3091,11 +3695,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 14; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3106,11 +3712,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3118,14 +3727,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3133,19 +3745,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; + * * @return The etag. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3154,21 +3768,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -3176,78 +3791,84 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3259,6 +3880,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3270,22 +3893,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 39;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3298,11 +3921,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 39;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3315,16 +3939,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 39;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3337,12 +3962,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 39;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3350,11 +3974,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3366,23 +3991,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 39;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3394,16 +4017,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 39;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your dataset.
      * Label keys and values can be no longer than 64 characters
@@ -3415,16 +4041,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 39;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3434,12 +4057,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.Dataset)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.Dataset)
   private static final com.google.cloud.automl.v1.Dataset DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.Dataset();
   }
@@ -3448,16 +4071,16 @@ public static com.google.cloud.automl.v1.Dataset getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Dataset parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Dataset(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Dataset parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Dataset(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3472,6 +4095,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.Dataset getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java
index ccd15f8ea..a2ad21458 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOrBuilder.java
@@ -1,197 +1,310 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/dataset.proto
 
 package com.google.cloud.automl.v1;
 
-public interface DatasetOrBuilder extends
+public interface DatasetOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Dataset)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return Whether the translationDatasetMetadata field is set. */ boolean hasTranslationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return The translationDatasetMetadata. */ com.google.cloud.automl.v1.TranslationDatasetMetadata getTranslationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ - com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder + getTranslationDatasetMetadataOrBuilder(); /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return Whether the imageClassificationDatasetMetadata field is set. */ boolean hasImageClassificationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return The imageClassificationDatasetMetadata. */ - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata(); + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata + getImageClassificationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ - com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder + getImageClassificationDatasetMetadataOrBuilder(); /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return Whether the textClassificationDatasetMetadata field is set. */ boolean hasTextClassificationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return The textClassificationDatasetMetadata. */ - com.google.cloud.automl.v1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata(); + com.google.cloud.automl.v1.TextClassificationDatasetMetadata + getTextClassificationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ - com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder + getTextClassificationDatasetMetadataOrBuilder(); /** + * + * *
    * Metadata for a dataset used for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ boolean hasImageObjectDetectionDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return The imageObjectDetectionDatasetMetadata. */ - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata(); + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata + getImageObjectDetectionDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder + getImageObjectDetectionDatasetMetadataOrBuilder(); /** + * + * *
    * Metadata for a dataset used for text extraction.
    * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return Whether the textExtractionDatasetMetadata field is set. */ boolean hasTextExtractionDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for text extraction.
    * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return The textExtractionDatasetMetadata. */ com.google.cloud.automl.v1.TextExtractionDatasetMetadata getTextExtractionDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for text extraction.
    * 
* - * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ - com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder + getTextExtractionDatasetMetadataOrBuilder(); /** + * + * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return Whether the textSentimentDatasetMetadata field is set. */ boolean hasTextSentimentDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return The textSentimentDatasetMetadata. */ com.google.cloud.automl.v1.TextSentimentDatasetMetadata getTextSentimentDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ - com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder + getTextSentimentDatasetMetadataOrBuilder(); /** + * + * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + 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
@@ -200,10 +313,13 @@ public interface DatasetOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ 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
@@ -212,62 +328,78 @@ public interface DatasetOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The number of examples in the dataset.
    * 
* * int32 example_count = 21; + * * @return The exampleCount. */ int getExampleCount(); /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
@@ -277,28 +409,35 @@ public interface DatasetOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 17; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 17; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -312,6 +451,8 @@ public interface DatasetOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -323,15 +464,13 @@ public interface DatasetOrBuilder extends
    *
    * map<string, string> labels = 39;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -343,9 +482,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 39;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -357,11 +497,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 39;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your dataset.
    * Label keys and values can be no longer than 64 characters
@@ -373,9 +512,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 39;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   public com.google.cloud.automl.v1.Dataset.DatasetMetadataCase getDatasetMetadataCase();
 }
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOuterClass.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOuterClass.java
new file mode 100644
index 000000000..52c80c6d5
--- /dev/null
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetOuterClass.java
@@ -0,0 +1,139 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1/dataset.proto
+
+package com.google.cloud.automl.v1;
+
+public final class DatasetOuterClass {
+  private DatasetOuterClass() {}
+
+  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_v1_Dataset_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_Dataset_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_Dataset_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_Dataset_LabelsEntry_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/v1/dataset.proto\022\026"
+          + "google.cloud.automl.v1\032\031google/api/resou"
+          + "rce.proto\032\"google/cloud/automl/v1/image."
+          + "proto\032!google/cloud/automl/v1/text.proto"
+          + "\032(google/cloud/automl/v1/translation.pro"
+          + "to\032\037google/protobuf/timestamp.proto\032\034goo"
+          + "gle/api/annotations.proto\"\340\007\n\007Dataset\022Z\n"
+          + "\034translation_dataset_metadata\030\027 \001(\01322.go"
+          + "ogle.cloud.automl.v1.TranslationDatasetM"
+          + "etadataH\000\022k\n%image_classification_datase"
+          + "t_metadata\030\030 \001(\0132:.google.cloud.automl.v"
+          + "1.ImageClassificationDatasetMetadataH\000\022i"
+          + "\n$text_classification_dataset_metadata\030\031"
+          + " \001(\01329.google.cloud.automl.v1.TextClassi"
+          + "ficationDatasetMetadataH\000\022n\n\'image_objec"
+          + "t_detection_dataset_metadata\030\032 \001(\0132;.goo"
+          + "gle.cloud.automl.v1.ImageObjectDetection"
+          + "DatasetMetadataH\000\022a\n text_extraction_dat"
+          + "aset_metadata\030\034 \001(\01325.google.cloud.autom"
+          + "l.v1.TextExtractionDatasetMetadataH\000\022_\n\037"
+          + "text_sentiment_dataset_metadata\030\036 \001(\01324."
+          + "google.cloud.automl.v1.TextSentimentData"
+          + "setMetadataH\000\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n"
+          + "ame\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\025\n\rexampl"
+          + "e_count\030\025 \001(\005\022/\n\013create_time\030\016 \001(\0132\032.goo"
+          + "gle.protobuf.Timestamp\022\014\n\004etag\030\021 \001(\t\022;\n\006"
+          + "labels\030\' \003(\0132+.google.cloud.automl.v1.Da"
+          + "taset.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030"
+          + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\035automl.go"
+          + "ogleapis.com/Dataset\022:projects/{project}"
+          + "/locations/{location}/datasets/{dataset}"
+          + "B\022\n\020dataset_metadataB\252\001\n\032com.google.clou"
+          + "d.automl.v1P\001Z
  * Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1.AutoMl.DeleteDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1.DeleteDatasetRequest} */ -public final class DeleteDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DeleteDatasetRequest) DeleteDatasetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteDatasetRequest.newBuilder() to construct. private DeleteDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private DeleteDatasetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteDatasetRequest.class, com.google.cloud.automl.v1.DeleteDatasetRequest.Builder.class); + com.google.cloud.automl.v1.DeleteDatasetRequest.class, + com.google.cloud.automl.v1.DeleteDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the dataset to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 dataset to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DeleteDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.DeleteDatasetRequest other = (com.google.cloud.automl.v1.DeleteDatasetRequest) obj; + com.google.cloud.automl.v1.DeleteDatasetRequest other = + (com.google.cloud.automl.v1.DeleteDatasetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeleteDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeleteDatasetRequest 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.v1.DeleteDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DeleteDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeleteDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.DeleteDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1.AutoMl.DeleteDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1.DeleteDatasetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DeleteDatasetRequest) com.google.cloud.automl.v1.DeleteDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteDatasetRequest.class, com.google.cloud.automl.v1.DeleteDatasetRequest.Builder.class); + com.google.cloud.automl.v1.DeleteDatasetRequest.class, + com.google.cloud.automl.v1.DeleteDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.DeleteDatasetRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeleteDatasetRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1.DeleteDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1.DeleteDatasetRequest buildPartial() { - com.google.cloud.automl.v1.DeleteDatasetRequest result = new com.google.cloud.automl.v1.DeleteDatasetRequest(this); + com.google.cloud.automl.v1.DeleteDatasetRequest result = + new com.google.cloud.automl.v1.DeleteDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1.DeleteDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DeleteDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1.DeleteDatasetRequest)other); + return mergeFrom((com.google.cloud.automl.v1.DeleteDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.DeleteDatasetRequest other) { - if (other == com.google.cloud.automl.v1.DeleteDatasetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.DeleteDatasetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -445,18 +483,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the dataset to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +507,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +531,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DeleteDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DeleteDatasetRequest) private static final com.google.cloud.automl.v1.DeleteDatasetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DeleteDatasetRequest(); } @@ -564,16 +622,16 @@ public static com.google.cloud.automl.v1.DeleteDatasetRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +646,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.DeleteDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequestOrBuilder.java new file mode 100644 index 000000000..894e40f15 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteDatasetRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface DeleteDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeleteDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the dataset to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the dataset to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java index 0b370beff..604ce4e29 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.DeleteModel][google.cloud.automl.v1.AutoMl.DeleteModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1.DeleteModelRequest} */ -public final class DeleteModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DeleteModelRequest) DeleteModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteModelRequest.newBuilder() to construct. private DeleteModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private DeleteModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeleteModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteModelRequest.class, com.google.cloud.automl.v1.DeleteModelRequest.Builder.class); + com.google.cloud.automl.v1.DeleteModelRequest.class, + com.google.cloud.automl.v1.DeleteModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the model being deleted.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the model being deleted.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DeleteModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.DeleteModelRequest other = (com.google.cloud.automl.v1.DeleteModelRequest) obj; + com.google.cloud.automl.v1.DeleteModelRequest other = + (com.google.cloud.automl.v1.DeleteModelRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeleteModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeleteModelRequest 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.v1.DeleteModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DeleteModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.DeleteModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeleteModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeleteModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.DeleteModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.DeleteModel][google.cloud.automl.v1.AutoMl.DeleteModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1.DeleteModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DeleteModelRequest) com.google.cloud.automl.v1.DeleteModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeleteModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteModelRequest.class, com.google.cloud.automl.v1.DeleteModelRequest.Builder.class); + com.google.cloud.automl.v1.DeleteModelRequest.class, + com.google.cloud.automl.v1.DeleteModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.DeleteModelRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeleteModelRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1.DeleteModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.DeleteModelRequest buildPartial() { - com.google.cloud.automl.v1.DeleteModelRequest result = new com.google.cloud.automl.v1.DeleteModelRequest(this); + com.google.cloud.automl.v1.DeleteModelRequest result = + new com.google.cloud.automl.v1.DeleteModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1.DeleteModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DeleteModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.DeleteModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1.DeleteModelRequest) other); } else { super.mergeFrom(other); return this; @@ -445,18 +482,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the model being deleted.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +506,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model being deleted.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +530,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model being deleted.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model being deleted.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model being deleted.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +607,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DeleteModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DeleteModelRequest) private static final com.google.cloud.automl.v1.DeleteModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DeleteModelRequest(); } @@ -564,16 +621,16 @@ public static com.google.cloud.automl.v1.DeleteModelRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.DeleteModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java new file mode 100644 index 000000000..549fa5d69 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteModelRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface DeleteModelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeleteModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the model being deleted.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the model being deleted.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java index 154a6d4fc..94340c019 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** + * + * *
  * Details of operations that perform deletes of any entities.
  * 
* * Protobuf type {@code google.cloud.automl.v1.DeleteOperationMetadata} */ -public final class DeleteOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DeleteOperationMetadata) DeleteOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteOperationMetadata.newBuilder() to construct. private DeleteOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteOperationMetadata() { - } + + private DeleteOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private DeleteOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Operations.internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteOperationMetadata.class, com.google.cloud.automl.v1.DeleteOperationMetadata.Builder.class); + com.google.cloud.automl.v1.DeleteOperationMetadata.class, + com.google.cloud.automl.v1.DeleteOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DeleteOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.DeleteOperationMetadata other = (com.google.cloud.automl.v1.DeleteOperationMetadata) obj; + com.google.cloud.automl.v1.DeleteOperationMetadata other = + (com.google.cloud.automl.v1.DeleteOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeleteOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.DeleteOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DeleteOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.DeleteOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeleteOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.DeleteOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.DeleteOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.DeleteOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DeleteOperationMetadata) com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeleteOperationMetadata.class, com.google.cloud.automl.v1.DeleteOperationMetadata.Builder.class); + com.google.cloud.automl.v1.DeleteOperationMetadata.class, + com.google.cloud.automl.v1.DeleteOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.DeleteOperationMetadata.newBuilder() @@ -257,16 +285,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +301,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; } @java.lang.Override @@ -295,7 +322,8 @@ public com.google.cloud.automl.v1.DeleteOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.DeleteOperationMetadata buildPartial() { - com.google.cloud.automl.v1.DeleteOperationMetadata result = new com.google.cloud.automl.v1.DeleteOperationMetadata(this); + com.google.cloud.automl.v1.DeleteOperationMetadata result = + new com.google.cloud.automl.v1.DeleteOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +332,39 @@ public com.google.cloud.automl.v1.DeleteOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DeleteOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.DeleteOperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.DeleteOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +372,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.DeleteOperationMetadata other) { - if (other == com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +393,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.DeleteOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.DeleteOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +403,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +415,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DeleteOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DeleteOperationMetadata) private static final com.google.cloud.automl.v1.DeleteOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DeleteOperationMetadata(); } @@ -398,16 +429,16 @@ public static com.google.cloud.automl.v1.DeleteOperationMetadata getDefaultInsta 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); - } - }; + 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; @@ -422,6 +453,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.DeleteOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java new file mode 100644 index 000000000..d7890dc73 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeleteOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface DeleteOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeleteOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java index 0f83bfe5b..4eadfff2c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** + * + * *
  * Details of DeployModel operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.DeployModelOperationMetadata} */ -public final class DeployModelOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeployModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DeployModelOperationMetadata) DeployModelOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeployModelOperationMetadata.newBuilder() to construct. private DeployModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeployModelOperationMetadata() { - } + + private DeployModelOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeployModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeployModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private DeployModelOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Operations.internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeployModelOperationMetadata.class, com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.DeployModelOperationMetadata.class, + com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DeployModelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.DeployModelOperationMetadata other = (com.google.cloud.automl.v1.DeployModelOperationMetadata) obj; + com.google.cloud.automl.v1.DeployModelOperationMetadata other = + (com.google.cloud.automl.v1.DeployModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeployModelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.DeployModelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.DeployModelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.DeployModelOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.DeployModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.DeployModelOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DeployModelOperationMetadata) com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeployModelOperationMetadata.class, com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.DeployModelOperationMetadata.class, + com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.DeployModelOperationMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; } @java.lang.Override @@ -295,7 +323,8 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.DeployModelOperationMetadata buildPartial() { - com.google.cloud.automl.v1.DeployModelOperationMetadata result = new com.google.cloud.automl.v1.DeployModelOperationMetadata(this); + com.google.cloud.automl.v1.DeployModelOperationMetadata result = + new com.google.cloud.automl.v1.DeployModelOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +333,39 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DeployModelOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.DeployModelOperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.DeployModelOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +373,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.DeployModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.DeployModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.DeployModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +404,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DeployModelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DeployModelOperationMetadata) private static final com.google.cloud.automl.v1.DeployModelOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DeployModelOperationMetadata(); } @@ -398,16 +430,16 @@ public static com.google.cloud.automl.v1.DeployModelOperationMetadata getDefault 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); - } - }; + 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; @@ -422,6 +454,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.DeployModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..1089fe326 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface DeployModelOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeployModelOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java index 86fb4f999..40484882c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.DeployModel][google.cloud.automl.v1.AutoMl.DeployModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1.DeployModelRequest} */ -public final class DeployModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeployModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DeployModelRequest) DeployModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeployModelRequest.newBuilder() to construct. private DeployModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeployModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeployModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeployModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,81 +70,107 @@ private DeployModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder subBuilder = null; - if (modelDeploymentMetadataCase_ == 2) { - subBuilder = ((com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_).toBuilder(); - } - modelDeploymentMetadata_ = - input.readMessage(com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_); - modelDeploymentMetadata_ = subBuilder.buildPartial(); + name_ = s; + break; } - modelDeploymentMetadataCase_ = 2; - break; - } - case 34: { - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder subBuilder = null; - if (modelDeploymentMetadataCase_ == 4) { - subBuilder = ((com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_).toBuilder(); + case 18: + { + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder + subBuilder = null; + if (modelDeploymentMetadataCase_ == 2) { + subBuilder = + ((com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_) + .toBuilder(); + } + modelDeploymentMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_); + modelDeploymentMetadata_ = subBuilder.buildPartial(); + } + modelDeploymentMetadataCase_ = 2; + break; } - modelDeploymentMetadata_ = - input.readMessage(com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); - modelDeploymentMetadata_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder + subBuilder = null; + if (modelDeploymentMetadataCase_ == 4) { + subBuilder = + ((com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_) + .toBuilder(); + } + modelDeploymentMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_); + modelDeploymentMetadata_ = subBuilder.buildPartial(); + } + modelDeploymentMetadataCase_ = 4; + break; } - modelDeploymentMetadataCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeployModelRequest.class, com.google.cloud.automl.v1.DeployModelRequest.Builder.class); + com.google.cloud.automl.v1.DeployModelRequest.class, + com.google.cloud.automl.v1.DeployModelRequest.Builder.class); } private int modelDeploymentMetadataCase_ = 0; private java.lang.Object modelDeploymentMetadata_; + public enum ModelDeploymentMetadataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA(2), IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA(4), MODELDEPLOYMENTMETADATA_NOT_SET(0); private final int value; + private ModelDeploymentMetadataCase(int value) { this.value = value; } @@ -143,30 +186,38 @@ public static ModelDeploymentMetadataCase valueOf(int value) { public static ModelDeploymentMetadataCase forNumber(int value) { switch (value) { - case 2: return IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA; - case 4: return IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA; - case 0: return MODELDEPLOYMENTMETADATA_NOT_SET; - default: return null; + case 2: + return IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA; + case 4: + return IMAGE_CLASSIFICATION_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 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.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. */ @java.lang.Override @@ -174,42 +225,62 @@ public boolean hasImageObjectDetectionModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 2; } /** + * + * *
    * Model deployment metadata specific to Image Object Detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * * @return The imageObjectDetectionModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getImageObjectDetectionModelDeploymentMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + getImageObjectDetectionModelDeploymentMetadata() { if (modelDeploymentMetadataCase_ == 2) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); } /** + * + * *
    * Model deployment metadata specific to Image Object Detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder getImageObjectDetectionModelDeploymentMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder + getImageObjectDetectionModelDeploymentMetadataOrBuilder() { if (modelDeploymentMetadataCase_ == 2) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA_FIELD_NUMBER = 4; /** + * + * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * * @return Whether the imageClassificationModelDeploymentMetadata field is set. */ @java.lang.Override @@ -217,43 +288,63 @@ public boolean hasImageClassificationModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 4; } /** + * + * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * * @return The imageClassificationModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata() { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + getImageClassificationModelDeploymentMetadata() { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } /** + * + * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder + getImageClassificationModelDeploymentMetadataOrBuilder() { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the model to deploy.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -262,29 +353,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the model to deploy.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -293,6 +386,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,16 +398,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (modelDeploymentMetadataCase_ == 2) { - output.writeMessage(2, (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_); + output.writeMessage( + 2, + (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_); } if (modelDeploymentMetadataCase_ == 4) { - output.writeMessage(4, (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); + output.writeMessage( + 4, + (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_); } unknownFields.writeTo(output); } @@ -328,12 +427,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (modelDeploymentMetadataCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_); } if (modelDeploymentMetadataCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -343,16 +448,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DeployModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.DeployModelRequest other = (com.google.cloud.automl.v1.DeployModelRequest) obj; + com.google.cloud.automl.v1.DeployModelRequest other = + (com.google.cloud.automl.v1.DeployModelRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getModelDeploymentMetadataCase().equals(other.getModelDeploymentMetadataCase())) return false; + if (!getName().equals(other.getName())) return false; + if (!getModelDeploymentMetadataCase().equals(other.getModelDeploymentMetadataCase())) + return false; switch (modelDeploymentMetadataCase_) { case 2: if (!getImageObjectDetectionModelDeploymentMetadata() @@ -395,118 +501,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.DeployModelRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeployModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeployModelRequest 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.v1.DeployModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.DeployModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DeployModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.DeployModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeployModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DeployModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.DeployModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.DeployModel][google.cloud.automl.v1.AutoMl.DeployModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1.DeployModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DeployModelRequest) com.google.cloud.automl.v1.DeployModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DeployModelRequest.class, com.google.cloud.automl.v1.DeployModelRequest.Builder.class); + com.google.cloud.automl.v1.DeployModelRequest.class, + com.google.cloud.automl.v1.DeployModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.DeployModelRequest.newBuilder() @@ -514,16 +629,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +649,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_DeployModelRequest_descriptor; } @java.lang.Override @@ -556,19 +670,22 @@ public com.google.cloud.automl.v1.DeployModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.DeployModelRequest buildPartial() { - com.google.cloud.automl.v1.DeployModelRequest result = new com.google.cloud.automl.v1.DeployModelRequest(this); + com.google.cloud.automl.v1.DeployModelRequest result = + new com.google.cloud.automl.v1.DeployModelRequest(this); if (modelDeploymentMetadataCase_ == 2) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { result.modelDeploymentMetadata_ = modelDeploymentMetadata_; } else { - result.modelDeploymentMetadata_ = imageObjectDetectionModelDeploymentMetadataBuilder_.build(); + result.modelDeploymentMetadata_ = + imageObjectDetectionModelDeploymentMetadataBuilder_.build(); } } if (modelDeploymentMetadataCase_ == 4) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { result.modelDeploymentMetadata_ = modelDeploymentMetadata_; } else { - result.modelDeploymentMetadata_ = imageClassificationModelDeploymentMetadataBuilder_.build(); + result.modelDeploymentMetadata_ = + imageClassificationModelDeploymentMetadataBuilder_.build(); } } result.name_ = name_; @@ -581,38 +698,39 @@ public com.google.cloud.automl.v1.DeployModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DeployModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.DeployModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1.DeployModelRequest) other); } else { super.mergeFrom(other); return this; @@ -626,17 +744,22 @@ public Builder mergeFrom(com.google.cloud.automl.v1.DeployModelRequest other) { onChanged(); } switch (other.getModelDeploymentMetadataCase()) { - case IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA: { - mergeImageObjectDetectionModelDeploymentMetadata(other.getImageObjectDetectionModelDeploymentMetadata()); - break; - } - case IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA: { - mergeImageClassificationModelDeploymentMetadata(other.getImageClassificationModelDeploymentMetadata()); - break; - } - case MODELDEPLOYMENTMETADATA_NOT_SET: { - break; - } + case IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA: + { + mergeImageObjectDetectionModelDeploymentMetadata( + other.getImageObjectDetectionModelDeploymentMetadata()); + break; + } + case IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA: + { + mergeImageClassificationModelDeploymentMetadata( + other.getImageClassificationModelDeploymentMetadata()); + break; + } + case MODELDEPLOYMENTMETADATA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -666,12 +789,12 @@ public Builder mergeFrom( } return this; } + private int modelDeploymentMetadataCase_ = 0; private java.lang.Object modelDeploymentMetadata_; - public ModelDeploymentMetadataCase - getModelDeploymentMetadataCase() { - return ModelDeploymentMetadataCase.forNumber( - modelDeploymentMetadataCase_); + + public ModelDeploymentMetadataCase getModelDeploymentMetadataCase() { + return ModelDeploymentMetadataCase.forNumber(modelDeploymentMetadataCase_); } public Builder clearModelDeploymentMetadata() { @@ -681,15 +804,22 @@ public Builder clearModelDeploymentMetadata() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder> imageObjectDetectionModelDeploymentMetadataBuilder_; + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder> + imageObjectDetectionModelDeploymentMetadataBuilder_; /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. */ @java.lang.Override @@ -697,35 +827,49 @@ public boolean hasImageObjectDetectionModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 2; } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * * @return The imageObjectDetectionModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getImageObjectDetectionModelDeploymentMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + getImageObjectDetectionModelDeploymentMetadata() { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { if (modelDeploymentMetadataCase_ == 2) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); } else { if (modelDeploymentMetadataCase_ == 2) { return imageObjectDetectionModelDeploymentMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); } } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ - public Builder setImageObjectDetectionModelDeploymentMetadata(com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata value) { + public Builder setImageObjectDetectionModelDeploymentMetadata( + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata value) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -739,14 +883,19 @@ public Builder setImageObjectDetectionModelDeploymentMetadata(com.google.cloud.a return this; } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ public Builder setImageObjectDetectionModelDeploymentMetadata( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder builderForValue) { + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder + builderForValue) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { modelDeploymentMetadata_ = builderForValue.build(); onChanged(); @@ -757,18 +906,29 @@ public Builder setImageObjectDetectionModelDeploymentMetadata( return this; } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ - public Builder mergeImageObjectDetectionModelDeploymentMetadata(com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata value) { + public Builder mergeImageObjectDetectionModelDeploymentMetadata( + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata value) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { - if (modelDeploymentMetadataCase_ == 2 && - modelDeploymentMetadata_ != com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance()) { - modelDeploymentMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.newBuilder((com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_) - .mergeFrom(value).buildPartial(); + if (modelDeploymentMetadataCase_ == 2 + && modelDeploymentMetadata_ + != com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance()) { + modelDeploymentMetadata_ = + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.newBuilder( + (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelDeploymentMetadata_ = value; } @@ -783,11 +943,15 @@ public Builder mergeImageObjectDetectionModelDeploymentMetadata(com.google.cloud return this; } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ public Builder clearImageObjectDetectionModelDeploymentMetadata() { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { @@ -806,67 +970,101 @@ public Builder clearImageObjectDetectionModelDeploymentMetadata() { return this; } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder getImageObjectDetectionModelDeploymentMetadataBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder + getImageObjectDetectionModelDeploymentMetadataBuilder() { return getImageObjectDetectionModelDeploymentMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder getImageObjectDetectionModelDeploymentMetadataOrBuilder() { - if ((modelDeploymentMetadataCase_ == 2) && (imageObjectDetectionModelDeploymentMetadataBuilder_ != null)) { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder + getImageObjectDetectionModelDeploymentMetadataOrBuilder() { + if ((modelDeploymentMetadataCase_ == 2) + && (imageObjectDetectionModelDeploymentMetadataBuilder_ != null)) { return imageObjectDetectionModelDeploymentMetadataBuilder_.getMessageOrBuilder(); } else { if (modelDeploymentMetadataCase_ == 2) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); } } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder> + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder> getImageObjectDetectionModelDeploymentMetadataFieldBuilder() { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { if (!(modelDeploymentMetadataCase_ == 2)) { - modelDeploymentMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + modelDeploymentMetadata_ = + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); } - imageObjectDetectionModelDeploymentMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder>( - (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_, + imageObjectDetectionModelDeploymentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder>( + (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_, getParentForChildren(), isClean()); modelDeploymentMetadata_ = null; } modelDeploymentMetadataCase_ = 2; - onChanged();; + onChanged(); + ; return imageObjectDetectionModelDeploymentMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder> imageClassificationModelDeploymentMetadataBuilder_; + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder> + imageClassificationModelDeploymentMetadataBuilder_; /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * * @return Whether the imageClassificationModelDeploymentMetadata field is set. */ @java.lang.Override @@ -874,35 +1072,49 @@ public boolean hasImageClassificationModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 4; } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * * @return The imageClassificationModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata() { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + getImageClassificationModelDeploymentMetadata() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } else { if (modelDeploymentMetadataCase_ == 4) { return imageClassificationModelDeploymentMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ - public Builder setImageClassificationModelDeploymentMetadata(com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata value) { + public Builder setImageClassificationModelDeploymentMetadata( + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata value) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -916,14 +1128,19 @@ public Builder setImageClassificationModelDeploymentMetadata(com.google.cloud.au return this; } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ public Builder setImageClassificationModelDeploymentMetadata( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder builderForValue) { + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder + builderForValue) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { modelDeploymentMetadata_ = builderForValue.build(); onChanged(); @@ -934,18 +1151,29 @@ public Builder setImageClassificationModelDeploymentMetadata( return this; } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ - public Builder mergeImageClassificationModelDeploymentMetadata(com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata value) { + public Builder mergeImageClassificationModelDeploymentMetadata( + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata value) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { - if (modelDeploymentMetadataCase_ == 4 && - modelDeploymentMetadata_ != com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance()) { - modelDeploymentMetadata_ = com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.newBuilder((com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_) - .mergeFrom(value).buildPartial(); + if (modelDeploymentMetadataCase_ == 4 + && modelDeploymentMetadata_ + != com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance()) { + modelDeploymentMetadata_ = + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.newBuilder( + (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelDeploymentMetadata_ = value; } @@ -960,11 +1188,15 @@ public Builder mergeImageClassificationModelDeploymentMetadata(com.google.cloud. return this; } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ public Builder clearImageClassificationModelDeploymentMetadata() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { @@ -983,73 +1215,103 @@ public Builder clearImageClassificationModelDeploymentMetadata() { return this; } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder getImageClassificationModelDeploymentMetadataBuilder() { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder + getImageClassificationModelDeploymentMetadataBuilder() { return getImageClassificationModelDeploymentMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder() { - if ((modelDeploymentMetadataCase_ == 4) && (imageClassificationModelDeploymentMetadataBuilder_ != null)) { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder + getImageClassificationModelDeploymentMetadataOrBuilder() { + if ((modelDeploymentMetadataCase_ == 4) + && (imageClassificationModelDeploymentMetadataBuilder_ != null)) { return imageClassificationModelDeploymentMetadataBuilder_.getMessageOrBuilder(); } else { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder> + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder> getImageClassificationModelDeploymentMetadataFieldBuilder() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (!(modelDeploymentMetadataCase_ == 4)) { - modelDeploymentMetadata_ = com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + modelDeploymentMetadata_ = + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } - imageClassificationModelDeploymentMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder>( - (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_, + imageClassificationModelDeploymentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder>( + (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_, getParentForChildren(), isClean()); modelDeploymentMetadata_ = null; } modelDeploymentMetadataCase_ = 4; - onChanged();; + onChanged(); + ; return imageClassificationModelDeploymentMetadataBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the model to deploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1058,20 +1320,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model to deploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1079,61 +1344,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model to deploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to deploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to deploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1143,12 +1421,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DeployModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DeployModelRequest) private static final com.google.cloud.automl.v1.DeployModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DeployModelRequest(); } @@ -1157,16 +1435,16 @@ public static com.google.cloud.automl.v1.DeployModelRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeployModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeployModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1181,6 +1459,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.DeployModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java new file mode 100644 index 000000000..b33f9f6ea --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DeployModelRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface DeployModelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DeployModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * + * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. + */ + boolean hasImageObjectDetectionModelDeploymentMetadata(); + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * + * @return The imageObjectDetectionModelDeploymentMetadata. + */ + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + getImageObjectDetectionModelDeploymentMetadata(); + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * + * .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder + getImageObjectDetectionModelDeploymentMetadataOrBuilder(); + + /** + * + * + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * + * @return Whether the imageClassificationModelDeploymentMetadata field is set. + */ + boolean hasImageClassificationModelDeploymentMetadata(); + /** + * + * + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * + * @return The imageClassificationModelDeploymentMetadata. + */ + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + getImageClassificationModelDeploymentMetadata(); + /** + * + * + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * + * .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + */ + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder + getImageClassificationModelDeploymentMetadataOrBuilder(); + + /** + * + * + *
+   * Required. Resource name of the model to deploy.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the model to deploy.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + public com.google.cloud.automl.v1.DeployModelRequest.ModelDeploymentMetadataCase + getModelDeploymentMetadataCase(); +} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java new file mode 100644 index 000000000..ff38d5f32 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Detection.java @@ -0,0 +1,131 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/detection.proto + +package com.google.cloud.automl.v1; + +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_v1_ImageObjectDetectionAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_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/v1/detection.proto" + + "\022\026google.cloud.automl.v1\032%google/cloud/a" + + "utoml/v1/geometry.proto\032\036google/protobuf" + + "/duration.proto\032\034google/api/annotations." + + "proto\"k\n\036ImageObjectDetectionAnnotation\022" + + ":\n\014bounding_box\030\001 \001(\0132$.google.cloud.aut" + + "oml.v1.BoundingPoly\022\r\n\005score\030\002 \001(\002\"\251\002\n\027B" + + "oundingBoxMetricsEntry\022\025\n\riou_threshold\030" + + "\001 \001(\002\022\036\n\026mean_average_precision\030\002 \001(\002\022j\n" + + "\032confidence_metrics_entries\030\003 \003(\0132F.goog" + + "le.cloud.automl.v1.BoundingBoxMetricsEnt" + + "ry.ConfidenceMetricsEntry\032k\n\026ConfidenceM" + + "etricsEntry\022\034\n\024confidence_threshold\030\001 \001(" + + "\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\002\022\020\n\010" + + "f1_score\030\004 \001(\002\"\321\001\n%ImageObjectDetectionE" + + "valuationMetrics\022$\n\034evaluated_bounding_b" + + "ox_count\030\001 \001(\005\022U\n\034bounding_box_metrics_e" + + "ntries\030\002 \003(\0132/.google.cloud.automl.v1.Bo" + + "undingBoxMetricsEntry\022+\n#bounding_box_me" + + "an_average_precision\030\003 \001(\002B\252\001\n\032com.googl" + + "e.cloud.automl.v1P\001Z * A structured text document e.g. a PDF. *
* * Protobuf type {@code google.cloud.automl.v1.Document} */ -public final class Document extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Document extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.Document) DocumentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Document.newBuilder() to construct. private Document(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Document() { layout_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Document(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Document( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,73 +71,83 @@ private Document( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.DocumentInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.automl.v1.DocumentInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.automl.v1.DocumentInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.automl.v1.DocumentInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; + if (documentText_ != null) { + subBuilder = documentText_.toBuilder(); + } + documentText_ = + input.readMessage( + com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentText_); + documentText_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; - if (documentText_ != null) { - subBuilder = documentText_.toBuilder(); + break; } - documentText_ = input.readMessage(com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentText_); - documentText_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + layout_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + layout_.add( + input.readMessage( + com.google.cloud.automl.v1.Document.Layout.parser(), extensionRegistry)); + break; } + case 34: + { + com.google.cloud.automl.v1.DocumentDimensions.Builder subBuilder = null; + if (documentDimensions_ != null) { + subBuilder = documentDimensions_.toBuilder(); + } + documentDimensions_ = + input.readMessage( + com.google.cloud.automl.v1.DocumentDimensions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentDimensions_); + documentDimensions_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - layout_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - layout_.add( - input.readMessage(com.google.cloud.automl.v1.Document.Layout.parser(), extensionRegistry)); - break; - } - case 34: { - com.google.cloud.automl.v1.DocumentDimensions.Builder subBuilder = null; - if (documentDimensions_ != null) { - subBuilder = documentDimensions_.toBuilder(); + break; } - documentDimensions_ = input.readMessage(com.google.cloud.automl.v1.DocumentDimensions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentDimensions_); - documentDimensions_ = subBuilder.buildPartial(); + case 40: + { + pageCount_ = input.readInt32(); + break; } - - break; - } - case 40: { - - pageCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { layout_ = java.util.Collections.unmodifiableList(layout_); @@ -129,44 +156,56 @@ private Document( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_Document_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_Document_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Document.class, com.google.cloud.automl.v1.Document.Builder.class); + com.google.cloud.automl.v1.Document.class, + com.google.cloud.automl.v1.Document.Builder.class); } - public interface LayoutOrBuilder extends + public interface LayoutOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Document.Layout) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; + * * @return Whether the textSegment field is set. */ boolean hasTextSegment(); /** + * + * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; + * * @return The textSegment. */ com.google.cloud.automl.v1.TextSegment getTextSegment(); /** + * + * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -177,17 +216,22 @@ public interface LayoutOrBuilder extends
     com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder();
 
     /**
+     *
+     *
      * 
      * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
      * from 1.
      * 
* * int32 page_number = 2; + * * @return The pageNumber. */ int getPageNumber(); /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -200,10 +244,13 @@ public interface LayoutOrBuilder extends
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -216,10 +263,13 @@ public interface LayoutOrBuilder extends
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; + * * @return The boundingPoly. */ com.google.cloud.automl.v1.BoundingPoly getBoundingPoly(); /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -236,56 +286,64 @@ public interface LayoutOrBuilder extends
     com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
     /**
+     *
+     *
      * 
      * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
      * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; + * * @return The enum numeric value on the wire for textSegmentType. */ int getTextSegmentTypeValue(); /** + * + * *
      * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
      * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; + * * @return The textSegmentType. */ com.google.cloud.automl.v1.Document.Layout.TextSegmentType getTextSegmentType(); } /** + * + * *
    * Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.
    * 
* * Protobuf type {@code google.cloud.automl.v1.Document.Layout} */ - public static final class Layout extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Layout extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.Document.Layout) LayoutOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Layout.newBuilder() to construct. private Layout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Layout() { textSegmentType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Layout(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Layout( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -304,85 +362,97 @@ private Layout( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.TextSegment.Builder subBuilder = null; - if (textSegment_ != null) { - subBuilder = textSegment_.toBuilder(); + case 10: + { + com.google.cloud.automl.v1.TextSegment.Builder subBuilder = null; + if (textSegment_ != null) { + subBuilder = textSegment_.toBuilder(); + } + textSegment_ = + input.readMessage( + com.google.cloud.automl.v1.TextSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSegment_); + textSegment_ = subBuilder.buildPartial(); + } + + break; } - textSegment_ = input.readMessage(com.google.cloud.automl.v1.TextSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSegment_); - textSegment_ = subBuilder.buildPartial(); + case 16: + { + pageNumber_ = input.readInt32(); + break; } - - break; - } - case 16: { - - pageNumber_ = input.readInt32(); - break; - } - case 26: { - com.google.cloud.automl.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = input.readMessage(com.google.cloud.automl.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.automl.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } + case 32: + { + int rawValue = input.readEnum(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - textSegmentType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + textSegmentType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.DataItems.internal_static_google_cloud_automl_v1_Document_Layout_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_Document_Layout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_Layout_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_Document_Layout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Document.Layout.class, com.google.cloud.automl.v1.Document.Layout.Builder.class); + com.google.cloud.automl.v1.Document.Layout.class, + com.google.cloud.automl.v1.Document.Layout.Builder.class); } /** + * + * *
      * The type of TextSegment in the context of the original document.
      * 
* * Protobuf enum {@code google.cloud.automl.v1.Document.Layout.TextSegmentType} */ - public enum TextSegmentType - implements com.google.protobuf.ProtocolMessageEnum { + public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Should not be used.
        * 
@@ -391,6 +461,8 @@ public enum TextSegmentType */ TEXT_SEGMENT_TYPE_UNSPECIFIED(0), /** + * + * *
        * The text segment is a token. e.g. word.
        * 
@@ -399,6 +471,8 @@ public enum TextSegmentType */ TOKEN(1), /** + * + * *
        * The text segment is a paragraph.
        * 
@@ -407,6 +481,8 @@ public enum TextSegmentType */ PARAGRAPH(2), /** + * + * *
        * The text segment is a form field.
        * 
@@ -415,6 +491,8 @@ public enum TextSegmentType */ FORM_FIELD(3), /** + * + * *
        * The text segment is the name part of a form field. It will be treated
        * as child of another FORM_FIELD TextSegment if its span is subspan of
@@ -425,6 +503,8 @@ public enum TextSegmentType
        */
       FORM_FIELD_NAME(4),
       /**
+       *
+       *
        * 
        * The text segment is the text content part of a form field. It will be
        * treated as child of another FORM_FIELD TextSegment if its span is
@@ -435,6 +515,8 @@ public enum TextSegmentType
        */
       FORM_FIELD_CONTENTS(5),
       /**
+       *
+       *
        * 
        * The text segment is a whole table, including headers, and all rows.
        * 
@@ -443,6 +525,8 @@ public enum TextSegmentType */ TABLE(6), /** + * + * *
        * The text segment is a table's headers. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -453,6 +537,8 @@ public enum TextSegmentType
        */
       TABLE_HEADER(7),
       /**
+       *
+       *
        * 
        * The text segment is a row in table. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -463,6 +549,8 @@ public enum TextSegmentType
        */
       TABLE_ROW(8),
       /**
+       *
+       *
        * 
        * The text segment is a cell in table. It will be treated as child of
        * another TABLE_ROW TextSegment if its span is subspan of another
@@ -476,6 +564,8 @@ public enum TextSegmentType
       ;
 
       /**
+       *
+       *
        * 
        * Should not be used.
        * 
@@ -484,6 +574,8 @@ public enum TextSegmentType */ public static final int TEXT_SEGMENT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The text segment is a token. e.g. word.
        * 
@@ -492,6 +584,8 @@ public enum TextSegmentType */ public static final int TOKEN_VALUE = 1; /** + * + * *
        * The text segment is a paragraph.
        * 
@@ -500,6 +594,8 @@ public enum TextSegmentType */ public static final int PARAGRAPH_VALUE = 2; /** + * + * *
        * The text segment is a form field.
        * 
@@ -508,6 +604,8 @@ public enum TextSegmentType */ public static final int FORM_FIELD_VALUE = 3; /** + * + * *
        * The text segment is the name part of a form field. It will be treated
        * as child of another FORM_FIELD TextSegment if its span is subspan of
@@ -518,6 +616,8 @@ public enum TextSegmentType
        */
       public static final int FORM_FIELD_NAME_VALUE = 4;
       /**
+       *
+       *
        * 
        * The text segment is the text content part of a form field. It will be
        * treated as child of another FORM_FIELD TextSegment if its span is
@@ -528,6 +628,8 @@ public enum TextSegmentType
        */
       public static final int FORM_FIELD_CONTENTS_VALUE = 5;
       /**
+       *
+       *
        * 
        * The text segment is a whole table, including headers, and all rows.
        * 
@@ -536,6 +638,8 @@ public enum TextSegmentType */ public static final int TABLE_VALUE = 6; /** + * + * *
        * The text segment is a table's headers. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -546,6 +650,8 @@ public enum TextSegmentType
        */
       public static final int TABLE_HEADER_VALUE = 7;
       /**
+       *
+       *
        * 
        * The text segment is a row in table. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -556,6 +662,8 @@ public enum TextSegmentType
        */
       public static final int TABLE_ROW_VALUE = 8;
       /**
+       *
+       *
        * 
        * The text segment is a cell in table. It will be treated as child of
        * another TABLE_ROW TextSegment if its span is subspan of another
@@ -566,7 +674,6 @@ public enum TextSegmentType
        */
       public static final int TABLE_CELL_VALUE = 9;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -591,17 +698,28 @@ public static TextSegmentType valueOf(int value) {
        */
       public static TextSegmentType forNumber(int value) {
         switch (value) {
-          case 0: return TEXT_SEGMENT_TYPE_UNSPECIFIED;
-          case 1: return TOKEN;
-          case 2: return PARAGRAPH;
-          case 3: return FORM_FIELD;
-          case 4: return FORM_FIELD_NAME;
-          case 5: return FORM_FIELD_CONTENTS;
-          case 6: return TABLE;
-          case 7: return TABLE_HEADER;
-          case 8: return TABLE_ROW;
-          case 9: return TABLE_CELL;
-          default: return null;
+          case 0:
+            return TEXT_SEGMENT_TYPE_UNSPECIFIED;
+          case 1:
+            return TOKEN;
+          case 2:
+            return PARAGRAPH;
+          case 3:
+            return FORM_FIELD;
+          case 4:
+            return FORM_FIELD_NAME;
+          case 5:
+            return FORM_FIELD_CONTENTS;
+          case 6:
+            return TABLE;
+          case 7:
+            return TABLE_HEADER;
+          case 8:
+            return TABLE_ROW;
+          case 9:
+            return TABLE_CELL;
+          default:
+            return null;
         }
       }
 
@@ -609,28 +727,28 @@ public static TextSegmentType forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          TextSegmentType> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public TextSegmentType findValueByNumber(int number) {
-                return TextSegmentType.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap
+          internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public TextSegmentType findValueByNumber(int number) {
+                  return TextSegmentType.forNumber(number);
+                }
+              };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
         return com.google.cloud.automl.v1.Document.Layout.getDescriptor().getEnumTypes().get(0);
       }
 
@@ -639,8 +757,7 @@ public TextSegmentType findValueByNumber(int number) {
       public static TextSegmentType valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -660,12 +777,15 @@ private TextSegmentType(int value) {
     public static final int TEXT_SEGMENT_FIELD_NUMBER = 1;
     private com.google.cloud.automl.v1.TextSegment textSegment_;
     /**
+     *
+     *
      * 
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; + * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -673,19 +793,26 @@ public boolean hasTextSegment() { return textSegment_ != null; } /** + * + * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; + * * @return The textSegment. */ @java.lang.Override public com.google.cloud.automl.v1.TextSegment getTextSegment() { - return textSegment_ == null ? com.google.cloud.automl.v1.TextSegment.getDefaultInstance() : textSegment_; + return textSegment_ == null + ? com.google.cloud.automl.v1.TextSegment.getDefaultInstance() + : textSegment_; } /** + * + * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -701,12 +828,15 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
     public static final int PAGE_NUMBER_FIELD_NUMBER = 2;
     private int pageNumber_;
     /**
+     *
+     *
      * 
      * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
      * from 1.
      * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -717,6 +847,8 @@ public int getPageNumber() { public static final int BOUNDING_POLY_FIELD_NUMBER = 3; private com.google.cloud.automl.v1.BoundingPoly boundingPoly_; /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -729,6 +861,7 @@ public int getPageNumber() {
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -736,6 +869,8 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -748,13 +883,18 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.automl.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -776,31 +916,43 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
     public static final int TEXT_SEGMENT_TYPE_FIELD_NUMBER = 4;
     private int textSegmentType_;
     /**
+     *
+     *
      * 
      * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
      * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; + * * @return The enum numeric value on the wire for textSegmentType. */ - @java.lang.Override public int getTextSegmentTypeValue() { + @java.lang.Override + public int getTextSegmentTypeValue() { return textSegmentType_; } /** + * + * *
      * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
      * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; + * * @return The textSegmentType. */ - @java.lang.Override public com.google.cloud.automl.v1.Document.Layout.TextSegmentType getTextSegmentType() { + @java.lang.Override + public com.google.cloud.automl.v1.Document.Layout.TextSegmentType getTextSegmentType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.Document.Layout.TextSegmentType result = com.google.cloud.automl.v1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); - return result == null ? com.google.cloud.automl.v1.Document.Layout.TextSegmentType.UNRECOGNIZED : result; + com.google.cloud.automl.v1.Document.Layout.TextSegmentType result = + com.google.cloud.automl.v1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); + return result == null + ? com.google.cloud.automl.v1.Document.Layout.TextSegmentType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -812,8 +964,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (textSegment_ != null) { output.writeMessage(1, getTextSegment()); } @@ -823,7 +974,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (boundingPoly_ != null) { output.writeMessage(3, getBoundingPoly()); } - if (textSegmentType_ != com.google.cloud.automl.v1.Document.Layout.TextSegmentType.TEXT_SEGMENT_TYPE_UNSPECIFIED.getNumber()) { + if (textSegmentType_ + != com.google.cloud.automl.v1.Document.Layout.TextSegmentType + .TEXT_SEGMENT_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, textSegmentType_); } unknownFields.writeTo(output); @@ -836,20 +990,19 @@ public int getSerializedSize() { size = 0; if (textSegment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTextSegment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTextSegment()); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoundingPoly()); } - if (textSegmentType_ != com.google.cloud.automl.v1.Document.Layout.TextSegmentType.TEXT_SEGMENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, textSegmentType_); + if (textSegmentType_ + != com.google.cloud.automl.v1.Document.Layout.TextSegmentType + .TEXT_SEGMENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, textSegmentType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -859,24 +1012,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.Document.Layout)) { return super.equals(obj); } - com.google.cloud.automl.v1.Document.Layout other = (com.google.cloud.automl.v1.Document.Layout) obj; + com.google.cloud.automl.v1.Document.Layout other = + (com.google.cloud.automl.v1.Document.Layout) obj; if (hasTextSegment() != other.hasTextSegment()) return false; if (hasTextSegment()) { - if (!getTextSegment() - .equals(other.getTextSegment())) return false; + if (!getTextSegment().equals(other.getTextSegment())) return false; } - if (getPageNumber() - != other.getPageNumber()) return false; + if (getPageNumber() != other.getPageNumber()) return false; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (textSegmentType_ != other.textSegmentType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -907,88 +1058,94 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.Document.Layout parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.Document.Layout parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.Document.Layout parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.Document.Layout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.Document.Layout 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.v1.Document.Layout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.Document.Layout parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.Document.Layout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.Document.Layout parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.Document.Layout parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.Document.Layout parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.Document.Layout parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.Document.Layout parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.Document.Layout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.Document.Layout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -998,27 +1155,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.
      * 
* * Protobuf type {@code google.cloud.automl.v1.Document.Layout} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.Document.Layout) com.google.cloud.automl.v1.Document.LayoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_Layout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_Document_Layout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_Layout_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_Document_Layout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Document.Layout.class, com.google.cloud.automl.v1.Document.Layout.Builder.class); + com.google.cloud.automl.v1.Document.Layout.class, + com.google.cloud.automl.v1.Document.Layout.Builder.class); } // Construct using com.google.cloud.automl.v1.Document.Layout.newBuilder() @@ -1026,16 +1188,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1059,9 +1220,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_Layout_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_Document_Layout_descriptor; } @java.lang.Override @@ -1080,7 +1241,8 @@ public com.google.cloud.automl.v1.Document.Layout build() { @java.lang.Override public com.google.cloud.automl.v1.Document.Layout buildPartial() { - com.google.cloud.automl.v1.Document.Layout result = new com.google.cloud.automl.v1.Document.Layout(this); + com.google.cloud.automl.v1.Document.Layout result = + new com.google.cloud.automl.v1.Document.Layout(this); if (textSegmentBuilder_ == null) { result.textSegment_ = textSegment_; } else { @@ -1101,38 +1263,41 @@ public com.google.cloud.automl.v1.Document.Layout buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.Document.Layout) { - return mergeFrom((com.google.cloud.automl.v1.Document.Layout)other); + return mergeFrom((com.google.cloud.automl.v1.Document.Layout) other); } else { super.mergeFrom(other); return this; @@ -1184,36 +1349,49 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.TextSegment textSegment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder> textSegmentBuilder_; + com.google.cloud.automl.v1.TextSegment, + com.google.cloud.automl.v1.TextSegment.Builder, + com.google.cloud.automl.v1.TextSegmentOrBuilder> + textSegmentBuilder_; /** + * + * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
        * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; + * * @return Whether the textSegment field is set. */ public boolean hasTextSegment() { return textSegmentBuilder_ != null || textSegment_ != null; } /** + * + * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
        * 
* * .google.cloud.automl.v1.TextSegment text_segment = 1; + * * @return The textSegment. */ public com.google.cloud.automl.v1.TextSegment getTextSegment() { if (textSegmentBuilder_ == null) { - return textSegment_ == null ? com.google.cloud.automl.v1.TextSegment.getDefaultInstance() : textSegment_; + return textSegment_ == null + ? com.google.cloud.automl.v1.TextSegment.getDefaultInstance() + : textSegment_; } else { return textSegmentBuilder_.getMessage(); } } /** + * + * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1235,6 +1413,8 @@ public Builder setTextSegment(com.google.cloud.automl.v1.TextSegment value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1254,6 +1434,8 @@ public Builder setTextSegment(
         return this;
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1265,7 +1447,9 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1.TextSegment value) {
         if (textSegmentBuilder_ == null) {
           if (textSegment_ != null) {
             textSegment_ =
-              com.google.cloud.automl.v1.TextSegment.newBuilder(textSegment_).mergeFrom(value).buildPartial();
+                com.google.cloud.automl.v1.TextSegment.newBuilder(textSegment_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             textSegment_ = value;
           }
@@ -1277,6 +1461,8 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1.TextSegment value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1296,6 +1482,8 @@ public Builder clearTextSegment() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1304,11 +1492,13 @@ public Builder clearTextSegment() {
        * .google.cloud.automl.v1.TextSegment text_segment = 1;
        */
       public com.google.cloud.automl.v1.TextSegment.Builder getTextSegmentBuilder() {
-        
+
         onChanged();
         return getTextSegmentFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1320,11 +1510,14 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
         if (textSegmentBuilder_ != null) {
           return textSegmentBuilder_.getMessageOrBuilder();
         } else {
-          return textSegment_ == null ?
-              com.google.cloud.automl.v1.TextSegment.getDefaultInstance() : textSegment_;
+          return textSegment_ == null
+              ? com.google.cloud.automl.v1.TextSegment.getDefaultInstance()
+              : textSegment_;
         }
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1p1beta.Document.document_text].
@@ -1333,27 +1526,33 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
        * .google.cloud.automl.v1.TextSegment text_segment = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder> 
+              com.google.cloud.automl.v1.TextSegment,
+              com.google.cloud.automl.v1.TextSegment.Builder,
+              com.google.cloud.automl.v1.TextSegmentOrBuilder>
           getTextSegmentFieldBuilder() {
         if (textSegmentBuilder_ == null) {
-          textSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder>(
-                  getTextSegment(),
-                  getParentForChildren(),
-                  isClean());
+          textSegmentBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.automl.v1.TextSegment,
+                  com.google.cloud.automl.v1.TextSegment.Builder,
+                  com.google.cloud.automl.v1.TextSegmentOrBuilder>(
+                  getTextSegment(), getParentForChildren(), isClean());
           textSegment_ = null;
         }
         return textSegmentBuilder_;
       }
 
-      private int pageNumber_ ;
+      private int pageNumber_;
       /**
+       *
+       *
        * 
        * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -1361,32 +1560,38 @@ public int getPageNumber() { return pageNumber_; } /** + * + * *
        * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; + * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** + * + * *
        * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; + * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; @@ -1394,8 +1599,13 @@ public Builder clearPageNumber() { private com.google.cloud.automl.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.automl.v1.BoundingPoly, + com.google.cloud.automl.v1.BoundingPoly.Builder, + com.google.cloud.automl.v1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1408,12 +1618,15 @@ public Builder clearPageNumber() {
        * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1426,16 +1639,21 @@ public boolean hasBoundingPoly() {
        * 
* * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; + * * @return The boundingPoly. */ public com.google.cloud.automl.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1463,6 +1681,8 @@ public Builder setBoundingPoly(com.google.cloud.automl.v1.BoundingPoly value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1488,6 +1708,8 @@ public Builder setBoundingPoly(
         return this;
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1505,7 +1727,9 @@ public Builder mergeBoundingPoly(com.google.cloud.automl.v1.BoundingPoly value)
         if (boundingPolyBuilder_ == null) {
           if (boundingPoly_ != null) {
             boundingPoly_ =
-              com.google.cloud.automl.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+                com.google.cloud.automl.v1.BoundingPoly.newBuilder(boundingPoly_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             boundingPoly_ = value;
           }
@@ -1517,6 +1741,8 @@ public Builder mergeBoundingPoly(com.google.cloud.automl.v1.BoundingPoly value)
         return this;
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1542,6 +1768,8 @@ public Builder clearBoundingPoly() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1556,11 +1784,13 @@ public Builder clearBoundingPoly() {
        * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
        */
       public com.google.cloud.automl.v1.BoundingPoly.Builder getBoundingPolyBuilder() {
-        
+
         onChanged();
         return getBoundingPolyFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1578,11 +1808,14 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
         if (boundingPolyBuilder_ != null) {
           return boundingPolyBuilder_.getMessageOrBuilder();
         } else {
-          return boundingPoly_ == null ?
-              com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+          return boundingPoly_ == null
+              ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance()
+              : boundingPoly_;
         }
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1597,14 +1830,17 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
        * .google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder> 
+              com.google.cloud.automl.v1.BoundingPoly,
+              com.google.cloud.automl.v1.BoundingPoly.Builder,
+              com.google.cloud.automl.v1.BoundingPolyOrBuilder>
           getBoundingPolyFieldBuilder() {
         if (boundingPolyBuilder_ == null) {
-          boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder>(
-                  getBoundingPoly(),
-                  getParentForChildren(),
-                  isClean());
+          boundingPolyBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.automl.v1.BoundingPoly,
+                  com.google.cloud.automl.v1.BoundingPoly.Builder,
+                  com.google.cloud.automl.v1.BoundingPolyOrBuilder>(
+                  getBoundingPoly(), getParentForChildren(), isClean());
           boundingPoly_ = null;
         }
         return boundingPolyBuilder_;
@@ -1612,77 +1848,98 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
 
       private int textSegmentType_ = 0;
       /**
+       *
+       *
        * 
        * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
        * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; + * * @return The enum numeric value on the wire for textSegmentType. */ - @java.lang.Override public int getTextSegmentTypeValue() { + @java.lang.Override + public int getTextSegmentTypeValue() { return textSegmentType_; } /** + * + * *
        * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
        * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; + * * @param value The enum numeric value on the wire for textSegmentType to set. * @return This builder for chaining. */ public Builder setTextSegmentTypeValue(int value) { - + textSegmentType_ = value; onChanged(); return this; } /** + * + * *
        * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
        * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; + * * @return The textSegmentType. */ @java.lang.Override public com.google.cloud.automl.v1.Document.Layout.TextSegmentType getTextSegmentType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.Document.Layout.TextSegmentType result = com.google.cloud.automl.v1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); - return result == null ? com.google.cloud.automl.v1.Document.Layout.TextSegmentType.UNRECOGNIZED : result; + com.google.cloud.automl.v1.Document.Layout.TextSegmentType result = + com.google.cloud.automl.v1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); + return result == null + ? com.google.cloud.automl.v1.Document.Layout.TextSegmentType.UNRECOGNIZED + : result; } /** + * + * *
        * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
        * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; + * * @param value The textSegmentType to set. * @return This builder for chaining. */ - public Builder setTextSegmentType(com.google.cloud.automl.v1.Document.Layout.TextSegmentType value) { + public Builder setTextSegmentType( + com.google.cloud.automl.v1.Document.Layout.TextSegmentType value) { if (value == null) { throw new NullPointerException(); } - + textSegmentType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
        * 
* * .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; + * * @return This builder for chaining. */ public Builder clearTextSegmentType() { - + textSegmentType_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1695,12 +1952,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.Document.Layout) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.Document.Layout) private static final com.google.cloud.automl.v1.Document.Layout DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.Document.Layout(); } @@ -1709,16 +1966,16 @@ public static com.google.cloud.automl.v1.Document.Layout getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Layout parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Layout(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Layout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Layout(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1733,17 +1990,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.Document.Layout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.DocumentInputConfig inputConfig_; /** + * + * *
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1751,18 +2010,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.DocumentInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * An input config specifying the content of the document.
    * 
@@ -1777,11 +2043,14 @@ public com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrB public static final int DOCUMENT_TEXT_FIELD_NUMBER = 2; private com.google.cloud.automl.v1.TextSnippet documentText_; /** + * + * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; + * * @return Whether the documentText field is set. */ @java.lang.Override @@ -1789,18 +2058,25 @@ public boolean hasDocumentText() { return documentText_ != null; } /** + * + * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; + * * @return The documentText. */ @java.lang.Override public com.google.cloud.automl.v1.TextSnippet getDocumentText() { - return documentText_ == null ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : documentText_; + return documentText_ == null + ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() + : documentText_; } /** + * + * *
    * The plain text version of this document.
    * 
@@ -1815,6 +2091,8 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getDocumentTextOrBuilder( public static final int LAYOUT_FIELD_NUMBER = 3; private java.util.List layout_; /** + * + * *
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -1827,6 +2105,8 @@ public java.util.List getLayoutList(
     return layout_;
   }
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -1835,11 +2115,13 @@ public java.util.List getLayoutList(
    * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLayoutOrBuilderList() {
     return layout_;
   }
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -1852,6 +2134,8 @@ public int getLayoutCount() {
     return layout_.size();
   }
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -1864,6 +2148,8 @@ public com.google.cloud.automl.v1.Document.Layout getLayout(int index) {
     return layout_.get(index);
   }
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -1872,19 +2158,21 @@ public com.google.cloud.automl.v1.Document.Layout getLayout(int index) {
    * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(
-      int index) {
+  public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(int index) {
     return layout_.get(index);
   }
 
   public static final int DOCUMENT_DIMENSIONS_FIELD_NUMBER = 4;
   private com.google.cloud.automl.v1.DocumentDimensions documentDimensions_;
   /**
+   *
+   *
    * 
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; + * * @return Whether the documentDimensions field is set. */ @java.lang.Override @@ -1892,18 +2180,25 @@ public boolean hasDocumentDimensions() { return documentDimensions_ != null; } /** + * + * *
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; + * * @return The documentDimensions. */ @java.lang.Override public com.google.cloud.automl.v1.DocumentDimensions getDocumentDimensions() { - return documentDimensions_ == null ? com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() : documentDimensions_; + return documentDimensions_ == null + ? com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() + : documentDimensions_; } /** + * + * *
    * The dimensions of the page in the document.
    * 
@@ -1918,11 +2213,14 @@ public com.google.cloud.automl.v1.DocumentDimensionsOrBuilder getDocumentDimensi public static final int PAGE_COUNT_FIELD_NUMBER = 5; private int pageCount_; /** + * + * *
    * Number of pages in the document.
    * 
* * int32 page_count = 5; + * * @return The pageCount. */ @java.lang.Override @@ -1931,6 +2229,7 @@ public int getPageCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1942,8 +2241,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -1969,24 +2267,19 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } if (documentText_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDocumentText()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentText()); } for (int i = 0; i < layout_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, layout_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, layout_.get(i)); } if (documentDimensions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDocumentDimensions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentDimensions()); } if (pageCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, pageCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1996,7 +2289,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.Document)) { return super.equals(obj); @@ -2005,23 +2298,18 @@ public boolean equals(final java.lang.Object obj) { if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (hasDocumentText() != other.hasDocumentText()) return false; if (hasDocumentText()) { - if (!getDocumentText() - .equals(other.getDocumentText())) return false; + if (!getDocumentText().equals(other.getDocumentText())) return false; } - if (!getLayoutList() - .equals(other.getLayoutList())) return false; + if (!getLayoutList().equals(other.getLayoutList())) return false; if (hasDocumentDimensions() != other.hasDocumentDimensions()) return false; if (hasDocumentDimensions()) { - if (!getDocumentDimensions() - .equals(other.getDocumentDimensions())) return false; + if (!getDocumentDimensions().equals(other.getDocumentDimensions())) return false; } - if (getPageCount() - != other.getPageCount()) return false; + if (getPageCount() != other.getPageCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2056,118 +2344,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.Document parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.Document parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.Document parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.Document parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.automl.v1.Document parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.Document parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.Document parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.Document parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.Document parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.Document parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.Document parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.Document parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.Document prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.Document} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.Document) com.google.cloud.automl.v1.DocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_Document_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_Document_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Document.class, com.google.cloud.automl.v1.Document.Builder.class); + com.google.cloud.automl.v1.Document.class, + com.google.cloud.automl.v1.Document.Builder.class); } // Construct using com.google.cloud.automl.v1.Document.newBuilder() @@ -2175,17 +2471,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLayoutFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2219,9 +2515,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Document_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_Document_descriptor; } @java.lang.Override @@ -2275,38 +2571,39 @@ public com.google.cloud.automl.v1.Document buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.Document) { - return mergeFrom((com.google.cloud.automl.v1.Document)other); + return mergeFrom((com.google.cloud.automl.v1.Document) other); } else { super.mergeFrom(other); return this; @@ -2339,9 +2636,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.Document other) { layoutBuilder_ = null; layout_ = other.layout_; bitField0_ = (bitField0_ & ~0x00000001); - layoutBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLayoutFieldBuilder() : null; + layoutBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLayoutFieldBuilder() + : null; } else { layoutBuilder_.addAllMessages(other.layout_); } @@ -2381,38 +2679,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.automl.v1.DocumentInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DocumentInputConfig, com.google.cloud.automl.v1.DocumentInputConfig.Builder, com.google.cloud.automl.v1.DocumentInputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.automl.v1.DocumentInputConfig, + com.google.cloud.automl.v1.DocumentInputConfig.Builder, + com.google.cloud.automl.v1.DocumentInputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * An input config specifying the content of the document.
      * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * An input config specifying the content of the document.
      * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.automl.v1.DocumentInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2433,6 +2745,8 @@ public Builder setInputConfig(com.google.cloud.automl.v1.DocumentInputConfig val return this; } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2451,6 +2765,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2461,7 +2777,9 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.DocumentInputConfig v if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.automl.v1.DocumentInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.DocumentInputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -2473,6 +2791,8 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.DocumentInputConfig v return this; } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2491,6 +2811,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2498,11 +2820,13 @@ public Builder clearInputConfig() { * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; */ public com.google.cloud.automl.v1.DocumentInputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2513,11 +2837,14 @@ public com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrB if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.DocumentInputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2525,14 +2852,17 @@ public com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrB * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DocumentInputConfig, com.google.cloud.automl.v1.DocumentInputConfig.Builder, com.google.cloud.automl.v1.DocumentInputConfigOrBuilder> + com.google.cloud.automl.v1.DocumentInputConfig, + com.google.cloud.automl.v1.DocumentInputConfig.Builder, + com.google.cloud.automl.v1.DocumentInputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DocumentInputConfig, com.google.cloud.automl.v1.DocumentInputConfig.Builder, com.google.cloud.automl.v1.DocumentInputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.DocumentInputConfig, + com.google.cloud.automl.v1.DocumentInputConfig.Builder, + com.google.cloud.automl.v1.DocumentInputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -2540,34 +2870,47 @@ public com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrB private com.google.cloud.automl.v1.TextSnippet documentText_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> documentTextBuilder_; + com.google.cloud.automl.v1.TextSnippet, + com.google.cloud.automl.v1.TextSnippet.Builder, + com.google.cloud.automl.v1.TextSnippetOrBuilder> + documentTextBuilder_; /** + * + * *
      * The plain text version of this document.
      * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; + * * @return Whether the documentText field is set. */ public boolean hasDocumentText() { return documentTextBuilder_ != null || documentText_ != null; } /** + * + * *
      * The plain text version of this document.
      * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; + * * @return The documentText. */ public com.google.cloud.automl.v1.TextSnippet getDocumentText() { if (documentTextBuilder_ == null) { - return documentText_ == null ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : documentText_; + return documentText_ == null + ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() + : documentText_; } else { return documentTextBuilder_.getMessage(); } } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2588,14 +2931,15 @@ public Builder setDocumentText(com.google.cloud.automl.v1.TextSnippet value) { return this; } /** + * + * *
      * The plain text version of this document.
      * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; */ - public Builder setDocumentText( - com.google.cloud.automl.v1.TextSnippet.Builder builderForValue) { + public Builder setDocumentText(com.google.cloud.automl.v1.TextSnippet.Builder builderForValue) { if (documentTextBuilder_ == null) { documentText_ = builderForValue.build(); onChanged(); @@ -2606,6 +2950,8 @@ public Builder setDocumentText( return this; } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2616,7 +2962,9 @@ public Builder mergeDocumentText(com.google.cloud.automl.v1.TextSnippet value) { if (documentTextBuilder_ == null) { if (documentText_ != null) { documentText_ = - com.google.cloud.automl.v1.TextSnippet.newBuilder(documentText_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.TextSnippet.newBuilder(documentText_) + .mergeFrom(value) + .buildPartial(); } else { documentText_ = value; } @@ -2628,6 +2976,8 @@ public Builder mergeDocumentText(com.google.cloud.automl.v1.TextSnippet value) { return this; } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2646,6 +2996,8 @@ public Builder clearDocumentText() { return this; } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2653,11 +3005,13 @@ public Builder clearDocumentText() { * .google.cloud.automl.v1.TextSnippet document_text = 2; */ public com.google.cloud.automl.v1.TextSnippet.Builder getDocumentTextBuilder() { - + onChanged(); return getDocumentTextFieldBuilder().getBuilder(); } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2668,11 +3022,14 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getDocumentTextOrBuilder( if (documentTextBuilder_ != null) { return documentTextBuilder_.getMessageOrBuilder(); } else { - return documentText_ == null ? - com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : documentText_; + return documentText_ == null + ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() + : documentText_; } } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2680,32 +3037,41 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getDocumentTextOrBuilder( * .google.cloud.automl.v1.TextSnippet document_text = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> + com.google.cloud.automl.v1.TextSnippet, + com.google.cloud.automl.v1.TextSnippet.Builder, + com.google.cloud.automl.v1.TextSnippetOrBuilder> getDocumentTextFieldBuilder() { if (documentTextBuilder_ == null) { - documentTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder>( - getDocumentText(), - getParentForChildren(), - isClean()); + documentTextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSnippet, + com.google.cloud.automl.v1.TextSnippet.Builder, + com.google.cloud.automl.v1.TextSnippetOrBuilder>( + getDocumentText(), getParentForChildren(), isClean()); documentText_ = null; } return documentTextBuilder_; } private java.util.List layout_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLayoutIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { layout_ = new java.util.ArrayList(layout_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Document.Layout, com.google.cloud.automl.v1.Document.Layout.Builder, com.google.cloud.automl.v1.Document.LayoutOrBuilder> layoutBuilder_; + com.google.cloud.automl.v1.Document.Layout, + com.google.cloud.automl.v1.Document.Layout.Builder, + com.google.cloud.automl.v1.Document.LayoutOrBuilder> + layoutBuilder_; /** + * + * *
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2721,6 +3087,8 @@ public java.util.List getLayoutList(
       }
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2736,6 +3104,8 @@ public int getLayoutCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2751,6 +3121,8 @@ public com.google.cloud.automl.v1.Document.Layout getLayout(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2758,8 +3130,7 @@ public com.google.cloud.automl.v1.Document.Layout getLayout(int index) {
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public Builder setLayout(
-        int index, com.google.cloud.automl.v1.Document.Layout value) {
+    public Builder setLayout(int index, com.google.cloud.automl.v1.Document.Layout value) {
       if (layoutBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2773,6 +3144,8 @@ public Builder setLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2792,6 +3165,8 @@ public Builder setLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2813,6 +3188,8 @@ public Builder addLayout(com.google.cloud.automl.v1.Document.Layout value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2820,8 +3197,7 @@ public Builder addLayout(com.google.cloud.automl.v1.Document.Layout value) {
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public Builder addLayout(
-        int index, com.google.cloud.automl.v1.Document.Layout value) {
+    public Builder addLayout(int index, com.google.cloud.automl.v1.Document.Layout value) {
       if (layoutBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2835,6 +3211,8 @@ public Builder addLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2842,8 +3220,7 @@ public Builder addLayout(
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public Builder addLayout(
-        com.google.cloud.automl.v1.Document.Layout.Builder builderForValue) {
+    public Builder addLayout(com.google.cloud.automl.v1.Document.Layout.Builder builderForValue) {
       if (layoutBuilder_ == null) {
         ensureLayoutIsMutable();
         layout_.add(builderForValue.build());
@@ -2854,6 +3231,8 @@ public Builder addLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2873,6 +3252,8 @@ public Builder addLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2884,8 +3265,7 @@ public Builder addAllLayout(
         java.lang.Iterable values) {
       if (layoutBuilder_ == null) {
         ensureLayoutIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, layout_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, layout_);
         onChanged();
       } else {
         layoutBuilder_.addAllMessages(values);
@@ -2893,6 +3273,8 @@ public Builder addAllLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2911,6 +3293,8 @@ public Builder clearLayout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2929,6 +3313,8 @@ public Builder removeLayout(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2936,11 +3322,12 @@ public Builder removeLayout(int index) {
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1.Document.Layout.Builder getLayoutBuilder(
-        int index) {
+    public com.google.cloud.automl.v1.Document.Layout.Builder getLayoutBuilder(int index) {
       return getLayoutFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2948,14 +3335,16 @@ public com.google.cloud.automl.v1.Document.Layout.Builder getLayoutBuilder(
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(
-        int index) {
+    public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(int index) {
       if (layoutBuilder_ == null) {
-        return layout_.get(index);  } else {
+        return layout_.get(index);
+      } else {
         return layoutBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2963,8 +3352,8 @@ public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public java.util.List 
-         getLayoutOrBuilderList() {
+    public java.util.List
+        getLayoutOrBuilderList() {
       if (layoutBuilder_ != null) {
         return layoutBuilder_.getMessageOrBuilderList();
       } else {
@@ -2972,6 +3361,8 @@ public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2980,10 +3371,12 @@ public com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
     public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder() {
-      return getLayoutFieldBuilder().addBuilder(
-          com.google.cloud.automl.v1.Document.Layout.getDefaultInstance());
+      return getLayoutFieldBuilder()
+          .addBuilder(com.google.cloud.automl.v1.Document.Layout.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2991,12 +3384,13 @@ public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder() {
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder(
-        int index) {
-      return getLayoutFieldBuilder().addBuilder(
-          index, com.google.cloud.automl.v1.Document.Layout.getDefaultInstance());
+    public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder(int index) {
+      return getLayoutFieldBuilder()
+          .addBuilder(index, com.google.cloud.automl.v1.Document.Layout.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3004,20 +3398,23 @@ public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder(
      *
      * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
      */
-    public java.util.List 
-         getLayoutBuilderList() {
+    public java.util.List
+        getLayoutBuilderList() {
       return getLayoutFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.automl.v1.Document.Layout, com.google.cloud.automl.v1.Document.Layout.Builder, com.google.cloud.automl.v1.Document.LayoutOrBuilder> 
+            com.google.cloud.automl.v1.Document.Layout,
+            com.google.cloud.automl.v1.Document.Layout.Builder,
+            com.google.cloud.automl.v1.Document.LayoutOrBuilder>
         getLayoutFieldBuilder() {
       if (layoutBuilder_ == null) {
-        layoutBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.automl.v1.Document.Layout, com.google.cloud.automl.v1.Document.Layout.Builder, com.google.cloud.automl.v1.Document.LayoutOrBuilder>(
-                layout_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        layoutBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.automl.v1.Document.Layout,
+                com.google.cloud.automl.v1.Document.Layout.Builder,
+                com.google.cloud.automl.v1.Document.LayoutOrBuilder>(
+                layout_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         layout_ = null;
       }
       return layoutBuilder_;
@@ -3025,34 +3422,47 @@ public com.google.cloud.automl.v1.Document.Layout.Builder addLayoutBuilder(
 
     private com.google.cloud.automl.v1.DocumentDimensions documentDimensions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.DocumentDimensions, com.google.cloud.automl.v1.DocumentDimensions.Builder, com.google.cloud.automl.v1.DocumentDimensionsOrBuilder> documentDimensionsBuilder_;
+            com.google.cloud.automl.v1.DocumentDimensions,
+            com.google.cloud.automl.v1.DocumentDimensions.Builder,
+            com.google.cloud.automl.v1.DocumentDimensionsOrBuilder>
+        documentDimensionsBuilder_;
     /**
+     *
+     *
      * 
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; + * * @return Whether the documentDimensions field is set. */ public boolean hasDocumentDimensions() { return documentDimensionsBuilder_ != null || documentDimensions_ != null; } /** + * + * *
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; + * * @return The documentDimensions. */ public com.google.cloud.automl.v1.DocumentDimensions getDocumentDimensions() { if (documentDimensionsBuilder_ == null) { - return documentDimensions_ == null ? com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() : documentDimensions_; + return documentDimensions_ == null + ? com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() + : documentDimensions_; } else { return documentDimensionsBuilder_.getMessage(); } } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3073,6 +3483,8 @@ public Builder setDocumentDimensions(com.google.cloud.automl.v1.DocumentDimensio return this; } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3091,6 +3503,8 @@ public Builder setDocumentDimensions( return this; } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3101,7 +3515,9 @@ public Builder mergeDocumentDimensions(com.google.cloud.automl.v1.DocumentDimens if (documentDimensionsBuilder_ == null) { if (documentDimensions_ != null) { documentDimensions_ = - com.google.cloud.automl.v1.DocumentDimensions.newBuilder(documentDimensions_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.DocumentDimensions.newBuilder(documentDimensions_) + .mergeFrom(value) + .buildPartial(); } else { documentDimensions_ = value; } @@ -3113,6 +3529,8 @@ public Builder mergeDocumentDimensions(com.google.cloud.automl.v1.DocumentDimens return this; } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3131,6 +3549,8 @@ public Builder clearDocumentDimensions() { return this; } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3138,11 +3558,13 @@ public Builder clearDocumentDimensions() { * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; */ public com.google.cloud.automl.v1.DocumentDimensions.Builder getDocumentDimensionsBuilder() { - + onChanged(); return getDocumentDimensionsFieldBuilder().getBuilder(); } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3153,11 +3575,14 @@ public com.google.cloud.automl.v1.DocumentDimensionsOrBuilder getDocumentDimensi if (documentDimensionsBuilder_ != null) { return documentDimensionsBuilder_.getMessageOrBuilder(); } else { - return documentDimensions_ == null ? - com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() : documentDimensions_; + return documentDimensions_ == null + ? com.google.cloud.automl.v1.DocumentDimensions.getDefaultInstance() + : documentDimensions_; } } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3165,26 +3590,32 @@ public com.google.cloud.automl.v1.DocumentDimensionsOrBuilder getDocumentDimensi * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DocumentDimensions, com.google.cloud.automl.v1.DocumentDimensions.Builder, com.google.cloud.automl.v1.DocumentDimensionsOrBuilder> + com.google.cloud.automl.v1.DocumentDimensions, + com.google.cloud.automl.v1.DocumentDimensions.Builder, + com.google.cloud.automl.v1.DocumentDimensionsOrBuilder> getDocumentDimensionsFieldBuilder() { if (documentDimensionsBuilder_ == null) { - documentDimensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DocumentDimensions, com.google.cloud.automl.v1.DocumentDimensions.Builder, com.google.cloud.automl.v1.DocumentDimensionsOrBuilder>( - getDocumentDimensions(), - getParentForChildren(), - isClean()); + documentDimensionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.DocumentDimensions, + com.google.cloud.automl.v1.DocumentDimensions.Builder, + com.google.cloud.automl.v1.DocumentDimensionsOrBuilder>( + getDocumentDimensions(), getParentForChildren(), isClean()); documentDimensions_ = null; } return documentDimensionsBuilder_; } - private int pageCount_ ; + private int pageCount_; /** + * + * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; + * * @return The pageCount. */ @java.lang.Override @@ -3192,37 +3623,43 @@ public int getPageCount() { return pageCount_; } /** + * + * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; + * * @param value The pageCount to set. * @return This builder for chaining. */ public Builder setPageCount(int value) { - + pageCount_ = value; onChanged(); return this; } /** + * + * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; + * * @return This builder for chaining. */ public Builder clearPageCount() { - + pageCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3232,12 +3669,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.Document) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.Document) private static final com.google.cloud.automl.v1.Document DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.Document(); } @@ -3246,16 +3683,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -3270,6 +3707,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.Document getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java index 5ba371460..ce388f799 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensions.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; /** + * + * *
  * Message that describes dimension of a document.
  * 
* * Protobuf type {@code google.cloud.automl.v1.DocumentDimensions} */ -public final class DocumentDimensions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentDimensions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DocumentDimensions) DocumentDimensionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentDimensions.newBuilder() to construct. private DocumentDimensions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentDimensions() { unit_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentDimensions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentDimensions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,64 +70,70 @@ private DocumentDimensions( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - unit_ = rawValue; - break; - } - case 21: { - - width_ = input.readFloat(); - break; - } - case 29: { + case 8: + { + int rawValue = input.readEnum(); - height_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + unit_ = rawValue; + break; + } + case 21: + { + width_ = input.readFloat(); + break; + } + case 29: + { + height_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.DataItems.internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_DocumentDimensions_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_DocumentDimensions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DocumentDimensions.class, com.google.cloud.automl.v1.DocumentDimensions.Builder.class); + com.google.cloud.automl.v1.DocumentDimensions.class, + com.google.cloud.automl.v1.DocumentDimensions.Builder.class); } /** + * + * *
    * Unit of the document dimension.
    * 
* * Protobuf enum {@code google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit} */ - public enum DocumentDimensionUnit - implements com.google.protobuf.ProtocolMessageEnum { + public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Should not be used.
      * 
@@ -119,6 +142,8 @@ public enum DocumentDimensionUnit */ DOCUMENT_DIMENSION_UNIT_UNSPECIFIED(0), /** + * + * *
      * Document dimension is measured in inches.
      * 
@@ -127,6 +152,8 @@ public enum DocumentDimensionUnit */ INCH(1), /** + * + * *
      * Document dimension is measured in centimeters.
      * 
@@ -135,6 +162,8 @@ public enum DocumentDimensionUnit */ CENTIMETER(2), /** + * + * *
      * Document dimension is measured in points. 72 points = 1 inch.
      * 
@@ -146,6 +175,8 @@ public enum DocumentDimensionUnit ; /** + * + * *
      * Should not be used.
      * 
@@ -154,6 +185,8 @@ public enum DocumentDimensionUnit */ public static final int DOCUMENT_DIMENSION_UNIT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Document dimension is measured in inches.
      * 
@@ -162,6 +195,8 @@ public enum DocumentDimensionUnit */ public static final int INCH_VALUE = 1; /** + * + * *
      * Document dimension is measured in centimeters.
      * 
@@ -170,6 +205,8 @@ public enum DocumentDimensionUnit */ public static final int CENTIMETER_VALUE = 2; /** + * + * *
      * Document dimension is measured in points. 72 points = 1 inch.
      * 
@@ -178,7 +215,6 @@ public enum DocumentDimensionUnit */ public static final int POINT_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -203,11 +239,16 @@ public static DocumentDimensionUnit valueOf(int value) { */ public static DocumentDimensionUnit forNumber(int value) { switch (value) { - case 0: return DOCUMENT_DIMENSION_UNIT_UNSPECIFIED; - case 1: return INCH; - case 2: return CENTIMETER; - case 3: return POINT; - default: return null; + case 0: + return DOCUMENT_DIMENSION_UNIT_UNSPECIFIED; + case 1: + return INCH; + case 2: + return CENTIMETER; + case 3: + return POINT; + default: + return null; } } @@ -215,28 +256,28 @@ public static DocumentDimensionUnit forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DocumentDimensionUnit> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DocumentDimensionUnit findValueByNumber(int number) { - return DocumentDimensionUnit.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DocumentDimensionUnit findValueByNumber(int number) { + return DocumentDimensionUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.automl.v1.DocumentDimensions.getDescriptor().getEnumTypes().get(0); } @@ -245,8 +286,7 @@ public DocumentDimensionUnit findValueByNumber(int number) { public static DocumentDimensionUnit valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -266,38 +306,52 @@ private DocumentDimensionUnit(int value) { public static final int UNIT_FIELD_NUMBER = 1; private int unit_; /** + * + * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The enum numeric value on the wire for unit. */ - @java.lang.Override public int getUnitValue() { + @java.lang.Override + public int getUnitValue() { return unit_; } /** + * + * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The unit. */ - @java.lang.Override public com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit getUnit() { + @java.lang.Override + public com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit getUnit() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit result = com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); - return result == null ? com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED : result; + com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit result = + com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); + return result == null + ? com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED + : result; } public static final int WIDTH_FIELD_NUMBER = 2; private float width_; /** + * + * *
    * Width value of the document, works together with the unit.
    * 
* * float width = 2; + * * @return The width. */ @java.lang.Override @@ -308,11 +362,14 @@ public float getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private float height_; /** + * + * *
    * Height value of the document, works together with the unit.
    * 
* * float height = 3; + * * @return The height. */ @java.lang.Override @@ -321,6 +378,7 @@ public float getHeight() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,9 +390,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (unit_ != com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.DOCUMENT_DIMENSION_UNIT_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (unit_ + != com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit + .DOCUMENT_DIMENSION_UNIT_UNSPECIFIED + .getNumber()) { output.writeEnum(1, unit_); } if (width_ != 0F) { @@ -352,17 +412,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (unit_ != com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.DOCUMENT_DIMENSION_UNIT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, unit_); + if (unit_ + != com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit + .DOCUMENT_DIMENSION_UNIT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, unit_); } if (width_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, width_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, width_); } if (height_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, height_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, height_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -372,20 +432,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.DocumentDimensions)) { return super.equals(obj); } - com.google.cloud.automl.v1.DocumentDimensions other = (com.google.cloud.automl.v1.DocumentDimensions) obj; + com.google.cloud.automl.v1.DocumentDimensions other = + (com.google.cloud.automl.v1.DocumentDimensions) obj; if (unit_ != other.unit_) return false; if (java.lang.Float.floatToIntBits(getWidth()) - != java.lang.Float.floatToIntBits( - other.getWidth())) return false; + != java.lang.Float.floatToIntBits(other.getWidth())) return false; if (java.lang.Float.floatToIntBits(getHeight()) - != java.lang.Float.floatToIntBits( - other.getHeight())) return false; + != java.lang.Float.floatToIntBits(other.getHeight())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -400,128 +459,135 @@ public int hashCode() { hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + unit_; hash = (37 * hash) + WIDTH_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getWidth()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getWidth()); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getHeight()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getHeight()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.DocumentDimensions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DocumentDimensions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DocumentDimensions 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.v1.DocumentDimensions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.DocumentDimensions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.DocumentDimensions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.DocumentDimensions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DocumentDimensions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.DocumentDimensions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.DocumentDimensions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message that describes dimension of a document.
    * 
* * Protobuf type {@code google.cloud.automl.v1.DocumentDimensions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DocumentDimensions) com.google.cloud.automl.v1.DocumentDimensionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_DocumentDimensions_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_DocumentDimensions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DocumentDimensions.class, com.google.cloud.automl.v1.DocumentDimensions.Builder.class); + com.google.cloud.automl.v1.DocumentDimensions.class, + com.google.cloud.automl.v1.DocumentDimensions.Builder.class); } // Construct using com.google.cloud.automl.v1.DocumentDimensions.newBuilder() @@ -529,16 +595,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -552,9 +617,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_DocumentDimensions_descriptor; } @java.lang.Override @@ -573,7 +638,8 @@ public com.google.cloud.automl.v1.DocumentDimensions build() { @java.lang.Override public com.google.cloud.automl.v1.DocumentDimensions buildPartial() { - com.google.cloud.automl.v1.DocumentDimensions result = new com.google.cloud.automl.v1.DocumentDimensions(this); + com.google.cloud.automl.v1.DocumentDimensions result = + new com.google.cloud.automl.v1.DocumentDimensions(this); result.unit_ = unit_; result.width_ = width_; result.height_ = height_; @@ -585,38 +651,39 @@ public com.google.cloud.automl.v1.DocumentDimensions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DocumentDimensions) { - return mergeFrom((com.google.cloud.automl.v1.DocumentDimensions)other); + return mergeFrom((com.google.cloud.automl.v1.DocumentDimensions) other); } else { super.mergeFrom(other); return this; @@ -665,85 +732,108 @@ public Builder mergeFrom( private int unit_ = 0; /** + * + * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The enum numeric value on the wire for unit. */ - @java.lang.Override public int getUnitValue() { + @java.lang.Override + public int getUnitValue() { return unit_; } /** + * + * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @param value The enum numeric value on the wire for unit to set. * @return This builder for chaining. */ public Builder setUnitValue(int value) { - + unit_ = value; onChanged(); return this; } /** + * + * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The unit. */ @java.lang.Override public com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit getUnit() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit result = com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); - return result == null ? com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED : result; + com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit result = + com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); + return result == null + ? com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED + : result; } /** + * + * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit(com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit value) { + public Builder setUnit( + com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit value) { if (value == null) { throw new NullPointerException(); } - + unit_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return This builder for chaining. */ public Builder clearUnit() { - + unit_ = 0; onChanged(); return this; } - private float width_ ; + private float width_; /** + * + * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; + * * @return The width. */ @java.lang.Override @@ -751,42 +841,51 @@ public float getWidth() { return width_; } /** + * + * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; + * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(float value) { - + width_ = value; onChanged(); return this; } /** + * + * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; + * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0F; onChanged(); return this; } - private float height_ ; + private float height_; /** + * + * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; + * * @return The height. */ @java.lang.Override @@ -794,37 +893,43 @@ public float getHeight() { return height_; } /** + * + * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; + * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(float value) { - + height_ = value; onChanged(); return this; } /** + * + * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; + * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -834,12 +939,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DocumentDimensions) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DocumentDimensions) private static final com.google.cloud.automl.v1.DocumentDimensions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DocumentDimensions(); } @@ -848,16 +953,16 @@ public static com.google.cloud.automl.v1.DocumentDimensions getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentDimensions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentDimensions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentDimensions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentDimensions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -872,6 +977,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.DocumentDimensions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java index 5a65aab7d..698f1106c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentDimensionsOrBuilder.java @@ -1,47 +1,75 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; -public interface DocumentDimensionsOrBuilder extends +public interface DocumentDimensionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DocumentDimensions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The enum numeric value on the wire for unit. */ int getUnitValue(); /** + * + * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The unit. */ com.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit getUnit(); /** + * + * *
    * Width value of the document, works together with the unit.
    * 
* * float width = 2; + * * @return The width. */ float getWidth(); /** + * + * *
    * Height value of the document, works together with the unit.
    * 
* * float height = 3; + * * @return The height. */ float getHeight(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java index 63d4e6b92..d43ed54da 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; /** + * + * *
  * Input configuration of a [Document][google.cloud.automl.v1.Document].
  * 
* * Protobuf type {@code google.cloud.automl.v1.DocumentInputConfig} */ -public final class DocumentInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.DocumentInputConfig) DocumentInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentInputConfig() { - } + + private DocumentInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,54 +68,61 @@ private DocumentInputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); + case 10: + { + com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); + } + gcsSource_ = + input.readMessage( + com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = subBuilder.buildPartial(); + } + + break; } - gcsSource_ = input.readMessage(com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsSource_); - gcsSource_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Io.internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DocumentInputConfig.class, com.google.cloud.automl.v1.DocumentInputConfig.Builder.class); + com.google.cloud.automl.v1.DocumentInputConfig.class, + com.google.cloud.automl.v1.DocumentInputConfig.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.GcsSource gcsSource_; /** + * + * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -108,6 +131,7 @@ private DocumentInputConfig(
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -115,6 +139,8 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** + * + * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -123,13 +149,18 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.automl.v1.GcsSource getGcsSource() { - return gcsSource_ == null ? com.google.cloud.automl.v1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.automl.v1.GcsSource.getDefaultInstance() + : gcsSource_; } /** + * + * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -145,6 +176,7 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -156,8 +188,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (gcsSource_ != null) {
       output.writeMessage(1, getGcsSource());
     }
@@ -171,8 +202,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (gcsSource_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getGcsSource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -182,17 +212,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.DocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.DocumentInputConfig other = (com.google.cloud.automl.v1.DocumentInputConfig) obj;
+    com.google.cloud.automl.v1.DocumentInputConfig other =
+        (com.google.cloud.automl.v1.DocumentInputConfig) obj;
 
     if (hasGcsSource() != other.hasGcsSource()) return false;
     if (hasGcsSource()) {
-      if (!getGcsSource()
-          .equals(other.getGcsSource())) return false;
+      if (!getGcsSource().equals(other.getGcsSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -214,118 +244,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.DocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.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.v1.DocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.automl.v1.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.automl.v1.DocumentInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.DocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.DocumentInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1.DocumentInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration of a [Document][google.cloud.automl.v1.Document].
    * 
* * Protobuf type {@code google.cloud.automl.v1.DocumentInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.DocumentInputConfig) com.google.cloud.automl.v1.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.DocumentInputConfig.class, com.google.cloud.automl.v1.DocumentInputConfig.Builder.class); + com.google.cloud.automl.v1.DocumentInputConfig.class, + com.google.cloud.automl.v1.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.automl.v1.DocumentInputConfig.newBuilder() @@ -333,16 +372,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -356,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor; } @java.lang.Override @@ -377,7 +415,8 @@ public com.google.cloud.automl.v1.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.automl.v1.DocumentInputConfig buildPartial() { - com.google.cloud.automl.v1.DocumentInputConfig result = new com.google.cloud.automl.v1.DocumentInputConfig(this); + com.google.cloud.automl.v1.DocumentInputConfig result = + new com.google.cloud.automl.v1.DocumentInputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -391,38 +430,39 @@ public com.google.cloud.automl.v1.DocumentInputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.DocumentInputConfig) { - return mergeFrom((com.google.cloud.automl.v1.DocumentInputConfig)other); + return mergeFrom((com.google.cloud.automl.v1.DocumentInputConfig) other); } else { super.mergeFrom(other); return this; @@ -465,8 +505,13 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.automl.v1.GcsSource, + com.google.cloud.automl.v1.GcsSource.Builder, + com.google.cloud.automl.v1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -475,12 +520,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** + * + * *
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -489,16 +537,21 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ public com.google.cloud.automl.v1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null ? com.google.cloud.automl.v1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.automl.v1.GcsSource.getDefaultInstance() + : gcsSource_; } else { return gcsSourceBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -522,6 +575,8 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -531,8 +586,7 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) {
      *
      * .google.cloud.automl.v1.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(
-        com.google.cloud.automl.v1.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         gcsSource_ = builderForValue.build();
         onChanged();
@@ -543,6 +597,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -556,7 +612,9 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
         if (gcsSource_ != null) {
           gcsSource_ =
-            com.google.cloud.automl.v1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial();
+              com.google.cloud.automl.v1.GcsSource.newBuilder(gcsSource_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           gcsSource_ = value;
         }
@@ -568,6 +626,8 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -589,6 +649,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -599,11 +661,13 @@ public Builder clearGcsSource() {
      * .google.cloud.automl.v1.GcsSource gcs_source = 1;
      */
     public com.google.cloud.automl.v1.GcsSource.Builder getGcsSourceBuilder() {
-      
+
       onChanged();
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -617,11 +681,14 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
       if (gcsSourceBuilder_ != null) {
         return gcsSourceBuilder_.getMessageOrBuilder();
       } else {
-        return gcsSource_ == null ?
-            com.google.cloud.automl.v1.GcsSource.getDefaultInstance() : gcsSource_;
+        return gcsSource_ == null
+            ? com.google.cloud.automl.v1.GcsSource.getDefaultInstance()
+            : gcsSource_;
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -632,21 +699,24 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
      * .google.cloud.automl.v1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> 
+            com.google.cloud.automl.v1.GcsSource,
+            com.google.cloud.automl.v1.GcsSource.Builder,
+            com.google.cloud.automl.v1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder>(
-                getGcsSource(),
-                getParentForChildren(),
-                isClean());
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.automl.v1.GcsSource,
+                com.google.cloud.automl.v1.GcsSource.Builder,
+                com.google.cloud.automl.v1.GcsSourceOrBuilder>(
+                getGcsSource(), getParentForChildren(), isClean());
         gcsSource_ = null;
       }
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -656,12 +726,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.DocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.DocumentInputConfig)
   private static final com.google.cloud.automl.v1.DocumentInputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.DocumentInputConfig();
   }
@@ -670,16 +740,16 @@ public static com.google.cloud.automl.v1.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);
-    }
-  };
+  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;
@@ -694,6 +764,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.DocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java
similarity index 65%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java
index 3daa21e98..713db9cd6 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/io.proto
 
 package com.google.cloud.automl.v1;
 
-public interface DocumentInputConfigOrBuilder extends
+public interface DocumentInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.DocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -16,10 +34,13 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -28,10 +49,13 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.automl.v1.GcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java
index c97d77086..6f6097129 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DocumentOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/data_items.proto
 
 package com.google.cloud.automl.v1;
 
-public interface DocumentOrBuilder extends
+public interface DocumentOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Document)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1.DocumentInputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.automl.v1.DocumentInputConfig getInputConfig(); /** + * + * *
    * An input config specifying the content of the document.
    * 
@@ -35,24 +59,32 @@ public interface DocumentOrBuilder extends com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; + * * @return Whether the documentText field is set. */ boolean hasDocumentText(); /** + * + * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1.TextSnippet document_text = 2; + * * @return The documentText. */ com.google.cloud.automl.v1.TextSnippet getDocumentText(); /** + * + * *
    * The plain text version of this document.
    * 
@@ -62,6 +94,8 @@ public interface DocumentOrBuilder extends com.google.cloud.automl.v1.TextSnippetOrBuilder getDocumentTextOrBuilder(); /** + * + * *
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -69,9 +103,10 @@ public interface DocumentOrBuilder extends
    *
    * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
    */
-  java.util.List 
-      getLayoutList();
+  java.util.List getLayoutList();
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -81,6 +116,8 @@ public interface DocumentOrBuilder extends
    */
   com.google.cloud.automl.v1.Document.Layout getLayout(int index);
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -90,6 +127,8 @@ public interface DocumentOrBuilder extends
    */
   int getLayoutCount();
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -97,9 +136,11 @@ public interface DocumentOrBuilder extends
    *
    * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
    */
-  java.util.List 
+  java.util.List
       getLayoutOrBuilderList();
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -107,28 +148,35 @@ public interface DocumentOrBuilder extends
    *
    * repeated .google.cloud.automl.v1.Document.Layout layout = 3;
    */
-  com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(
-      int index);
+  com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; + * * @return Whether the documentDimensions field is set. */ boolean hasDocumentDimensions(); /** + * + * *
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; + * * @return The documentDimensions. */ com.google.cloud.automl.v1.DocumentDimensions getDocumentDimensions(); /** + * + * *
    * The dimensions of the page in the document.
    * 
@@ -138,11 +186,14 @@ com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder( com.google.cloud.automl.v1.DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder(); /** + * + * *
    * Number of pages in the document.
    * 
* * int32 page_count = 5; + * * @return The pageCount. */ int getPageCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java index f521fdca1..eff0e1ca2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayload.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; /** + * + * *
  * Example data used for training or prediction.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ExamplePayload} */ -public final class ExamplePayload extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExamplePayload extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExamplePayload) ExamplePayloadOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExamplePayload.newBuilder() to construct. private ExamplePayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExamplePayload() { - } + + private ExamplePayload() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExamplePayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExamplePayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,90 +68,100 @@ private ExamplePayload( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.Image.Builder subBuilder = null; - if (payloadCase_ == 1) { - subBuilder = ((com.google.cloud.automl.v1.Image) payload_).toBuilder(); + case 10: + { + com.google.cloud.automl.v1.Image.Builder subBuilder = null; + if (payloadCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1.Image) payload_).toBuilder(); + } + payload_ = + input.readMessage(com.google.cloud.automl.v1.Image.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.Image) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 1; + break; } - payload_ = - input.readMessage(com.google.cloud.automl.v1.Image.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.Image) payload_); - payload_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; + if (payloadCase_ == 2) { + subBuilder = ((com.google.cloud.automl.v1.TextSnippet) payload_).toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSnippet) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 2; + break; } - payloadCase_ = 1; - break; - } - case 18: { - com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; - if (payloadCase_ == 2) { - subBuilder = ((com.google.cloud.automl.v1.TextSnippet) payload_).toBuilder(); + case 34: + { + com.google.cloud.automl.v1.Document.Builder subBuilder = null; + if (payloadCase_ == 4) { + subBuilder = ((com.google.cloud.automl.v1.Document) payload_).toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.automl.v1.Document.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.Document) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 4; + break; } - payload_ = - input.readMessage(com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSnippet) payload_); - payload_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - payloadCase_ = 2; - break; - } - case 34: { - com.google.cloud.automl.v1.Document.Builder subBuilder = null; - if (payloadCase_ == 4) { - subBuilder = ((com.google.cloud.automl.v1.Document) payload_).toBuilder(); - } - payload_ = - input.readMessage(com.google.cloud.automl.v1.Document.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.Document) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 4; - 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); + 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.v1.DataItems.internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_ExamplePayload_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_ExamplePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExamplePayload.class, com.google.cloud.automl.v1.ExamplePayload.Builder.class); + com.google.cloud.automl.v1.ExamplePayload.class, + com.google.cloud.automl.v1.ExamplePayload.Builder.class); } private int payloadCase_ = 0; private java.lang.Object payload_; + public enum PayloadCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE(1), TEXT_SNIPPET(2), DOCUMENT(4), PAYLOAD_NOT_SET(0); private final int value; + private PayloadCase(int value) { this.value = value; } @@ -151,31 +177,38 @@ public static PayloadCase valueOf(int value) { public static PayloadCase forNumber(int value) { switch (value) { - case 1: return IMAGE; - case 2: return TEXT_SNIPPET; - case 4: return DOCUMENT; - case 0: return PAYLOAD_NOT_SET; - default: return null; + case 1: + return IMAGE; + case 2: + return TEXT_SNIPPET; + case 4: + return DOCUMENT; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); } public static final int IMAGE_FIELD_NUMBER = 1; /** + * + * *
    * Example image.
    * 
* * .google.cloud.automl.v1.Image image = 1; + * * @return Whether the image field is set. */ @java.lang.Override @@ -183,21 +216,26 @@ public boolean hasImage() { return payloadCase_ == 1; } /** + * + * *
    * Example image.
    * 
* * .google.cloud.automl.v1.Image image = 1; + * * @return The image. */ @java.lang.Override public com.google.cloud.automl.v1.Image getImage() { if (payloadCase_ == 1) { - return (com.google.cloud.automl.v1.Image) payload_; + return (com.google.cloud.automl.v1.Image) payload_; } return com.google.cloud.automl.v1.Image.getDefaultInstance(); } /** + * + * *
    * Example image.
    * 
@@ -207,18 +245,21 @@ public com.google.cloud.automl.v1.Image getImage() { @java.lang.Override public com.google.cloud.automl.v1.ImageOrBuilder getImageOrBuilder() { if (payloadCase_ == 1) { - return (com.google.cloud.automl.v1.Image) payload_; + return (com.google.cloud.automl.v1.Image) payload_; } return com.google.cloud.automl.v1.Image.getDefaultInstance(); } public static final int TEXT_SNIPPET_FIELD_NUMBER = 2; /** + * + * *
    * Example text.
    * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; + * * @return Whether the textSnippet field is set. */ @java.lang.Override @@ -226,21 +267,26 @@ public boolean hasTextSnippet() { return payloadCase_ == 2; } /** + * + * *
    * Example text.
    * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; + * * @return The textSnippet. */ @java.lang.Override public com.google.cloud.automl.v1.TextSnippet getTextSnippet() { if (payloadCase_ == 2) { - return (com.google.cloud.automl.v1.TextSnippet) payload_; + return (com.google.cloud.automl.v1.TextSnippet) payload_; } return com.google.cloud.automl.v1.TextSnippet.getDefaultInstance(); } /** + * + * *
    * Example text.
    * 
@@ -250,18 +296,21 @@ public com.google.cloud.automl.v1.TextSnippet getTextSnippet() { @java.lang.Override public com.google.cloud.automl.v1.TextSnippetOrBuilder getTextSnippetOrBuilder() { if (payloadCase_ == 2) { - return (com.google.cloud.automl.v1.TextSnippet) payload_; + return (com.google.cloud.automl.v1.TextSnippet) payload_; } return com.google.cloud.automl.v1.TextSnippet.getDefaultInstance(); } public static final int DOCUMENT_FIELD_NUMBER = 4; /** + * + * *
    * Example document.
    * 
* * .google.cloud.automl.v1.Document document = 4; + * * @return Whether the document field is set. */ @java.lang.Override @@ -269,21 +318,26 @@ public boolean hasDocument() { return payloadCase_ == 4; } /** + * + * *
    * Example document.
    * 
* * .google.cloud.automl.v1.Document document = 4; + * * @return The document. */ @java.lang.Override public com.google.cloud.automl.v1.Document getDocument() { if (payloadCase_ == 4) { - return (com.google.cloud.automl.v1.Document) payload_; + return (com.google.cloud.automl.v1.Document) payload_; } return com.google.cloud.automl.v1.Document.getDefaultInstance(); } /** + * + * *
    * Example document.
    * 
@@ -293,12 +347,13 @@ public com.google.cloud.automl.v1.Document getDocument() { @java.lang.Override public com.google.cloud.automl.v1.DocumentOrBuilder getDocumentOrBuilder() { if (payloadCase_ == 4) { - return (com.google.cloud.automl.v1.Document) payload_; + return (com.google.cloud.automl.v1.Document) payload_; } return com.google.cloud.automl.v1.Document.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,8 +365,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (payloadCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1.Image) payload_); } @@ -331,16 +385,19 @@ public int getSerializedSize() { size = 0; if (payloadCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.automl.v1.Image) payload_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.automl.v1.Image) payload_); } if (payloadCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.automl.v1.TextSnippet) payload_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1.TextSnippet) payload_); } if (payloadCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.automl.v1.Document) payload_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.automl.v1.Document) payload_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,26 +407,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ExamplePayload)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExamplePayload other = (com.google.cloud.automl.v1.ExamplePayload) obj; + com.google.cloud.automl.v1.ExamplePayload other = + (com.google.cloud.automl.v1.ExamplePayload) obj; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 1: - if (!getImage() - .equals(other.getImage())) return false; + if (!getImage().equals(other.getImage())) return false; break; case 2: - if (!getTextSnippet() - .equals(other.getTextSnippet())) return false; + if (!getTextSnippet().equals(other.getTextSnippet())) return false; break; case 4: - if (!getDocument() - .equals(other.getDocument())) return false; + if (!getDocument().equals(other.getDocument())) return false; break; case 0: default: @@ -406,118 +461,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ExamplePayload parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ExamplePayload parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExamplePayload parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ExamplePayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExamplePayload 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.v1.ExamplePayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExamplePayload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.ExamplePayload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExamplePayload parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ExamplePayload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ExamplePayload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExamplePayload parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ExamplePayload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExamplePayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.ExamplePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Example data used for training or prediction.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ExamplePayload} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExamplePayload) com.google.cloud.automl.v1.ExamplePayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_ExamplePayload_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_ExamplePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExamplePayload.class, com.google.cloud.automl.v1.ExamplePayload.Builder.class); + com.google.cloud.automl.v1.ExamplePayload.class, + com.google.cloud.automl.v1.ExamplePayload.Builder.class); } // Construct using com.google.cloud.automl.v1.ExamplePayload.newBuilder() @@ -525,16 +589,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -544,9 +607,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_ExamplePayload_descriptor; } @java.lang.Override @@ -565,7 +628,8 @@ public com.google.cloud.automl.v1.ExamplePayload build() { @java.lang.Override public com.google.cloud.automl.v1.ExamplePayload buildPartial() { - com.google.cloud.automl.v1.ExamplePayload result = new com.google.cloud.automl.v1.ExamplePayload(this); + com.google.cloud.automl.v1.ExamplePayload result = + new com.google.cloud.automl.v1.ExamplePayload(this); if (payloadCase_ == 1) { if (imageBuilder_ == null) { result.payload_ = payload_; @@ -596,38 +660,39 @@ public com.google.cloud.automl.v1.ExamplePayload buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ExamplePayload) { - return mergeFrom((com.google.cloud.automl.v1.ExamplePayload)other); + return mergeFrom((com.google.cloud.automl.v1.ExamplePayload) other); } else { super.mergeFrom(other); return this; @@ -637,21 +702,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.automl.v1.ExamplePayload other) { if (other == com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance()) return this; switch (other.getPayloadCase()) { - case IMAGE: { - mergeImage(other.getImage()); - break; - } - case TEXT_SNIPPET: { - mergeTextSnippet(other.getTextSnippet()); - break; - } - case DOCUMENT: { - mergeDocument(other.getDocument()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } + case IMAGE: + { + mergeImage(other.getImage()); + break; + } + case TEXT_SNIPPET: + { + mergeTextSnippet(other.getTextSnippet()); + break; + } + case DOCUMENT: + { + mergeDocument(other.getDocument()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -681,12 +750,12 @@ public Builder mergeFrom( } return this; } + private int payloadCase_ = 0; private java.lang.Object payload_; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); } public Builder clearPayload() { @@ -696,15 +765,20 @@ public Builder clearPayload() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Image, com.google.cloud.automl.v1.Image.Builder, com.google.cloud.automl.v1.ImageOrBuilder> imageBuilder_; + com.google.cloud.automl.v1.Image, + com.google.cloud.automl.v1.Image.Builder, + com.google.cloud.automl.v1.ImageOrBuilder> + imageBuilder_; /** + * + * *
      * Example image.
      * 
* * .google.cloud.automl.v1.Image image = 1; + * * @return Whether the image field is set. */ @java.lang.Override @@ -712,11 +786,14 @@ public boolean hasImage() { return payloadCase_ == 1; } /** + * + * *
      * Example image.
      * 
* * .google.cloud.automl.v1.Image image = 1; + * * @return The image. */ @java.lang.Override @@ -734,6 +811,8 @@ public com.google.cloud.automl.v1.Image getImage() { } } /** + * + * *
      * Example image.
      * 
@@ -754,14 +833,15 @@ public Builder setImage(com.google.cloud.automl.v1.Image value) { return this; } /** + * + * *
      * Example image.
      * 
* * .google.cloud.automl.v1.Image image = 1; */ - public Builder setImage( - com.google.cloud.automl.v1.Image.Builder builderForValue) { + public Builder setImage(com.google.cloud.automl.v1.Image.Builder builderForValue) { if (imageBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -772,6 +852,8 @@ public Builder setImage( return this; } /** + * + * *
      * Example image.
      * 
@@ -780,10 +862,13 @@ public Builder setImage( */ public Builder mergeImage(com.google.cloud.automl.v1.Image value) { if (imageBuilder_ == null) { - if (payloadCase_ == 1 && - payload_ != com.google.cloud.automl.v1.Image.getDefaultInstance()) { - payload_ = com.google.cloud.automl.v1.Image.newBuilder((com.google.cloud.automl.v1.Image) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 1 + && payload_ != com.google.cloud.automl.v1.Image.getDefaultInstance()) { + payload_ = + com.google.cloud.automl.v1.Image.newBuilder( + (com.google.cloud.automl.v1.Image) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -798,6 +883,8 @@ public Builder mergeImage(com.google.cloud.automl.v1.Image value) { return this; } /** + * + * *
      * Example image.
      * 
@@ -821,6 +908,8 @@ public Builder clearImage() { return this; } /** + * + * *
      * Example image.
      * 
@@ -831,6 +920,8 @@ public com.google.cloud.automl.v1.Image.Builder getImageBuilder() { return getImageFieldBuilder().getBuilder(); } /** + * + * *
      * Example image.
      * 
@@ -849,6 +940,8 @@ public com.google.cloud.automl.v1.ImageOrBuilder getImageOrBuilder() { } } /** + * + * *
      * Example image.
      * 
@@ -856,32 +949,42 @@ public com.google.cloud.automl.v1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.automl.v1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Image, com.google.cloud.automl.v1.Image.Builder, com.google.cloud.automl.v1.ImageOrBuilder> + com.google.cloud.automl.v1.Image, + com.google.cloud.automl.v1.Image.Builder, + com.google.cloud.automl.v1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { if (!(payloadCase_ == 1)) { payload_ = com.google.cloud.automl.v1.Image.getDefaultInstance(); } - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Image, com.google.cloud.automl.v1.Image.Builder, com.google.cloud.automl.v1.ImageOrBuilder>( - (com.google.cloud.automl.v1.Image) payload_, - getParentForChildren(), - isClean()); + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Image, + com.google.cloud.automl.v1.Image.Builder, + com.google.cloud.automl.v1.ImageOrBuilder>( + (com.google.cloud.automl.v1.Image) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 1; - onChanged();; + onChanged(); + ; return imageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> textSnippetBuilder_; + com.google.cloud.automl.v1.TextSnippet, + com.google.cloud.automl.v1.TextSnippet.Builder, + com.google.cloud.automl.v1.TextSnippetOrBuilder> + textSnippetBuilder_; /** + * + * *
      * Example text.
      * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; + * * @return Whether the textSnippet field is set. */ @java.lang.Override @@ -889,11 +992,14 @@ public boolean hasTextSnippet() { return payloadCase_ == 2; } /** + * + * *
      * Example text.
      * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; + * * @return The textSnippet. */ @java.lang.Override @@ -911,6 +1017,8 @@ public com.google.cloud.automl.v1.TextSnippet getTextSnippet() { } } /** + * + * *
      * Example text.
      * 
@@ -931,14 +1039,15 @@ public Builder setTextSnippet(com.google.cloud.automl.v1.TextSnippet value) { return this; } /** + * + * *
      * Example text.
      * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; */ - public Builder setTextSnippet( - com.google.cloud.automl.v1.TextSnippet.Builder builderForValue) { + public Builder setTextSnippet(com.google.cloud.automl.v1.TextSnippet.Builder builderForValue) { if (textSnippetBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -949,6 +1058,8 @@ public Builder setTextSnippet( return this; } /** + * + * *
      * Example text.
      * 
@@ -957,10 +1068,13 @@ public Builder setTextSnippet( */ public Builder mergeTextSnippet(com.google.cloud.automl.v1.TextSnippet value) { if (textSnippetBuilder_ == null) { - if (payloadCase_ == 2 && - payload_ != com.google.cloud.automl.v1.TextSnippet.getDefaultInstance()) { - payload_ = com.google.cloud.automl.v1.TextSnippet.newBuilder((com.google.cloud.automl.v1.TextSnippet) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 2 + && payload_ != com.google.cloud.automl.v1.TextSnippet.getDefaultInstance()) { + payload_ = + com.google.cloud.automl.v1.TextSnippet.newBuilder( + (com.google.cloud.automl.v1.TextSnippet) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -975,6 +1089,8 @@ public Builder mergeTextSnippet(com.google.cloud.automl.v1.TextSnippet value) { return this; } /** + * + * *
      * Example text.
      * 
@@ -998,6 +1114,8 @@ public Builder clearTextSnippet() { return this; } /** + * + * *
      * Example text.
      * 
@@ -1008,6 +1126,8 @@ public com.google.cloud.automl.v1.TextSnippet.Builder getTextSnippetBuilder() { return getTextSnippetFieldBuilder().getBuilder(); } /** + * + * *
      * Example text.
      * 
@@ -1026,6 +1146,8 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getTextSnippetOrBuilder() } } /** + * + * *
      * Example text.
      * 
@@ -1033,32 +1155,44 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getTextSnippetOrBuilder() * .google.cloud.automl.v1.TextSnippet text_snippet = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> + com.google.cloud.automl.v1.TextSnippet, + com.google.cloud.automl.v1.TextSnippet.Builder, + com.google.cloud.automl.v1.TextSnippetOrBuilder> getTextSnippetFieldBuilder() { if (textSnippetBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = com.google.cloud.automl.v1.TextSnippet.getDefaultInstance(); } - textSnippetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder>( + textSnippetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSnippet, + com.google.cloud.automl.v1.TextSnippet.Builder, + com.google.cloud.automl.v1.TextSnippetOrBuilder>( (com.google.cloud.automl.v1.TextSnippet) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; - onChanged();; + onChanged(); + ; return textSnippetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Document, com.google.cloud.automl.v1.Document.Builder, com.google.cloud.automl.v1.DocumentOrBuilder> documentBuilder_; + com.google.cloud.automl.v1.Document, + com.google.cloud.automl.v1.Document.Builder, + com.google.cloud.automl.v1.DocumentOrBuilder> + documentBuilder_; /** + * + * *
      * Example document.
      * 
* * .google.cloud.automl.v1.Document document = 4; + * * @return Whether the document field is set. */ @java.lang.Override @@ -1066,11 +1200,14 @@ public boolean hasDocument() { return payloadCase_ == 4; } /** + * + * *
      * Example document.
      * 
* * .google.cloud.automl.v1.Document document = 4; + * * @return The document. */ @java.lang.Override @@ -1088,6 +1225,8 @@ public com.google.cloud.automl.v1.Document getDocument() { } } /** + * + * *
      * Example document.
      * 
@@ -1108,14 +1247,15 @@ public Builder setDocument(com.google.cloud.automl.v1.Document value) { return this; } /** + * + * *
      * Example document.
      * 
* * .google.cloud.automl.v1.Document document = 4; */ - public Builder setDocument( - com.google.cloud.automl.v1.Document.Builder builderForValue) { + public Builder setDocument(com.google.cloud.automl.v1.Document.Builder builderForValue) { if (documentBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -1126,6 +1266,8 @@ public Builder setDocument( return this; } /** + * + * *
      * Example document.
      * 
@@ -1134,10 +1276,13 @@ public Builder setDocument( */ public Builder mergeDocument(com.google.cloud.automl.v1.Document value) { if (documentBuilder_ == null) { - if (payloadCase_ == 4 && - payload_ != com.google.cloud.automl.v1.Document.getDefaultInstance()) { - payload_ = com.google.cloud.automl.v1.Document.newBuilder((com.google.cloud.automl.v1.Document) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 4 + && payload_ != com.google.cloud.automl.v1.Document.getDefaultInstance()) { + payload_ = + com.google.cloud.automl.v1.Document.newBuilder( + (com.google.cloud.automl.v1.Document) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -1152,6 +1297,8 @@ public Builder mergeDocument(com.google.cloud.automl.v1.Document value) { return this; } /** + * + * *
      * Example document.
      * 
@@ -1175,6 +1322,8 @@ public Builder clearDocument() { return this; } /** + * + * *
      * Example document.
      * 
@@ -1185,6 +1334,8 @@ public com.google.cloud.automl.v1.Document.Builder getDocumentBuilder() { return getDocumentFieldBuilder().getBuilder(); } /** + * + * *
      * Example document.
      * 
@@ -1203,6 +1354,8 @@ public com.google.cloud.automl.v1.DocumentOrBuilder getDocumentOrBuilder() { } } /** + * + * *
      * Example document.
      * 
@@ -1210,26 +1363,30 @@ public com.google.cloud.automl.v1.DocumentOrBuilder getDocumentOrBuilder() { * .google.cloud.automl.v1.Document document = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Document, com.google.cloud.automl.v1.Document.Builder, com.google.cloud.automl.v1.DocumentOrBuilder> + com.google.cloud.automl.v1.Document, + com.google.cloud.automl.v1.Document.Builder, + com.google.cloud.automl.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { if (!(payloadCase_ == 4)) { payload_ = com.google.cloud.automl.v1.Document.getDefaultInstance(); } - documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Document, com.google.cloud.automl.v1.Document.Builder, com.google.cloud.automl.v1.DocumentOrBuilder>( - (com.google.cloud.automl.v1.Document) payload_, - getParentForChildren(), - isClean()); + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Document, + com.google.cloud.automl.v1.Document.Builder, + com.google.cloud.automl.v1.DocumentOrBuilder>( + (com.google.cloud.automl.v1.Document) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 4; - onChanged();; + onChanged(); + ; return documentBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1396,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExamplePayload) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExamplePayload) private static final com.google.cloud.automl.v1.ExamplePayload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExamplePayload(); } @@ -1253,16 +1410,16 @@ public static com.google.cloud.automl.v1.ExamplePayload getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExamplePayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExamplePayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExamplePayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExamplePayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ExamplePayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java index dd332ebb9..7dfbd7281 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExamplePayloadOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; -public interface ExamplePayloadOrBuilder extends +public interface ExamplePayloadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExamplePayload) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Example image.
    * 
* * .google.cloud.automl.v1.Image image = 1; + * * @return Whether the image field is set. */ boolean hasImage(); /** + * + * *
    * Example image.
    * 
* * .google.cloud.automl.v1.Image image = 1; + * * @return The image. */ com.google.cloud.automl.v1.Image getImage(); /** + * + * *
    * Example image.
    * 
@@ -35,24 +59,32 @@ public interface ExamplePayloadOrBuilder extends com.google.cloud.automl.v1.ImageOrBuilder getImageOrBuilder(); /** + * + * *
    * Example text.
    * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; + * * @return Whether the textSnippet field is set. */ boolean hasTextSnippet(); /** + * + * *
    * Example text.
    * 
* * .google.cloud.automl.v1.TextSnippet text_snippet = 2; + * * @return The textSnippet. */ com.google.cloud.automl.v1.TextSnippet getTextSnippet(); /** + * + * *
    * Example text.
    * 
@@ -62,24 +94,32 @@ public interface ExamplePayloadOrBuilder extends com.google.cloud.automl.v1.TextSnippetOrBuilder getTextSnippetOrBuilder(); /** + * + * *
    * Example document.
    * 
* * .google.cloud.automl.v1.Document document = 4; + * * @return Whether the document field is set. */ boolean hasDocument(); /** + * + * *
    * Example document.
    * 
* * .google.cloud.automl.v1.Document document = 4; + * * @return The document. */ com.google.cloud.automl.v1.Document getDocument(); /** + * + * *
    * Example document.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java index f243d149f..46ca32a4f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** + * + * *
  * Details of ExportData operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ExportDataOperationMetadata} */ -public final class ExportDataOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExportDataOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportDataOperationMetadata) ExportDataOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportDataOperationMetadata.newBuilder() to construct. private ExportDataOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportDataOperationMetadata() { - } + + private ExportDataOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportDataOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportDataOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,90 +68,111 @@ private ExportDataOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder subBuilder = null; - if (outputInfo_ != null) { - subBuilder = outputInfo_.toBuilder(); - } - outputInfo_ = input.readMessage(com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputInfo_); - outputInfo_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder + subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); + } + outputInfo_ = + input.readMessage( + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputInfo_); + outputInfo_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportDataOperationMetadata.class, com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ExportDataOperationMetadata.class, + com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder.class); } - public interface ExportDataOutputInfoOrBuilder extends + public interface ExportDataOutputInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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; + * * @return Whether the gcsOutputDirectory field is set. */ boolean hasGcsOutputDirectory(); /** + * + * *
      * The full path of the Google Cloud Storage directory created, into which
      * the exported data is written.
      * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ 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; + * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString - getGcsOutputDirectoryBytes(); + com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.OutputLocationCase getOutputLocationCase(); + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + .OutputLocationCase + getOutputLocationCase(); } /** + * + * *
    * Further describes this export data's output.
    * Supplements
@@ -144,30 +181,29 @@ public interface ExportDataOutputInfoOrBuilder extends
    *
    * Protobuf type {@code google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo}
    */
-  public static final class ExportDataOutputInfo extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ExportDataOutputInfo extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)
       ExportDataOutputInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ExportDataOutputInfo.newBuilder() to construct.
     private ExportDataOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private ExportDataOutputInfo() {
-    }
+
+    private ExportDataOutputInfo() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ExportDataOutputInfo();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private ExportDataOutputInfo(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -186,52 +222,59 @@ private ExportDataOutputInfo(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              outputLocationCase_ = 1;
-              outputLocation_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                outputLocationCase_ = 1;
+                outputLocation_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              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);
+        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.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.Operations
+          .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable
+      return com.google.cloud.automl.v1.Operations
+          .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.class, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder.class);
+              com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.class,
+              com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder
+                  .class);
     }
 
     private int outputLocationCase_ = 0;
     private java.lang.Object outputLocation_;
+
     public enum OutputLocationCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       GCS_OUTPUT_DIRECTORY(1),
       OUTPUTLOCATION_NOT_SET(0);
       private final int value;
+
       private OutputLocationCase(int value) {
         this.value = value;
       }
@@ -247,42 +290,50 @@ public static OutputLocationCase valueOf(int value) {
 
       public static OutputLocationCase forNumber(int value) {
         switch (value) {
-          case 1: return GCS_OUTPUT_DIRECTORY;
-          case 0: return OUTPUTLOCATION_NOT_SET;
-          default: return null;
+          case 1:
+            return GCS_OUTPUT_DIRECTORY;
+          case 0:
+            return OUTPUTLOCATION_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public OutputLocationCase
-    getOutputLocationCase() {
-      return OutputLocationCase.forNumber(
-          outputLocationCase_);
+    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; + * * @return Whether the gcsOutputDirectory field is set. */ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** + * + * *
      * The full path of the Google Cloud Storage directory created, into which
      * the exported data is written.
      * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ public java.lang.String getGcsOutputDirectory() { @@ -293,8 +344,7 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -303,24 +353,25 @@ public 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; + * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -331,6 +382,7 @@ public java.lang.String getGcsOutputDirectory() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,8 +394,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputLocationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocation_); } @@ -367,18 +418,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)) { + if (!(obj + instanceof com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo other = (com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) obj; + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo other = + (com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) obj; if (!getOutputLocationCase().equals(other.getOutputLocationCase())) return false; switch (outputLocationCase_) { case 1: - if (!getGcsOutputDirectory() - .equals(other.getGcsOutputDirectory())) return false; + if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; break; case 0: default: @@ -407,88 +459,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.ExportDataOperationMetadata.ExportDataOutputInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.ExportDataOperationMetadata.ExportDataOutputInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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); + + public static com.google.cloud.automl.v1.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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -498,6 +563,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further describes this export data's output.
      * Supplements
@@ -506,38 +573,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)
         com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.automl.v1.Operations
+            .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable
+        return com.google.cloud.automl.v1.Operations
+            .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.class, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder.class);
+                com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.class,
+                com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.newBuilder()
+      // Construct using
+      // com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -547,19 +618,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.automl.v1.Operations
+            .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getDefaultInstanceForType() {
-        return com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance();
+      public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo
+          getDefaultInstanceForType() {
+        return com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo build() {
-        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo result = buildPartial();
+        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -567,8 +641,10 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputIn
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo buildPartial() {
-        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo result = new com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo(this);
+      public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo
+          buildPartial() {
+        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo result =
+            new com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo(this);
         if (outputLocationCase_ == 1) {
           result.outputLocation_ = outputLocation_;
         }
@@ -581,56 +657,67 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputIn
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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.v1.ExportDataOperationMetadata.ExportDataOutputInfo) {
-          return mergeFrom((com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)other);
+        if (other
+            instanceof
+            com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) {
+          return mergeFrom(
+              (com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo other) {
-        if (other == com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo other) {
+        if (other
+            == com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo
+                .getDefaultInstance()) return this;
         switch (other.getOutputLocationCase()) {
-          case GCS_OUTPUT_DIRECTORY: {
-            outputLocationCase_ = 1;
-            outputLocation_ = other.outputLocation_;
-            onChanged();
-            break;
-          }
-          case OUTPUTLOCATION_NOT_SET: {
-            break;
-          }
+          case GCS_OUTPUT_DIRECTORY:
+            {
+              outputLocationCase_ = 1;
+              outputLocation_ = other.outputLocation_;
+              onChanged();
+              break;
+            }
+          case OUTPUTLOCATION_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -647,11 +734,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parsedMessage = null;
+        com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo parsedMessage =
+            null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -660,12 +750,12 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int outputLocationCase_ = 0;
       private java.lang.Object outputLocation_;
-      public OutputLocationCase
-          getOutputLocationCase() {
-        return OutputLocationCase.forNumber(
-            outputLocationCase_);
+
+      public OutputLocationCase getOutputLocationCase() {
+        return OutputLocationCase.forNumber(outputLocationCase_);
       }
 
       public Builder clearOutputLocation() {
@@ -675,14 +765,16 @@ public Builder clearOutputLocation() {
         return this;
       }
 
-
       /**
+       *
+       *
        * 
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; + * * @return Whether the gcsOutputDirectory field is set. */ @java.lang.Override @@ -690,12 +782,15 @@ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -705,8 +800,7 @@ public java.lang.String getGcsOutputDirectory() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -717,25 +811,26 @@ public 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; + * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -745,32 +840,37 @@ public 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; + * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory( - java.lang.String value) { + public Builder setGcsOutputDirectory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 1; + 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; + * * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { @@ -782,26 +882,29 @@ public Builder clearGcsOutputDirectory() { return this; } /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; + * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputLocationCase_ = 1; outputLocation_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -814,30 +917,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo) - private static final com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo(); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -849,20 +955,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int OUTPUT_INFO_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo outputInfo_; /** + * + * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -870,30 +980,43 @@ public boolean hasOutputInfo() { return outputInfo_ != null; } /** + * + * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getOutputInfo() { - return outputInfo_ == null ? com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance() : outputInfo_; + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + getOutputInfo() { + return outputInfo_ == null + ? com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + .getDefaultInstance() + : outputInfo_; } /** + * + * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder + getOutputInfoOrBuilder() { return getOutputInfo(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -905,8 +1028,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputInfo_ != null) { output.writeMessage(1, getOutputInfo()); } @@ -920,8 +1042,7 @@ public int getSerializedSize() { size = 0; if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -931,17 +1052,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ExportDataOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportDataOperationMetadata other = (com.google.cloud.automl.v1.ExportDataOperationMetadata) obj; + com.google.cloud.automl.v1.ExportDataOperationMetadata other = + (com.google.cloud.automl.v1.ExportDataOperationMetadata) obj; if (hasOutputInfo() != other.hasOutputInfo()) return false; if (hasOutputInfo()) { - if (!getOutputInfo() - .equals(other.getOutputInfo())) return false; + if (!getOutputInfo().equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -964,117 +1085,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ExportDataOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.ExportDataOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ExportDataOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ExportDataOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ExportDataOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ExportDataOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportDataOperationMetadata) com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportDataOperationMetadata.class, com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ExportDataOperationMetadata.class, + com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ExportDataOperationMetadata.newBuilder() @@ -1082,16 +1213,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1105,9 +1235,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; } @java.lang.Override @@ -1126,7 +1256,8 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ExportDataOperationMetadata buildPartial() { - com.google.cloud.automl.v1.ExportDataOperationMetadata result = new com.google.cloud.automl.v1.ExportDataOperationMetadata(this); + com.google.cloud.automl.v1.ExportDataOperationMetadata result = + new com.google.cloud.automl.v1.ExportDataOperationMetadata(this); if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { @@ -1140,38 +1271,39 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ExportDataOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ExportDataOperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.ExportDataOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1179,7 +1311,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ExportDataOperationMetadata other) { - if (other == com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance()) + return this; if (other.hasOutputInfo()) { mergeOutputInfo(other.getOutputInfo()); } @@ -1202,7 +1335,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ExportDataOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ExportDataOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1214,41 +1348,63 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo outputInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder> outputInfoBuilder_; + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder> + outputInfoBuilder_; /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { return outputInfoBuilder_ != null || outputInfo_ != null; } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * * @return The outputInfo. */ - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getOutputInfo() { + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null ? com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance() : outputInfo_; + return outputInfo_ == null + ? com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + .getDefaultInstance() + : outputInfo_; } else { return outputInfoBuilder_.getMessage(); } } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ - public Builder setOutputInfo(com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo value) { + public Builder setOutputInfo( + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1262,14 +1418,19 @@ public Builder setOutputInfo(com.google.cloud.automl.v1.ExportDataOperationMetad return this; } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ public Builder setOutputInfo( - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder builderForValue) { + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder + builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1280,17 +1441,25 @@ public Builder setOutputInfo( return this; } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ - public Builder mergeOutputInfo(com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo value) { + public Builder mergeOutputInfo( + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo value) { if (outputInfoBuilder_ == null) { if (outputInfo_ != null) { outputInfo_ = - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + .newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); } else { outputInfo_ = value; } @@ -1302,11 +1471,15 @@ public Builder mergeOutputInfo(com.google.cloud.automl.v1.ExportDataOperationMet return this; } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1320,55 +1493,75 @@ public Builder clearOutputInfo() { return this; } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder getOutputInfoBuilder() { - + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder + getOutputInfoBuilder() { + onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ - public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder + getOutputInfoOrBuilder() { if (outputInfoBuilder_ != null) { return outputInfoBuilder_.getMessageOrBuilder(); } else { - return outputInfo_ == null ? - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance() : outputInfo_; + return outputInfo_ == null + ? com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo + .getDefaultInstance() + : outputInfo_; } } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder> + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder> getOutputInfoFieldBuilder() { if (outputInfoBuilder_ == null) { - outputInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder>( - getOutputInfo(), - getParentForChildren(), - isClean()); + outputInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder, + com.google.cloud.automl.v1.ExportDataOperationMetadata + .ExportDataOutputInfoOrBuilder>( + getOutputInfo(), getParentForChildren(), isClean()); outputInfo_ = null; } return outputInfoBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1378,12 +1571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportDataOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportDataOperationMetadata) private static final com.google.cloud.automl.v1.ExportDataOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportDataOperationMetadata(); } @@ -1392,16 +1585,16 @@ public static com.google.cloud.automl.v1.ExportDataOperationMetadata getDefaultI 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); - } - }; + 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; @@ -1416,6 +1609,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1.ExportDataOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java index 18910ce0e..030c8faf7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataOperationMetadataOrBuilder.java @@ -1,36 +1,64 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; -public interface ExportDataOperationMetadataOrBuilder extends +public interface ExportDataOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportDataOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * * @return Whether the outputInfo field is set. */ boolean hasOutputInfo(); /** + * + * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * * @return The outputInfo. */ com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo getOutputInfo(); /** + * + * *
    * Output only. Information further describing this export data's output.
    * 
* - * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ - com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder getOutputInfoOrBuilder(); + com.google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder + getOutputInfoOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java index 8e84b2038..0ed4da44f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.ExportData][google.cloud.automl.v1.AutoMl.ExportData].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ExportDataRequest} */ -public final class ExportDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExportDataRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportDataRequest) ExportDataRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportDataRequest.newBuilder() to construct. private ExportDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportDataRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportDataRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,76 @@ private ExportDataRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: { - com.google.cloud.automl.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + name_ = s; + break; } - outputConfig_ = input.readMessage(com.google.cloud.automl.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.automl.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportDataRequest.class, com.google.cloud.automl.v1.ExportDataRequest.Builder.class); + com.google.cloud.automl.v1.ExportDataRequest.class, + com.google.cloud.automl.v1.ExportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -120,29 +148,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,11 +183,16 @@ public java.lang.String getName() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1.OutputConfig outputConfig_; /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -165,23 +200,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -189,6 +235,7 @@ public com.google.cloud.automl.v1.OutputConfigOrBuilder getOutputConfigOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +247,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -221,8 +267,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,19 +277,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ExportDataRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportDataRequest other = (com.google.cloud.automl.v1.ExportDataRequest) obj; + com.google.cloud.automl.v1.ExportDataRequest other = + (com.google.cloud.automl.v1.ExportDataRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -268,118 +312,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ExportDataRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ExportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExportDataRequest 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.v1.ExportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.ExportDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ExportDataRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExportDataRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExportDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.ExportDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ExportData][google.cloud.automl.v1.AutoMl.ExportData].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ExportDataRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportDataRequest) com.google.cloud.automl.v1.ExportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportDataRequest.class, com.google.cloud.automl.v1.ExportDataRequest.Builder.class); + com.google.cloud.automl.v1.ExportDataRequest.class, + com.google.cloud.automl.v1.ExportDataRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.ExportDataRequest.newBuilder() @@ -387,16 +440,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ExportDataRequest_descriptor; } @java.lang.Override @@ -433,7 +485,8 @@ public com.google.cloud.automl.v1.ExportDataRequest build() { @java.lang.Override public com.google.cloud.automl.v1.ExportDataRequest buildPartial() { - com.google.cloud.automl.v1.ExportDataRequest result = new com.google.cloud.automl.v1.ExportDataRequest(this); + com.google.cloud.automl.v1.ExportDataRequest result = + new com.google.cloud.automl.v1.ExportDataRequest(this); result.name_ = name_; if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; @@ -448,38 +501,39 @@ public com.google.cloud.automl.v1.ExportDataRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ExportDataRequest) { - return mergeFrom((com.google.cloud.automl.v1.ExportDataRequest)other); + return mergeFrom((com.google.cloud.automl.v1.ExportDataRequest) other); } else { super.mergeFrom(other); return this; @@ -526,18 +580,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -546,20 +604,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -567,54 +628,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -622,39 +696,58 @@ public Builder setNameBytes( private com.google.cloud.automl.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.OutputConfig, com.google.cloud.automl.v1.OutputConfig.Builder, com.google.cloud.automl.v1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.automl.v1.OutputConfig, + com.google.cloud.automl.v1.OutputConfig.Builder, + com.google.cloud.automl.v1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.automl.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.automl.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -670,11 +763,15 @@ public Builder setOutputConfig(com.google.cloud.automl.v1.OutputConfig value) { return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.automl.v1.OutputConfig.Builder builderForValue) { @@ -688,17 +785,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.automl.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.automl.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -710,11 +813,15 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1.OutputConfig value) return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -728,55 +835,71 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.OutputConfig, com.google.cloud.automl.v1.OutputConfig.Builder, com.google.cloud.automl.v1.OutputConfigOrBuilder> + com.google.cloud.automl.v1.OutputConfig, + com.google.cloud.automl.v1.OutputConfig.Builder, + com.google.cloud.automl.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.OutputConfig, com.google.cloud.automl.v1.OutputConfig.Builder, com.google.cloud.automl.v1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.OutputConfig, + com.google.cloud.automl.v1.OutputConfig.Builder, + com.google.cloud.automl.v1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -786,12 +909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportDataRequest) private static final com.google.cloud.automl.v1.ExportDataRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportDataRequest(); } @@ -800,16 +923,16 @@ public static com.google.cloud.automl.v1.ExportDataRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportDataRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDataRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,6 +947,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ExportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequestOrBuilder.java new file mode 100644 index 000000000..e97591c3e --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportDataRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface ExportDataRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the dataset.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the dataset.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The desired output location.
+   * 
+ * + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + * + * + *
+   * Required. The desired output location.
+   * 
+ * + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputConfig. + */ + com.google.cloud.automl.v1.OutputConfig getOutputConfig(); + /** + * + * + *
+   * Required. The desired output location.
+   * 
+ * + * + * .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.automl.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java index 274124bf0..0f3dbc56a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** + * + * *
  * Details of ExportModel operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ExportModelOperationMetadata} */ -public final class ExportModelOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExportModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportModelOperationMetadata) ExportModelOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportModelOperationMetadata.newBuilder() to construct. private ExportModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportModelOperationMetadata() { - } + + private ExportModelOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,78 +68,94 @@ private ExportModelOperationMetadata( case 0: done = true; break; - case 18: { - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder subBuilder = null; - if (outputInfo_ != null) { - subBuilder = outputInfo_.toBuilder(); - } - outputInfo_ = input.readMessage(com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputInfo_); - outputInfo_ = subBuilder.buildPartial(); - } + case 18: + { + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder + subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); + } + outputInfo_ = + input.readMessage( + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputInfo_); + outputInfo_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportModelOperationMetadata.class, com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ExportModelOperationMetadata.class, + com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder.class); } - public interface ExportModelOutputInfoOrBuilder extends + public interface ExportModelOutputInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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; + * * @return The gcsOutputDirectory. */ 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; + * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString - getGcsOutputDirectoryBytes(); + com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); } /** + * + * *
    * Further describes the output of model export.
    * Supplements
@@ -132,31 +164,31 @@ public interface ExportModelOutputInfoOrBuilder extends
    *
    * Protobuf type {@code google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo}
    */
-  public static final class ExportModelOutputInfo extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ExportModelOutputInfo extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo)
       ExportModelOutputInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+    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
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ExportModelOutputInfo();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private ExportModelOutputInfo(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -175,53 +207,60 @@ private ExportModelOutputInfo(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              gcsOutputDirectory_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                gcsOutputDirectory_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              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);
+        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.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.Operations
+          .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable
+      return com.google.cloud.automl.v1.Operations
+          .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.class, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder.class);
+              com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.class,
+              com.google.cloud.automl.v1.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; + * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -230,30 +269,30 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsOutputDirectory_ = b; return b; } else { @@ -262,6 +301,7 @@ public java.lang.String getGcsOutputDirectory() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +313,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsOutputDirectory_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsOutputDirectory_); } @@ -298,15 +337,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo)) { + if (!(obj + instanceof + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo other = (com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) obj; + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo other = + (com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) obj; - if (!getGcsOutputDirectory() - .equals(other.getGcsOutputDirectory())) return false; + if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,88 +366,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.ExportModelOperationMetadata.ExportModelOutputInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.ExportModelOperationMetadata.ExportModelOutputInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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); + + public static com.google.cloud.automl.v1.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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -416,46 +470,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further describes the output of model export.
      * Supplements
      * [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
      * 
* - * Protobuf type {@code google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo} + * Protobuf type {@code + * google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.class, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder.class); + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.class, + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + .Builder.class); } - // Construct using com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.newBuilder() + // Construct using + // com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -465,19 +526,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance(); + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo build() { - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo result = buildPartial(); + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -485,8 +549,10 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutput } @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo buildPartial() { - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo result = new com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo(this); + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + buildPartial() { + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo result = + new com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo(this); result.gcsOutputDirectory_ = gcsOutputDirectory_; onBuilt(); return result; @@ -496,46 +562,56 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutput public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ExportModelOperationMetadata.ExportModelOutputInfo) { - return mergeFrom((com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo)other); + if (other + instanceof + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) { + return mergeFrom( + (com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo other) { - if (other == com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo other) { + if (other + == com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + .getDefaultInstance()) return this; if (!other.getGcsOutputDirectory().isEmpty()) { gcsOutputDirectory_ = other.gcsOutputDirectory_; onChanged(); @@ -555,11 +631,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo parsedMessage = null; + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -571,19 +650,21 @@ public Builder mergeFrom( 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; + * * @return The gcsOutputDirectory. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsOutputDirectory_ = s; return s; @@ -592,21 +673,22 @@ public 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; + * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsOutputDirectory_ = b; return b; } else { @@ -614,61 +696,69 @@ public 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; + * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory( - java.lang.String value) { + public Builder setGcsOutputDirectory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsOutputDirectory_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -681,30 +771,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo) - private static final com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ExportModelOperationMetadata + .ExportModelOutputInfo + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo(); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -716,21 +810,26 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int OUTPUT_INFO_FIELD_NUMBER = 2; private com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo outputInfo_; /** + * + * *
    * Output only. Information further describing the output of this model
    * export.
    * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -738,32 +837,47 @@ public boolean hasOutputInfo() { return outputInfo_ != null; } /** + * + * *
    * Output only. Information further describing the output of this model
    * export.
    * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo() { - return outputInfo_ == null ? com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance() : outputInfo_; + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + getOutputInfo() { + return outputInfo_ == null + ? com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + .getDefaultInstance() + : outputInfo_; } /** + * + * *
    * Output only. Information further describing the output of this model
    * export.
    * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder + getOutputInfoOrBuilder() { return getOutputInfo(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -775,8 +889,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputInfo_ != null) { output.writeMessage(2, getOutputInfo()); } @@ -790,8 +903,7 @@ public int getSerializedSize() { size = 0; if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -801,17 +913,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ExportModelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportModelOperationMetadata other = (com.google.cloud.automl.v1.ExportModelOperationMetadata) obj; + com.google.cloud.automl.v1.ExportModelOperationMetadata other = + (com.google.cloud.automl.v1.ExportModelOperationMetadata) obj; if (hasOutputInfo() != other.hasOutputInfo()) return false; if (hasOutputInfo()) { - if (!getOutputInfo() - .equals(other.getOutputInfo())) return false; + if (!getOutputInfo().equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -834,117 +946,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ExportModelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.ExportModelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ExportModelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ExportModelOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ExportModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ExportModelOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportModelOperationMetadata) com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ExportModelOperationMetadata.class, com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ExportModelOperationMetadata.class, + com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ExportModelOperationMetadata.newBuilder() @@ -952,16 +1074,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -975,9 +1096,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; } @java.lang.Override @@ -996,7 +1117,8 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ExportModelOperationMetadata buildPartial() { - com.google.cloud.automl.v1.ExportModelOperationMetadata result = new com.google.cloud.automl.v1.ExportModelOperationMetadata(this); + com.google.cloud.automl.v1.ExportModelOperationMetadata result = + new com.google.cloud.automl.v1.ExportModelOperationMetadata(this); if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { @@ -1010,38 +1132,39 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ExportModelOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ExportModelOperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.ExportModelOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1049,7 +1172,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ExportModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance()) + return this; if (other.hasOutputInfo()) { mergeOutputInfo(other.getOutputInfo()); } @@ -1072,7 +1196,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ExportModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ExportModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1082,46 +1207,69 @@ public Builder mergeFrom( return this; } - private com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo outputInfo_; + private com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + outputInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder> outputInfoBuilder_; + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder, + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder> + outputInfoBuilder_; /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { return outputInfoBuilder_ != null || outputInfo_ != null; } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * * @return The outputInfo. */ - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo() { + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null ? com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance() : outputInfo_; + return outputInfo_ == null + ? com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + .getDefaultInstance() + : outputInfo_; } else { return outputInfoBuilder_.getMessage(); } } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ - public Builder setOutputInfo(com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo value) { + public Builder setOutputInfo( + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1135,15 +1283,20 @@ public Builder setOutputInfo(com.google.cloud.automl.v1.ExportModelOperationMeta return this; } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ public Builder setOutputInfo( - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder builderForValue) { + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder + builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1154,18 +1307,26 @@ public Builder setOutputInfo( return this; } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ - public Builder mergeOutputInfo(com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo value) { + public Builder mergeOutputInfo( + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo value) { if (outputInfoBuilder_ == null) { if (outputInfo_ != null) { outputInfo_ = - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + .newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); } else { outputInfo_ = value; } @@ -1177,12 +1338,16 @@ public Builder mergeOutputInfo(com.google.cloud.automl.v1.ExportModelOperationMe return this; } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1196,58 +1361,79 @@ public Builder clearOutputInfo() { return this; } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder getOutputInfoBuilder() { - + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder + getOutputInfoBuilder() { + onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ - public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder getOutputInfoOrBuilder() { + public com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder + getOutputInfoOrBuilder() { if (outputInfoBuilder_ != null) { return outputInfoBuilder_.getMessageOrBuilder(); } else { - return outputInfo_ == null ? - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance() : outputInfo_; + return outputInfo_ == null + ? com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + .getDefaultInstance() + : outputInfo_; } } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder> + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder, + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder> getOutputInfoFieldBuilder() { if (outputInfoBuilder_ == null) { - outputInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder>( - getOutputInfo(), - getParentForChildren(), - isClean()); + outputInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo + .Builder, + com.google.cloud.automl.v1.ExportModelOperationMetadata + .ExportModelOutputInfoOrBuilder>( + getOutputInfo(), getParentForChildren(), isClean()); outputInfo_ = null; } return outputInfoBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1257,12 +1443,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportModelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportModelOperationMetadata) private static final com.google.cloud.automl.v1.ExportModelOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportModelOperationMetadata(); } @@ -1271,16 +1457,16 @@ public static com.google.cloud.automl.v1.ExportModelOperationMetadata getDefault 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); - } - }; + 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; @@ -1295,6 +1481,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.ExportModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..2f18fb3a3 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelOperationMetadataOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface ExportModelOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportModelOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * + * @return Whether the outputInfo field is set. + */ + boolean hasOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * + * @return The outputInfo. + */ + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * + * .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + com.google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder + getOutputInfoOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java index acd37259b..4baf50eee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel].
  * Models need to be enabled for exporting, otherwise an error code will be
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.ExportModelRequest}
  */
-public final class ExportModelRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ExportModelRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ExportModelRequest)
     ExportModelRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExportModelRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ExportModelRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,65 +72,77 @@ private ExportModelRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.automl.v1.ModelExportOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
+              name_ = s;
+              break;
             }
-            outputConfig_ = input.readMessage(com.google.cloud.automl.v1.ModelExportOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.cloud.automl.v1.ModelExportOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.automl.v1.ModelExportOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1.AutoMlProto
+        .internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportModelRequest_fieldAccessorTable
+    return com.google.cloud.automl.v1.AutoMlProto
+        .internal_static_google_cloud_automl_v1_ExportModelRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.ExportModelRequest.class, com.google.cloud.automl.v1.ExportModelRequest.Builder.class);
+            com.google.cloud.automl.v1.ExportModelRequest.class,
+            com.google.cloud.automl.v1.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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -122,29 +151,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -155,11 +186,16 @@ public java.lang.String getName() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1.ModelExportOutputConfig outputConfig_; /** + * + * *
    * Required. The desired output location and configuration.
    * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -167,23 +203,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location and configuration.
    * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.ModelExportOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The desired output location and configuration.
    * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -191,6 +238,7 @@ public com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder getOutputConf } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +250,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -223,8 +270,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,19 +280,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ExportModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ExportModelRequest other = (com.google.cloud.automl.v1.ExportModelRequest) obj; + com.google.cloud.automl.v1.ExportModelRequest other = + (com.google.cloud.automl.v1.ExportModelRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -270,97 +315,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ExportModelRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ExportModelRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExportModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ExportModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.ExportModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ExportModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.ExportModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExportModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ExportModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ExportModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ExportModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ExportModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.ExportModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel].
    * Models need to be enabled for exporting, otherwise an error code will be
@@ -369,21 +421,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.ExportModelRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ExportModelRequest)
       com.google.cloud.automl.v1.ExportModelRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.AutoMlProto
+          .internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportModelRequest_fieldAccessorTable
+      return com.google.cloud.automl.v1.AutoMlProto
+          .internal_static_google_cloud_automl_v1_ExportModelRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.ExportModelRequest.class, com.google.cloud.automl.v1.ExportModelRequest.Builder.class);
+              com.google.cloud.automl.v1.ExportModelRequest.class,
+              com.google.cloud.automl.v1.ExportModelRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.ExportModelRequest.newBuilder()
@@ -391,16 +445,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -416,9 +469,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.AutoMlProto
+          .internal_static_google_cloud_automl_v1_ExportModelRequest_descriptor;
     }
 
     @java.lang.Override
@@ -437,7 +490,8 @@ public com.google.cloud.automl.v1.ExportModelRequest build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.ExportModelRequest buildPartial() {
-      com.google.cloud.automl.v1.ExportModelRequest result = new com.google.cloud.automl.v1.ExportModelRequest(this);
+      com.google.cloud.automl.v1.ExportModelRequest result =
+          new com.google.cloud.automl.v1.ExportModelRequest(this);
       result.name_ = name_;
       if (outputConfigBuilder_ == null) {
         result.outputConfig_ = outputConfig_;
@@ -452,38 +506,39 @@ public com.google.cloud.automl.v1.ExportModelRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.ExportModelRequest) {
-        return mergeFrom((com.google.cloud.automl.v1.ExportModelRequest)other);
+        return mergeFrom((com.google.cloud.automl.v1.ExportModelRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -530,18 +585,22 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the model to export.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -550,20 +609,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the model to export.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -571,54 +633,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the model to export.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the model to export.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the model to export.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -626,39 +701,58 @@ public Builder setNameBytes( private com.google.cloud.automl.v1.ModelExportOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ModelExportOutputConfig, com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.automl.v1.ModelExportOutputConfig, + com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, + com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.automl.v1.ModelExportOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.automl.v1.ModelExportOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -674,11 +768,15 @@ public Builder setOutputConfig(com.google.cloud.automl.v1.ModelExportOutputConfi return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.automl.v1.ModelExportOutputConfig.Builder builderForValue) { @@ -692,17 +790,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.automl.v1.ModelExportOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.automl.v1.ModelExportOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.ModelExportOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -714,11 +818,15 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1.ModelExportOutputCon return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -732,55 +840,71 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.ModelExportOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ModelExportOutputConfig, com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder> + com.google.cloud.automl.v1.ModelExportOutputConfig, + com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, + com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ModelExportOutputConfig, com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ModelExportOutputConfig, + com.google.cloud.automl.v1.ModelExportOutputConfig.Builder, + com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -790,12 +914,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ExportModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ExportModelRequest) private static final com.google.cloud.automl.v1.ExportModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ExportModelRequest(); } @@ -804,16 +928,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -828,6 +952,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ExportModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java new file mode 100644 index 000000000..86ca1495b --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ExportModelRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface ExportModelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ExportModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the model to export.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the model to export.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputConfig. + */ + com.google.cloud.automl.v1.ModelExportOutputConfig getOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * + * .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java index 94be5c369..79d453518 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestination.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; /** + * + * *
  * The Google Cloud Storage location where the output is to be written to.
  * 
* * Protobuf type {@code google.cloud.automl.v1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - outputUriPrefix_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + outputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Io.internal_static_google_cloud_automl_v1_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GcsDestination.class, com.google.cloud.automl.v1.GcsDestination.Builder.class); + com.google.cloud.automl.v1.GcsDestination.class, + com.google.cloud.automl.v1.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; private volatile java.lang.Object outputUriPrefix_; /** + * + * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -104,6 +126,7 @@ private GcsDestination(
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ @java.lang.Override @@ -112,14 +135,15 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** + * + * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -130,16 +154,15 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -148,6 +171,7 @@ public java.lang.String getOutputUriPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -184,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.automl.v1.GcsDestination other = (com.google.cloud.automl.v1.GcsDestination) obj; + com.google.cloud.automl.v1.GcsDestination other = + (com.google.cloud.automl.v1.GcsDestination) obj; - if (!getOutputUriPrefix() - .equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -211,118 +234,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GcsDestination 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.v1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the output is to be written to.
    * 
* * Protobuf type {@code google.cloud.automl.v1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GcsDestination) com.google.cloud.automl.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GcsDestination.class, com.google.cloud.automl.v1.GcsDestination.Builder.class); + com.google.cloud.automl.v1.GcsDestination.class, + com.google.cloud.automl.v1.GcsDestination.Builder.class); } // Construct using com.google.cloud.automl.v1.GcsDestination.newBuilder() @@ -330,16 +362,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_GcsDestination_descriptor; } @java.lang.Override @@ -370,7 +401,8 @@ public com.google.cloud.automl.v1.GcsDestination build() { @java.lang.Override public com.google.cloud.automl.v1.GcsDestination buildPartial() { - com.google.cloud.automl.v1.GcsDestination result = new com.google.cloud.automl.v1.GcsDestination(this); + com.google.cloud.automl.v1.GcsDestination result = + new com.google.cloud.automl.v1.GcsDestination(this); result.outputUriPrefix_ = outputUriPrefix_; onBuilt(); return result; @@ -380,38 +412,39 @@ public com.google.cloud.automl.v1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GcsDestination) { - return mergeFrom((com.google.cloud.automl.v1.GcsDestination)other); + return mergeFrom((com.google.cloud.automl.v1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -455,6 +488,8 @@ public Builder mergeFrom( private java.lang.Object outputUriPrefix_ = ""; /** + * + * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -465,13 +500,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -480,6 +515,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -490,15 +527,14 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -506,6 +542,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -516,20 +554,22 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix( - java.lang.String value) { + public Builder setOutputUriPrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUriPrefix_ = value; onChanged(); return this; } /** + * + * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -540,15 +580,18 @@ public Builder setOutputUriPrefix(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { - + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); onChanged(); return this; } /** + * + * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -559,23 +602,23 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUriPrefix_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -585,12 +628,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GcsDestination) private static final com.google.cloud.automl.v1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GcsDestination(); } @@ -599,16 +642,16 @@ public static com.google.cloud.automl.v1.GcsDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -623,6 +666,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java index 22d5e5fae..58952024f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -18,10 +36,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** + * + * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -32,8 +53,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString - getOutputUriPrefixBytes(); + com.google.protobuf.ByteString getOutputUriPrefixBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java index 989a2f49e..a3977d4d9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; /** + * + * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.automl.v1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,29 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - inputUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + inputUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + inputUris_.add(s); + break; } - inputUris_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { inputUris_ = inputUris_.getUnmodifiableView(); @@ -85,22 +102,27 @@ private GcsSource( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GcsSource.class, com.google.cloud.automl.v1.GcsSource.Builder.class); + com.google.cloud.automl.v1.GcsSource.class, + com.google.cloud.automl.v1.GcsSource.Builder.class); } public static final int INPUT_URIS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList inputUris_; /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -108,13 +130,15 @@ private GcsSource(
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList - getInputUrisList() { + public com.google.protobuf.ProtocolStringList getInputUrisList() { return inputUris_; } /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -122,12 +146,15 @@ private GcsSource(
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -135,6 +162,7 @@ public int getInputUrisCount() {
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -142,6 +170,8 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -149,15 +179,16 @@ public java.lang.String getInputUris(int index) {
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString - getInputUrisBytes(int index) { + public com.google.protobuf.ByteString getInputUrisBytes(int index) { return inputUris_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < inputUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUris_.getRaw(i)); } @@ -199,15 +229,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GcsSource)) { return super.equals(obj); } com.google.cloud.automl.v1.GcsSource other = (com.google.cloud.automl.v1.GcsSource) obj; - if (!getInputUrisList() - .equals(other.getInputUrisList())) return false; + if (!getInputUrisList().equals(other.getInputUrisList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,118 +257,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GcsSource parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.automl.v1.GcsSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GcsSource 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.v1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.GcsSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.automl.v1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GcsSource) com.google.cloud.automl.v1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GcsSource.class, com.google.cloud.automl.v1.GcsSource.Builder.class); + com.google.cloud.automl.v1.GcsSource.class, + com.google.cloud.automl.v1.GcsSource.Builder.class); } // Construct using com.google.cloud.automl.v1.GcsSource.newBuilder() @@ -347,16 +384,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,9 +402,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_GcsSource_descriptor; } @java.lang.Override @@ -402,38 +438,39 @@ public com.google.cloud.automl.v1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GcsSource) { - return mergeFrom((com.google.cloud.automl.v1.GcsSource)other); + return mergeFrom((com.google.cloud.automl.v1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -480,16 +517,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList inputUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInputUrisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { inputUris_ = new com.google.protobuf.LazyStringArrayList(inputUris_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -497,13 +539,15 @@ private void ensureInputUrisIsMutable() {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList - getInputUrisList() { + public com.google.protobuf.ProtocolStringList getInputUrisList() { return inputUris_.getUnmodifiableView(); } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -511,12 +555,15 @@ private void ensureInputUrisIsMutable() {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -524,6 +571,7 @@ public int getInputUrisCount() {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -531,6 +579,8 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -538,14 +588,16 @@ public java.lang.String getInputUris(int index) {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString - getInputUrisBytes(int index) { + public com.google.protobuf.ByteString getInputUrisBytes(int index) { return inputUris_.getByteString(index); } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -553,21 +605,23 @@ public java.lang.String getInputUris(int index) {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The inputUris to set. * @return This builder for chaining. */ - public Builder setInputUris( - int index, java.lang.String value) { + public Builder setInputUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -575,20 +629,22 @@ public Builder setInputUris(
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The inputUris to add. * @return This builder for chaining. */ - public Builder addInputUris( - java.lang.String value) { + public Builder addInputUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -596,18 +652,19 @@ public Builder addInputUris(
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The inputUris to add. * @return This builder for chaining. */ - public Builder addAllInputUris( - java.lang.Iterable values) { + public Builder addAllInputUris(java.lang.Iterable values) { ensureInputUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputUris_); onChanged(); return this; } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -615,6 +672,7 @@ public Builder addAllInputUris(
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInputUris() { @@ -624,6 +682,8 @@ public Builder clearInputUris() { return this; } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000
      * characters long. Accepted forms:
@@ -631,23 +691,23 @@ public Builder clearInputUris() {
      * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the inputUris to add. * @return This builder for chaining. */ - public Builder addInputUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addInputUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -657,12 +717,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GcsSource) private static final com.google.cloud.automl.v1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GcsSource(); } @@ -671,16 +731,16 @@ public static com.google.cloud.automl.v1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -695,6 +755,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java index 5fe795b32..9f413dcb7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GcsSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -15,11 +33,13 @@ public interface GcsSourceOrBuilder extends
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the inputUris. */ - java.util.List - getInputUrisList(); + java.util.List getInputUrisList(); /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -27,10 +47,13 @@ public interface GcsSourceOrBuilder extends
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of inputUris. */ int getInputUrisCount(); /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -38,11 +61,14 @@ public interface GcsSourceOrBuilder extends
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The inputUris at the given index. */ java.lang.String getInputUris(int index); /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000
    * characters long. Accepted forms:
@@ -50,9 +76,9 @@ public interface GcsSourceOrBuilder extends
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - com.google.protobuf.ByteString - getInputUrisBytes(int index); + com.google.protobuf.ByteString getInputUrisBytes(int index); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java new file mode 100644 index 000000000..f299d1947 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Geometry.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/geometry.proto + +package com.google.cloud.automl.v1; + +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_v1_NormalizedVertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_BoundingPoly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_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/v1/geometry.proto\022" + + "\026google.cloud.automl.v1\032\034google/api/anno" + + "tations.proto\"(\n\020NormalizedVertex\022\t\n\001x\030\001" + + " \001(\002\022\t\n\001y\030\002 \001(\002\"U\n\014BoundingPoly\022E\n\023norma" + + "lized_vertices\030\002 \003(\0132(.google.cloud.auto" + + "ml.v1.NormalizedVertexB\252\001\n\032com.google.cl" + + "oud.automl.v1P\001Z * Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1.AutoMl.GetAnnotationSpec]. *
* * Protobuf type {@code google.cloud.automl.v1.GetAnnotationSpecRequest} */ -public final class GetAnnotationSpecRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAnnotationSpecRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GetAnnotationSpecRequest) GetAnnotationSpecRequestOrBuilder { -private static final long serialVersionUID = 0L; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAnnotationSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetAnnotationSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetAnnotationSpecRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, com.google.cloud.automl.v1.GetAnnotationSpecRequest.Builder.class); + com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, + com.google.cloud.automl.v1.GetAnnotationSpecRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the annotation spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 annotation spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GetAnnotationSpecRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.GetAnnotationSpecRequest other = (com.google.cloud.automl.v1.GetAnnotationSpecRequest) obj; + com.google.cloud.automl.v1.GetAnnotationSpecRequest other = + (com.google.cloud.automl.v1.GetAnnotationSpecRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GetAnnotationSpecRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.GetAnnotationSpecRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.GetAnnotationSpecRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.GetAnnotationSpecRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1.AutoMl.GetAnnotationSpec].
    * 
* * Protobuf type {@code google.cloud.automl.v1.GetAnnotationSpecRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GetAnnotationSpecRequest) com.google.cloud.automl.v1.GetAnnotationSpecRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, com.google.cloud.automl.v1.GetAnnotationSpecRequest.Builder.class); + com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, + com.google.cloud.automl.v1.GetAnnotationSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.GetAnnotationSpecRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetAnnotationSpecRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1.GetAnnotationSpecRequest build() { @java.lang.Override public com.google.cloud.automl.v1.GetAnnotationSpecRequest buildPartial() { - com.google.cloud.automl.v1.GetAnnotationSpecRequest result = new com.google.cloud.automl.v1.GetAnnotationSpecRequest(this); + com.google.cloud.automl.v1.GetAnnotationSpecRequest result = + new com.google.cloud.automl.v1.GetAnnotationSpecRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1.GetAnnotationSpecRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GetAnnotationSpecRequest) { - return mergeFrom((com.google.cloud.automl.v1.GetAnnotationSpecRequest)other); + return mergeFrom((com.google.cloud.automl.v1.GetAnnotationSpecRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.GetAnnotationSpecRequest other) { - if (other == com.google.cloud.automl.v1.GetAnnotationSpecRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.GetAnnotationSpecRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.GetAnnotationSpecRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.GetAnnotationSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +508,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +532,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GetAnnotationSpecRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GetAnnotationSpecRequest) private static final com.google.cloud.automl.v1.GetAnnotationSpecRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GetAnnotationSpecRequest(); } @@ -564,16 +623,16 @@ public static com.google.cloud.automl.v1.GetAnnotationSpecRequest getDefaultInst 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); - } - }; + 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; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.GetAnnotationSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequestOrBuilder.java new file mode 100644 index 000000000..1605eaa5f --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetAnnotationSpecRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface GetAnnotationSpecRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetAnnotationSpecRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the annotation spec to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the annotation spec to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java index e62bb2769..2c64c4e97 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.GetDataset][google.cloud.automl.v1.AutoMl.GetDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1.GetDatasetRequest} */ -public final class GetDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GetDatasetRequest) GetDatasetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetDatasetRequest.newBuilder() to construct. private GetDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetDatasetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetDatasetRequest.class, com.google.cloud.automl.v1.GetDatasetRequest.Builder.class); + com.google.cloud.automl.v1.GetDatasetRequest.class, + com.google.cloud.automl.v1.GetDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the dataset to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 dataset to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GetDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.GetDatasetRequest other = (com.google.cloud.automl.v1.GetDatasetRequest) obj; + com.google.cloud.automl.v1.GetDatasetRequest other = + (com.google.cloud.automl.v1.GetDatasetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GetDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetDatasetRequest 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.v1.GetDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GetDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.GetDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetDatasetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.GetDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.GetDataset][google.cloud.automl.v1.AutoMl.GetDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1.GetDatasetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GetDatasetRequest) com.google.cloud.automl.v1.GetDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetDatasetRequest.class, com.google.cloud.automl.v1.GetDatasetRequest.Builder.class); + com.google.cloud.automl.v1.GetDatasetRequest.class, + com.google.cloud.automl.v1.GetDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.GetDatasetRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetDatasetRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1.GetDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1.GetDatasetRequest buildPartial() { - com.google.cloud.automl.v1.GetDatasetRequest result = new com.google.cloud.automl.v1.GetDatasetRequest(this); + com.google.cloud.automl.v1.GetDatasetRequest result = + new com.google.cloud.automl.v1.GetDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1.GetDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GetDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1.GetDatasetRequest)other); + return mergeFrom((com.google.cloud.automl.v1.GetDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -445,18 +482,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +506,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +530,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +607,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GetDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GetDatasetRequest) private static final com.google.cloud.automl.v1.GetDatasetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GetDatasetRequest(); } @@ -564,16 +621,16 @@ public static com.google.cloud.automl.v1.GetDatasetRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.GetDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java new file mode 100644 index 000000000..3184cfc9a --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetDatasetRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface GetDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the dataset to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the dataset to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java index 4c29df15d..156ffe7ee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1.AutoMl.GetModelEvaluation].
  * 
* * Protobuf type {@code google.cloud.automl.v1.GetModelEvaluationRequest} */ -public final class GetModelEvaluationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetModelEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GetModelEvaluationRequest) GetModelEvaluationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetModelEvaluationRequest.newBuilder() to construct. private GetModelEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetModelEvaluationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetModelEvaluationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetModelEvaluationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetModelEvaluationRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetModelEvaluationRequest.class, com.google.cloud.automl.v1.GetModelEvaluationRequest.Builder.class); + com.google.cloud.automl.v1.GetModelEvaluationRequest.class, + com.google.cloud.automl.v1.GetModelEvaluationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name for the model evaluation.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name for the model evaluation.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GetModelEvaluationRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.GetModelEvaluationRequest other = (com.google.cloud.automl.v1.GetModelEvaluationRequest) obj; + com.google.cloud.automl.v1.GetModelEvaluationRequest other = + (com.google.cloud.automl.v1.GetModelEvaluationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GetModelEvaluationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetModelEvaluationRequest 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.v1.GetModelEvaluationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetModelEvaluationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.GetModelEvaluationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1.AutoMl.GetModelEvaluation].
    * 
* * Protobuf type {@code google.cloud.automl.v1.GetModelEvaluationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GetModelEvaluationRequest) com.google.cloud.automl.v1.GetModelEvaluationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetModelEvaluationRequest.class, com.google.cloud.automl.v1.GetModelEvaluationRequest.Builder.class); + com.google.cloud.automl.v1.GetModelEvaluationRequest.class, + com.google.cloud.automl.v1.GetModelEvaluationRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.GetModelEvaluationRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetModelEvaluationRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1.GetModelEvaluationRequest build() { @java.lang.Override public com.google.cloud.automl.v1.GetModelEvaluationRequest buildPartial() { - com.google.cloud.automl.v1.GetModelEvaluationRequest result = new com.google.cloud.automl.v1.GetModelEvaluationRequest(this); + com.google.cloud.automl.v1.GetModelEvaluationRequest result = + new com.google.cloud.automl.v1.GetModelEvaluationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1.GetModelEvaluationRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GetModelEvaluationRequest) { - return mergeFrom((com.google.cloud.automl.v1.GetModelEvaluationRequest)other); + return mergeFrom((com.google.cloud.automl.v1.GetModelEvaluationRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.GetModelEvaluationRequest other) { - if (other == com.google.cloud.automl.v1.GetModelEvaluationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.GetModelEvaluationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.GetModelEvaluationRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.GetModelEvaluationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name for the model evaluation.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +508,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name for the model evaluation.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +532,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name for the model evaluation.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name for the model evaluation.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name for the model evaluation.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GetModelEvaluationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GetModelEvaluationRequest) private static final com.google.cloud.automl.v1.GetModelEvaluationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GetModelEvaluationRequest(); } @@ -564,16 +623,16 @@ public static com.google.cloud.automl.v1.GetModelEvaluationRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetModelEvaluationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelEvaluationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetModelEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetModelEvaluationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1.GetModelEvaluationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java new file mode 100644 index 000000000..0cf435e40 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelEvaluationRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface GetModelEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetModelEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name for the model evaluation.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name for the model evaluation.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java index c1f7701eb..74e64962e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.GetModel][google.cloud.automl.v1.AutoMl.GetModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1.GetModelRequest} */ -public final class GetModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.GetModelRequest) GetModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetModelRequest.newBuilder() to construct. private GetModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetModelRequest.class, com.google.cloud.automl.v1.GetModelRequest.Builder.class); + com.google.cloud.automl.v1.GetModelRequest.class, + com.google.cloud.automl.v1.GetModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the model.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the model.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.GetModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.GetModelRequest other = (com.google.cloud.automl.v1.GetModelRequest) obj; + com.google.cloud.automl.v1.GetModelRequest other = + (com.google.cloud.automl.v1.GetModelRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.GetModelRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.GetModelRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GetModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetModelRequest 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.v1.GetModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.GetModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.GetModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.GetModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.GetModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.GetModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.GetModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.GetModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.GetModel][google.cloud.automl.v1.AutoMl.GetModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1.GetModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.GetModelRequest) com.google.cloud.automl.v1.GetModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.GetModelRequest.class, com.google.cloud.automl.v1.GetModelRequest.Builder.class); + com.google.cloud.automl.v1.GetModelRequest.class, + com.google.cloud.automl.v1.GetModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.GetModelRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_GetModelRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1.GetModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.GetModelRequest buildPartial() { - com.google.cloud.automl.v1.GetModelRequest result = new com.google.cloud.automl.v1.GetModelRequest(this); + com.google.cloud.automl.v1.GetModelRequest result = + new com.google.cloud.automl.v1.GetModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1.GetModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.GetModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.GetModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1.GetModelRequest) other); } else { super.mergeFrom(other); return this; @@ -445,18 +482,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the model.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +506,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +530,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +607,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.GetModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.GetModelRequest) private static final com.google.cloud.automl.v1.GetModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.GetModelRequest(); } @@ -564,16 +621,16 @@ public static com.google.cloud.automl.v1.GetModelRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.GetModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java new file mode 100644 index 000000000..6a41db2e0 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/GetModelRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface GetModelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.GetModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the model.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the model.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java index 6912696ab..2022701ca 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Image.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; /** + * + * *
  * A representation of an image.
  * Only images up to 30MB in size are supported.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.Image}
  */
-public final class Image extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Image extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.Image)
     ImageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Image.newBuilder() to construct.
   private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Image() {
     thumbnailUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Image();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Image(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,57 +71,63 @@ private Image(
           case 0:
             done = true;
             break;
-          case 10: {
-            dataCase_ = 1;
-            data_ = input.readBytes();
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              dataCase_ = 1;
+              data_ = input.readBytes();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            thumbnailUri_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              thumbnailUri_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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.v1.DataItems.internal_static_google_cloud_automl_v1_Image_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1.DataItems
+        .internal_static_google_cloud_automl_v1_Image_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Image_fieldAccessorTable
+    return com.google.cloud.automl.v1.DataItems
+        .internal_static_google_cloud_automl_v1_Image_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.automl.v1.Image.class, com.google.cloud.automl.v1.Image.Builder.class);
   }
 
   private int dataCase_ = 0;
   private java.lang.Object data_;
+
   public enum DataCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     IMAGE_BYTES(1),
     DATA_NOT_SET(0);
     private final int value;
+
     private DataCase(int value) {
       this.value = value;
     }
@@ -120,24 +143,28 @@ public static DataCase valueOf(int value) {
 
     public static DataCase forNumber(int value) {
       switch (value) {
-        case 1: return IMAGE_BYTES;
-        case 0: return DATA_NOT_SET;
-        default: return null;
+        case 1:
+          return IMAGE_BYTES;
+        case 0:
+          return DATA_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DataCase
-  getDataCase() {
-    return DataCase.forNumber(
-        dataCase_);
+  public DataCase getDataCase() {
+    return DataCase.forNumber(dataCase_);
   }
 
   public static final int IMAGE_BYTES_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -145,6 +172,7 @@ public int getNumber() {
    * 
* * bytes image_bytes = 1; + * * @return Whether the imageBytes field is set. */ @java.lang.Override @@ -152,6 +180,8 @@ public boolean hasImageBytes() { return dataCase_ == 1; } /** + * + * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -159,6 +189,7 @@ public boolean hasImageBytes() {
    * 
* * bytes image_bytes = 1; + * * @return The imageBytes. */ @java.lang.Override @@ -172,11 +203,14 @@ public com.google.protobuf.ByteString getImageBytes() { public static final int THUMBNAIL_URI_FIELD_NUMBER = 4; private volatile java.lang.Object thumbnailUri_; /** + * + * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; + * * @return The thumbnailUri. */ @java.lang.Override @@ -185,29 +219,29 @@ public java.lang.String getThumbnailUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); thumbnailUri_ = s; return s; } } /** + * + * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; + * * @return The bytes for thumbnailUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getThumbnailUriBytes() { + public com.google.protobuf.ByteString getThumbnailUriBytes() { java.lang.Object ref = thumbnailUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); thumbnailUri_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getThumbnailUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,11 +262,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dataCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) data_); + output.writeBytes(1, (com.google.protobuf.ByteString) data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbnailUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, thumbnailUri_); @@ -246,9 +279,9 @@ public int getSerializedSize() { size = 0; if (dataCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) data_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbnailUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, thumbnailUri_); @@ -261,20 +294,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.Image)) { return super.equals(obj); } com.google.cloud.automl.v1.Image other = (com.google.cloud.automl.v1.Image) obj; - if (!getThumbnailUri() - .equals(other.getThumbnailUri())) return false; + if (!getThumbnailUri().equals(other.getThumbnailUri())) return false; if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 1: - if (!getImageBytes() - .equals(other.getImageBytes())) return false; + if (!getImageBytes().equals(other.getImageBytes())) return false; break; case 0: default: @@ -305,97 +336,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.Image parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.Image parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.Image parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.Image parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.automl.v1.Image parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.Image 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.v1.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.Image parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.Image parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.Image parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.Image parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.Image parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.Image parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.Image parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A representation of an image.
    * Only images up to 30MB in size are supported.
@@ -403,21 +440,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.Image}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.Image)
       com.google.cloud.automl.v1.ImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Image_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.DataItems
+          .internal_static_google_cloud_automl_v1_Image_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Image_fieldAccessorTable
+      return com.google.cloud.automl.v1.DataItems
+          .internal_static_google_cloud_automl_v1_Image_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.Image.class, com.google.cloud.automl.v1.Image.Builder.class);
+              com.google.cloud.automl.v1.Image.class,
+              com.google.cloud.automl.v1.Image.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.Image.newBuilder()
@@ -425,16 +464,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -446,9 +484,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_Image_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.DataItems
+          .internal_static_google_cloud_automl_v1_Image_descriptor;
     }
 
     @java.lang.Override
@@ -481,38 +519,39 @@ public com.google.cloud.automl.v1.Image buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.Image) {
-        return mergeFrom((com.google.cloud.automl.v1.Image)other);
+        return mergeFrom((com.google.cloud.automl.v1.Image) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -526,13 +565,15 @@ public Builder mergeFrom(com.google.cloud.automl.v1.Image other) {
         onChanged();
       }
       switch (other.getDataCase()) {
-        case IMAGE_BYTES: {
-          setImageBytes(other.getImageBytes());
-          break;
-        }
-        case DATA_NOT_SET: {
-          break;
-        }
+        case IMAGE_BYTES:
+          {
+            setImageBytes(other.getImageBytes());
+            break;
+          }
+        case DATA_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -562,12 +603,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int dataCase_ = 0;
     private java.lang.Object data_;
-    public DataCase
-        getDataCase() {
-      return DataCase.forNumber(
-          dataCase_);
+
+    public DataCase getDataCase() {
+      return DataCase.forNumber(dataCase_);
     }
 
     public Builder clearData() {
@@ -577,8 +618,9 @@ public Builder clearData() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -586,12 +628,15 @@ public Builder clearData() {
      * 
* * bytes image_bytes = 1; + * * @return Whether the imageBytes field is set. */ public boolean hasImageBytes() { return dataCase_ == 1; } /** + * + * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -599,6 +644,7 @@ public boolean hasImageBytes() {
      * 
* * bytes image_bytes = 1; + * * @return The imageBytes. */ public com.google.protobuf.ByteString getImageBytes() { @@ -608,6 +654,8 @@ public com.google.protobuf.ByteString getImageBytes() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -615,19 +663,22 @@ public com.google.protobuf.ByteString getImageBytes() {
      * 
* * bytes image_bytes = 1; + * * @param value The imageBytes to set. * @return This builder for chaining. */ public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - dataCase_ = 1; + throw new NullPointerException(); + } + dataCase_ = 1; data_ = value; onChanged(); return this; } /** + * + * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -635,6 +686,7 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes image_bytes = 1; + * * @return This builder for chaining. */ public Builder clearImageBytes() { @@ -648,18 +700,20 @@ public Builder clearImageBytes() { private java.lang.Object thumbnailUri_ = ""; /** + * + * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; + * * @return The thumbnailUri. */ public java.lang.String getThumbnailUri() { java.lang.Object ref = thumbnailUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); thumbnailUri_ = s; return s; @@ -668,20 +722,21 @@ public java.lang.String getThumbnailUri() { } } /** + * + * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; + * * @return The bytes for thumbnailUri. */ - public com.google.protobuf.ByteString - getThumbnailUriBytes() { + public com.google.protobuf.ByteString getThumbnailUriBytes() { java.lang.Object ref = thumbnailUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); thumbnailUri_ = b; return b; } else { @@ -689,61 +744,68 @@ public java.lang.String getThumbnailUri() { } } /** + * + * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; + * * @param value The thumbnailUri to set. * @return This builder for chaining. */ - public Builder setThumbnailUri( - java.lang.String value) { + public Builder setThumbnailUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + thumbnailUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; + * * @return This builder for chaining. */ public Builder clearThumbnailUri() { - + thumbnailUri_ = getDefaultInstance().getThumbnailUri(); onChanged(); return this; } /** + * + * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; + * * @param value The bytes for thumbnailUri to set. * @return This builder for chaining. */ - public Builder setThumbnailUriBytes( - com.google.protobuf.ByteString value) { + public Builder setThumbnailUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + thumbnailUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -753,12 +815,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.Image) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.Image) private static final com.google.cloud.automl.v1.Image DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.Image(); } @@ -767,16 +829,16 @@ public static com.google.cloud.automl.v1.Image getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Image parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Image(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Image(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -791,6 +853,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java index 10a9223ad..33aa1a777 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadata.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** + * + * *
  * Dataset metadata that is specific to image classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationDatasetMetadata} */ -public final class ImageClassificationDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageClassificationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageClassificationDatasetMetadata) ImageClassificationDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageClassificationDatasetMetadata.newBuilder() to construct. - private ImageClassificationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationDatasetMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageClassificationDatasetMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageClassificationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageClassificationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,72 +71,85 @@ private ImageClassificationDatasetMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + classificationType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.class, com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.class, + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 1; private int classificationType_; /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The classificationType. */ - @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { + @java.lang.Override + public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = + com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,9 +161,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (classificationType_ + != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, classificationType_); } unknownFields.writeTo(output); @@ -144,9 +176,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, classificationType_); + if (classificationType_ + != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -156,12 +189,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageClassificationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata other = (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) obj; + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata other = + (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -183,117 +217,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageClassificationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata 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.v1.ImageClassificationDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ImageClassificationDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Dataset metadata that is specific to image classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageClassificationDatasetMetadata) com.google.cloud.automl.v1.ImageClassificationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.class, com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.class, + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.newBuilder() @@ -301,16 +345,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,13 +363,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance(); } @@ -341,7 +385,8 @@ public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.ImageClassificationDatasetMetadata result = new com.google.cloud.automl.v1.ImageClassificationDatasetMetadata(this); + com.google.cloud.automl.v1.ImageClassificationDatasetMetadata result = + new com.google.cloud.automl.v1.ImageClassificationDatasetMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -351,38 +396,39 @@ public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageClassificationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -390,7 +436,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImageClassificationDatasetMetadata other) { - if (other == com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1.ImageClassificationDatasetMetadata.getDefaultInstance()) + return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -413,7 +461,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ImageClassificationDatasetMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -425,51 +475,65 @@ public Builder mergeFrom( private int classificationType_ = 0; /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The classificationType. */ @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = + com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @param value The classificationType to set. * @return This builder for chaining. */ @@ -477,28 +541,31 @@ public Builder setClassificationType(com.google.cloud.automl.v1.ClassificationTy if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -508,12 +575,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageClassificationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageClassificationDatasetMetadata) - private static final com.google.cloud.automl.v1.ImageClassificationDatasetMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ImageClassificationDatasetMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageClassificationDatasetMetadata(); } @@ -522,16 +590,16 @@ public static com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -546,6 +614,4 @@ public com.google.protobuf.Parser getParserF public com.google.cloud.automl.v1.ImageClassificationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java index 4a74e9fb9..c59fda666 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationDatasetMetadataOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; -public interface ImageClassificationDatasetMetadataOrBuilder extends +public interface ImageClassificationDatasetMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageClassificationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The classificationType. */ com.google.cloud.automl.v1.ClassificationType getClassificationType(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java index 4059154d0..8663c6790 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadata.java @@ -1,39 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model deployment metadata specific to Image Classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata} */ -public final class ImageClassificationModelDeploymentMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageClassificationModelDeploymentMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) ImageClassificationModelDeploymentMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageClassificationModelDeploymentMetadata.newBuilder() to construct. - private ImageClassificationModelDeploymentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationModelDeploymentMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageClassificationModelDeploymentMetadata() { - } + + private ImageClassificationModelDeploymentMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageClassificationModelDeploymentMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageClassificationModelDeploymentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,46 +70,50 @@ private ImageClassificationModelDeploymentMetadata( case 0: done = true; break; - case 8: { - - nodeCount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + nodeCount_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.class, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.class, + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.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
@@ -101,6 +123,7 @@ private ImageClassificationModelDeploymentMetadata(
    * 
* * int64 node_count = 1; + * * @return The nodeCount. */ @java.lang.Override @@ -109,6 +132,7 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +144,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nodeCount_ != 0L) { output.writeInt64(1, nodeCount_); } @@ -135,8 +158,7 @@ public int getSerializedSize() { size = 0; if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nodeCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -146,15 +168,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata other = (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) obj; + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata other = + (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) obj; - if (getNodeCount() - != other.getNodeCount()) return false; + if (getNodeCount() != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -167,142 +189,152 @@ public int hashCode() { 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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getNodeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageClassificationModelDeploymentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata 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.v1.ImageClassificationModelDeploymentMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata 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.v1.ImageClassificationModelDeploymentMetadata + 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.v1.ImageClassificationModelDeploymentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model deployment metadata specific to Image Classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.class, com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.class, + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.Builder.class); } - // Construct using com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.newBuilder() + // Construct using + // com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,14 +344,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } @java.lang.Override @@ -333,7 +367,8 @@ public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata bui @java.lang.Override public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata buildPartial() { - com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata result = new com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata(this); + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata result = + new com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata(this); result.nodeCount_ = nodeCount_; onBuilt(); return result; @@ -343,46 +378,51 @@ public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageClassificationModelDeploymentMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata)other); + return mergeFrom( + (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata other) { - if (other == com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata other) { + if (other + == com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance()) return this; if (other.getNodeCount() != 0L) { setNodeCount(other.getNodeCount()); } @@ -405,7 +445,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -415,8 +457,10 @@ public Builder mergeFrom( return this; } - private long nodeCount_ ; + 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
@@ -426,6 +470,7 @@ public Builder mergeFrom(
      * 
* * int64 node_count = 1; + * * @return The nodeCount. */ @java.lang.Override @@ -433,6 +478,8 @@ 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
@@ -442,16 +489,19 @@ public long getNodeCount() {
      * 
* * int64 node_count = 1; + * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -461,17 +511,18 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 1; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -481,30 +532,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) - private static final com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata(); } - public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getDefaultInstance() { + public static com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationModelDeploymentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationModelDeploymentMetadata(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationModelDeploymentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationModelDeploymentMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -516,9 +570,8 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java index 31b535325..5d33c7a93 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelDeploymentMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; -public interface ImageClassificationModelDeploymentMetadataOrBuilder extends +public interface ImageClassificationModelDeploymentMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata) 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
@@ -17,6 +35,7 @@ public interface ImageClassificationModelDeploymentMetadataOrBuilder extends
    * 
* * int64 node_count = 1; + * * @return The nodeCount. */ long getNodeCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java similarity index 82% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java index d4e2412f8..9ab37303a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadata.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model metadata for image classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationModelMetadata} */ -public final class ImageClassificationModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageClassificationModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageClassificationModelMetadata) ImageClassificationModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageClassificationModelMetadata.newBuilder() to construct. - private ImageClassificationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationModelMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageClassificationModelMetadata() { baseModelId_ = ""; stopReason_ = ""; @@ -27,16 +46,15 @@ private ImageClassificationModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageClassificationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageClassificationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,79 +73,86 @@ private ImageClassificationModelMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - baseModelId_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - stopReason_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - modelType_ = s; - break; - } - case 105: { - - nodeQps_ = input.readDouble(); - break; - } - case 112: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - nodeCount_ = input.readInt64(); - break; - } - case 128: { + baseModelId_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - trainBudgetMilliNodeHours_ = input.readInt64(); - break; - } - case 136: { + stopReason_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - trainCostMilliNodeHours_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + modelType_ = s; + break; + } + case 105: + { + nodeQps_ = input.readDouble(); + break; + } + case 112: + { + nodeCount_ = input.readInt64(); + break; + } + case 128: + { + trainBudgetMilliNodeHours_ = input.readInt64(); + break; + } + case 136: + { + trainCostMilliNodeHours_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationModelMetadata.class, com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationModelMetadata.class, + com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder.class); } public static final int BASE_MODEL_ID_FIELD_NUMBER = 1; private volatile java.lang.Object baseModelId_; /** + * + * *
    * 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
@@ -137,6 +162,7 @@ private ImageClassificationModelMetadata(
    * 
* * string base_model_id = 1; + * * @return The baseModelId. */ @java.lang.Override @@ -145,14 +171,15 @@ public java.lang.String getBaseModelId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModelId_ = s; return s; } } /** + * + * *
    * 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
@@ -162,16 +189,15 @@ public java.lang.String getBaseModelId() {
    * 
* * string base_model_id = 1; + * * @return The bytes for baseModelId. */ @java.lang.Override - public com.google.protobuf.ByteString - getBaseModelIdBytes() { + public com.google.protobuf.ByteString getBaseModelIdBytes() { java.lang.Object ref = baseModelId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseModelId_ = b; return b; } else { @@ -182,6 +208,8 @@ public java.lang.String getBaseModelId() { public static final int TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 16; 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 actual
@@ -200,6 +228,7 @@ public java.lang.String getBaseModelId() {
    * 
* * int64 train_budget_milli_node_hours = 16; + * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -210,6 +239,8 @@ public long getTrainBudgetMilliNodeHours() { public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 17; private long trainCostMilliNodeHours_; /** + * + * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -217,6 +248,7 @@ public long getTrainBudgetMilliNodeHours() {
    * 
* * int64 train_cost_milli_node_hours = 17; + * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -227,12 +259,15 @@ public long getTrainCostMilliNodeHours() { public static final int STOP_REASON_FIELD_NUMBER = 5; private volatile java.lang.Object stopReason_; /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The stopReason. */ @java.lang.Override @@ -241,30 +276,30 @@ public java.lang.String getStopReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; } } /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ @java.lang.Override - public com.google.protobuf.ByteString - getStopReasonBytes() { + public com.google.protobuf.ByteString getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stopReason_ = b; return b; } else { @@ -275,6 +310,8 @@ public java.lang.String getStopReason() { 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.
@@ -312,6 +349,7 @@ public java.lang.String getStopReason() {
    * 
* * string model_type = 7; + * * @return The modelType. */ @java.lang.Override @@ -320,14 +358,15 @@ public java.lang.String getModelType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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.
@@ -365,16 +404,15 @@ public java.lang.String getModelType() {
    * 
* * string model_type = 7; + * * @return The bytes for modelType. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelType_ = b; return b; } else { @@ -385,12 +423,15 @@ public java.lang.String getModelType() { public static final int NODE_QPS_FIELD_NUMBER = 13; 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 = 13; + * * @return The nodeQps. */ @java.lang.Override @@ -401,6 +442,8 @@ public double getNodeQps() { public static final int NODE_COUNT_FIELD_NUMBER = 14; 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
@@ -408,6 +451,7 @@ public double getNodeQps() {
    * 
* * int64 node_count = 14; + * * @return The nodeCount. */ @java.lang.Override @@ -416,6 +460,7 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -427,8 +472,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseModelId_); } @@ -469,20 +513,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, modelType_); } if (nodeQps_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(13, nodeQps_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(13, nodeQps_); } if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, nodeCount_); } if (trainBudgetMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(16, trainBudgetMilliNodeHours_); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(16, trainBudgetMilliNodeHours_); } if (trainCostMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(17, trainCostMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(17, trainCostMilliNodeHours_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -492,28 +533,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageClassificationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageClassificationModelMetadata other = (com.google.cloud.automl.v1.ImageClassificationModelMetadata) obj; - - if (!getBaseModelId() - .equals(other.getBaseModelId())) return false; - if (getTrainBudgetMilliNodeHours() - != other.getTrainBudgetMilliNodeHours()) return false; - if (getTrainCostMilliNodeHours() - != other.getTrainCostMilliNodeHours()) return false; - if (!getStopReason() - .equals(other.getStopReason())) return false; - if (!getModelType() - .equals(other.getModelType())) return false; + com.google.cloud.automl.v1.ImageClassificationModelMetadata other = + (com.google.cloud.automl.v1.ImageClassificationModelMetadata) obj; + + if (!getBaseModelId().equals(other.getBaseModelId())) return false; + if (getTrainBudgetMilliNodeHours() != other.getTrainBudgetMilliNodeHours()) return false; + if (getTrainCostMilliNodeHours() != other.getTrainCostMilliNodeHours()) return false; + if (!getStopReason().equals(other.getStopReason())) return false; + if (!getModelType().equals(other.getModelType())) return false; if (java.lang.Double.doubleToLongBits(getNodeQps()) - != java.lang.Double.doubleToLongBits( - other.getNodeQps())) return false; - if (getNodeCount() - != other.getNodeCount()) return false; + != java.lang.Double.doubleToLongBits(other.getNodeQps())) return false; + if (getNodeCount() != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -528,138 +563,147 @@ public int hashCode() { hash = (37 * hash) + BASE_MODEL_ID_FIELD_NUMBER; hash = (53 * hash) + getBaseModelId().hashCode(); hash = (37 * hash) + TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTrainBudgetMilliNodeHours()); + 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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainCostMilliNodeHours()); 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 = (37 * hash) + NODE_QPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getNodeQps())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNodeQps())); hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNodeCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNodeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageClassificationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata 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.v1.ImageClassificationModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageClassificationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ImageClassificationModelMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ImageClassificationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model metadata for image classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ImageClassificationModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageClassificationModelMetadata) com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageClassificationModelMetadata.class, com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1.ImageClassificationModelMetadata.class, + com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ImageClassificationModelMetadata.newBuilder() @@ -667,16 +711,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -698,9 +741,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override @@ -719,7 +762,8 @@ public com.google.cloud.automl.v1.ImageClassificationModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ImageClassificationModelMetadata buildPartial() { - com.google.cloud.automl.v1.ImageClassificationModelMetadata result = new com.google.cloud.automl.v1.ImageClassificationModelMetadata(this); + com.google.cloud.automl.v1.ImageClassificationModelMetadata result = + new com.google.cloud.automl.v1.ImageClassificationModelMetadata(this); result.baseModelId_ = baseModelId_; result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; @@ -735,38 +779,39 @@ public com.google.cloud.automl.v1.ImageClassificationModelMetadata buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageClassificationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImageClassificationModelMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.ImageClassificationModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -774,7 +819,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImageClassificationModelMetadata other) { - if (other == com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance()) + return this; if (!other.getBaseModelId().isEmpty()) { baseModelId_ = other.baseModelId_; onChanged(); @@ -818,7 +864,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ImageClassificationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ImageClassificationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -830,6 +877,8 @@ public Builder mergeFrom( private java.lang.Object baseModelId_ = ""; /** + * + * *
      * 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
@@ -839,13 +888,13 @@ public Builder mergeFrom(
      * 
* * string base_model_id = 1; + * * @return The baseModelId. */ public java.lang.String getBaseModelId() { java.lang.Object ref = baseModelId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModelId_ = s; return s; @@ -854,6 +903,8 @@ 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
@@ -863,15 +914,14 @@ public java.lang.String getBaseModelId() {
      * 
* * string base_model_id = 1; + * * @return The bytes for baseModelId. */ - public com.google.protobuf.ByteString - getBaseModelIdBytes() { + public com.google.protobuf.ByteString getBaseModelIdBytes() { java.lang.Object ref = baseModelId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseModelId_ = b; return b; } else { @@ -879,6 +929,8 @@ 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
@@ -888,20 +940,22 @@ public java.lang.String getBaseModelId() {
      * 
* * string base_model_id = 1; + * * @param value The baseModelId to set. * @return This builder for chaining. */ - public Builder setBaseModelId( - java.lang.String value) { + public Builder setBaseModelId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + baseModelId_ = value; onChanged(); return this; } /** + * + * *
      * 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
@@ -911,15 +965,18 @@ public Builder setBaseModelId(
      * 
* * string base_model_id = 1; + * * @return This builder for chaining. */ public Builder clearBaseModelId() { - + baseModelId_ = getDefaultInstance().getBaseModelId(); onChanged(); return this; } /** + * + * *
      * 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
@@ -929,23 +986,25 @@ public Builder clearBaseModelId() {
      * 
* * string base_model_id = 1; + * * @param value The bytes for baseModelId to set. * @return This builder for chaining. */ - public Builder setBaseModelIdBytes( - com.google.protobuf.ByteString value) { + public Builder setBaseModelIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseModelId_ = value; onChanged(); return this; } - private long trainBudgetMilliNodeHours_ ; + 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 actual
@@ -964,6 +1023,7 @@ public Builder setBaseModelIdBytes(
      * 
* * int64 train_budget_milli_node_hours = 16; + * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -971,6 +1031,8 @@ 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 actual
@@ -989,16 +1051,19 @@ public long getTrainBudgetMilliNodeHours() {
      * 
* * int64 train_budget_milli_node_hours = 16; + * * @param value The trainBudgetMilliNodeHours to set. * @return This builder for chaining. */ 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 actual
@@ -1017,17 +1082,20 @@ public Builder setTrainBudgetMilliNodeHours(long value) {
      * 
* * int64 train_budget_milli_node_hours = 16; + * * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; } - private long trainCostMilliNodeHours_ ; + private long trainCostMilliNodeHours_; /** + * + * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1035,6 +1103,7 @@ public Builder clearTrainBudgetMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 17; + * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -1042,6 +1111,8 @@ public long getTrainCostMilliNodeHours() { return trainCostMilliNodeHours_; } /** + * + * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1049,16 +1120,19 @@ public long getTrainCostMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 17; + * * @param value The trainCostMilliNodeHours to set. * @return This builder for chaining. */ public Builder setTrainCostMilliNodeHours(long value) { - + trainCostMilliNodeHours_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1066,10 +1140,11 @@ public Builder setTrainCostMilliNodeHours(long value) {
      * 
* * int64 train_cost_milli_node_hours = 17; + * * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + trainCostMilliNodeHours_ = 0L; onChanged(); return this; @@ -1077,19 +1152,21 @@ public Builder clearTrainCostMilliNodeHours() { private java.lang.Object stopReason_ = ""; /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return The stopReason. */ public java.lang.String getStopReason() { java.lang.Object ref = stopReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; @@ -1098,21 +1175,22 @@ public java.lang.String getStopReason() { } } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ - public com.google.protobuf.ByteString - getStopReasonBytes() { + public com.google.protobuf.ByteString getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stopReason_ = b; return b; } else { @@ -1120,57 +1198,64 @@ public java.lang.String getStopReason() { } } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @param value The stopReason to set. * @return This builder for chaining. */ - public Builder setStopReason( - java.lang.String value) { + public Builder setStopReason(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stopReason_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return This builder for chaining. */ public Builder clearStopReason() { - + stopReason_ = getDefaultInstance().getStopReason(); onChanged(); return this; } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @param value The bytes for stopReason to set. * @return This builder for chaining. */ - public Builder setStopReasonBytes( - com.google.protobuf.ByteString value) { + public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stopReason_ = value; onChanged(); return this; @@ -1178,6 +1263,8 @@ public Builder setStopReasonBytes( 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.
@@ -1215,13 +1302,13 @@ public Builder setStopReasonBytes(
      * 
* * string model_type = 7; + * * @return The modelType. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelType_ = s; return s; @@ -1230,6 +1317,8 @@ public java.lang.String getModelType() { } } /** + * + * *
      * Optional. Type of the model. The available values are:
      * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -1267,15 +1356,14 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 7; + * * @return The bytes for modelType. */ - public com.google.protobuf.ByteString - getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelType_ = b; return b; } else { @@ -1283,6 +1371,8 @@ public java.lang.String getModelType() { } } /** + * + * *
      * Optional. Type of the model. The available values are:
      * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -1320,20 +1410,22 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 7; + * * @param value The modelType to set. * @return This builder for chaining. */ - public Builder setModelType( - java.lang.String value) { + public Builder setModelType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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.
@@ -1371,15 +1463,18 @@ public Builder setModelType(
      * 
* * string model_type = 7; + * * @return This builder for chaining. */ 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.
@@ -1417,29 +1512,32 @@ public Builder clearModelType() {
      * 
* * string model_type = 7; + * * @param value The bytes for modelType to set. * @return This builder for chaining. */ - public Builder setModelTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelType_ = value; onChanged(); return this; } - private double nodeQps_ ; + 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 = 13; + * * @return The nodeQps. */ @java.lang.Override @@ -1447,39 +1545,47 @@ 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 = 13; + * * @param value The nodeQps to set. * @return This builder for chaining. */ 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 = 13; + * * @return This builder for chaining. */ public Builder clearNodeQps() { - + nodeQps_ = 0D; onChanged(); return this; } - private long nodeCount_ ; + 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
@@ -1487,6 +1593,7 @@ public Builder clearNodeQps() {
      * 
* * int64 node_count = 14; + * * @return The nodeCount. */ @java.lang.Override @@ -1494,6 +1601,8 @@ 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
@@ -1501,16 +1610,19 @@ public long getNodeCount() {
      * 
* * int64 node_count = 14; + * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -1518,17 +1630,18 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 14; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1538,12 +1651,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageClassificationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageClassificationModelMetadata) private static final com.google.cloud.automl.v1.ImageClassificationModelMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageClassificationModelMetadata(); } @@ -1552,16 +1665,16 @@ public static com.google.cloud.automl.v1.ImageClassificationModelMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1576,6 +1689,4 @@ public com.google.protobuf.Parser getParserFor public com.google.cloud.automl.v1.ImageClassificationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java similarity index 90% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java index 1c1bdfe03..a7f2dbb60 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageClassificationModelMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; -public interface ImageClassificationModelMetadataOrBuilder extends +public interface ImageClassificationModelMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageClassificationModelMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * 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
@@ -17,10 +35,13 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * string base_model_id = 1; + * * @return The baseModelId. */ 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
@@ -30,12 +51,14 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * string base_model_id = 1; + * * @return The bytes for baseModelId. */ - com.google.protobuf.ByteString - getBaseModelIdBytes(); + com.google.protobuf.ByteString getBaseModelIdBytes(); /** + * + * *
    * 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 actual
@@ -54,11 +77,14 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * int64 train_budget_milli_node_hours = 16; + * * @return The trainBudgetMilliNodeHours. */ long getTrainBudgetMilliNodeHours(); /** + * + * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -66,33 +92,41 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * int64 train_cost_milli_node_hours = 17; + * * @return The trainCostMilliNodeHours. */ long getTrainCostMilliNodeHours(); /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The stopReason. */ java.lang.String getStopReason(); /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ - com.google.protobuf.ByteString - getStopReasonBytes(); + 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.
@@ -130,10 +164,13 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * string model_type = 7; + * * @return The modelType. */ java.lang.String getModelType(); /** + * + * *
    * Optional. Type of the model. The available values are:
    * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -171,23 +208,28 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * string model_type = 7; + * * @return The bytes for modelType. */ - com.google.protobuf.ByteString - getModelTypeBytes(); + com.google.protobuf.ByteString getModelTypeBytes(); /** + * + * *
    * 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 = 13; + * * @return The nodeQps. */ double getNodeQps(); /** + * + * *
    * 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
@@ -195,6 +237,7 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * int64 node_count = 14; + * * @return The nodeCount. */ long getNodeCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java index 7d729600f..459327f5d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotation.java @@ -1,39 +1,56 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/detection.proto package com.google.cloud.automl.v1; /** + * + * *
  * Annotation details for image object detection.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionAnnotation} */ -public final class ImageObjectDetectionAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageObjectDetectionAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageObjectDetectionAnnotation) ImageObjectDetectionAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageObjectDetectionAnnotation.newBuilder() to construct. - private ImageObjectDetectionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionAnnotation( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageObjectDetectionAnnotation() { - } + + private ImageObjectDetectionAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageObjectDetectionAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageObjectDetectionAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,64 +69,72 @@ private ImageObjectDetectionAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + case 10: + { + com.google.cloud.automl.v1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.automl.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } - boundingBox_ = input.readMessage(com.google.cloud.automl.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 21: + { + score_ = input.readFloat(); + break; } - - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Detection + .internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.Detection + .internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.class, com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.class, + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder.class); } public static final int BOUNDING_BOX_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.BoundingPoly boundingBox_; /** + * + * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -117,18 +142,25 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.automl.v1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * Output only. The rectangle representing the object location.
    * 
@@ -143,12 +175,15 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder( 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; + * * @return The score. */ @java.lang.Override @@ -157,6 +192,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingBox_ != null) { output.writeMessage(1, getBoundingBox()); } @@ -186,12 +221,10 @@ public int getSerializedSize() { size = 0; if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingBox()); } if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -201,21 +234,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageObjectDetectionAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation other = (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) obj; + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation other = + (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) obj; if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,125 +264,134 @@ public int hashCode() { hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageObjectDetectionAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.ImageObjectDetectionAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ImageObjectDetectionAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ImageObjectDetectionAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageObjectDetectionAnnotation) com.google.cloud.automl.v1.ImageObjectDetectionAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Detection + .internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.Detection + .internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.class, com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.class, + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.newBuilder() @@ -358,16 +399,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Detection + .internal_static_google_cloud_automl_v1_ImageObjectDetectionAnnotation_descriptor; } @java.lang.Override @@ -404,7 +444,8 @@ public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation buildPartial() { - com.google.cloud.automl.v1.ImageObjectDetectionAnnotation result = new com.google.cloud.automl.v1.ImageObjectDetectionAnnotation(this); + com.google.cloud.automl.v1.ImageObjectDetectionAnnotation result = + new com.google.cloud.automl.v1.ImageObjectDetectionAnnotation(this); if (boundingBoxBuilder_ == null) { result.boundingBox_ = boundingBox_; } else { @@ -419,38 +460,39 @@ public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageObjectDetectionAnnotation) { - return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation)other); + return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) other); } else { super.mergeFrom(other); return this; @@ -458,7 +500,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionAnnotation other) { - if (other == com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.ImageObjectDetectionAnnotation.getDefaultInstance()) + return this; if (other.hasBoundingBox()) { mergeBoundingBox(other.getBoundingBox()); } @@ -484,7 +527,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ImageObjectDetectionAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -496,34 +540,47 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.automl.v1.BoundingPoly, + com.google.cloud.automl.v1.BoundingPoly.Builder, + com.google.cloud.automl.v1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; + * * @return The boundingBox. */ public com.google.cloud.automl.v1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -544,14 +601,15 @@ public Builder setBoundingBox(com.google.cloud.automl.v1.BoundingPoly value) { return this; } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; */ - public Builder setBoundingBox( - com.google.cloud.automl.v1.BoundingPoly.Builder builderForValue) { + public Builder setBoundingBox(com.google.cloud.automl.v1.BoundingPoly.Builder builderForValue) { if (boundingBoxBuilder_ == null) { boundingBox_ = builderForValue.build(); onChanged(); @@ -562,6 +620,8 @@ public Builder setBoundingBox( return this; } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -572,7 +632,9 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1.BoundingPoly value) { if (boundingBoxBuilder_ == null) { if (boundingBox_ != null) { boundingBox_ = - com.google.cloud.automl.v1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.BoundingPoly.newBuilder(boundingBox_) + .mergeFrom(value) + .buildPartial(); } else { boundingBox_ = value; } @@ -584,6 +646,8 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1.BoundingPoly value) { return this; } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -602,6 +666,8 @@ public Builder clearBoundingBox() { return this; } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -609,11 +675,13 @@ public Builder clearBoundingBox() { * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; */ public com.google.cloud.automl.v1.BoundingPoly.Builder getBoundingBoxBuilder() { - + onChanged(); return getBoundingBoxFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -624,11 +692,14 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder( if (boundingBoxBuilder_ != null) { return boundingBoxBuilder_.getMessageOrBuilder(); } else { - return boundingBox_ == null ? - com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.automl.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -636,27 +707,33 @@ public com.google.cloud.automl.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder( * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder> + com.google.cloud.automl.v1.BoundingPoly, + com.google.cloud.automl.v1.BoundingPoly.Builder, + com.google.cloud.automl.v1.BoundingPolyOrBuilder> getBoundingBoxFieldBuilder() { if (boundingBoxBuilder_ == null) { - boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BoundingPoly, com.google.cloud.automl.v1.BoundingPoly.Builder, com.google.cloud.automl.v1.BoundingPolyOrBuilder>( - getBoundingBox(), - getParentForChildren(), - isClean()); + boundingBoxBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.BoundingPoly, + com.google.cloud.automl.v1.BoundingPoly.Builder, + com.google.cloud.automl.v1.BoundingPolyOrBuilder>( + getBoundingBox(), getParentForChildren(), isClean()); boundingBox_ = null; } return boundingBoxBuilder_; } - private float score_ ; + 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; + * * @return The score. */ @java.lang.Override @@ -664,39 +741,45 @@ 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; + * * @param value The score to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -706,12 +789,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageObjectDetectionAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageObjectDetectionAnnotation) private static final com.google.cloud.automl.v1.ImageObjectDetectionAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageObjectDetectionAnnotation(); } @@ -720,16 +803,16 @@ public static com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getDefau 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); - } - }; + 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; @@ -744,6 +827,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java index 7e51f5a4b..8e7c6cd4c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionAnnotationOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/detection.proto package com.google.cloud.automl.v1; -public interface ImageObjectDetectionAnnotationOrBuilder extends +public interface ImageObjectDetectionAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageObjectDetectionAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1.BoundingPoly bounding_box = 1; + * * @return The boundingBox. */ com.google.cloud.automl.v1.BoundingPoly getBoundingBox(); /** + * + * *
    * Output only. The rectangle representing the object location.
    * 
@@ -35,12 +59,15 @@ public interface ImageObjectDetectionAnnotationOrBuilder extends com.google.cloud.automl.v1.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; + * * @return The score. */ float getScore(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java index 4405ad26f..b462a4ab0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadata.java @@ -1,39 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** + * + * *
  * Dataset metadata specific to image object detection.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata} */ -public final class ImageObjectDetectionDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageObjectDetectionDatasetMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) ImageObjectDetectionDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageObjectDetectionDatasetMetadata.newBuilder() to construct. - private ImageObjectDetectionDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionDatasetMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageObjectDetectionDatasetMetadata() { - } + + private ImageObjectDetectionDatasetMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageObjectDetectionDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageObjectDetectionDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +70,42 @@ private ImageObjectDetectionDatasetMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.class, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.class, + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +117,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +135,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata other = (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) obj; + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata other = + (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageObjectDetectionDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.ImageObjectDetectionDatasetMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ImageObjectDetectionDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.class, com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.class, + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.newBuilder() @@ -257,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,13 +304,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); } @@ -295,7 +326,8 @@ public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata result = new com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata(this); + com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata result = + new com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata(this); onBuilt(); return result; } @@ -304,38 +336,39 @@ public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageObjectDetectionDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +376,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata other) { - if (other == com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +398,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +409,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,30 +421,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) - private static final com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata(); } - public static com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -419,9 +458,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java new file mode 100644 index 000000000..236b2abaa --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionDatasetMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/image.proto + +package com.google.cloud.automl.v1; + +public interface ImageObjectDetectionDatasetMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java index 3bf5a7dee..b65f5e6a7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetrics.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/detection.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model evaluation metrics for image object detection problems.
  * Evaluates prediction quality of labeled bounding boxes.
@@ -11,31 +28,33 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics}
  */
-public final class ImageObjectDetectionEvaluationMetrics extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImageObjectDetectionEvaluationMetrics
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)
     ImageObjectDetectionEvaluationMetricsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImageObjectDetectionEvaluationMetrics.newBuilder() to construct.
-  private ImageObjectDetectionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ImageObjectDetectionEvaluationMetrics(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImageObjectDetectionEvaluationMetrics() {
     boundingBoxMetricsEntries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImageObjectDetectionEvaluationMetrics();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImageObjectDetectionEvaluationMetrics(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,69 +74,79 @@ private ImageObjectDetectionEvaluationMetrics(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            evaluatedBoundingBoxCount_ = input.readInt32();
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              boundingBoxMetricsEntries_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 8:
+            {
+              evaluatedBoundingBoxCount_ = input.readInt32();
+              break;
             }
-            boundingBoxMetricsEntries_.add(
-                input.readMessage(com.google.cloud.automl.v1.BoundingBoxMetricsEntry.parser(), extensionRegistry));
-            break;
-          }
-          case 29: {
-
-            boundingBoxMeanAveragePrecision_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                boundingBoxMetricsEntries_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              boundingBoxMetricsEntries_.add(
+                  input.readMessage(
+                      com.google.cloud.automl.v1.BoundingBoxMetricsEntry.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 29:
+            {
+              boundingBoxMeanAveragePrecision_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        boundingBoxMetricsEntries_ = java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+        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.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1.Detection
+        .internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable
+    return com.google.cloud.automl.v1.Detection
+        .internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.class, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder.class);
+            com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.class,
+            com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder.class);
   }
 
   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; + * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -126,8 +155,11 @@ public int getEvaluatedBoundingBoxCount() { } public static final int BOUNDING_BOX_METRICS_ENTRIES_FIELD_NUMBER = 2; - private java.util.List boundingBoxMetricsEntries_; + 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
@@ -135,13 +167,18 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ @java.lang.Override - public java.util.List getBoundingBoxMetricsEntriesList() { + 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
@@ -149,14 +186,18 @@ public java.util.List getBou
    * pair.
    * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ @java.lang.Override - public java.util.List + 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
@@ -164,13 +205,17 @@ public java.util.List getBou
    * pair.
    * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ @java.lang.Override 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
@@ -178,13 +223,18 @@ public int getBoundingBoxMetricsEntriesCount() {
    * pair.
    * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index) { + public com.google.cloud.automl.v1.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
@@ -192,23 +242,28 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsE
    * pair.
    * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.automl.v1.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; + * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -217,6 +272,7 @@ public float getBoundingBoxMeanAveragePrecision() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +284,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (evaluatedBoundingBoxCount_ != 0) { output.writeInt32(1, evaluatedBoundingBoxCount_); } @@ -249,16 +304,17 @@ public int getSerializedSize() { size = 0; if (evaluatedBoundingBoxCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, evaluatedBoundingBoxCount_); + 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)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, boundingBoxMetricsEntries_.get(i)); } if (boundingBoxMeanAveragePrecision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, boundingBoxMeanAveragePrecision_); + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 3, boundingBoxMeanAveragePrecision_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -268,20 +324,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics other = (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) obj; + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics other = + (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) obj; - if (getEvaluatedBoundingBoxCount() - != other.getEvaluatedBoundingBoxCount()) return false; - if (!getBoundingBoxMetricsEntriesList() - .equals(other.getBoundingBoxMetricsEntriesList())) return false; + 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; + != java.lang.Float.floatToIntBits(other.getBoundingBoxMeanAveragePrecision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,104 +355,111 @@ public int hashCode() { hash = (53 * hash) + getBoundingBoxMetricsEntriesList().hashCode(); } hash = (37 * hash) + BOUNDING_BOX_MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoundingBoxMeanAveragePrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoundingBoxMeanAveragePrecision()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageObjectDetectionEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.ImageObjectDetectionEvaluationMetrics parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -405,21 +467,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)
       com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.Detection
+          .internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable
+      return com.google.cloud.automl.v1.Detection
+          .internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.class, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder.class);
+              com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.class,
+              com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.newBuilder()
@@ -427,17 +491,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getBoundingBoxMetricsEntriesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -455,13 +519,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.Detection.internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.Detection
+          .internal_static_google_cloud_automl_v1_ImageObjectDetectionEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getDefaultInstanceForType() {
+    public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+        getDefaultInstanceForType() {
       return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance();
     }
 
@@ -476,12 +541,14 @@ public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics build()
 
     @java.lang.Override
     public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics buildPartial() {
-      com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics result = new com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics(this);
+      com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics result =
+          new com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics(this);
       int from_bitField0_ = bitField0_;
       result.evaluatedBoundingBoxCount_ = evaluatedBoundingBoxCount_;
       if (boundingBoxMetricsEntriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          boundingBoxMetricsEntries_ = java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+          boundingBoxMetricsEntries_ =
+              java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.boundingBoxMetricsEntries_ = boundingBoxMetricsEntries_;
@@ -497,46 +564,50 @@ public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics buildPar
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.ImageObjectDetectionEvaluationMetrics) {
-        return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)other);
+        return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics other) {
-      if (other == com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics other) {
+      if (other
+          == com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance())
+        return this;
       if (other.getEvaluatedBoundingBoxCount() != 0) {
         setEvaluatedBoundingBoxCount(other.getEvaluatedBoundingBoxCount());
       }
@@ -558,9 +629,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionEvaluati
             boundingBoxMetricsEntriesBuilder_ = null;
             boundingBoxMetricsEntries_ = other.boundingBoxMetricsEntries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingBoxMetricsEntriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBoundingBoxMetricsEntriesFieldBuilder() : null;
+            boundingBoxMetricsEntriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBoundingBoxMetricsEntriesFieldBuilder()
+                    : null;
           } else {
             boundingBoxMetricsEntriesBuilder_.addAllMessages(other.boundingBoxMetricsEntries_);
           }
@@ -588,7 +660,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -597,16 +671,20 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private int evaluatedBoundingBoxCount_ ;
+    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; + * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -614,50 +692,64 @@ 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; + * * @param value The evaluatedBoundingBoxCount to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearEvaluatedBoundingBoxCount() { - + evaluatedBoundingBoxCount_ = 0; onChanged(); return this; } - private java.util.List boundingBoxMetricsEntries_ = - java.util.Collections.emptyList(); + private java.util.List + boundingBoxMetricsEntries_ = java.util.Collections.emptyList(); + private void ensureBoundingBoxMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingBoxMetricsEntries_ = new java.util.ArrayList(boundingBoxMetricsEntries_); + boundingBoxMetricsEntries_ = + new java.util.ArrayList( + boundingBoxMetricsEntries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder> boundingBoxMetricsEntriesBuilder_; + com.google.cloud.automl.v1.BoundingBoxMetricsEntry, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, + com.google.cloud.automl.v1.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
@@ -665,9 +757,12 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public java.util.List getBoundingBoxMetricsEntriesList() { + public java.util.List + getBoundingBoxMetricsEntriesList() { if (boundingBoxMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_); } else { @@ -675,6 +770,8 @@ public java.util.List getBou } } /** + * + * *
      * 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
@@ -682,7 +779,9 @@ public java.util.List getBou
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public int getBoundingBoxMetricsEntriesCount() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -692,6 +791,8 @@ public 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
@@ -699,9 +800,12 @@ public int getBoundingBoxMetricsEntriesCount() {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index) { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( + int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { return boundingBoxMetricsEntries_.get(index); } else { @@ -709,6 +813,8 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsE } } /** + * + * *
      * 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
@@ -716,7 +822,9 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getBoundingBoxMetricsE
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder setBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry value) { @@ -733,6 +841,8 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -740,7 +850,9 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder setBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder builderForValue) { @@ -754,6 +866,8 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -761,9 +875,12 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1.BoundingBoxMetricsEntry value) { + public Builder addBoundingBoxMetricsEntries( + com.google.cloud.automl.v1.BoundingBoxMetricsEntry value) { if (boundingBoxMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,6 +894,8 @@ public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1.BoundingB 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
@@ -784,7 +903,9 @@ public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1.BoundingB
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder addBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry value) { @@ -801,6 +922,8 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -808,7 +931,9 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder addBoundingBoxMetricsEntries( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder builderForValue) { @@ -822,6 +947,8 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -829,7 +956,9 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder addBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder builderForValue) { @@ -843,6 +972,8 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -850,14 +981,15 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.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_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingBoxMetricsEntries_); onChanged(); } else { boundingBoxMetricsEntriesBuilder_.addAllMessages(values); @@ -865,6 +997,8 @@ public Builder addAllBoundingBoxMetricsEntries( 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
@@ -872,7 +1006,9 @@ public Builder addAllBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder clearBoundingBoxMetricsEntries() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -885,6 +1021,8 @@ public Builder clearBoundingBoxMetricsEntries() { 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
@@ -892,7 +1030,9 @@ public Builder clearBoundingBoxMetricsEntries() {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder removeBoundingBoxMetricsEntries(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -905,6 +1045,8 @@ public Builder removeBoundingBoxMetricsEntries(int 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
@@ -912,13 +1054,17 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder getBoundingBoxMetricsEntriesBuilder( - int index) { + public com.google.cloud.automl.v1.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
@@ -926,16 +1072,21 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder getBoundingBox
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder + getBoundingBoxMetricsEntriesOrBuilder(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { - return boundingBoxMetricsEntries_.get(index); } else { + 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
@@ -943,10 +1094,12 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder getBoundingBo
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public java.util.List - getBoundingBoxMetricsEntriesOrBuilderList() { + public java.util.List + getBoundingBoxMetricsEntriesOrBuilderList() { if (boundingBoxMetricsEntriesBuilder_ != null) { return boundingBoxMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -954,6 +1107,8 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder getBoundingBo } } /** + * + * *
      * 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
@@ -961,13 +1116,18 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder getBoundingBo
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder addBoundingBoxMetricsEntriesBuilder() { - return getBoundingBoxMetricsEntriesFieldBuilder().addBuilder( - com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder + addBoundingBoxMetricsEntriesBuilder() { + return getBoundingBoxMetricsEntriesFieldBuilder() + .addBuilder(com.google.cloud.automl.v1.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
@@ -975,14 +1135,19 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder addBoundingBox
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder addBoundingBoxMetricsEntriesBuilder( - int index) { - return getBoundingBoxMetricsEntriesFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder + addBoundingBoxMetricsEntriesBuilder(int index) { + return getBoundingBoxMetricsEntriesFieldBuilder() + .addBuilder( + index, com.google.cloud.automl.v1.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
@@ -990,18 +1155,26 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder addBoundingBox
      * pair.
      * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public java.util.List - getBoundingBoxMetricsEntriesBuilderList() { + public java.util.List + getBoundingBoxMetricsEntriesBuilderList() { return getBoundingBoxMetricsEntriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder> + com.google.cloud.automl.v1.BoundingBoxMetricsEntry, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, + com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder> getBoundingBoxMetricsEntriesFieldBuilder() { if (boundingBoxMetricsEntriesBuilder_ == null) { - boundingBoxMetricsEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.BoundingBoxMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder>( + boundingBoxMetricsEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.BoundingBoxMetricsEntry, + com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder, + com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder>( boundingBoxMetricsEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1011,14 +1184,17 @@ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder addBoundingBox return boundingBoxMetricsEntriesBuilder_; } - private float boundingBoxMeanAveragePrecision_ ; + 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; + * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -1026,39 +1202,45 @@ 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; + * * @param value The boundingBoxMeanAveragePrecision to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearBoundingBoxMeanAveragePrecision() { - + boundingBoxMeanAveragePrecision_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1068,30 +1250,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) - private static final com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics(); } - public static com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -1103,9 +1287,8 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java index 7ddc18d62..18a95dd0f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionEvaluationMetricsOrBuilder.java @@ -1,24 +1,45 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/detection.proto package com.google.cloud.automl.v1; -public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends +public interface ImageObjectDetectionEvaluationMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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; + * * @return The evaluatedBoundingBoxCount. */ 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
@@ -26,11 +47,15 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - java.util.List + 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
@@ -38,10 +63,14 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ com.google.cloud.automl.v1.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
@@ -49,10 +78,14 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.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
@@ -60,11 +93,15 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - java.util.List + 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
@@ -72,18 +109,23 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ com.google.cloud.automl.v1.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; + * * @return The boundingBoxMeanAveragePrecision. */ float getBoundingBoxMeanAveragePrecision(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java index 24795ab85..23bb23349 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadata.java @@ -1,39 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model deployment metadata specific to Image Object Detection.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata} */ -public final class ImageObjectDetectionModelDeploymentMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageObjectDetectionModelDeploymentMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) ImageObjectDetectionModelDeploymentMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageObjectDetectionModelDeploymentMetadata.newBuilder() to construct. - private ImageObjectDetectionModelDeploymentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionModelDeploymentMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageObjectDetectionModelDeploymentMetadata() { - } + + private ImageObjectDetectionModelDeploymentMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageObjectDetectionModelDeploymentMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageObjectDetectionModelDeploymentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,46 +70,50 @@ private ImageObjectDetectionModelDeploymentMetadata( case 0: done = true; break; - case 8: { - - nodeCount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + nodeCount_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.class, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.class, + com.google.cloud.automl.v1.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
@@ -101,6 +123,7 @@ private ImageObjectDetectionModelDeploymentMetadata(
    * 
* * int64 node_count = 1; + * * @return The nodeCount. */ @java.lang.Override @@ -109,6 +132,7 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +144,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nodeCount_ != 0L) { output.writeInt64(1, nodeCount_); } @@ -135,8 +158,7 @@ public int getSerializedSize() { size = 0; if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nodeCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -146,15 +168,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata other = (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) obj; + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata other = + (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) obj; - if (getNodeCount() - != other.getNodeCount()) return false; + if (getNodeCount() != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -167,142 +189,152 @@ public int hashCode() { 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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getNodeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1.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.v1.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.v1.ImageObjectDetectionModelDeploymentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ImageObjectDetectionModelDeploymentMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.class, com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.class, + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.Builder.class); } - // Construct using com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.newBuilder() + // Construct using + // com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,19 +344,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getDefaultInstanceForType() { - return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata build() { - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata result = buildPartial(); + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -333,7 +368,8 @@ public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata bu @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata buildPartial() { - com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata result = new com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata(this); + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata result = + new com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata(this); result.nodeCount_ = nodeCount_; onBuilt(); return result; @@ -343,46 +379,51 @@ public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageObjectDetectionModelDeploymentMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata)other); + return mergeFrom( + (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata other) { - if (other == com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata other) { + if (other + == com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance()) return this; if (other.getNodeCount() != 0L) { setNodeCount(other.getNodeCount()); } @@ -405,7 +446,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -415,8 +458,10 @@ public Builder mergeFrom( return this; } - private long nodeCount_ ; + 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
@@ -426,6 +471,7 @@ public Builder mergeFrom(
      * 
* * int64 node_count = 1; + * * @return The nodeCount. */ @java.lang.Override @@ -433,6 +479,8 @@ 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
@@ -442,16 +490,19 @@ public long getNodeCount() {
      * 
* * int64 node_count = 1; + * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -461,17 +512,18 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 1; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -481,44 +533,47 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata) - private static final com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata(); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java index cf3f1c1e2..0f975dd43 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; -public interface ImageObjectDetectionModelDeploymentMetadataOrBuilder extends +public interface ImageObjectDetectionModelDeploymentMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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
@@ -17,6 +35,7 @@ public interface ImageObjectDetectionModelDeploymentMetadataOrBuilder extends
    * 
* * int64 node_count = 1; + * * @return The nodeCount. */ long getNodeCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java index c741e381c..c6bac21ae 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadata.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model metadata specific to image object detection.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImageObjectDetectionModelMetadata} */ -public final class ImageObjectDetectionModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageObjectDetectionModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImageObjectDetectionModelMetadata) ImageObjectDetectionModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageObjectDetectionModelMetadata.newBuilder() to construct. - private ImageObjectDetectionModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionModelMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageObjectDetectionModelMetadata() { modelType_ = ""; stopReason_ = ""; @@ -26,16 +45,15 @@ private ImageObjectDetectionModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageObjectDetectionModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageObjectDetectionModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,73 +72,79 @@ private ImageObjectDetectionModelMetadata( 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; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - stopReason_ = s; - break; - } - case 48: { - - trainBudgetMilliNodeHours_ = input.readInt64(); - break; - } - case 56: { + modelType_ = s; + break; + } + case 24: + { + nodeCount_ = input.readInt64(); + break; + } + case 33: + { + nodeQps_ = input.readDouble(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - trainCostMilliNodeHours_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + stopReason_ = s; + break; + } + case 48: + { + trainBudgetMilliNodeHours_ = input.readInt64(); + break; + } + case 56: + { + trainCostMilliNodeHours_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.class, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.class, + com.google.cloud.automl.v1.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
@@ -148,6 +172,7 @@ private ImageObjectDetectionModelMetadata(
    * 
* * string model_type = 1; + * * @return The modelType. */ @java.lang.Override @@ -156,14 +181,15 @@ public java.lang.String getModelType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -191,16 +217,15 @@ public java.lang.String getModelType() {
    * 
* * string model_type = 1; + * * @return The bytes for modelType. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelType_ = b; return b; } else { @@ -211,6 +236,8 @@ public java.lang.String getModelType() { 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
@@ -218,6 +245,7 @@ public java.lang.String getModelType() {
    * 
* * int64 node_count = 3; + * * @return The nodeCount. */ @java.lang.Override @@ -228,12 +256,15 @@ public long getNodeCount() { 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; + * * @return The nodeQps. */ @java.lang.Override @@ -244,12 +275,15 @@ public double getNodeQps() { public static final int STOP_REASON_FIELD_NUMBER = 5; private volatile java.lang.Object stopReason_; /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The stopReason. */ @java.lang.Override @@ -258,30 +292,30 @@ public java.lang.String getStopReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; } } /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ @java.lang.Override - public com.google.protobuf.ByteString - getStopReasonBytes() { + public com.google.protobuf.ByteString getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stopReason_ = b; return b; } else { @@ -292,6 +326,8 @@ public java.lang.String getStopReason() { 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 actual
@@ -311,6 +347,7 @@ public java.lang.String getStopReason() {
    * 
* * int64 train_budget_milli_node_hours = 6; + * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -321,6 +358,8 @@ public long getTrainBudgetMilliNodeHours() { public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 7; private long trainCostMilliNodeHours_; /** + * + * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -328,6 +367,7 @@ public long getTrainBudgetMilliNodeHours() {
    * 
* * int64 train_cost_milli_node_hours = 7; + * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -336,6 +376,7 @@ public long getTrainCostMilliNodeHours() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +388,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelType_); } @@ -380,23 +420,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, modelType_); } if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, nodeCount_); } if (nodeQps_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, nodeQps_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, nodeQps_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stopReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stopReason_); } if (trainBudgetMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, trainBudgetMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, trainBudgetMilliNodeHours_); } if (trainCostMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, trainCostMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, trainCostMilliNodeHours_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -406,26 +442,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata other = (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) obj; + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata other = + (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) obj; - if (!getModelType() - .equals(other.getModelType())) return false; - if (getNodeCount() - != other.getNodeCount()) return false; + 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 (!getStopReason() - .equals(other.getStopReason())) return false; - if (getTrainBudgetMilliNodeHours() - != other.getTrainBudgetMilliNodeHours()) return false; - if (getTrainCostMilliNodeHours() - != other.getTrainCostMilliNodeHours()) return false; + != java.lang.Double.doubleToLongBits(other.getNodeQps())) return false; + if (!getStopReason().equals(other.getStopReason())) return false; + if (getTrainBudgetMilliNodeHours() != other.getTrainBudgetMilliNodeHours()) return false; + if (getTrainCostMilliNodeHours() != other.getTrainCostMilliNodeHours()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -440,136 +471,145 @@ public int 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 = (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 = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNodeQps())); hash = (37 * hash) + STOP_REASON_FIELD_NUMBER; hash = (53 * hash) + getStopReason().hashCode(); hash = (37 * hash) + TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTrainBudgetMilliNodeHours()); + 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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainCostMilliNodeHours()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImageObjectDetectionModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.ImageObjectDetectionModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ImageObjectDetectionModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImageObjectDetectionModelMetadata) com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.class, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder.class); + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.class, + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.newBuilder() @@ -577,16 +617,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -606,13 +645,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ImageProto.internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ImageProto + .internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } @@ -627,7 +667,8 @@ public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata buildPartial() { - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata result = new com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata(this); + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata result = + new com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata(this); result.modelType_ = modelType_; result.nodeCount_ = nodeCount_; result.nodeQps_ = nodeQps_; @@ -642,38 +683,39 @@ public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImageObjectDetectionModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -681,7 +723,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata other) { - if (other == com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance()) + return this; if (!other.getModelType().isEmpty()) { modelType_ = other.modelType_; onChanged(); @@ -721,7 +765,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -733,6 +778,8 @@ public Builder mergeFrom( 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
@@ -760,13 +807,13 @@ public Builder mergeFrom(
      * 
* * string model_type = 1; + * * @return The modelType. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelType_ = s; return s; @@ -775,6 +822,8 @@ public 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
@@ -802,15 +851,14 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 1; + * * @return The bytes for modelType. */ - public com.google.protobuf.ByteString - getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelType_ = b; return b; } else { @@ -818,6 +866,8 @@ public 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
@@ -845,20 +895,22 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 1; + * * @param value The modelType to set. * @return This builder for chaining. */ - public Builder setModelType( - java.lang.String value) { + public Builder setModelType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -886,15 +938,18 @@ public Builder setModelType(
      * 
* * string model_type = 1; + * * @return This builder for chaining. */ 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
@@ -922,23 +977,25 @@ public Builder clearModelType() {
      * 
* * string model_type = 1; + * * @param value The bytes for modelType to set. * @return This builder for chaining. */ - public Builder setModelTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelType_ = value; onChanged(); return this; } - private long nodeCount_ ; + 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
@@ -946,6 +1003,7 @@ public Builder setModelTypeBytes(
      * 
* * int64 node_count = 3; + * * @return The nodeCount. */ @java.lang.Override @@ -953,6 +1011,8 @@ 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
@@ -960,16 +1020,19 @@ public long getNodeCount() {
      * 
* * int64 node_count = 3; + * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -977,23 +1040,27 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 3; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } - private double nodeQps_ ; + 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; + * * @return The nodeQps. */ @java.lang.Override @@ -1001,32 +1068,38 @@ 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; + * * @param value The nodeQps to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearNodeQps() { - + nodeQps_ = 0D; onChanged(); return this; @@ -1034,19 +1107,21 @@ public Builder clearNodeQps() { private java.lang.Object stopReason_ = ""; /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return The stopReason. */ public java.lang.String getStopReason() { java.lang.Object ref = stopReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; @@ -1055,21 +1130,22 @@ public java.lang.String getStopReason() { } } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ - public com.google.protobuf.ByteString - getStopReasonBytes() { + public com.google.protobuf.ByteString getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stopReason_ = b; return b; } else { @@ -1077,64 +1153,73 @@ public java.lang.String getStopReason() { } } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @param value The stopReason to set. * @return This builder for chaining. */ - public Builder setStopReason( - java.lang.String value) { + public Builder setStopReason(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stopReason_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return This builder for chaining. */ public Builder clearStopReason() { - + stopReason_ = getDefaultInstance().getStopReason(); onChanged(); return this; } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @param value The bytes for stopReason to set. * @return This builder for chaining. */ - public Builder setStopReasonBytes( - com.google.protobuf.ByteString value) { + public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stopReason_ = value; onChanged(); return this; } - private long trainBudgetMilliNodeHours_ ; + 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 actual
@@ -1154,6 +1239,7 @@ public Builder setStopReasonBytes(
      * 
* * int64 train_budget_milli_node_hours = 6; + * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -1161,6 +1247,8 @@ 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 actual
@@ -1180,16 +1268,19 @@ public long getTrainBudgetMilliNodeHours() {
      * 
* * int64 train_budget_milli_node_hours = 6; + * * @param value The trainBudgetMilliNodeHours to set. * @return This builder for chaining. */ 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 actual
@@ -1209,17 +1300,20 @@ public Builder setTrainBudgetMilliNodeHours(long value) {
      * 
* * int64 train_budget_milli_node_hours = 6; + * * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; } - private long trainCostMilliNodeHours_ ; + private long trainCostMilliNodeHours_; /** + * + * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1227,6 +1321,7 @@ public Builder clearTrainBudgetMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; + * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -1234,6 +1329,8 @@ public long getTrainCostMilliNodeHours() { return trainCostMilliNodeHours_; } /** + * + * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1241,16 +1338,19 @@ public long getTrainCostMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; + * * @param value The trainCostMilliNodeHours to set. * @return This builder for chaining. */ public Builder setTrainCostMilliNodeHours(long value) { - + trainCostMilliNodeHours_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1258,17 +1358,18 @@ public Builder setTrainCostMilliNodeHours(long value) {
      * 
* * int64 train_cost_milli_node_hours = 7; + * * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + trainCostMilliNodeHours_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1278,12 +1379,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImageObjectDetectionModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImageObjectDetectionModelMetadata) - private static final com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata(); } @@ -1292,16 +1394,16 @@ public static com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getDe 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); - } - }; + 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; @@ -1316,6 +1418,4 @@ public com.google.protobuf.Parser getParserFo public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java similarity index 88% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java index f5642a7ee..fcee25c28 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageObjectDetectionModelMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/image.proto package com.google.cloud.automl.v1; -public interface ImageObjectDetectionModelMetadataOrBuilder extends +public interface ImageObjectDetectionModelMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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
@@ -35,10 +53,13 @@ public interface ImageObjectDetectionModelMetadataOrBuilder extends
    * 
* * string model_type = 1; + * * @return The modelType. */ 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
@@ -66,12 +87,14 @@ public interface ImageObjectDetectionModelMetadataOrBuilder extends
    * 
* * string model_type = 1; + * * @return The bytes for modelType. */ - com.google.protobuf.ByteString - getModelTypeBytes(); + 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
@@ -79,44 +102,55 @@ public interface ImageObjectDetectionModelMetadataOrBuilder extends
    * 
* * int64 node_count = 3; + * * @return The nodeCount. */ 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; + * * @return The nodeQps. */ double getNodeQps(); /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The stopReason. */ java.lang.String getStopReason(); /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ - com.google.protobuf.ByteString - getStopReasonBytes(); + com.google.protobuf.ByteString getStopReasonBytes(); /** + * + * *
    * 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 actual
@@ -136,11 +170,14 @@ public interface ImageObjectDetectionModelMetadataOrBuilder extends
    * 
* * int64 train_budget_milli_node_hours = 6; + * * @return The trainBudgetMilliNodeHours. */ long getTrainBudgetMilliNodeHours(); /** + * + * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -148,6 +185,7 @@ public interface ImageObjectDetectionModelMetadataOrBuilder extends
    * 
* * int64 train_cost_milli_node_hours = 7; + * * @return The trainCostMilliNodeHours. */ long getTrainCostMilliNodeHours(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java index 8362965ca..953354308 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; -public interface ImageOrBuilder extends +public interface ImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Image) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -15,10 +33,13 @@ public interface ImageOrBuilder extends
    * 
* * bytes image_bytes = 1; + * * @return Whether the imageBytes field is set. */ boolean hasImageBytes(); /** + * + * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -26,29 +47,35 @@ public interface ImageOrBuilder extends
    * 
* * bytes image_bytes = 1; + * * @return The imageBytes. */ com.google.protobuf.ByteString getImageBytes(); /** + * + * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; + * * @return The thumbnailUri. */ java.lang.String getThumbnailUri(); /** + * + * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; + * * @return The bytes for thumbnailUri. */ - com.google.protobuf.ByteString - getThumbnailUriBytes(); + com.google.protobuf.ByteString getThumbnailUriBytes(); public com.google.cloud.automl.v1.Image.DataCase getDataCase(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java new file mode 100644 index 000000000..9d1967926 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImageProto.java @@ -0,0 +1,168 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/image.proto + +package com.google.cloud.automl.v1; + +public final class ImageProto { + private ImageProto() {} + + 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_v1_ImageClassificationDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageClassificationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageClassificationModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageObjectDetectionModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImageObjectDetectionModelDeploymentMetadata_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/v1/image.proto\022\026go" + + "ogle.cloud.automl.v1\032\031google/api/resourc" + + "e.proto\032,google/cloud/automl/v1/annotati" + + "on_spec.proto\032+google/cloud/automl/v1/cl" + + "assification.proto\032\037google/protobuf/time" + + "stamp.proto\032\034google/api/annotations.prot" + + "o\"m\n\"ImageClassificationDatasetMetadata\022" + + "G\n\023classification_type\030\001 \001(\0162*.google.cl" + + "oud.automl.v1.ClassificationType\"%\n#Imag" + + "eObjectDetectionDatasetMetadata\"\324\001\n Imag" + + "eClassificationModelMetadata\022\025\n\rbase_mod" + + "el_id\030\001 \001(\t\022%\n\035train_budget_milli_node_h" + + "ours\030\020 \001(\003\022#\n\033train_cost_milli_node_hour" + + "s\030\021 \001(\003\022\023\n\013stop_reason\030\005 \001(\t\022\022\n\nmodel_ty" + + "pe\030\007 \001(\t\022\020\n\010node_qps\030\r \001(\001\022\022\n\nnode_count" + + "\030\016 \001(\003\"\276\001\n!ImageObjectDetectionModelMeta" + + "data\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\022\023\n\013stop_reason\030\005 " + + "\001(\t\022%\n\035train_budget_milli_node_hours\030\006 \001" + + "(\003\022#\n\033train_cost_milli_node_hours\030\007 \001(\003\"" + + "@\n*ImageClassificationModelDeploymentMet" + + "adata\022\022\n\nnode_count\030\001 \001(\003\"A\n+ImageObject" + + "DetectionModelDeploymentMetadata\022\022\n\nnode" + + "_count\030\001 \001(\003B\266\001\n\032com.google.cloud.automl" + + ".v1B\nImageProtoP\001Z * Details of ImportData operation. *
* * Protobuf type {@code google.cloud.automl.v1.ImportDataOperationMetadata} */ -public final class ImportDataOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportDataOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImportDataOperationMetadata) ImportDataOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportDataOperationMetadata.newBuilder() to construct. private ImportDataOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportDataOperationMetadata() { - } + + private ImportDataOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportDataOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportDataOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private ImportDataOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Operations.internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImportDataOperationMetadata.class, com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ImportDataOperationMetadata.class, + com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImportDataOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImportDataOperationMetadata other = (com.google.cloud.automl.v1.ImportDataOperationMetadata) obj; + com.google.cloud.automl.v1.ImportDataOperationMetadata other = + (com.google.cloud.automl.v1.ImportDataOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImportDataOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.ImportDataOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ImportDataOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ImportDataOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ImportDataOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.ImportDataOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImportDataOperationMetadata) com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImportDataOperationMetadata.class, com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder.class); + com.google.cloud.automl.v1.ImportDataOperationMetadata.class, + com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.ImportDataOperationMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; } @java.lang.Override @@ -295,7 +323,8 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.ImportDataOperationMetadata buildPartial() { - com.google.cloud.automl.v1.ImportDataOperationMetadata result = new com.google.cloud.automl.v1.ImportDataOperationMetadata(this); + com.google.cloud.automl.v1.ImportDataOperationMetadata result = + new com.google.cloud.automl.v1.ImportDataOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +333,39 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImportDataOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.ImportDataOperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.ImportDataOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +373,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ImportDataOperationMetadata other) { - if (other == com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ImportDataOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ImportDataOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +404,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImportDataOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImportDataOperationMetadata) private static final com.google.cloud.automl.v1.ImportDataOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImportDataOperationMetadata(); } @@ -398,16 +430,16 @@ public static com.google.cloud.automl.v1.ImportDataOperationMetadata getDefaultI 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); - } - }; + 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; @@ -422,6 +454,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1.ImportDataOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadataOrBuilder.java new file mode 100644 index 000000000..ba71734e2 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface ImportDataOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImportDataOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java index 093521f0f..b1a9835f6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ImportDataRequest} */ -public final class ImportDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportDataRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ImportDataRequest) ImportDataRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportDataRequest.newBuilder() to construct. private ImportDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportDataRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportDataRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,66 +70,77 @@ private ImportDataRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: { - com.google.cloud.automl.v1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); + name_ = s; + break; } - inputConfig_ = input.readMessage(com.google.cloud.automl.v1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.automl.v1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImportDataRequest.class, com.google.cloud.automl.v1.ImportDataRequest.Builder.class); + com.google.cloud.automl.v1.ImportDataRequest.class, + com.google.cloud.automl.v1.ImportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Dataset name. Dataset must already exist. All imported
    * annotations and examples will be added.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -121,30 +149,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Dataset name. Dataset must already exist. All imported
    * annotations and examples will be added.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -155,12 +185,17 @@ public java.lang.String getName() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1.InputConfig inputConfig_; /** + * + * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -168,25 +203,36 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.automl.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.InputConfigOrBuilder getInputConfigOrBuilder() { @@ -194,6 +240,7 @@ public com.google.cloud.automl.v1.InputConfigOrBuilder getInputConfigOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -226,8 +272,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -237,19 +282,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ImportDataRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ImportDataRequest other = (com.google.cloud.automl.v1.ImportDataRequest) obj; + com.google.cloud.automl.v1.ImportDataRequest other = + (com.google.cloud.automl.v1.ImportDataRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,118 +317,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ImportDataRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ImportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImportDataRequest 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.v1.ImportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.ImportDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ImportDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ImportDataRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImportDataRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ImportDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.ImportDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ImportDataRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ImportDataRequest) com.google.cloud.automl.v1.ImportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ImportDataRequest.class, com.google.cloud.automl.v1.ImportDataRequest.Builder.class); + com.google.cloud.automl.v1.ImportDataRequest.class, + com.google.cloud.automl.v1.ImportDataRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.ImportDataRequest.newBuilder() @@ -392,16 +445,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ImportDataRequest_descriptor; } @java.lang.Override @@ -438,7 +490,8 @@ public com.google.cloud.automl.v1.ImportDataRequest build() { @java.lang.Override public com.google.cloud.automl.v1.ImportDataRequest buildPartial() { - com.google.cloud.automl.v1.ImportDataRequest result = new com.google.cloud.automl.v1.ImportDataRequest(this); + com.google.cloud.automl.v1.ImportDataRequest result = + new com.google.cloud.automl.v1.ImportDataRequest(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -453,38 +506,39 @@ public com.google.cloud.automl.v1.ImportDataRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ImportDataRequest) { - return mergeFrom((com.google.cloud.automl.v1.ImportDataRequest)other); + return mergeFrom((com.google.cloud.automl.v1.ImportDataRequest) other); } else { super.mergeFrom(other); return this; @@ -531,19 +585,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -552,21 +610,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -574,57 +635,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -632,42 +706,61 @@ public Builder setNameBytes( private com.google.cloud.automl.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.InputConfig, com.google.cloud.automl.v1.InputConfig.Builder, com.google.cloud.automl.v1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.automl.v1.InputConfig, + com.google.cloud.automl.v1.InputConfig.Builder, + com.google.cloud.automl.v1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.automl.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.automl.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.automl.v1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -683,15 +776,18 @@ public Builder setInputConfig(com.google.cloud.automl.v1.InputConfig value) { return this; } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInputConfig( - com.google.cloud.automl.v1.InputConfig.Builder builderForValue) { + public Builder setInputConfig(com.google.cloud.automl.v1.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); onChanged(); @@ -702,18 +798,24 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInputConfig(com.google.cloud.automl.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.automl.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -725,12 +827,16 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1.InputConfig value) { return this; } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -744,58 +850,74 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.automl.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.InputConfig, com.google.cloud.automl.v1.InputConfig.Builder, com.google.cloud.automl.v1.InputConfigOrBuilder> + com.google.cloud.automl.v1.InputConfig, + com.google.cloud.automl.v1.InputConfig.Builder, + com.google.cloud.automl.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.InputConfig, com.google.cloud.automl.v1.InputConfig.Builder, com.google.cloud.automl.v1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.InputConfig, + com.google.cloud.automl.v1.InputConfig.Builder, + com.google.cloud.automl.v1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +927,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ImportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ImportDataRequest) private static final com.google.cloud.automl.v1.ImportDataRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ImportDataRequest(); } @@ -819,16 +941,16 @@ public static com.google.cloud.automl.v1.ImportDataRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportDataRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportDataRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,6 +965,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ImportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequestOrBuilder.java new file mode 100644 index 000000000..5ad44d1f4 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ImportDataRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface ImportDataRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ImportDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Dataset name. Dataset must already exist. All imported
+   * annotations and examples will be added.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Dataset name. Dataset must already exist. All imported
+   * annotations and examples will be added.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputConfig field is set. + */ + boolean hasInputConfig(); + /** + * + * + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputConfig. + */ + com.google.cloud.automl.v1.InputConfig getInputConfig(); + /** + * + * + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * + * .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.automl.v1.InputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java index 3d720a46a..062c26564 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; /** + * + * *
  * Input configuration for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
  * The format of input depends on dataset_metadata the Dataset into which
@@ -480,30 +497,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.InputConfig}
  */
-public final class InputConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class InputConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.InputConfig)
     InputConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use InputConfig.newBuilder() to construct.
   private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private InputConfig() {
-  }
+
+  private InputConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new InputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private InputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -523,85 +539,91 @@ private InputConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null;
-            if (sourceCase_ == 1) {
-              subBuilder = ((com.google.cloud.automl.v1.GcsSource) source_).toBuilder();
+          case 10:
+            {
+              com.google.cloud.automl.v1.GcsSource.Builder subBuilder = null;
+              if (sourceCase_ == 1) {
+                subBuilder = ((com.google.cloud.automl.v1.GcsSource) source_).toBuilder();
+              }
+              source_ =
+                  input.readMessage(
+                      com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsSource) source_);
+                source_ = subBuilder.buildPartial();
+              }
+              sourceCase_ = 1;
+              break;
             }
-            source_ =
-                input.readMessage(com.google.cloud.automl.v1.GcsSource.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsSource) source_);
-              source_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                params_ =
+                    com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry params__ =
+                  input.readMessage(
+                      ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              params_.getMutableMap().put(params__.getKey(), params__.getValue());
+              break;
             }
-            sourceCase_ = 1;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              params_ = com.google.protobuf.MapField.newMapField(
-                  ParamsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1.Io
+        .internal_static_google_cloud_automl_v1_InputConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetParams();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable
+    return com.google.cloud.automl.v1.Io
+        .internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.InputConfig.class, com.google.cloud.automl.v1.InputConfig.Builder.class);
+            com.google.cloud.automl.v1.InputConfig.class,
+            com.google.cloud.automl.v1.InputConfig.Builder.class);
   }
 
   private int sourceCase_ = 0;
   private java.lang.Object source_;
+
   public enum SourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_SOURCE(1),
     SOURCE_NOT_SET(0);
     private final int value;
+
     private SourceCase(int value) {
       this.value = value;
     }
@@ -617,24 +639,28 @@ public static SourceCase valueOf(int value) {
 
     public static SourceCase forNumber(int value) {
       switch (value) {
-        case 1: return GCS_SOURCE;
-        case 0: return SOURCE_NOT_SET;
-        default: return null;
+        case 1:
+          return GCS_SOURCE;
+        case 0:
+          return SOURCE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SourceCase
-  getSourceCase() {
-    return SourceCase.forNumber(
-        sourceCase_);
+  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.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -642,6 +668,7 @@ public int getNumber() {
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -649,6 +676,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -656,16 +685,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.automl.v1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.automl.v1.GcsSource) source_; + return (com.google.cloud.automl.v1.GcsSource) source_; } return com.google.cloud.automl.v1.GcsSource.getDefaultInstance(); } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -677,30 +709,29 @@ public com.google.cloud.automl.v1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.automl.v1.GcsSource) source_;
+      return (com.google.cloud.automl.v1.GcsSource) source_;
     }
     return com.google.cloud.automl.v1.GcsSource.getDefaultInstance();
   }
 
   public static final int PARAMS_FIELD_NUMBER = 2;
+
   private static final class ParamsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.automl.v1.Io
+                .internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> params_;
-  private com.google.protobuf.MapField
-  internalGetParams() {
+
+  private com.google.protobuf.MapField params_;
+
+  private com.google.protobuf.MapField internalGetParams() {
     if (params_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          ParamsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry);
     }
     return params_;
   }
@@ -709,6 +740,8 @@ 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
@@ -723,22 +756,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 2;
    */
-
   @java.lang.Override
-  public boolean containsParams(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsParams(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetParams().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Override
   @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
@@ -754,11 +787,12 @@ public java.util.Map getParams() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
   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
@@ -774,16 +808,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
-  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();
+  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
@@ -799,12 +833,11 @@ public java.lang.String getParamsOrDefault(
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getParamsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetParams().getMap();
+  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();
     }
@@ -812,6 +845,7 @@ public java.lang.String getParamsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -823,17 +857,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.automl.v1.GcsSource) source_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetParams(),
-        ParamsDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 2);
     unknownFields.writeTo(output);
   }
 
@@ -844,18 +873,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.automl.v1.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__);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.automl.v1.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__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -865,20 +895,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.InputConfig)) {
       return super.equals(obj);
     }
     com.google.cloud.automl.v1.InputConfig other = (com.google.cloud.automl.v1.InputConfig) obj;
 
-    if (!internalGetParams().equals(
-        other.internalGetParams())) return false;
+    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;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -911,97 +939,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.InputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.InputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.InputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.InputConfig 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.v1.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.InputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.InputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.InputConfig parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
    * The format of input depends on dataset_metadata the Dataset into which
@@ -1478,43 +1513,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.InputConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.InputConfig)
       com.google.cloud.automl.v1.InputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_InputConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetParams();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableParams();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.InputConfig.class, com.google.cloud.automl.v1.InputConfig.Builder.class);
+              com.google.cloud.automl.v1.InputConfig.class,
+              com.google.cloud.automl.v1.InputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.InputConfig.newBuilder()
@@ -1522,16 +1557,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1542,9 +1576,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_InputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_InputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1563,7 +1597,8 @@ public com.google.cloud.automl.v1.InputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.InputConfig buildPartial() {
-      com.google.cloud.automl.v1.InputConfig result = new com.google.cloud.automl.v1.InputConfig(this);
+      com.google.cloud.automl.v1.InputConfig result =
+          new com.google.cloud.automl.v1.InputConfig(this);
       int from_bitField0_ = bitField0_;
       if (sourceCase_ == 1) {
         if (gcsSourceBuilder_ == null) {
@@ -1583,38 +1618,39 @@ public com.google.cloud.automl.v1.InputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.InputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1.InputConfig)other);
+        return mergeFrom((com.google.cloud.automl.v1.InputConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1623,16 +1659,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.automl.v1.InputConfig other) {
       if (other == com.google.cloud.automl.v1.InputConfig.getDefaultInstance()) return this;
-      internalGetMutableParams().mergeFrom(
-          other.internalGetParams());
+      internalGetMutableParams().mergeFrom(other.internalGetParams());
       switch (other.getSourceCase()) {
-        case GCS_SOURCE: {
-          mergeGcsSource(other.getGcsSource());
-          break;
-        }
-        case SOURCE_NOT_SET: {
-          break;
-        }
+        case GCS_SOURCE:
+          {
+            mergeGcsSource(other.getGcsSource());
+            break;
+          }
+        case SOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1662,12 +1699,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-    public SourceCase
-        getSourceCase() {
-      return SourceCase.forNumber(
-          sourceCase_);
+
+    public SourceCase getSourceCase() {
+      return SourceCase.forNumber(sourceCase_);
     }
 
     public Builder clearSource() {
@@ -1680,8 +1717,13 @@ public Builder clearSource() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> gcsSourceBuilder_;
+            com.google.cloud.automl.v1.GcsSource,
+            com.google.cloud.automl.v1.GcsSource.Builder,
+            com.google.cloud.automl.v1.GcsSourceOrBuilder>
+        gcsSourceBuilder_;
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1689,6 +1731,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1696,6 +1739,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1703,6 +1748,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -1720,6 +1766,8 @@ public com.google.cloud.automl.v1.GcsSource getGcsSource() { } } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1742,6 +1790,8 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1750,8 +1800,7 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) {
      *
      * .google.cloud.automl.v1.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(
-        com.google.cloud.automl.v1.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -1762,6 +1811,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1772,10 +1823,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.automl.v1.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.automl.v1.GcsSource.newBuilder((com.google.cloud.automl.v1.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_ != com.google.cloud.automl.v1.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.automl.v1.GcsSource.newBuilder(
+                      (com.google.cloud.automl.v1.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -1790,6 +1844,8 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1815,6 +1871,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1827,6 +1885,8 @@ public com.google.cloud.automl.v1.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1847,6 +1907,8 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -1856,40 +1918,43 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
      * .google.cloud.automl.v1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder> 
+            com.google.cloud.automl.v1.GcsSource,
+            com.google.cloud.automl.v1.GcsSource.Builder,
+            com.google.cloud.automl.v1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.automl.v1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.GcsSource, com.google.cloud.automl.v1.GcsSource.Builder, com.google.cloud.automl.v1.GcsSourceOrBuilder>(
-                (com.google.cloud.automl.v1.GcsSource) source_,
-                getParentForChildren(),
-                isClean());
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.automl.v1.GcsSource,
+                com.google.cloud.automl.v1.GcsSource.Builder,
+                com.google.cloud.automl.v1.GcsSourceOrBuilder>(
+                (com.google.cloud.automl.v1.GcsSource) source_, getParentForChildren(), isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return gcsSourceBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> params_;
-    private com.google.protobuf.MapField
-    internalGetParams() {
+    private com.google.protobuf.MapField params_;
+
+    private com.google.protobuf.MapField internalGetParams() {
       if (params_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            ParamsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry);
       }
       return params_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableParams() {
-      onChanged();;
+        internalGetMutableParams() {
+      onChanged();
+      ;
       if (params_ == null) {
-        params_ = com.google.protobuf.MapField.newMapField(
-            ParamsDefaultEntryHolder.defaultEntry);
+        params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry);
       }
       if (!params_.isMutable()) {
         params_ = params_.copy();
@@ -1901,6 +1966,8 @@ 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
@@ -1915,22 +1982,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 2;
      */
-
     @java.lang.Override
-    public boolean containsParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsParams(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetParams().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getParamsMap()} instead.
-     */
+    /** Use {@link #getParamsMap()} instead. */
     @java.lang.Override
     @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
@@ -1946,11 +2013,12 @@ public java.util.Map getParams() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
     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
@@ -1966,16 +2034,17 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
     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();
+        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
@@ -1991,12 +2060,11 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getParamsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetParams().getMap();
+    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();
       }
@@ -2004,11 +2072,12 @@ public java.lang.String getParamsOrThrow(
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap()
-          .clear();
+      internalGetMutableParams().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters describing the semantic of the
      * imported data, any string must be up to 25000
@@ -2023,23 +2092,21 @@ public Builder clearParams() {
      *
      * map<string, string> params = 2;
      */
-
-    public Builder removeParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableParams().getMutableMap()
-          .remove(key);
+    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.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableParams() {
+    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
@@ -2054,16 +2121,19 @@ public Builder removeParams(
      *
      * 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);
+    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
@@ -2078,16 +2148,13 @@ public Builder putParams(
      *
      * map<string, string> params = 2;
      */
-
-    public Builder putAllParams(
-        java.util.Map values) {
-      internalGetMutableParams().getMutableMap()
-          .putAll(values);
+    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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2097,12 +2164,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.InputConfig)
   private static final com.google.cloud.automl.v1.InputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.InputConfig();
   }
@@ -2111,16 +2178,16 @@ public static com.google.cloud.automl.v1.InputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public InputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new InputConfig(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public InputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new InputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2135,6 +2202,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java
index e01b9a642..9f92b2dbb 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/io.proto
 
 package com.google.cloud.automl.v1;
 
-public interface InputConfigOrBuilder extends
+public interface InputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The Google Cloud Storage location for the input content.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -15,10 +33,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location for the input content.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -26,10 +47,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.automl.v1.GcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location for the input content.
    * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
@@ -41,6 +65,8 @@ public interface InputConfigOrBuilder extends
   com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -57,6 +83,8 @@ public interface InputConfigOrBuilder extends
    */
   int getParamsCount();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -71,15 +99,13 @@ public interface InputConfigOrBuilder extends
    *
    * map<string, string> params = 2;
    */
-  boolean containsParams(
-      java.lang.String key);
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  boolean containsParams(java.lang.String key);
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getParams();
+  java.util.Map getParams();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -94,9 +120,10 @@ boolean containsParams(
    *
    * map<string, string> params = 2;
    */
-  java.util.Map
-  getParamsMap();
+  java.util.Map getParamsMap();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -111,11 +138,10 @@ boolean containsParams(
    *
    * map<string, string> params = 2;
    */
-
-  java.lang.String getParamsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  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
@@ -130,9 +156,7 @@ java.lang.String getParamsOrDefault(
    *
    * map<string, string> params = 2;
    */
-
-  java.lang.String getParamsOrThrow(
-      java.lang.String key);
+  java.lang.String getParamsOrThrow(java.lang.String key);
 
   public com.google.cloud.automl.v1.InputConfig.SourceCase getSourceCase();
 }
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java
new file mode 100644
index 000000000..638bf27b6
--- /dev/null
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Io.java
@@ -0,0 +1,210 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1/io.proto
+
+package com.google.cloud.automl.v1;
+
+public final class Io {
+  private Io() {}
+
+  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_v1_InputConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_InputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_InputConfig_ParamsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_BatchPredictInputConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictInputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_DocumentInputConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_DocumentInputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_OutputConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictOutputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_GcsSource_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_GcsSource_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_GcsDestination_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_GcsDestination_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\037google/cloud/automl/v1/io.proto\022\026googl"
+          + "e.cloud.automl.v1\032\037google/api/field_beha"
+          + "vior.proto\032\034google/api/annotations.proto"
+          + "\"\300\001\n\013InputConfig\0227\n\ngcs_source\030\001 \001(\0132!.g"
+          + "oogle.cloud.automl.v1.GcsSourceH\000\022?\n\006par"
+          + "ams\030\002 \003(\0132/.google.cloud.automl.v1.Input"
+          + "Config.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\"a\n\027B"
+          + "atchPredictInputConfig\022<\n\ngcs_source\030\001 \001"
+          + "(\0132!.google.cloud.automl.v1.GcsSourceB\003\340"
+          + "A\002H\000B\010\n\006source\"L\n\023DocumentInputConfig\0225\n"
+          + "\ngcs_source\030\001 \001(\0132!.google.cloud.automl."
+          + "v1.GcsSource\"e\n\014OutputConfig\022F\n\017gcs_dest"
+          + "ination\030\001 \001(\0132&.google.cloud.automl.v1.G"
+          + "csDestinationB\003\340A\002H\000B\r\n\013destination\"q\n\030B"
+          + "atchPredictOutputConfig\022F\n\017gcs_destinati"
+          + "on\030\001 \001(\0132&.google.cloud.automl.v1.GcsDes"
+          + "tinationB\003\340A\002H\000B\r\n\013destination\"\202\002\n\027Model"
+          + "ExportOutputConfig\022F\n\017gcs_destination\030\001 "
+          + "\001(\0132&.google.cloud.automl.v1.GcsDestinat"
+          + "ionB\003\340A\002H\000\022\024\n\014model_format\030\004 \001(\t\022K\n\006para"
+          + "ms\030\002 \003(\0132;.google.cloud.automl.v1.ModelE"
+          + "xportOutputConfig.ParamsEntry\032-\n\013ParamsE"
+          + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\r\n\013"
+          + "destination\"$\n\tGcsSource\022\027\n\ninput_uris\030\001"
+          + " \003(\tB\003\340A\002\"0\n\016GcsDestination\022\036\n\021output_ur"
+          + "i_prefix\030\001 \001(\tB\003\340A\002B\252\001\n\032com.google.cloud"
+          + ".automl.v1P\001Z
  * Request message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListDatasetsRequest} */ -public final class ListDatasetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDatasetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListDatasetsRequest) ListDatasetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDatasetsRequest.newBuilder() to construct. private ListDatasetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDatasetsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListDatasetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatasetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDatasetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,69 +72,79 @@ private ListDatasetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 32: { + parent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 50: { - 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; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListDatasetsRequest.class, com.google.cloud.automl.v1.ListDatasetsRequest.Builder.class); + com.google.cloud.automl.v1.ListDatasetsRequest.class, + com.google.cloud.automl.v1.ListDatasetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -126,29 +153,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -159,6 +188,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
@@ -169,6 +200,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -177,14 +209,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
@@ -195,16 +228,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -215,12 +247,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * Requested page size. Server may return fewer results than requested.
    * If unspecified, server will pick a default size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -231,6 +266,8 @@ public int getPageSize() { 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 via
@@ -239,6 +276,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -247,14 +285,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 via
@@ -263,16 +302,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -281,6 +319,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -292,8 +331,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -322,8 +360,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -336,21 +373,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListDatasetsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListDatasetsRequest other = (com.google.cloud.automl.v1.ListDatasetsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.automl.v1.ListDatasetsRequest other = + (com.google.cloud.automl.v1.ListDatasetsRequest) obj; + + if (!getParent().equals(other.getParent())) 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; } @@ -375,118 +409,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListDatasetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListDatasetsRequest 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.v1.ListDatasetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListDatasetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ListDatasetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListDatasetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListDatasetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.ListDatasetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListDatasetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListDatasetsRequest) com.google.cloud.automl.v1.ListDatasetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListDatasetsRequest.class, com.google.cloud.automl.v1.ListDatasetsRequest.Builder.class); + com.google.cloud.automl.v1.ListDatasetsRequest.class, + com.google.cloud.automl.v1.ListDatasetsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.ListDatasetsRequest.newBuilder() @@ -494,16 +537,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -519,9 +561,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListDatasetsRequest_descriptor; } @java.lang.Override @@ -540,7 +582,8 @@ public com.google.cloud.automl.v1.ListDatasetsRequest build() { @java.lang.Override public com.google.cloud.automl.v1.ListDatasetsRequest buildPartial() { - com.google.cloud.automl.v1.ListDatasetsRequest result = new com.google.cloud.automl.v1.ListDatasetsRequest(this); + com.google.cloud.automl.v1.ListDatasetsRequest result = + new com.google.cloud.automl.v1.ListDatasetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -553,38 +596,39 @@ public com.google.cloud.automl.v1.ListDatasetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListDatasetsRequest) { - return mergeFrom((com.google.cloud.automl.v1.ListDatasetsRequest)other); + return mergeFrom((com.google.cloud.automl.v1.ListDatasetsRequest) other); } else { super.mergeFrom(other); return this; @@ -639,18 +683,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -659,20 +707,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -680,54 +731,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -735,6 +799,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
@@ -745,13 +811,13 @@ public Builder setParentBytes(
      * 
* * string filter = 3; + * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -760,6 +826,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
@@ -770,15 +838,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -786,6 +853,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
@@ -796,20 +865,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
@@ -820,15 +891,18 @@ public Builder setFilter(
      * 
* * string filter = 3; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
@@ -839,29 +913,32 @@ public Builder clearFilter() {
      * 
* * string filter = 3; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -869,32 +946,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -902,6 +985,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -910,13 +995,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -925,6 +1010,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -933,15 +1020,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -949,6 +1035,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -957,20 +1045,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -979,15 +1069,18 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -996,23 +1089,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1022,12 +1115,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListDatasetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListDatasetsRequest) private static final com.google.cloud.automl.v1.ListDatasetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListDatasetsRequest(); } @@ -1036,16 +1129,16 @@ public static com.google.cloud.automl.v1.ListDatasetsRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDatasetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,6 +1153,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ListDatasetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java index 7172d610d..bd13f7c29 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListDatasetsRequestOrBuilder extends +public interface ListDatasetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListDatasetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
@@ -38,10 +65,13 @@ public interface ListDatasetsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
@@ -52,23 +82,28 @@ public interface ListDatasetsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Requested page size. Server may return fewer results than requested.
    * If unspecified, server will pick a default size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -77,10 +112,13 @@ public interface ListDatasetsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -89,8 +127,8 @@ public interface ListDatasetsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java index 1f6b20e95..267a4d6bf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Response message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListDatasetsResponse} */ -public final class ListDatasetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDatasetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListDatasetsResponse) ListDatasetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDatasetsResponse.newBuilder() to construct. private ListDatasetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDatasetsResponse() { datasets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListDatasetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatasetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDatasetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListDatasetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - datasets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + datasets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + datasets_.add( + input.readMessage( + com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry)); + break; } - datasets_.add( - input.readMessage(com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { datasets_ = java.util.Collections.unmodifiableList(datasets_); @@ -92,22 +111,27 @@ private ListDatasetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListDatasetsResponse.class, com.google.cloud.automl.v1.ListDatasetsResponse.Builder.class); + com.google.cloud.automl.v1.ListDatasetsResponse.class, + com.google.cloud.automl.v1.ListDatasetsResponse.Builder.class); } public static final int DATASETS_FIELD_NUMBER = 1; private java.util.List datasets_; /** + * + * *
    * The datasets read.
    * 
@@ -119,6 +143,8 @@ public java.util.List getDatasetsList() { return datasets_; } /** + * + * *
    * The datasets read.
    * 
@@ -126,11 +152,13 @@ public java.util.List getDatasetsList() { * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDatasetsOrBuilderList() { return datasets_; } /** + * + * *
    * The datasets read.
    * 
@@ -142,6 +170,8 @@ public int getDatasetsCount() { return datasets_.size(); } /** + * + * *
    * The datasets read.
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.automl.v1.Dataset getDatasets(int index) { return datasets_.get(index); } /** + * + * *
    * The datasets read.
    * 
@@ -160,20 +192,22 @@ public com.google.cloud.automl.v1.Dataset getDatasets(int index) { * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ @java.lang.Override - public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder( - int index) { + public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder(int index) { return datasets_.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 [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,30 +216,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,6 +248,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < datasets_.size(); i++) { output.writeMessage(1, datasets_.get(i)); } @@ -243,8 +277,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < datasets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, datasets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, datasets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +290,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListDatasetsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListDatasetsResponse other = (com.google.cloud.automl.v1.ListDatasetsResponse) obj; + com.google.cloud.automl.v1.ListDatasetsResponse other = + (com.google.cloud.automl.v1.ListDatasetsResponse) obj; - if (!getDatasetsList() - .equals(other.getDatasetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDatasetsList().equals(other.getDatasetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,118 +322,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListDatasetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListDatasetsResponse 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.v1.ListDatasetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListDatasetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ListDatasetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListDatasetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListDatasetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.ListDatasetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListDatasetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListDatasetsResponse) com.google.cloud.automl.v1.ListDatasetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListDatasetsResponse.class, com.google.cloud.automl.v1.ListDatasetsResponse.Builder.class); + com.google.cloud.automl.v1.ListDatasetsResponse.class, + com.google.cloud.automl.v1.ListDatasetsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1.ListDatasetsResponse.newBuilder() @@ -409,17 +450,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDatasetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListDatasetsResponse_descriptor; } @java.lang.Override @@ -456,7 +497,8 @@ public com.google.cloud.automl.v1.ListDatasetsResponse build() { @java.lang.Override public com.google.cloud.automl.v1.ListDatasetsResponse buildPartial() { - com.google.cloud.automl.v1.ListDatasetsResponse result = new com.google.cloud.automl.v1.ListDatasetsResponse(this); + com.google.cloud.automl.v1.ListDatasetsResponse result = + new com.google.cloud.automl.v1.ListDatasetsResponse(this); int from_bitField0_ = bitField0_; if (datasetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +518,39 @@ public com.google.cloud.automl.v1.ListDatasetsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListDatasetsResponse) { - return mergeFrom((com.google.cloud.automl.v1.ListDatasetsResponse)other); + return mergeFrom((com.google.cloud.automl.v1.ListDatasetsResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +558,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ListDatasetsResponse other) { - if (other == com.google.cloud.automl.v1.ListDatasetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.ListDatasetsResponse.getDefaultInstance()) + return this; if (datasetsBuilder_ == null) { if (!other.datasets_.isEmpty()) { if (datasets_.isEmpty()) { @@ -534,9 +578,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ListDatasetsResponse other) datasetsBuilder_ = null; datasets_ = other.datasets_; bitField0_ = (bitField0_ & ~0x00000001); - datasetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDatasetsFieldBuilder() : null; + datasetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDatasetsFieldBuilder() + : null; } else { datasetsBuilder_.addAllMessages(other.datasets_); } @@ -574,21 +619,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List datasets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDatasetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { datasets_ = new java.util.ArrayList(datasets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> datasetsBuilder_; + com.google.cloud.automl.v1.Dataset, + com.google.cloud.automl.v1.Dataset.Builder, + com.google.cloud.automl.v1.DatasetOrBuilder> + datasetsBuilder_; /** + * + * *
      * The datasets read.
      * 
@@ -603,6 +655,8 @@ public java.util.List getDatasetsList() { } } /** + * + * *
      * The datasets read.
      * 
@@ -617,6 +671,8 @@ public int getDatasetsCount() { } } /** + * + * *
      * The datasets read.
      * 
@@ -631,14 +687,15 @@ public com.google.cloud.automl.v1.Dataset getDatasets(int index) { } } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public Builder setDatasets( - int index, com.google.cloud.automl.v1.Dataset value) { + public Builder setDatasets(int index, com.google.cloud.automl.v1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -652,6 +709,8 @@ public Builder setDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
@@ -670,6 +729,8 @@ public Builder setDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
@@ -690,14 +751,15 @@ public Builder addDatasets(com.google.cloud.automl.v1.Dataset value) { return this; } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public Builder addDatasets( - int index, com.google.cloud.automl.v1.Dataset value) { + public Builder addDatasets(int index, com.google.cloud.automl.v1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,14 +773,15 @@ public Builder addDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public Builder addDatasets( - com.google.cloud.automl.v1.Dataset.Builder builderForValue) { + public Builder addDatasets(com.google.cloud.automl.v1.Dataset.Builder builderForValue) { if (datasetsBuilder_ == null) { ensureDatasetsIsMutable(); datasets_.add(builderForValue.build()); @@ -729,6 +792,8 @@ public Builder addDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
@@ -747,6 +812,8 @@ public Builder addDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
@@ -757,8 +824,7 @@ public Builder addAllDatasets( java.lang.Iterable values) { if (datasetsBuilder_ == null) { ensureDatasetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, datasets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, datasets_); onChanged(); } else { datasetsBuilder_.addAllMessages(values); @@ -766,6 +832,8 @@ public Builder addAllDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
@@ -783,6 +851,8 @@ public Builder clearDatasets() { return this; } /** + * + * *
      * The datasets read.
      * 
@@ -800,39 +870,44 @@ public Builder removeDatasets(int index) { return this; } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1.Dataset.Builder getDatasetsBuilder( - int index) { + public com.google.cloud.automl.v1.Dataset.Builder getDatasetsBuilder(int index) { return getDatasetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder( - int index) { + public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder(int index) { if (datasetsBuilder_ == null) { - return datasets_.get(index); } else { + return datasets_.get(index); + } else { return datasetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public java.util.List - getDatasetsOrBuilderList() { + public java.util.List + getDatasetsOrBuilderList() { if (datasetsBuilder_ != null) { return datasetsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +915,8 @@ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder( } } /** + * + * *
      * The datasets read.
      * 
@@ -847,42 +924,47 @@ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder( * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ public com.google.cloud.automl.v1.Dataset.Builder addDatasetsBuilder() { - return getDatasetsFieldBuilder().addBuilder( - com.google.cloud.automl.v1.Dataset.getDefaultInstance()); + return getDatasetsFieldBuilder() + .addBuilder(com.google.cloud.automl.v1.Dataset.getDefaultInstance()); } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1.Dataset.Builder addDatasetsBuilder( - int index) { - return getDatasetsFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1.Dataset.getDefaultInstance()); + public com.google.cloud.automl.v1.Dataset.Builder addDatasetsBuilder(int index) { + return getDatasetsFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1.Dataset.getDefaultInstance()); } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - public java.util.List - getDatasetsBuilderList() { + public java.util.List getDatasetsBuilderList() { return getDatasetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> + com.google.cloud.automl.v1.Dataset, + com.google.cloud.automl.v1.Dataset.Builder, + com.google.cloud.automl.v1.DatasetOrBuilder> getDatasetsFieldBuilder() { if (datasetsBuilder_ == null) { - datasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder>( - datasets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + datasetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.Dataset, + com.google.cloud.automl.v1.Dataset.Builder, + com.google.cloud.automl.v1.DatasetOrBuilder>( + datasets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); datasets_ = null; } return datasetsBuilder_; @@ -890,19 +972,21 @@ public com.google.cloud.automl.v1.Dataset.Builder addDatasetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -911,21 +995,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -933,64 +1018,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListDatasetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListDatasetsResponse) private static final com.google.cloud.automl.v1.ListDatasetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListDatasetsResponse(); } @@ -1014,16 +1106,16 @@ public static com.google.cloud.automl.v1.ListDatasetsResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDatasetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1130,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ListDatasetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java index 438c807d1..04048ce43 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListDatasetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListDatasetsResponseOrBuilder extends +public interface ListDatasetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListDatasetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - java.util.List - getDatasetsList(); + java.util.List getDatasetsList(); /** + * + * *
    * The datasets read.
    * 
@@ -25,6 +44,8 @@ public interface ListDatasetsResponseOrBuilder extends */ com.google.cloud.automl.v1.Dataset getDatasets(int index); /** + * + * *
    * The datasets read.
    * 
@@ -33,43 +54,50 @@ public interface ListDatasetsResponseOrBuilder extends */ int getDatasetsCount(); /** + * + * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - java.util.List - getDatasetsOrBuilderList(); + java.util.List getDatasetsOrBuilderList(); /** + * + * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1.Dataset datasets = 1; */ - com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder( - int index); + com.google.cloud.automl.v1.DatasetOrBuilder getDatasetsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java index 3849bc9d7..a046f6c20 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelEvaluationsRequest} */ -public final class ListModelEvaluationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListModelEvaluationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListModelEvaluationsRequest) ListModelEvaluationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListModelEvaluationsRequest.newBuilder() to construct. private ListModelEvaluationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListModelEvaluationsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListModelEvaluationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListModelEvaluationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListModelEvaluationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,71 +72,81 @@ private ListModelEvaluationsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 32: { + parent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 50: { - 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; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, com.google.cloud.automl.v1.ListModelEvaluationsRequest.Builder.class); + com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, + com.google.cloud.automl.v1.ListModelEvaluationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -128,31 +155,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -163,6 +192,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * Required. An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -175,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -183,14 +215,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Required. An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -203,16 +236,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -223,11 +255,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * Requested page size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -238,6 +273,8 @@ public int getPageSize() { 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 via
@@ -246,6 +283,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -254,14 +292,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 via
@@ -270,16 +309,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -288,6 +326,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,8 +338,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -329,8 +367,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -343,21 +380,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListModelEvaluationsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListModelEvaluationsRequest other = (com.google.cloud.automl.v1.ListModelEvaluationsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.automl.v1.ListModelEvaluationsRequest other = + (com.google.cloud.automl.v1.ListModelEvaluationsRequest) obj; + + if (!getParent().equals(other.getParent())) 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; } @@ -383,117 +417,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListModelEvaluationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest 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.v1.ListModelEvaluationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelEvaluationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ListModelEvaluationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ListModelEvaluationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelEvaluationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListModelEvaluationsRequest) com.google.cloud.automl.v1.ListModelEvaluationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, com.google.cloud.automl.v1.ListModelEvaluationsRequest.Builder.class); + com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, + com.google.cloud.automl.v1.ListModelEvaluationsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.ListModelEvaluationsRequest.newBuilder() @@ -501,16 +545,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -526,9 +569,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override @@ -547,7 +590,8 @@ public com.google.cloud.automl.v1.ListModelEvaluationsRequest build() { @java.lang.Override public com.google.cloud.automl.v1.ListModelEvaluationsRequest buildPartial() { - com.google.cloud.automl.v1.ListModelEvaluationsRequest result = new com.google.cloud.automl.v1.ListModelEvaluationsRequest(this); + com.google.cloud.automl.v1.ListModelEvaluationsRequest result = + new com.google.cloud.automl.v1.ListModelEvaluationsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -560,38 +604,39 @@ public com.google.cloud.automl.v1.ListModelEvaluationsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListModelEvaluationsRequest) { - return mergeFrom((com.google.cloud.automl.v1.ListModelEvaluationsRequest)other); + return mergeFrom((com.google.cloud.automl.v1.ListModelEvaluationsRequest) other); } else { super.mergeFrom(other); return this; @@ -599,7 +644,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ListModelEvaluationsRequest other) { - if (other == com.google.cloud.automl.v1.ListModelEvaluationsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.ListModelEvaluationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -634,7 +680,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ListModelEvaluationsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ListModelEvaluationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -646,20 +693,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -668,22 +719,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -691,60 +745,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -752,6 +819,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -764,13 +833,13 @@ public Builder setParentBytes(
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -779,6 +848,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -791,15 +862,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -807,6 +877,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -819,20 +891,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Required. An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -845,15 +919,18 @@ public Builder setFilter(
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Required. An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -866,28 +943,31 @@ public Builder clearFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -895,30 +975,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -926,6 +1012,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -934,13 +1022,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -949,6 +1037,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -957,15 +1047,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -973,6 +1062,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -981,20 +1072,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1003,15 +1096,18 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1020,23 +1116,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1046,12 +1142,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListModelEvaluationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListModelEvaluationsRequest) private static final com.google.cloud.automl.v1.ListModelEvaluationsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListModelEvaluationsRequest(); } @@ -1060,16 +1156,16 @@ public static com.google.cloud.automl.v1.ListModelEvaluationsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelEvaluationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelEvaluationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelEvaluationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelEvaluationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1084,6 +1180,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1.ListModelEvaluationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java index 288df54fa..9a12d5b14 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListModelEvaluationsRequestOrBuilder extends +public interface ListModelEvaluationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListModelEvaluationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -44,10 +71,13 @@ public interface ListModelEvaluationsRequestOrBuilder extends
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Required. An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -60,22 +90,27 @@ public interface ListModelEvaluationsRequestOrBuilder extends
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Requested page size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
@@ -84,10 +119,13 @@ public interface ListModelEvaluationsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
@@ -96,8 +134,8 @@ public interface ListModelEvaluationsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java index 95a9578cd..5e0c1713b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelEvaluationsResponse} */ -public final class ListModelEvaluationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListModelEvaluationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListModelEvaluationsResponse) ListModelEvaluationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListModelEvaluationsResponse.newBuilder() to construct. private ListModelEvaluationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListModelEvaluationsResponse() { modelEvaluation_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListModelEvaluationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListModelEvaluationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListModelEvaluationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,38 @@ private ListModelEvaluationsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - modelEvaluation_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + modelEvaluation_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + modelEvaluation_.add( + input.readMessage( + com.google.cloud.automl.v1.ModelEvaluation.parser(), extensionRegistry)); + break; } - modelEvaluation_.add( - input.readMessage(com.google.cloud.automl.v1.ModelEvaluation.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { modelEvaluation_ = java.util.Collections.unmodifiableList(modelEvaluation_); @@ -92,22 +112,27 @@ private ListModelEvaluationsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, com.google.cloud.automl.v1.ListModelEvaluationsResponse.Builder.class); + com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, + com.google.cloud.automl.v1.ListModelEvaluationsResponse.Builder.class); } public static final int MODEL_EVALUATION_FIELD_NUMBER = 1; private java.util.List modelEvaluation_; /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -119,6 +144,8 @@ public java.util.List getModelEvalua return modelEvaluation_; } /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -126,11 +153,13 @@ public java.util.List getModelEvalua * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ @java.lang.Override - public java.util.List + public java.util.List getModelEvaluationOrBuilderList() { return modelEvaluation_; } /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -142,6 +171,8 @@ public int getModelEvaluationCount() { return modelEvaluation_.size(); } /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -153,6 +184,8 @@ public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation(int index) return modelEvaluation_.get(index); } /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -168,6 +201,8 @@ public com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrB 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 the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -175,6 +210,7 @@ public com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrB
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +219,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -198,16 +235,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +252,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < modelEvaluation_.size(); i++) { output.writeMessage(1, modelEvaluation_.get(i)); } @@ -245,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < modelEvaluation_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, modelEvaluation_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, modelEvaluation_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +294,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListModelEvaluationsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListModelEvaluationsResponse other = (com.google.cloud.automl.v1.ListModelEvaluationsResponse) obj; + com.google.cloud.automl.v1.ListModelEvaluationsResponse other = + (com.google.cloud.automl.v1.ListModelEvaluationsResponse) obj; - if (!getModelEvaluationList() - .equals(other.getModelEvaluationList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getModelEvaluationList().equals(other.getModelEvaluationList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +327,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListModelEvaluationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse 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.v1.ListModelEvaluationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelEvaluationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.ListModelEvaluationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.ListModelEvaluationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelEvaluationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListModelEvaluationsResponse) com.google.cloud.automl.v1.ListModelEvaluationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, com.google.cloud.automl.v1.ListModelEvaluationsResponse.Builder.class); + com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, + com.google.cloud.automl.v1.ListModelEvaluationsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1.ListModelEvaluationsResponse.newBuilder() @@ -411,17 +455,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getModelEvaluationFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override @@ -458,7 +502,8 @@ public com.google.cloud.automl.v1.ListModelEvaluationsResponse build() { @java.lang.Override public com.google.cloud.automl.v1.ListModelEvaluationsResponse buildPartial() { - com.google.cloud.automl.v1.ListModelEvaluationsResponse result = new com.google.cloud.automl.v1.ListModelEvaluationsResponse(this); + com.google.cloud.automl.v1.ListModelEvaluationsResponse result = + new com.google.cloud.automl.v1.ListModelEvaluationsResponse(this); int from_bitField0_ = bitField0_; if (modelEvaluationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +523,39 @@ public com.google.cloud.automl.v1.ListModelEvaluationsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListModelEvaluationsResponse) { - return mergeFrom((com.google.cloud.automl.v1.ListModelEvaluationsResponse)other); + return mergeFrom((com.google.cloud.automl.v1.ListModelEvaluationsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +563,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ListModelEvaluationsResponse other) { - if (other == com.google.cloud.automl.v1.ListModelEvaluationsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.ListModelEvaluationsResponse.getDefaultInstance()) + return this; if (modelEvaluationBuilder_ == null) { if (!other.modelEvaluation_.isEmpty()) { if (modelEvaluation_.isEmpty()) { @@ -536,9 +583,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ListModelEvaluationsResponse modelEvaluationBuilder_ = null; modelEvaluation_ = other.modelEvaluation_; bitField0_ = (bitField0_ & ~0x00000001); - modelEvaluationBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getModelEvaluationFieldBuilder() : null; + modelEvaluationBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getModelEvaluationFieldBuilder() + : null; } else { modelEvaluationBuilder_.addAllMessages(other.modelEvaluation_); } @@ -567,7 +615,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ListModelEvaluationsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ListModelEvaluationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +625,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List modelEvaluation_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureModelEvaluationIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - modelEvaluation_ = new java.util.ArrayList(modelEvaluation_); + modelEvaluation_ = + new java.util.ArrayList(modelEvaluation_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ModelEvaluation, com.google.cloud.automl.v1.ModelEvaluation.Builder, com.google.cloud.automl.v1.ModelEvaluationOrBuilder> modelEvaluationBuilder_; + com.google.cloud.automl.v1.ModelEvaluation, + com.google.cloud.automl.v1.ModelEvaluation.Builder, + com.google.cloud.automl.v1.ModelEvaluationOrBuilder> + modelEvaluationBuilder_; /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -605,6 +662,8 @@ public java.util.List getModelEvalua } } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -619,6 +678,8 @@ public int getModelEvaluationCount() { } } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -633,14 +694,15 @@ public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation(int index) } } /** + * + * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public Builder setModelEvaluation( - int index, com.google.cloud.automl.v1.ModelEvaluation value) { + public Builder setModelEvaluation(int index, com.google.cloud.automl.v1.ModelEvaluation value) { if (modelEvaluationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +716,8 @@ public Builder setModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -672,6 +736,8 @@ public Builder setModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -692,14 +758,15 @@ public Builder addModelEvaluation(com.google.cloud.automl.v1.ModelEvaluation val return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public Builder addModelEvaluation( - int index, com.google.cloud.automl.v1.ModelEvaluation value) { + public Builder addModelEvaluation(int index, com.google.cloud.automl.v1.ModelEvaluation value) { if (modelEvaluationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,6 +780,8 @@ public Builder addModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -731,6 +800,8 @@ public Builder addModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -749,6 +820,8 @@ public Builder addModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -759,8 +832,7 @@ public Builder addAllModelEvaluation( java.lang.Iterable values) { if (modelEvaluationBuilder_ == null) { ensureModelEvaluationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, modelEvaluation_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modelEvaluation_); onChanged(); } else { modelEvaluationBuilder_.addAllMessages(values); @@ -768,6 +840,8 @@ public Builder addAllModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -785,6 +859,8 @@ public Builder clearModelEvaluation() { return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -802,17 +878,20 @@ public Builder removeModelEvaluation(int index) { return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public com.google.cloud.automl.v1.ModelEvaluation.Builder getModelEvaluationBuilder( - int index) { + public com.google.cloud.automl.v1.ModelEvaluation.Builder getModelEvaluationBuilder(int index) { return getModelEvaluationFieldBuilder().getBuilder(index); } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -822,19 +901,22 @@ public com.google.cloud.automl.v1.ModelEvaluation.Builder getModelEvaluationBuil public com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder( int index) { if (modelEvaluationBuilder_ == null) { - return modelEvaluation_.get(index); } else { + return modelEvaluation_.get(index); + } else { return modelEvaluationBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public java.util.List - getModelEvaluationOrBuilderList() { + public java.util.List + getModelEvaluationOrBuilderList() { if (modelEvaluationBuilder_ != null) { return modelEvaluationBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +924,8 @@ public com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrB } } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -849,38 +933,47 @@ public com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrB * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ public com.google.cloud.automl.v1.ModelEvaluation.Builder addModelEvaluationBuilder() { - return getModelEvaluationFieldBuilder().addBuilder( - com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance()); + return getModelEvaluationFieldBuilder() + .addBuilder(com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance()); } /** + * + * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public com.google.cloud.automl.v1.ModelEvaluation.Builder addModelEvaluationBuilder( - int index) { - return getModelEvaluationFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance()); + public com.google.cloud.automl.v1.ModelEvaluation.Builder addModelEvaluationBuilder(int index) { + return getModelEvaluationFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance()); } /** + * + * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - public java.util.List - getModelEvaluationBuilderList() { + public java.util.List + getModelEvaluationBuilderList() { return getModelEvaluationFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ModelEvaluation, com.google.cloud.automl.v1.ModelEvaluation.Builder, com.google.cloud.automl.v1.ModelEvaluationOrBuilder> + com.google.cloud.automl.v1.ModelEvaluation, + com.google.cloud.automl.v1.ModelEvaluation.Builder, + com.google.cloud.automl.v1.ModelEvaluationOrBuilder> getModelEvaluationFieldBuilder() { if (modelEvaluationBuilder_ == null) { - modelEvaluationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.ModelEvaluation, com.google.cloud.automl.v1.ModelEvaluation.Builder, com.google.cloud.automl.v1.ModelEvaluationOrBuilder>( + modelEvaluationBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.ModelEvaluation, + com.google.cloud.automl.v1.ModelEvaluation.Builder, + com.google.cloud.automl.v1.ModelEvaluationOrBuilder>( modelEvaluation_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -892,6 +985,8 @@ public com.google.cloud.automl.v1.ModelEvaluation.Builder addModelEvaluationBuil private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -899,13 +994,13 @@ public com.google.cloud.automl.v1.ModelEvaluation.Builder addModelEvaluationBuil
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -914,6 +1009,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -921,15 +1018,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -937,6 +1033,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -944,20 +1042,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -965,15 +1065,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -981,23 +1084,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,12 +1110,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListModelEvaluationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListModelEvaluationsResponse) private static final com.google.cloud.automl.v1.ListModelEvaluationsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListModelEvaluationsResponse(); } @@ -1021,16 +1124,16 @@ public static com.google.cloud.automl.v1.ListModelEvaluationsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelEvaluationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelEvaluationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelEvaluationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelEvaluationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1148,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.ListModelEvaluationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java index 339718202..6c7601bd2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelEvaluationsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListModelEvaluationsResponseOrBuilder extends +public interface ListModelEvaluationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListModelEvaluationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - java.util.List - getModelEvaluationList(); + java.util.List getModelEvaluationList(); /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -25,6 +44,8 @@ public interface ListModelEvaluationsResponseOrBuilder extends */ com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation(int index); /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -33,25 +54,30 @@ public interface ListModelEvaluationsResponseOrBuilder extends */ int getModelEvaluationCount(); /** + * + * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - java.util.List + java.util.List getModelEvaluationOrBuilderList(); /** + * + * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; */ - com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder( - int index); + com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -59,10 +85,13 @@ com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
@@ -70,8 +99,8 @@ com.google.cloud.automl.v1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java index c54ae19ab..51dc58a5a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelsRequest} */ -public final class ListModelsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListModelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListModelsRequest) ListModelsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListModelsRequest.newBuilder() to construct. private ListModelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListModelsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListModelsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListModelsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListModelsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,69 +72,79 @@ private ListModelsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 32: { + parent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 50: { - 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; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelsRequest.class, com.google.cloud.automl.v1.ListModelsRequest.Builder.class); + com.google.cloud.automl.v1.ListModelsRequest.class, + com.google.cloud.automl.v1.ListModelsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -126,29 +153,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -159,6 +188,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
@@ -170,6 +201,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -178,14 +210,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
@@ -197,16 +230,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -217,11 +249,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * Requested page size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -232,6 +267,8 @@ public int getPageSize() { 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 via
@@ -240,6 +277,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -248,14 +286,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 via
@@ -264,16 +303,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -282,6 +320,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +332,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -323,8 +361,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -337,21 +374,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListModelsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListModelsRequest other = (com.google.cloud.automl.v1.ListModelsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.automl.v1.ListModelsRequest other = + (com.google.cloud.automl.v1.ListModelsRequest) obj; + + if (!getParent().equals(other.getParent())) 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; } @@ -376,118 +410,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ListModelsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListModelsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelsRequest 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.v1.ListModelsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.ListModelsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ListModelsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.ListModelsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListModelsRequest) com.google.cloud.automl.v1.ListModelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelsRequest.class, com.google.cloud.automl.v1.ListModelsRequest.Builder.class); + com.google.cloud.automl.v1.ListModelsRequest.class, + com.google.cloud.automl.v1.ListModelsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.ListModelsRequest.newBuilder() @@ -495,16 +538,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +562,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelsRequest_descriptor; } @java.lang.Override @@ -541,7 +583,8 @@ public com.google.cloud.automl.v1.ListModelsRequest build() { @java.lang.Override public com.google.cloud.automl.v1.ListModelsRequest buildPartial() { - com.google.cloud.automl.v1.ListModelsRequest result = new com.google.cloud.automl.v1.ListModelsRequest(this); + com.google.cloud.automl.v1.ListModelsRequest result = + new com.google.cloud.automl.v1.ListModelsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -554,38 +597,39 @@ public com.google.cloud.automl.v1.ListModelsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListModelsRequest) { - return mergeFrom((com.google.cloud.automl.v1.ListModelsRequest)other); + return mergeFrom((com.google.cloud.automl.v1.ListModelsRequest) other); } else { super.mergeFrom(other); return this; @@ -640,18 +684,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -660,20 +708,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -681,54 +732,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -736,6 +800,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
@@ -747,13 +813,13 @@ public Builder setParentBytes(
      * 
* * string filter = 3; + * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -762,6 +828,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
@@ -773,15 +841,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -789,6 +856,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
@@ -800,20 +869,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
@@ -825,15 +896,18 @@ public Builder setFilter(
      * 
* * string filter = 3; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
@@ -845,28 +919,31 @@ public Builder clearFilter() {
      * 
* * string filter = 3; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -874,30 +951,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -905,6 +988,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -913,13 +998,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -928,6 +1013,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -936,15 +1023,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -952,6 +1038,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -960,20 +1048,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -982,15 +1072,18 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -999,23 +1092,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1025,12 +1118,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListModelsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListModelsRequest) private static final com.google.cloud.automl.v1.ListModelsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListModelsRequest(); } @@ -1039,16 +1132,16 @@ public static com.google.cloud.automl.v1.ListModelsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1063,6 +1156,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ListModelsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java index d38dea72d..1847d7eee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListModelsRequestOrBuilder extends +public interface ListModelsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListModelsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
@@ -39,10 +66,13 @@ public interface ListModelsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
@@ -54,22 +84,27 @@ public interface ListModelsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Requested page size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -78,10 +113,13 @@ public interface ListModelsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -90,8 +128,8 @@ public interface ListModelsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java index 8e2ad3fae..c667c5cd0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Response message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
  * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelsResponse} */ -public final class ListModelsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListModelsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ListModelsResponse) ListModelsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListModelsResponse.newBuilder() to construct. private ListModelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListModelsResponse() { model_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListModelsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListModelsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListModelsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,36 @@ private ListModelsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - model_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + model_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + model_.add( + input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry)); + break; } - model_.add( - input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { model_ = java.util.Collections.unmodifiableList(model_); @@ -92,22 +110,27 @@ private ListModelsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelsResponse.class, com.google.cloud.automl.v1.ListModelsResponse.Builder.class); + com.google.cloud.automl.v1.ListModelsResponse.class, + com.google.cloud.automl.v1.ListModelsResponse.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private java.util.List model_; /** + * + * *
    * List of models in the requested page.
    * 
@@ -119,6 +142,8 @@ public java.util.List getModelList() { return model_; } /** + * + * *
    * List of models in the requested page.
    * 
@@ -126,11 +151,13 @@ public java.util.List getModelList() { * repeated .google.cloud.automl.v1.Model model = 1; */ @java.lang.Override - public java.util.List + public java.util.List getModelOrBuilderList() { return model_; } /** + * + * *
    * List of models in the requested page.
    * 
@@ -142,6 +169,8 @@ public int getModelCount() { return model_.size(); } /** + * + * *
    * List of models in the requested page.
    * 
@@ -153,6 +182,8 @@ public com.google.cloud.automl.v1.Model getModel(int index) { return model_.get(index); } /** + * + * *
    * List of models in the requested page.
    * 
@@ -160,20 +191,22 @@ public com.google.cloud.automl.v1.Model getModel(int index) { * repeated .google.cloud.automl.v1.Model model = 1; */ @java.lang.Override - public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder( - int index) { + public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder(int index) { return model_.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 [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,30 +215,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,6 +247,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +259,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < model_.size(); i++) { output.writeMessage(1, model_.get(i)); } @@ -243,8 +276,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < model_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, model_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, model_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +289,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ListModelsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1.ListModelsResponse other = (com.google.cloud.automl.v1.ListModelsResponse) obj; + com.google.cloud.automl.v1.ListModelsResponse other = + (com.google.cloud.automl.v1.ListModelsResponse) obj; - if (!getModelList() - .equals(other.getModelList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getModelList().equals(other.getModelList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,118 +321,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ListModelsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListModelsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelsResponse 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.v1.ListModelsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.ListModelsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ListModelsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ListModelsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ListModelsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.ListModelsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
    * 
* * Protobuf type {@code google.cloud.automl.v1.ListModelsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ListModelsResponse) com.google.cloud.automl.v1.ListModelsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsResponse_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ListModelsResponse.class, com.google.cloud.automl.v1.ListModelsResponse.Builder.class); + com.google.cloud.automl.v1.ListModelsResponse.class, + com.google.cloud.automl.v1.ListModelsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1.ListModelsResponse.newBuilder() @@ -409,17 +449,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getModelFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_ListModelsResponse_descriptor; } @java.lang.Override @@ -456,7 +496,8 @@ public com.google.cloud.automl.v1.ListModelsResponse build() { @java.lang.Override public com.google.cloud.automl.v1.ListModelsResponse buildPartial() { - com.google.cloud.automl.v1.ListModelsResponse result = new com.google.cloud.automl.v1.ListModelsResponse(this); + com.google.cloud.automl.v1.ListModelsResponse result = + new com.google.cloud.automl.v1.ListModelsResponse(this); int from_bitField0_ = bitField0_; if (modelBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +517,39 @@ public com.google.cloud.automl.v1.ListModelsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ListModelsResponse) { - return mergeFrom((com.google.cloud.automl.v1.ListModelsResponse)other); + return mergeFrom((com.google.cloud.automl.v1.ListModelsResponse) other); } else { super.mergeFrom(other); return this; @@ -534,9 +576,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ListModelsResponse other) { modelBuilder_ = null; model_ = other.model_; bitField0_ = (bitField0_ & ~0x00000001); - modelBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getModelFieldBuilder() : null; + modelBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getModelFieldBuilder() + : null; } else { modelBuilder_.addAllMessages(other.model_); } @@ -574,21 +617,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List model_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureModelIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { model_ = new java.util.ArrayList(model_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> modelBuilder_; + com.google.cloud.automl.v1.Model, + com.google.cloud.automl.v1.Model.Builder, + com.google.cloud.automl.v1.ModelOrBuilder> + modelBuilder_; /** + * + * *
      * List of models in the requested page.
      * 
@@ -603,6 +653,8 @@ public java.util.List getModelList() { } } /** + * + * *
      * List of models in the requested page.
      * 
@@ -617,6 +669,8 @@ public int getModelCount() { } } /** + * + * *
      * List of models in the requested page.
      * 
@@ -631,14 +685,15 @@ public com.google.cloud.automl.v1.Model getModel(int index) { } } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public Builder setModel( - int index, com.google.cloud.automl.v1.Model value) { + public Builder setModel(int index, com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -652,14 +707,15 @@ public Builder setModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public Builder setModel( - int index, com.google.cloud.automl.v1.Model.Builder builderForValue) { + public Builder setModel(int index, com.google.cloud.automl.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { ensureModelIsMutable(); model_.set(index, builderForValue.build()); @@ -670,6 +726,8 @@ public Builder setModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
@@ -690,14 +748,15 @@ public Builder addModel(com.google.cloud.automl.v1.Model value) { return this; } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public Builder addModel( - int index, com.google.cloud.automl.v1.Model value) { + public Builder addModel(int index, com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,14 +770,15 @@ public Builder addModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public Builder addModel( - com.google.cloud.automl.v1.Model.Builder builderForValue) { + public Builder addModel(com.google.cloud.automl.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { ensureModelIsMutable(); model_.add(builderForValue.build()); @@ -729,14 +789,15 @@ public Builder addModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public Builder addModel( - int index, com.google.cloud.automl.v1.Model.Builder builderForValue) { + public Builder addModel(int index, com.google.cloud.automl.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { ensureModelIsMutable(); model_.add(index, builderForValue.build()); @@ -747,6 +808,8 @@ public Builder addModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
@@ -757,8 +820,7 @@ public Builder addAllModel( java.lang.Iterable values) { if (modelBuilder_ == null) { ensureModelIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, model_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, model_); onChanged(); } else { modelBuilder_.addAllMessages(values); @@ -766,6 +828,8 @@ public Builder addAllModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
@@ -783,6 +847,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * List of models in the requested page.
      * 
@@ -800,39 +866,44 @@ public Builder removeModel(int index) { return this; } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public com.google.cloud.automl.v1.Model.Builder getModelBuilder( - int index) { + public com.google.cloud.automl.v1.Model.Builder getModelBuilder(int index) { return getModelFieldBuilder().getBuilder(index); } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder( - int index) { + public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder(int index) { if (modelBuilder_ == null) { - return model_.get(index); } else { + return model_.get(index); + } else { return modelBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public java.util.List - getModelOrBuilderList() { + public java.util.List + getModelOrBuilderList() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +911,8 @@ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder( } } /** + * + * *
      * List of models in the requested page.
      * 
@@ -847,42 +920,47 @@ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder( * repeated .google.cloud.automl.v1.Model model = 1; */ public com.google.cloud.automl.v1.Model.Builder addModelBuilder() { - return getModelFieldBuilder().addBuilder( - com.google.cloud.automl.v1.Model.getDefaultInstance()); + return getModelFieldBuilder() + .addBuilder(com.google.cloud.automl.v1.Model.getDefaultInstance()); } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public com.google.cloud.automl.v1.Model.Builder addModelBuilder( - int index) { - return getModelFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1.Model.getDefaultInstance()); + public com.google.cloud.automl.v1.Model.Builder addModelBuilder(int index) { + return getModelFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1.Model.getDefaultInstance()); } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - public java.util.List - getModelBuilderList() { + public java.util.List getModelBuilderList() { return getModelFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> + com.google.cloud.automl.v1.Model, + com.google.cloud.automl.v1.Model.Builder, + com.google.cloud.automl.v1.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder>( - model_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + modelBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.Model, + com.google.cloud.automl.v1.Model.Builder, + com.google.cloud.automl.v1.ModelOrBuilder>( + model_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; @@ -890,19 +968,21 @@ public com.google.cloud.automl.v1.Model.Builder addModelBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -911,21 +991,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -933,64 +1014,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1088,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ListModelsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ListModelsResponse) private static final com.google.cloud.automl.v1.ListModelsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ListModelsResponse(); } @@ -1014,16 +1102,16 @@ public static com.google.cloud.automl.v1.ListModelsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ListModelsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java index 254738a34..1a6badc77 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ListModelsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface ListModelsResponseOrBuilder extends +public interface ListModelsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ListModelsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - java.util.List - getModelList(); + java.util.List getModelList(); /** + * + * *
    * List of models in the requested page.
    * 
@@ -25,6 +44,8 @@ public interface ListModelsResponseOrBuilder extends */ com.google.cloud.automl.v1.Model getModel(int index); /** + * + * *
    * List of models in the requested page.
    * 
@@ -33,43 +54,50 @@ public interface ListModelsResponseOrBuilder extends */ int getModelCount(); /** + * + * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - java.util.List - getModelOrBuilderList(); + java.util.List getModelOrBuilderList(); /** + * + * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1.Model model = 1; */ - com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder( - int index); + com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java index f30c54c04..3b6c1d919 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Model.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/model.proto package com.google.cloud.automl.v1; /** + * + * *
  * API proto representing a trained machine learning model.
  * 
* * Protobuf type {@code google.cloud.automl.v1.Model} */ -public final class Model extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Model extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.Model) ModelOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Model.newBuilder() to construct. private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Model() { name_ = ""; displayName_ = ""; @@ -29,16 +47,15 @@ private Model() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Model(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Model( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,213 +75,262 @@ private Model( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - datasetId_ = s; - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 64: { - int rawValue = input.readEnum(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - deploymentState_ = rawValue; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 90: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + displayName_ = s; + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 106: { - com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 13) { - subBuilder = ((com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_).toBuilder(); + datasetId_ = s; + break; } - modelMetadata_ = - input.readMessage(com.google.cloud.automl.v1.ImageClassificationModelMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 13; - break; - } - case 114: { - com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 14) { - subBuilder = ((com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_).toBuilder(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - modelMetadata_ = - input.readMessage(com.google.cloud.automl.v1.TextClassificationModelMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); + case 64: + { + int rawValue = input.readEnum(); + + deploymentState_ = rawValue; + break; } - modelMetadataCase_ = 14; - break; - } - case 122: { - com.google.cloud.automl.v1.TranslationModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 15) { - subBuilder = ((com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_).toBuilder(); + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; } - modelMetadata_ = - input.readMessage(com.google.cloud.automl.v1.TranslationModelMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); + case 90: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - modelMetadataCase_ = 15; - break; - } - case 154: { - com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 19) { - subBuilder = ((com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_).toBuilder(); + case 106: + { + com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 13) { + subBuilder = + ((com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.ImageClassificationModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 13; + break; } - modelMetadata_ = - input.readMessage(com.google.cloud.automl.v1.TextExtractionModelMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); + case 114: + { + com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 14) { + subBuilder = + ((com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.TextClassificationModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 14; + break; } - modelMetadataCase_ = 19; - break; - } - case 162: { - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 20) { - subBuilder = ((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_).toBuilder(); + case 122: + { + com.google.cloud.automl.v1.TranslationModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 15) { + subBuilder = + ((com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.TranslationModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 15; + break; } - modelMetadata_ = - input.readMessage(com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); + case 154: + { + com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 19) { + subBuilder = + ((com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.TextExtractionModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 19; + break; } - modelMetadataCase_ = 20; - break; - } - case 178: { - com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 22) { - subBuilder = ((com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_).toBuilder(); + case 162: + { + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder subBuilder = + null; + if (modelMetadataCase_ == 20) { + subBuilder = + ((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 20; + break; } - modelMetadata_ = - input.readMessage(com.google.cloud.automl.v1.TextSentimentModelMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); + case 178: + { + com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 22) { + subBuilder = + ((com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1.TextSentimentModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 22; + break; } - modelMetadataCase_ = 22; - break; - } - case 274: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 274: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ModelOuterClass + .internal_static_google_cloud_automl_v1_Model_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 34: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_fieldAccessorTable + return com.google.cloud.automl.v1.ModelOuterClass + .internal_static_google_cloud_automl_v1_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.automl.v1.Model.class, com.google.cloud.automl.v1.Model.Builder.class); } /** + * + * *
    * Deployment state of the model.
    * 
* * Protobuf enum {@code google.cloud.automl.v1.Model.DeploymentState} */ - public enum DeploymentState - implements com.google.protobuf.ProtocolMessageEnum { + public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Should not be used, an un-set enum has this value by default.
      * 
@@ -273,6 +339,8 @@ public enum DeploymentState */ DEPLOYMENT_STATE_UNSPECIFIED(0), /** + * + * *
      * Model is deployed.
      * 
@@ -281,6 +349,8 @@ public enum DeploymentState */ DEPLOYED(1), /** + * + * *
      * Model is not deployed.
      * 
@@ -292,6 +362,8 @@ public enum DeploymentState ; /** + * + * *
      * Should not be used, an un-set enum has this value by default.
      * 
@@ -300,6 +372,8 @@ public enum DeploymentState */ public static final int DEPLOYMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Model is deployed.
      * 
@@ -308,6 +382,8 @@ public enum DeploymentState */ public static final int DEPLOYED_VALUE = 1; /** + * + * *
      * Model is not deployed.
      * 
@@ -316,7 +392,6 @@ public enum DeploymentState */ public static final int UNDEPLOYED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -341,39 +416,42 @@ public static DeploymentState valueOf(int value) { */ public static DeploymentState forNumber(int value) { switch (value) { - case 0: return DEPLOYMENT_STATE_UNSPECIFIED; - case 1: return DEPLOYED; - case 2: return UNDEPLOYED; - default: return null; + case 0: + return DEPLOYMENT_STATE_UNSPECIFIED; + case 1: + return DEPLOYED; + case 2: + return UNDEPLOYED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DeploymentState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DeploymentState findValueByNumber(int number) { - return DeploymentState.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeploymentState findValueByNumber(int number) { + return DeploymentState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.automl.v1.Model.getDescriptor().getEnumTypes().get(0); } @@ -382,8 +460,7 @@ public DeploymentState findValueByNumber(int number) { public static DeploymentState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -402,8 +479,10 @@ private DeploymentState(int value) { private int modelMetadataCase_ = 0; private java.lang.Object modelMetadata_; + public enum ModelMetadataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION_MODEL_METADATA(15), IMAGE_CLASSIFICATION_MODEL_METADATA(13), @@ -413,6 +492,7 @@ public enum ModelMetadataCase TEXT_SENTIMENT_MODEL_METADATA(22), MODELMETADATA_NOT_SET(0); private final int value; + private ModelMetadataCase(int value) { this.value = value; } @@ -428,34 +508,44 @@ 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 20: return IMAGE_OBJECT_DETECTION_MODEL_METADATA; - case 19: return TEXT_EXTRACTION_MODEL_METADATA; - case 22: return TEXT_SENTIMENT_MODEL_METADATA; - case 0: return MODELMETADATA_NOT_SET; - default: return null; + case 15: + return TRANSLATION_MODEL_METADATA; + case 13: + return IMAGE_CLASSIFICATION_MODEL_METADATA; + case 14: + return TEXT_CLASSIFICATION_MODEL_METADATA; + case 20: + return IMAGE_OBJECT_DETECTION_MODEL_METADATA; + case 19: + return TEXT_EXTRACTION_MODEL_METADATA; + case 22: + return TEXT_SENTIMENT_MODEL_METADATA; + case 0: + return MODELMETADATA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ModelMetadataCase - getModelMetadataCase() { - return ModelMetadataCase.forNumber( - modelMetadataCase_); + public ModelMetadataCase getModelMetadataCase() { + return ModelMetadataCase.forNumber(modelMetadataCase_); } public static final int TRANSLATION_MODEL_METADATA_FIELD_NUMBER = 15; /** + * + * *
    * Metadata for translation models.
    * 
* * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * * @return Whether the translationModelMetadata field is set. */ @java.lang.Override @@ -463,21 +553,26 @@ public boolean hasTranslationModelMetadata() { return modelMetadataCase_ == 15; } /** + * + * *
    * Metadata for translation models.
    * 
* * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * * @return The translationModelMetadata. */ @java.lang.Override public com.google.cloud.automl.v1.TranslationModelMetadata getTranslationModelMetadata() { if (modelMetadataCase_ == 15) { - return (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for translation models.
    * 
@@ -485,20 +580,26 @@ public com.google.cloud.automl.v1.TranslationModelMetadata getTranslationModelMe * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder + getTranslationModelMetadataOrBuilder() { if (modelMetadataCase_ == 15) { - return (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 13; /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return Whether the imageClassificationModelMetadata field is set. */ @java.lang.Override @@ -506,42 +607,58 @@ public boolean hasImageClassificationModelMetadata() { return modelMetadataCase_ == 13; } /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return The imageClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelMetadata getImageClassificationModelMetadata() { + public com.google.cloud.automl.v1.ImageClassificationModelMetadata + getImageClassificationModelMetadata() { if (modelMetadataCase_ == 13) { - return (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder + getImageClassificationModelMetadataOrBuilder() { if (modelMetadataCase_ == 13) { - return (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 14; /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return Whether the textClassificationModelMetadata field is set. */ @java.lang.Override @@ -549,42 +666,58 @@ public boolean hasTextClassificationModelMetadata() { return modelMetadataCase_ == 14; } /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return The textClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationModelMetadata getTextClassificationModelMetadata() { + public com.google.cloud.automl.v1.TextClassificationModelMetadata + getTextClassificationModelMetadata() { if (modelMetadataCase_ == 14) { - return (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder + getTextClassificationModelMetadataOrBuilder() { if (modelMetadataCase_ == 14) { - return (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance(); } public static final int IMAGE_OBJECT_DETECTION_MODEL_METADATA_FIELD_NUMBER = 20; /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return Whether the imageObjectDetectionModelMetadata field is set. */ @java.lang.Override @@ -592,42 +725,57 @@ public boolean hasImageObjectDetectionModelMetadata() { return modelMetadataCase_ == 20; } /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return The imageObjectDetectionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata + getImageObjectDetectionModelMetadata() { if (modelMetadataCase_ == 20) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder + getImageObjectDetectionModelMetadataOrBuilder() { if (modelMetadataCase_ == 20) { - return (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } public static final int TEXT_EXTRACTION_MODEL_METADATA_FIELD_NUMBER = 19; /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return Whether the textExtractionModelMetadata field is set. */ @java.lang.Override @@ -635,42 +783,54 @@ public boolean hasTextExtractionModelMetadata() { return modelMetadataCase_ == 19; } /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return The textExtractionModelMetadata. */ @java.lang.Override public com.google.cloud.automl.v1.TextExtractionModelMetadata getTextExtractionModelMetadata() { if (modelMetadataCase_ == 19) { - return (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder + getTextExtractionModelMetadataOrBuilder() { if (modelMetadataCase_ == 19) { - return (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance(); } public static final int TEXT_SENTIMENT_MODEL_METADATA_FIELD_NUMBER = 22; /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return Whether the textSentimentModelMetadata field is set. */ @java.lang.Override @@ -678,31 +838,39 @@ public boolean hasTextSentimentModelMetadata() { return modelMetadataCase_ == 22; } /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return The textSentimentModelMetadata. */ @java.lang.Override public com.google.cloud.automl.v1.TextSentimentModelMetadata getTextSentimentModelMetadata() { if (modelMetadataCase_ == 22) { - return (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder + getTextSentimentModelMetadataOrBuilder() { if (modelMetadataCase_ == 22) { - return (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance(); } @@ -710,12 +878,15 @@ public com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder getTextSen 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; + * * @return The name. */ @java.lang.Override @@ -724,30 +895,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -758,6 +929,8 @@ public java.lang.String getName() { 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
@@ -766,6 +939,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -774,14 +948,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -790,16 +965,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -810,12 +984,15 @@ public java.lang.String getDisplayName() { 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; + * * @return The datasetId. */ @java.lang.Override @@ -824,30 +1001,30 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -858,11 +1035,14 @@ public java.lang.String getDatasetId() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -870,11 +1050,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ @java.lang.Override @@ -882,6 +1065,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
@@ -896,11 +1081,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -908,11 +1096,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ @java.lang.Override @@ -920,6 +1111,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
@@ -934,41 +1127,53 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 8; private int deploymentState_; /** + * + * *
    * Output only. Deployment state of the model. A model can only serve
    * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; + * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override public int getDeploymentStateValue() { + @java.lang.Override + public int getDeploymentStateValue() { return deploymentState_; } /** + * + * *
    * Output only. Deployment state of the model. A model can only serve
    * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; + * * @return The deploymentState. */ - @java.lang.Override public com.google.cloud.automl.v1.Model.DeploymentState getDeploymentState() { + @java.lang.Override + public com.google.cloud.automl.v1.Model.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.Model.DeploymentState result = com.google.cloud.automl.v1.Model.DeploymentState.valueOf(deploymentState_); + com.google.cloud.automl.v1.Model.DeploymentState result = + com.google.cloud.automl.v1.Model.DeploymentState.valueOf(deploymentState_); return result == null ? com.google.cloud.automl.v1.Model.DeploymentState.UNRECOGNIZED : result; } public static final int ETAG_FIELD_NUMBER = 10; private volatile java.lang.Object etag_; /** + * + * *
    * Used to perform a consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 10; + * * @return The etag. */ @java.lang.Override @@ -977,30 +1182,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Used to perform a consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 10; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1009,24 +1214,23 @@ public java.lang.String getEtag() { } public static final int LABELS_FIELD_NUMBER = 34; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.automl.v1.ModelOuterClass + .internal_static_google_cloud_automl_v1_Model_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1035,6 +1239,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -1046,22 +1252,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 34;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -1074,11 +1280,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 34;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -1091,16 +1298,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 34;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -1113,12 +1320,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 34;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1126,6 +1332,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1137,8 +1344,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1151,7 +1357,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (createTime_ != null) {
       output.writeMessage(7, getCreateTime());
     }
-    if (deploymentState_ != com.google.cloud.automl.v1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) {
+    if (deploymentState_
+        != com.google.cloud.automl.v1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(8, deploymentState_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
@@ -1161,29 +1369,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       output.writeMessage(11, getUpdateTime());
     }
     if (modelMetadataCase_ == 13) {
-      output.writeMessage(13, (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_);
+      output.writeMessage(
+          13, (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 14) {
-      output.writeMessage(14, (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_);
+      output.writeMessage(
+          14, (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 15) {
       output.writeMessage(15, (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 19) {
-      output.writeMessage(19, (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_);
+      output.writeMessage(
+          19, (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 20) {
-      output.writeMessage(20, (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_);
+      output.writeMessage(
+          20, (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 22) {
-      output.writeMessage(22, (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_);
-    }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        34);
+      output.writeMessage(
+          22, (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_);
+    }
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 34);
     unknownFields.writeTo(output);
   }
 
@@ -1203,53 +1412,58 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, datasetId_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
     }
-    if (deploymentState_ != com.google.cloud.automl.v1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(8, deploymentState_);
+    if (deploymentState_
+        != com.google.cloud.automl.v1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, deploymentState_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, etag_);
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime());
     }
     if (modelMetadataCase_ == 13) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(13, (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              13, (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 14) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(14, (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              14, (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 15) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(15, (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              15, (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 19) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(19, (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              19, (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 20) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(20, (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              20, (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_);
     }
     if (modelMetadataCase_ == 22) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(22, (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(34, labels__);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              22, (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1259,39 +1473,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.Model)) {
       return super.equals(obj);
     }
     com.google.cloud.automl.v1.Model other = (com.google.cloud.automl.v1.Model) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
-    if (!getDatasetId()
-        .equals(other.getDatasetId())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getDatasetId().equals(other.getDatasetId())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime()
-          .equals(other.getCreateTime())) return false;
+      if (!getCreateTime().equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime()
-          .equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
     }
     if (deploymentState_ != other.deploymentState_) return false;
-    if (!getEtag()
-        .equals(other.getEtag())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getEtag().equals(other.getEtag())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getModelMetadataCase().equals(other.getModelMetadataCase())) return false;
     switch (modelMetadataCase_) {
       case 15:
-        if (!getTranslationModelMetadata()
-            .equals(other.getTranslationModelMetadata())) return false;
+        if (!getTranslationModelMetadata().equals(other.getTranslationModelMetadata()))
+          return false;
         break;
       case 13:
         if (!getImageClassificationModelMetadata()
@@ -1306,12 +1513,12 @@ public boolean equals(final java.lang.Object obj) {
             .equals(other.getImageObjectDetectionModelMetadata())) return false;
         break;
       case 19:
-        if (!getTextExtractionModelMetadata()
-            .equals(other.getTextExtractionModelMetadata())) return false;
+        if (!getTextExtractionModelMetadata().equals(other.getTextExtractionModelMetadata()))
+          return false;
         break;
       case 22:
-        if (!getTextSentimentModelMetadata()
-            .equals(other.getTextSentimentModelMetadata())) return false;
+        if (!getTextSentimentModelMetadata().equals(other.getTextSentimentModelMetadata()))
+          return false;
         break;
       case 0:
       default:
@@ -1382,140 +1589,146 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.Model parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.Model parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.Model parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.Model parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.automl.v1.Model parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.Model 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.v1.Model parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.Model parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.Model parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.Model parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.Model parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.Model parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.Model parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.Model parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1.Model prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * API proto representing a trained machine learning model.
    * 
* * Protobuf type {@code google.cloud.automl.v1.Model} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.Model) com.google.cloud.automl.v1.ModelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ModelOuterClass + .internal_static_google_cloud_automl_v1_Model_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 34: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 34: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_fieldAccessorTable + return com.google.cloud.automl.v1.ModelOuterClass + .internal_static_google_cloud_automl_v1_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.Model.class, com.google.cloud.automl.v1.Model.Builder.class); + com.google.cloud.automl.v1.Model.class, + com.google.cloud.automl.v1.Model.Builder.class); } // Construct using com.google.cloud.automl.v1.Model.newBuilder() @@ -1523,16 +1736,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1565,9 +1777,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ModelOuterClass.internal_static_google_cloud_automl_v1_Model_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ModelOuterClass + .internal_static_google_cloud_automl_v1_Model_descriptor; } @java.lang.Override @@ -1656,38 +1868,39 @@ public com.google.cloud.automl.v1.Model buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.Model) { - return mergeFrom((com.google.cloud.automl.v1.Model)other); + return mergeFrom((com.google.cloud.automl.v1.Model) other); } else { super.mergeFrom(other); return this; @@ -1721,36 +1934,42 @@ public Builder mergeFrom(com.google.cloud.automl.v1.Model other) { etag_ = other.etag_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); switch (other.getModelMetadataCase()) { - case TRANSLATION_MODEL_METADATA: { - mergeTranslationModelMetadata(other.getTranslationModelMetadata()); - break; - } - case IMAGE_CLASSIFICATION_MODEL_METADATA: { - mergeImageClassificationModelMetadata(other.getImageClassificationModelMetadata()); - break; - } - case TEXT_CLASSIFICATION_MODEL_METADATA: { - mergeTextClassificationModelMetadata(other.getTextClassificationModelMetadata()); - break; - } - case IMAGE_OBJECT_DETECTION_MODEL_METADATA: { - mergeImageObjectDetectionModelMetadata(other.getImageObjectDetectionModelMetadata()); - break; - } - case TEXT_EXTRACTION_MODEL_METADATA: { - mergeTextExtractionModelMetadata(other.getTextExtractionModelMetadata()); - break; - } - case TEXT_SENTIMENT_MODEL_METADATA: { - mergeTextSentimentModelMetadata(other.getTextSentimentModelMetadata()); - break; - } - case MODELMETADATA_NOT_SET: { - break; - } + case TRANSLATION_MODEL_METADATA: + { + mergeTranslationModelMetadata(other.getTranslationModelMetadata()); + break; + } + case IMAGE_CLASSIFICATION_MODEL_METADATA: + { + mergeImageClassificationModelMetadata(other.getImageClassificationModelMetadata()); + break; + } + case TEXT_CLASSIFICATION_MODEL_METADATA: + { + mergeTextClassificationModelMetadata(other.getTextClassificationModelMetadata()); + break; + } + case IMAGE_OBJECT_DETECTION_MODEL_METADATA: + { + mergeImageObjectDetectionModelMetadata(other.getImageObjectDetectionModelMetadata()); + break; + } + case TEXT_EXTRACTION_MODEL_METADATA: + { + mergeTextExtractionModelMetadata(other.getTextExtractionModelMetadata()); + break; + } + case TEXT_SENTIMENT_MODEL_METADATA: + { + mergeTextSentimentModelMetadata(other.getTextSentimentModelMetadata()); + break; + } + case MODELMETADATA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1780,12 +1999,12 @@ public Builder mergeFrom( } return this; } + private int modelMetadataCase_ = 0; private java.lang.Object modelMetadata_; - public ModelMetadataCase - getModelMetadataCase() { - return ModelMetadataCase.forNumber( - modelMetadataCase_); + + public ModelMetadataCase getModelMetadataCase() { + return ModelMetadataCase.forNumber(modelMetadataCase_); } public Builder clearModelMetadata() { @@ -1798,13 +2017,20 @@ public Builder clearModelMetadata() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationModelMetadata, com.google.cloud.automl.v1.TranslationModelMetadata.Builder, com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder> translationModelMetadataBuilder_; + com.google.cloud.automl.v1.TranslationModelMetadata, + com.google.cloud.automl.v1.TranslationModelMetadata.Builder, + com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder> + translationModelMetadataBuilder_; /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * + * * @return Whether the translationModelMetadata field is set. */ @java.lang.Override @@ -1812,11 +2038,15 @@ public boolean hasTranslationModelMetadata() { return modelMetadataCase_ == 15; } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * + * * @return The translationModelMetadata. */ @java.lang.Override @@ -1834,13 +2064,17 @@ public com.google.cloud.automl.v1.TranslationModelMetadata getTranslationModelMe } } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * */ - public Builder setTranslationModelMetadata(com.google.cloud.automl.v1.TranslationModelMetadata value) { + public Builder setTranslationModelMetadata( + com.google.cloud.automl.v1.TranslationModelMetadata value) { if (translationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1854,11 +2088,14 @@ public Builder setTranslationModelMetadata(com.google.cloud.automl.v1.Translatio return this; } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * */ public Builder setTranslationModelMetadata( com.google.cloud.automl.v1.TranslationModelMetadata.Builder builderForValue) { @@ -1872,18 +2109,26 @@ public Builder setTranslationModelMetadata( return this; } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * */ - public Builder mergeTranslationModelMetadata(com.google.cloud.automl.v1.TranslationModelMetadata value) { + public Builder mergeTranslationModelMetadata( + com.google.cloud.automl.v1.TranslationModelMetadata value) { if (translationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 15 && - modelMetadata_ != com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance()) { - modelMetadata_ = com.google.cloud.automl.v1.TranslationModelMetadata.newBuilder((com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_) - .mergeFrom(value).buildPartial(); + if (modelMetadataCase_ == 15 + && modelMetadata_ + != com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1.TranslationModelMetadata.newBuilder( + (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelMetadata_ = value; } @@ -1898,11 +2143,14 @@ public Builder mergeTranslationModelMetadata(com.google.cloud.automl.v1.Translat return this; } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * */ public Builder clearTranslationModelMetadata() { if (translationModelMetadataBuilder_ == null) { @@ -1921,24 +2169,32 @@ public Builder clearTranslationModelMetadata() { return this; } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * */ - public com.google.cloud.automl.v1.TranslationModelMetadata.Builder getTranslationModelMetadataBuilder() { + public com.google.cloud.automl.v1.TranslationModelMetadata.Builder + getTranslationModelMetadataBuilder() { return getTranslationModelMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder + getTranslationModelMetadataOrBuilder() { if ((modelMetadataCase_ == 15) && (translationModelMetadataBuilder_ != null)) { return translationModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -1949,39 +2205,56 @@ public com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder getTranslati } } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationModelMetadata, com.google.cloud.automl.v1.TranslationModelMetadata.Builder, com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder> + com.google.cloud.automl.v1.TranslationModelMetadata, + com.google.cloud.automl.v1.TranslationModelMetadata.Builder, + com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder> getTranslationModelMetadataFieldBuilder() { if (translationModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 15)) { modelMetadata_ = com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance(); } - translationModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationModelMetadata, com.google.cloud.automl.v1.TranslationModelMetadata.Builder, com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder>( + translationModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TranslationModelMetadata, + com.google.cloud.automl.v1.TranslationModelMetadata.Builder, + com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder>( (com.google.cloud.automl.v1.TranslationModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 15; - onChanged();; + onChanged(); + ; return translationModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelMetadata, com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder> imageClassificationModelMetadataBuilder_; + com.google.cloud.automl.v1.ImageClassificationModelMetadata, + com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, + com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder> + imageClassificationModelMetadataBuilder_; /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return Whether the imageClassificationModelMetadata field is set. */ @java.lang.Override @@ -1989,15 +2262,21 @@ public boolean hasImageClassificationModelMetadata() { return modelMetadataCase_ == 13; } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return The imageClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelMetadata getImageClassificationModelMetadata() { + public com.google.cloud.automl.v1.ImageClassificationModelMetadata + getImageClassificationModelMetadata() { if (imageClassificationModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 13) { return (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_; @@ -2011,13 +2290,18 @@ public com.google.cloud.automl.v1.ImageClassificationModelMetadata getImageClass } } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ - public Builder setImageClassificationModelMetadata(com.google.cloud.automl.v1.ImageClassificationModelMetadata value) { + public Builder setImageClassificationModelMetadata( + com.google.cloud.automl.v1.ImageClassificationModelMetadata value) { if (imageClassificationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2031,11 +2315,15 @@ public Builder setImageClassificationModelMetadata(com.google.cloud.automl.v1.Im return this; } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ public Builder setImageClassificationModelMetadata( com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder builderForValue) { @@ -2049,18 +2337,28 @@ public Builder setImageClassificationModelMetadata( return this; } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ - public Builder mergeImageClassificationModelMetadata(com.google.cloud.automl.v1.ImageClassificationModelMetadata value) { + public Builder mergeImageClassificationModelMetadata( + com.google.cloud.automl.v1.ImageClassificationModelMetadata value) { if (imageClassificationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 13 && - modelMetadata_ != com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance()) { - modelMetadata_ = com.google.cloud.automl.v1.ImageClassificationModelMetadata.newBuilder((com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_) - .mergeFrom(value).buildPartial(); + if (modelMetadataCase_ == 13 + && modelMetadata_ + != com.google.cloud.automl.v1.ImageClassificationModelMetadata + .getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1.ImageClassificationModelMetadata.newBuilder( + (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelMetadata_ = value; } @@ -2075,11 +2373,15 @@ public Builder mergeImageClassificationModelMetadata(com.google.cloud.automl.v1. return this; } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ public Builder clearImageClassificationModelMetadata() { if (imageClassificationModelMetadataBuilder_ == null) { @@ -2098,24 +2400,34 @@ public Builder clearImageClassificationModelMetadata() { return this; } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ - public com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder getImageClassificationModelMetadataBuilder() { + public com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder + getImageClassificationModelMetadataBuilder() { return getImageClassificationModelMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder + getImageClassificationModelMetadataOrBuilder() { if ((modelMetadataCase_ == 13) && (imageClassificationModelMetadataBuilder_ != null)) { return imageClassificationModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2126,39 +2438,58 @@ public com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder getI } } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelMetadata, com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder> + com.google.cloud.automl.v1.ImageClassificationModelMetadata, + com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, + com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder> getImageClassificationModelMetadataFieldBuilder() { if (imageClassificationModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 13)) { - modelMetadata_ = com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance(); + modelMetadata_ = + com.google.cloud.automl.v1.ImageClassificationModelMetadata.getDefaultInstance(); } - imageClassificationModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageClassificationModelMetadata, com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder>( + imageClassificationModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageClassificationModelMetadata, + com.google.cloud.automl.v1.ImageClassificationModelMetadata.Builder, + com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder>( (com.google.cloud.automl.v1.ImageClassificationModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 13; - onChanged();; + onChanged(); + ; return imageClassificationModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationModelMetadata, com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder> textClassificationModelMetadataBuilder_; + com.google.cloud.automl.v1.TextClassificationModelMetadata, + com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, + com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder> + textClassificationModelMetadataBuilder_; /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return Whether the textClassificationModelMetadata field is set. */ @java.lang.Override @@ -2166,15 +2497,21 @@ public boolean hasTextClassificationModelMetadata() { return modelMetadataCase_ == 14; } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return The textClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationModelMetadata getTextClassificationModelMetadata() { + public com.google.cloud.automl.v1.TextClassificationModelMetadata + getTextClassificationModelMetadata() { if (textClassificationModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 14) { return (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_; @@ -2188,13 +2525,18 @@ public com.google.cloud.automl.v1.TextClassificationModelMetadata getTextClassif } } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ - public Builder setTextClassificationModelMetadata(com.google.cloud.automl.v1.TextClassificationModelMetadata value) { + public Builder setTextClassificationModelMetadata( + com.google.cloud.automl.v1.TextClassificationModelMetadata value) { if (textClassificationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2208,11 +2550,15 @@ public Builder setTextClassificationModelMetadata(com.google.cloud.automl.v1.Tex return this; } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ public Builder setTextClassificationModelMetadata( com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder builderForValue) { @@ -2226,18 +2572,28 @@ public Builder setTextClassificationModelMetadata( return this; } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ - public Builder mergeTextClassificationModelMetadata(com.google.cloud.automl.v1.TextClassificationModelMetadata value) { + public Builder mergeTextClassificationModelMetadata( + com.google.cloud.automl.v1.TextClassificationModelMetadata value) { if (textClassificationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 14 && - modelMetadata_ != com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance()) { - modelMetadata_ = com.google.cloud.automl.v1.TextClassificationModelMetadata.newBuilder((com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_) - .mergeFrom(value).buildPartial(); + if (modelMetadataCase_ == 14 + && modelMetadata_ + != com.google.cloud.automl.v1.TextClassificationModelMetadata + .getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1.TextClassificationModelMetadata.newBuilder( + (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelMetadata_ = value; } @@ -2252,11 +2608,15 @@ public Builder mergeTextClassificationModelMetadata(com.google.cloud.automl.v1.T return this; } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ public Builder clearTextClassificationModelMetadata() { if (textClassificationModelMetadataBuilder_ == null) { @@ -2275,24 +2635,34 @@ public Builder clearTextClassificationModelMetadata() { return this; } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ - public com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder getTextClassificationModelMetadataBuilder() { + public com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder + getTextClassificationModelMetadataBuilder() { return getTextClassificationModelMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder + getTextClassificationModelMetadataOrBuilder() { if ((modelMetadataCase_ == 14) && (textClassificationModelMetadataBuilder_ != null)) { return textClassificationModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2303,39 +2673,58 @@ public com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder getTe } } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationModelMetadata, com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder> + com.google.cloud.automl.v1.TextClassificationModelMetadata, + com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, + com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder> getTextClassificationModelMetadataFieldBuilder() { if (textClassificationModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 14)) { - modelMetadata_ = com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance(); + modelMetadata_ = + com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance(); } - textClassificationModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextClassificationModelMetadata, com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder>( + textClassificationModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextClassificationModelMetadata, + com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder, + com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder>( (com.google.cloud.automl.v1.TextClassificationModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 14; - onChanged();; + onChanged(); + ; return textClassificationModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder> imageObjectDetectionModelMetadataBuilder_; + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder> + imageObjectDetectionModelMetadataBuilder_; /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return Whether the imageObjectDetectionModelMetadata field is set. */ @java.lang.Override @@ -2343,15 +2732,21 @@ public boolean hasImageObjectDetectionModelMetadata() { return modelMetadataCase_ == 20; } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return The imageObjectDetectionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata + getImageObjectDetectionModelMetadata() { if (imageObjectDetectionModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 20) { return (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_; @@ -2365,13 +2760,18 @@ public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getImageObje } } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ - public Builder setImageObjectDetectionModelMetadata(com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata value) { + public Builder setImageObjectDetectionModelMetadata( + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata value) { if (imageObjectDetectionModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2385,11 +2785,15 @@ public Builder setImageObjectDetectionModelMetadata(com.google.cloud.automl.v1.I return this; } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ public Builder setImageObjectDetectionModelMetadata( com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder builderForValue) { @@ -2403,18 +2807,28 @@ public Builder setImageObjectDetectionModelMetadata( return this; } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ - public Builder mergeImageObjectDetectionModelMetadata(com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata value) { + public Builder mergeImageObjectDetectionModelMetadata( + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata value) { if (imageObjectDetectionModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 20 && - modelMetadata_ != com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance()) { - modelMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.newBuilder((com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_) - .mergeFrom(value).buildPartial(); + if (modelMetadataCase_ == 20 + && modelMetadata_ + != com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata + .getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.newBuilder( + (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelMetadata_ = value; } @@ -2429,11 +2843,15 @@ public Builder mergeImageObjectDetectionModelMetadata(com.google.cloud.automl.v1 return this; } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ public Builder clearImageObjectDetectionModelMetadata() { if (imageObjectDetectionModelMetadataBuilder_ == null) { @@ -2452,24 +2870,34 @@ public Builder clearImageObjectDetectionModelMetadata() { return this; } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder getImageObjectDetectionModelMetadataBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder + getImageObjectDetectionModelMetadataBuilder() { return getImageObjectDetectionModelMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder + getImageObjectDetectionModelMetadataOrBuilder() { if ((modelMetadataCase_ == 20) && (imageObjectDetectionModelMetadataBuilder_ != null)) { return imageObjectDetectionModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2480,39 +2908,58 @@ public com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder get } } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder> + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder> getImageObjectDetectionModelMetadataFieldBuilder() { if (imageObjectDetectionModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 20)) { - modelMetadata_ = com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance(); + modelMetadata_ = + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } - imageObjectDetectionModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder>( + imageObjectDetectionModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata, + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder>( (com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 20; - onChanged();; + onChanged(); + ; return imageObjectDetectionModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionModelMetadata, com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder> textExtractionModelMetadataBuilder_; + com.google.cloud.automl.v1.TextExtractionModelMetadata, + com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, + com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder> + textExtractionModelMetadataBuilder_; /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return Whether the textExtractionModelMetadata field is set. */ @java.lang.Override @@ -2520,11 +2967,16 @@ public boolean hasTextExtractionModelMetadata() { return modelMetadataCase_ == 19; } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return The textExtractionModelMetadata. */ @java.lang.Override @@ -2542,13 +2994,18 @@ public com.google.cloud.automl.v1.TextExtractionModelMetadata getTextExtractionM } } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - public Builder setTextExtractionModelMetadata(com.google.cloud.automl.v1.TextExtractionModelMetadata value) { + public Builder setTextExtractionModelMetadata( + com.google.cloud.automl.v1.TextExtractionModelMetadata value) { if (textExtractionModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2562,11 +3019,15 @@ public Builder setTextExtractionModelMetadata(com.google.cloud.automl.v1.TextExt return this; } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ public Builder setTextExtractionModelMetadata( com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder builderForValue) { @@ -2580,18 +3041,27 @@ public Builder setTextExtractionModelMetadata( return this; } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - public Builder mergeTextExtractionModelMetadata(com.google.cloud.automl.v1.TextExtractionModelMetadata value) { + public Builder mergeTextExtractionModelMetadata( + com.google.cloud.automl.v1.TextExtractionModelMetadata value) { if (textExtractionModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 19 && - modelMetadata_ != com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance()) { - modelMetadata_ = com.google.cloud.automl.v1.TextExtractionModelMetadata.newBuilder((com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_) - .mergeFrom(value).buildPartial(); + if (modelMetadataCase_ == 19 + && modelMetadata_ + != com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1.TextExtractionModelMetadata.newBuilder( + (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelMetadata_ = value; } @@ -2606,11 +3076,15 @@ public Builder mergeTextExtractionModelMetadata(com.google.cloud.automl.v1.TextE return this; } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ public Builder clearTextExtractionModelMetadata() { if (textExtractionModelMetadataBuilder_ == null) { @@ -2629,24 +3103,34 @@ public Builder clearTextExtractionModelMetadata() { return this; } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - public com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder getTextExtractionModelMetadataBuilder() { + public com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder + getTextExtractionModelMetadataBuilder() { return getTextExtractionModelMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder + getTextExtractionModelMetadataOrBuilder() { if ((modelMetadataCase_ == 19) && (textExtractionModelMetadataBuilder_ != null)) { return textExtractionModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2657,39 +3141,57 @@ public com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder getTextEx } } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionModelMetadata, com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder> + com.google.cloud.automl.v1.TextExtractionModelMetadata, + com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, + com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder> getTextExtractionModelMetadataFieldBuilder() { if (textExtractionModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 19)) { - modelMetadata_ = com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance(); + modelMetadata_ = + com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance(); } - textExtractionModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionModelMetadata, com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder>( + textExtractionModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextExtractionModelMetadata, + com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder, + com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder>( (com.google.cloud.automl.v1.TextExtractionModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 19; - onChanged();; + onChanged(); + ; return textExtractionModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentModelMetadata, com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder> textSentimentModelMetadataBuilder_; + com.google.cloud.automl.v1.TextSentimentModelMetadata, + com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, + com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder> + textSentimentModelMetadataBuilder_; /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return Whether the textSentimentModelMetadata field is set. */ @java.lang.Override @@ -2697,11 +3199,15 @@ public boolean hasTextSentimentModelMetadata() { return modelMetadataCase_ == 22; } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return The textSentimentModelMetadata. */ @java.lang.Override @@ -2719,13 +3225,17 @@ public com.google.cloud.automl.v1.TextSentimentModelMetadata getTextSentimentMod } } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ - public Builder setTextSentimentModelMetadata(com.google.cloud.automl.v1.TextSentimentModelMetadata value) { + public Builder setTextSentimentModelMetadata( + com.google.cloud.automl.v1.TextSentimentModelMetadata value) { if (textSentimentModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2739,11 +3249,14 @@ public Builder setTextSentimentModelMetadata(com.google.cloud.automl.v1.TextSent return this; } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ public Builder setTextSentimentModelMetadata( com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder builderForValue) { @@ -2757,18 +3270,26 @@ public Builder setTextSentimentModelMetadata( return this; } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ - public Builder mergeTextSentimentModelMetadata(com.google.cloud.automl.v1.TextSentimentModelMetadata value) { + public Builder mergeTextSentimentModelMetadata( + com.google.cloud.automl.v1.TextSentimentModelMetadata value) { if (textSentimentModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 22 && - modelMetadata_ != com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance()) { - modelMetadata_ = com.google.cloud.automl.v1.TextSentimentModelMetadata.newBuilder((com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_) - .mergeFrom(value).buildPartial(); + if (modelMetadataCase_ == 22 + && modelMetadata_ + != com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1.TextSentimentModelMetadata.newBuilder( + (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelMetadata_ = value; } @@ -2783,11 +3304,14 @@ public Builder mergeTextSentimentModelMetadata(com.google.cloud.automl.v1.TextSe return this; } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ public Builder clearTextSentimentModelMetadata() { if (textSentimentModelMetadataBuilder_ == null) { @@ -2806,24 +3330,32 @@ public Builder clearTextSentimentModelMetadata() { return this; } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ - public com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder getTextSentimentModelMetadataBuilder() { + public com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder + getTextSentimentModelMetadataBuilder() { return getTextSentimentModelMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder + getTextSentimentModelMetadataOrBuilder() { if ((modelMetadataCase_ == 22) && (textSentimentModelMetadataBuilder_ != null)) { return textSentimentModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2834,46 +3366,58 @@ public com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder getTextSen } } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentModelMetadata, com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder> + com.google.cloud.automl.v1.TextSentimentModelMetadata, + com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, + com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder> getTextSentimentModelMetadataFieldBuilder() { if (textSentimentModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 22)) { - modelMetadata_ = com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance(); + modelMetadata_ = + com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance(); } - textSentimentModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentModelMetadata, com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder>( + textSentimentModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSentimentModelMetadata, + com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder, + com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder>( (com.google.cloud.automl.v1.TextSentimentModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 22; - onChanged();; + onChanged(); + ; return textSentimentModelMetadataBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2882,21 +3426,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2904,57 +3449,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2962,6 +3514,8 @@ public Builder setNameBytes( private 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
@@ -2970,13 +3524,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2985,6 +3539,8 @@ 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
@@ -2993,15 +3549,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3009,6 +3564,8 @@ 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
@@ -3017,20 +3574,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * 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
@@ -3039,15 +3598,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * 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
@@ -3056,16 +3618,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3073,19 +3635,21 @@ public Builder setDisplayNameBytes( private 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; + * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -3094,21 +3658,22 @@ 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.
      * 
* * string dataset_id = 3; + * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -3116,57 +3681,64 @@ 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.
      * 
* * string dataset_id = 3; + * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId( - java.lang.String value) { + public Builder setDatasetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + datasetId_ = value; onChanged(); return this; } /** + * + * *
      * 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; + * * @return This builder for chaining. */ public Builder clearDatasetId() { - + datasetId_ = getDefaultInstance().getDatasetId(); onChanged(); return this; } /** + * + * *
      * 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; + * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetId_ = value; onChanged(); return this; @@ -3174,34 +3746,47 @@ public Builder setDatasetIdBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3222,14 +3807,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3240,6 +3826,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3250,7 +3838,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3262,6 +3850,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3280,6 +3870,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3287,11 +3879,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3302,11 +3896,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3314,14 +3911,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3329,34 +3929,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3377,14 +3990,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3395,6 +4009,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3405,7 +4021,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3417,6 +4033,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3435,6 +4053,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3442,11 +4062,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 11; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3457,11 +4079,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3469,14 +4094,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3484,55 +4112,71 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int deploymentState_ = 0; /** + * + * *
      * Output only. Deployment state of the model. A model can only serve
      * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; + * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override public int getDeploymentStateValue() { + @java.lang.Override + public int getDeploymentStateValue() { return deploymentState_; } /** + * + * *
      * Output only. Deployment state of the model. A model can only serve
      * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; + * * @param value The enum numeric value on the wire for deploymentState to set. * @return This builder for chaining. */ public Builder setDeploymentStateValue(int value) { - + deploymentState_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Deployment state of the model. A model can only serve
      * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; + * * @return The deploymentState. */ @java.lang.Override public com.google.cloud.automl.v1.Model.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.Model.DeploymentState result = com.google.cloud.automl.v1.Model.DeploymentState.valueOf(deploymentState_); - return result == null ? com.google.cloud.automl.v1.Model.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.automl.v1.Model.DeploymentState result = + com.google.cloud.automl.v1.Model.DeploymentState.valueOf(deploymentState_); + return result == null + ? com.google.cloud.automl.v1.Model.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Deployment state of the model. A model can only serve
      * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; + * * @param value The deploymentState to set. * @return This builder for chaining. */ @@ -3540,22 +4184,25 @@ public Builder setDeploymentState(com.google.cloud.automl.v1.Model.DeploymentSta if (value == null) { throw new NullPointerException(); } - + deploymentState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Deployment state of the model. A model can only serve
      * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; + * * @return This builder for chaining. */ public Builder clearDeploymentState() { - + deploymentState_ = 0; onChanged(); return this; @@ -3563,19 +4210,21 @@ public Builder clearDeploymentState() { private java.lang.Object etag_ = ""; /** + * + * *
      * Used to perform a consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 10; + * * @return The etag. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3584,21 +4233,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Used to perform a consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 10; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -3606,78 +4256,84 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Used to perform a consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 10; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Used to perform a consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 10; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Used to perform a consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 10; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3689,6 +4345,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -3700,22 +4358,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 34;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -3728,11 +4386,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 34;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -3745,16 +4404,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 34;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -3767,12 +4427,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 34;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3780,11 +4439,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -3796,23 +4456,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 34;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -3824,16 +4482,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 34;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata to organize your model.
      * Label keys and values can be no longer than 64 characters
@@ -3845,16 +4506,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 34;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3864,12 +4522,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.Model)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.Model)
   private static final com.google.cloud.automl.v1.Model DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.Model();
   }
@@ -3878,16 +4536,16 @@ public static com.google.cloud.automl.v1.Model getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Model parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Model(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Model parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Model(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3902,6 +4560,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.Model getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java
similarity index 67%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java
index 7b3dd99d5..1fe450d1e 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/model_evaluation.proto
 
 package com.google.cloud.automl.v1;
 
 /**
+ *
+ *
  * 
  * Evaluation results of a model.
  * 
* * Protobuf type {@code google.cloud.automl.v1.ModelEvaluation} */ -public final class ModelEvaluation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ModelEvaluation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ModelEvaluation) ModelEvaluationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ModelEvaluation.newBuilder() to construct. private ModelEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ModelEvaluation() { name_ = ""; annotationSpecId_ = ""; @@ -27,16 +45,15 @@ private ModelEvaluation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModelEvaluation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ModelEvaluation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,148 +72,188 @@ private ModelEvaluation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecId_ = s; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 48: { + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - evaluatedExampleCount_ = input.readInt32(); - break; - } - case 66: { - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 8) { - subBuilder = ((com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_).toBuilder(); + annotationSpecId_ = s; + break; } - metrics_ = - input.readMessage(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - metricsCase_ = 8; - break; - } - case 74: { - com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 9) { - subBuilder = ((com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_).toBuilder(); + case 48: + { + evaluatedExampleCount_ = input.readInt32(); + break; } - metrics_ = - input.readMessage(com.google.cloud.automl.v1.TranslationEvaluationMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); + case 66: + { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 8) { + subBuilder = + ((com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 8; + break; } - metricsCase_ = 9; - break; - } - case 90: { - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 11) { - subBuilder = ((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_).toBuilder(); + case 74: + { + com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 9) { + subBuilder = + ((com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1.TranslationEvaluationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 9; + break; } - metrics_ = - input.readMessage(com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); + case 90: + { + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 11) { + subBuilder = + ((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 11; + break; } - metricsCase_ = 11; - break; - } - case 98: { - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 12) { - subBuilder = ((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_).toBuilder(); + case 98: + { + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder subBuilder = + null; + if (metricsCase_ == 12) { + subBuilder = + ((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 12; + break; } - metrics_ = - input.readMessage(com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); + case 106: + { + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder subBuilder = null; + if (metricsCase_ == 13) { + subBuilder = + ((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 13; + break; } - metricsCase_ = 12; - break; - } - case 106: { - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 13) { - subBuilder = ((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_).toBuilder(); - } - metrics_ = - input.readMessage(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 13; - break; - } - case 122: { - java.lang.String s = input.readStringRequireUtf8(); + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + displayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ModelEvaluationOuterClass + .internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1_ModelEvaluation_fieldAccessorTable + return com.google.cloud.automl.v1.ModelEvaluationOuterClass + .internal_static_google_cloud_automl_v1_ModelEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ModelEvaluation.class, com.google.cloud.automl.v1.ModelEvaluation.Builder.class); + com.google.cloud.automl.v1.ModelEvaluation.class, + com.google.cloud.automl.v1.ModelEvaluation.Builder.class); } private int metricsCase_ = 0; private java.lang.Object metrics_; + public enum MetricsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLASSIFICATION_EVALUATION_METRICS(8), TRANSLATION_EVALUATION_METRICS(9), @@ -205,6 +262,7 @@ public enum MetricsCase TEXT_EXTRACTION_EVALUATION_METRICS(13), METRICS_NOT_SET(0); private final int value; + private MetricsCase(int value) { this.value = value; } @@ -220,28 +278,36 @@ public static MetricsCase valueOf(int value) { public static MetricsCase forNumber(int value) { switch (value) { - case 8: return CLASSIFICATION_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: return null; + case 8: + return CLASSIFICATION_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: + return null; } } + public int getNumber() { return this.value; } }; - public MetricsCase - getMetricsCase() { - return MetricsCase.forNumber( - metricsCase_); + public MetricsCase getMetricsCase() { + return MetricsCase.forNumber(metricsCase_); } public static final int CLASSIFICATION_EVALUATION_METRICS_FIELD_NUMBER = 8; /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -249,7 +315,10 @@ public int getNumber() {
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return Whether the classificationEvaluationMetrics field is set. */ @java.lang.Override @@ -257,6 +326,8 @@ public boolean hasClassificationEvaluationMetrics() { return metricsCase_ == 8; } /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -264,17 +335,23 @@ public boolean hasClassificationEvaluationMetrics() {
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return The classificationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics getClassificationEvaluationMetrics() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics + getClassificationEvaluationMetrics() { if (metricsCase_ == 8) { - return (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance(); } /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -282,23 +359,30 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics getClassificat
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder + getClassificationEvaluationMetricsOrBuilder() { if (metricsCase_ == 8) { - return (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance(); } public static final int TRANSLATION_EVALUATION_METRICS_FIELD_NUMBER = 9; /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return Whether the translationEvaluationMetrics field is set. */ @java.lang.Override @@ -306,42 +390,55 @@ public boolean hasTranslationEvaluationMetrics() { return metricsCase_ == 9; } /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return The translationEvaluationMetrics. */ @java.lang.Override public com.google.cloud.automl.v1.TranslationEvaluationMetrics getTranslationEvaluationMetrics() { if (metricsCase_ == 9) { - return (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance(); } /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder + getTranslationEvaluationMetricsOrBuilder() { if (metricsCase_ == 9) { - return (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance(); } public static final int IMAGE_OBJECT_DETECTION_EVALUATION_METRICS_FIELD_NUMBER = 12; /** + * + * *
    * Model evaluation metrics for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ @java.lang.Override @@ -349,42 +446,58 @@ public boolean hasImageObjectDetectionEvaluationMetrics() { return metricsCase_ == 12; } /** + * + * *
    * Model evaluation metrics for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return The imageObjectDetectionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics + getImageObjectDetectionEvaluationMetrics() { if (metricsCase_ == 12) { - return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } /** + * + * *
    * Model evaluation metrics for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder + getImageObjectDetectionEvaluationMetricsOrBuilder() { if (metricsCase_ == 12) { - return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } public static final int TEXT_SENTIMENT_EVALUATION_METRICS_FIELD_NUMBER = 11; /** + * + * *
    * Evaluation metrics for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return Whether the textSentimentEvaluationMetrics field is set. */ @java.lang.Override @@ -392,42 +505,58 @@ public boolean hasTextSentimentEvaluationMetrics() { return metricsCase_ == 11; } /** + * + * *
    * Evaluation metrics for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return The textSentimentEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics() { + public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics + getTextSentimentEvaluationMetrics() { if (metricsCase_ == 11) { - return (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance(); } /** + * + * *
    * Evaluation metrics for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder + getTextSentimentEvaluationMetricsOrBuilder() { if (metricsCase_ == 11) { - return (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance(); } public static final int TEXT_EXTRACTION_EVALUATION_METRICS_FIELD_NUMBER = 13; /** + * + * *
    * Evaluation metrics for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return Whether the textExtractionEvaluationMetrics field is set. */ @java.lang.Override @@ -435,31 +564,42 @@ public boolean hasTextExtractionEvaluationMetrics() { return metricsCase_ == 13; } /** + * + * *
    * Evaluation metrics for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return The textExtractionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + getTextExtractionEvaluationMetrics() { if (metricsCase_ == 13) { - return (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance(); } /** + * + * *
    * Evaluation metrics for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder + getTextExtractionEvaluationMetricsOrBuilder() { if (metricsCase_ == 13) { - return (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_; } return com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance(); } @@ -467,6 +607,8 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder getTe public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -474,6 +616,7 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder getTe
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -482,14 +625,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 evaluation.
    * Format:
@@ -497,16 +641,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -517,6 +660,8 @@ public java.lang.String getName() { public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 2; private volatile java.lang.Object annotationSpecId_; /** + * + * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -529,6 +674,7 @@ public java.lang.String getName() {
    * 
* * string annotation_spec_id = 2; + * * @return The annotationSpecId. */ @java.lang.Override @@ -537,14 +683,15 @@ public java.lang.String getAnnotationSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; } } /** + * + * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -557,16 +704,15 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string annotation_spec_id = 2; + * * @return The bytes for annotationSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -577,6 +723,8 @@ public java.lang.String getAnnotationSpecId() { public static final int DISPLAY_NAME_FIELD_NUMBER = 15; private volatile java.lang.Object displayName_; /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -591,6 +739,7 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string display_name = 15; + * * @return The displayName. */ @java.lang.Override @@ -599,14 +748,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -621,16 +771,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 15; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -641,11 +790,14 @@ public java.lang.String getDisplayName() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -653,11 +805,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ @java.lang.Override @@ -665,6 +820,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
@@ -679,6 +836,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EVALUATED_EXAMPLE_COUNT_FIELD_NUMBER = 6; private int evaluatedExampleCount_; /** + * + * *
    * 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
@@ -691,6 +850,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * int32 evaluated_example_count = 6; + * * @return The evaluatedExampleCount. */ @java.lang.Override @@ -699,6 +859,7 @@ public int getEvaluatedExampleCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -710,8 +871,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -734,10 +894,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(11, (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_); } if (metricsCase_ == 12) { - output.writeMessage(12, (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); + output.writeMessage( + 12, (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); } if (metricsCase_ == 13) { - output.writeMessage(13, (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); + output.writeMessage( + 13, (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, displayName_); @@ -758,32 +920,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annotationSpecId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (evaluatedExampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, evaluatedExampleCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, evaluatedExampleCount_); } if (metricsCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_); } if (metricsCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_); } if (metricsCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_); } if (metricsCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_); } if (metricsCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, displayName_); @@ -796,26 +961,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.ModelEvaluation)) { return super.equals(obj); } - com.google.cloud.automl.v1.ModelEvaluation other = (com.google.cloud.automl.v1.ModelEvaluation) obj; + com.google.cloud.automl.v1.ModelEvaluation other = + (com.google.cloud.automl.v1.ModelEvaluation) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAnnotationSpecId() - .equals(other.getAnnotationSpecId())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + 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; + if (!getCreateTime().equals(other.getCreateTime())) return false; } - if (getEvaluatedExampleCount() - != other.getEvaluatedExampleCount()) return false; + if (getEvaluatedExampleCount() != other.getEvaluatedExampleCount()) return false; if (!getMetricsCase().equals(other.getMetricsCase())) return false; switch (metricsCase_) { case 8: @@ -823,16 +984,16 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClassificationEvaluationMetrics())) return false; break; case 9: - if (!getTranslationEvaluationMetrics() - .equals(other.getTranslationEvaluationMetrics())) return false; + 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; + if (!getTextSentimentEvaluationMetrics().equals(other.getTextSentimentEvaluationMetrics())) + return false; break; case 13: if (!getTextExtractionEvaluationMetrics() @@ -893,118 +1054,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.ModelEvaluation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ModelEvaluation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ModelEvaluation 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.v1.ModelEvaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.ModelEvaluation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.ModelEvaluation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.ModelEvaluation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ModelEvaluation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.ModelEvaluation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.ModelEvaluation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Evaluation results of a model.
    * 
* * Protobuf type {@code google.cloud.automl.v1.ModelEvaluation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ModelEvaluation) com.google.cloud.automl.v1.ModelEvaluationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.ModelEvaluationOuterClass + .internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1_ModelEvaluation_fieldAccessorTable + return com.google.cloud.automl.v1.ModelEvaluationOuterClass + .internal_static_google_cloud_automl_v1_ModelEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ModelEvaluation.class, com.google.cloud.automl.v1.ModelEvaluation.Builder.class); + com.google.cloud.automl.v1.ModelEvaluation.class, + com.google.cloud.automl.v1.ModelEvaluation.Builder.class); } // Construct using com.google.cloud.automl.v1.ModelEvaluation.newBuilder() @@ -1012,16 +1182,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1045,9 +1214,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.ModelEvaluationOuterClass + .internal_static_google_cloud_automl_v1_ModelEvaluation_descriptor; } @java.lang.Override @@ -1066,7 +1235,8 @@ public com.google.cloud.automl.v1.ModelEvaluation build() { @java.lang.Override public com.google.cloud.automl.v1.ModelEvaluation buildPartial() { - com.google.cloud.automl.v1.ModelEvaluation result = new com.google.cloud.automl.v1.ModelEvaluation(this); + com.google.cloud.automl.v1.ModelEvaluation result = + new com.google.cloud.automl.v1.ModelEvaluation(this); if (metricsCase_ == 8) { if (classificationEvaluationMetricsBuilder_ == null) { result.metrics_ = metrics_; @@ -1120,38 +1290,39 @@ public com.google.cloud.automl.v1.ModelEvaluation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ModelEvaluation) { - return mergeFrom((com.google.cloud.automl.v1.ModelEvaluation)other); + return mergeFrom((com.google.cloud.automl.v1.ModelEvaluation) other); } else { super.mergeFrom(other); return this; @@ -1179,29 +1350,36 @@ public Builder mergeFrom(com.google.cloud.automl.v1.ModelEvaluation other) { setEvaluatedExampleCount(other.getEvaluatedExampleCount()); } switch (other.getMetricsCase()) { - case CLASSIFICATION_EVALUATION_METRICS: { - mergeClassificationEvaluationMetrics(other.getClassificationEvaluationMetrics()); - 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; - } + case CLASSIFICATION_EVALUATION_METRICS: + { + mergeClassificationEvaluationMetrics(other.getClassificationEvaluationMetrics()); + 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; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1231,12 +1409,12 @@ public Builder mergeFrom( } return this; } + private int metricsCase_ = 0; private java.lang.Object metrics_; - public MetricsCase - getMetricsCase() { - return MetricsCase.forNumber( - metricsCase_); + + public MetricsCase getMetricsCase() { + return MetricsCase.forNumber(metricsCase_); } public Builder clearMetrics() { @@ -1246,10 +1424,14 @@ public Builder clearMetrics() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder> classificationEvaluationMetricsBuilder_; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder> + classificationEvaluationMetricsBuilder_; /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1257,7 +1439,10 @@ public Builder clearMetrics() {
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return Whether the classificationEvaluationMetrics field is set. */ @java.lang.Override @@ -1265,6 +1450,8 @@ public boolean hasClassificationEvaluationMetrics() { return metricsCase_ == 8; } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1272,11 +1459,15 @@ public boolean hasClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return The classificationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics getClassificationEvaluationMetrics() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics + getClassificationEvaluationMetrics() { if (classificationEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 8) { return (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_; @@ -1290,6 +1481,8 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics getClassificat } } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1297,9 +1490,12 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics getClassificat
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ - public Builder setClassificationEvaluationMetrics(com.google.cloud.automl.v1.ClassificationEvaluationMetrics value) { + public Builder setClassificationEvaluationMetrics( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics value) { if (classificationEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1313,6 +1509,8 @@ public Builder setClassificationEvaluationMetrics(com.google.cloud.automl.v1.Cla return this; } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1320,7 +1518,9 @@ public Builder setClassificationEvaluationMetrics(com.google.cloud.automl.v1.Cla
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ public Builder setClassificationEvaluationMetrics( com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder builderForValue) { @@ -1334,6 +1534,8 @@ public Builder setClassificationEvaluationMetrics( return this; } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1341,14 +1543,22 @@ public Builder setClassificationEvaluationMetrics(
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ - public Builder mergeClassificationEvaluationMetrics(com.google.cloud.automl.v1.ClassificationEvaluationMetrics value) { + public Builder mergeClassificationEvaluationMetrics( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics value) { if (classificationEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 8 && - metrics_ != com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance()) { - metrics_ = com.google.cloud.automl.v1.ClassificationEvaluationMetrics.newBuilder((com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_) - .mergeFrom(value).buildPartial(); + if (metricsCase_ == 8 + && metrics_ + != com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.newBuilder( + (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -1363,6 +1573,8 @@ public Builder mergeClassificationEvaluationMetrics(com.google.cloud.automl.v1.C return this; } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1370,7 +1582,9 @@ public Builder mergeClassificationEvaluationMetrics(com.google.cloud.automl.v1.C
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ public Builder clearClassificationEvaluationMetrics() { if (classificationEvaluationMetricsBuilder_ == null) { @@ -1389,6 +1603,8 @@ public Builder clearClassificationEvaluationMetrics() { return this; } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1396,12 +1612,17 @@ public Builder clearClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder getClassificationEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder + getClassificationEvaluationMetricsBuilder() { return getClassificationEvaluationMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1409,10 +1630,13 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder getCla
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder + getClassificationEvaluationMetricsOrBuilder() { if ((metricsCase_ == 8) && (classificationEvaluationMetricsBuilder_ != null)) { return classificationEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -1423,6 +1647,8 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder getCl } } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1430,35 +1656,52 @@ public com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder getCl
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1.ClassificationEvaluationMetrics, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder> getClassificationEvaluationMetricsFieldBuilder() { if (classificationEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 8)) { - metrics_ = com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance(); + metrics_ = + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.getDefaultInstance(); } - classificationEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder>( + classificationEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1.ClassificationEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 8; - onChanged();; + onChanged(); + ; return classificationEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationEvaluationMetrics, com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder> translationEvaluationMetricsBuilder_; + com.google.cloud.automl.v1.TranslationEvaluationMetrics, + com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, + com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder> + translationEvaluationMetricsBuilder_; /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return Whether the translationEvaluationMetrics field is set. */ @java.lang.Override @@ -1466,15 +1709,21 @@ public boolean hasTranslationEvaluationMetrics() { return metricsCase_ == 9; } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return The translationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationEvaluationMetrics getTranslationEvaluationMetrics() { + public com.google.cloud.automl.v1.TranslationEvaluationMetrics + getTranslationEvaluationMetrics() { if (translationEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 9) { return (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_; @@ -1488,13 +1737,18 @@ public com.google.cloud.automl.v1.TranslationEvaluationMetrics getTranslationEva } } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ - public Builder setTranslationEvaluationMetrics(com.google.cloud.automl.v1.TranslationEvaluationMetrics value) { + public Builder setTranslationEvaluationMetrics( + com.google.cloud.automl.v1.TranslationEvaluationMetrics value) { if (translationEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1508,11 +1762,15 @@ public Builder setTranslationEvaluationMetrics(com.google.cloud.automl.v1.Transl return this; } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ public Builder setTranslationEvaluationMetrics( com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder builderForValue) { @@ -1526,18 +1784,27 @@ public Builder setTranslationEvaluationMetrics( return this; } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ - public Builder mergeTranslationEvaluationMetrics(com.google.cloud.automl.v1.TranslationEvaluationMetrics value) { + public Builder mergeTranslationEvaluationMetrics( + com.google.cloud.automl.v1.TranslationEvaluationMetrics value) { if (translationEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 9 && - metrics_ != com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance()) { - metrics_ = com.google.cloud.automl.v1.TranslationEvaluationMetrics.newBuilder((com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_) - .mergeFrom(value).buildPartial(); + if (metricsCase_ == 9 + && metrics_ + != com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1.TranslationEvaluationMetrics.newBuilder( + (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -1552,11 +1819,15 @@ public Builder mergeTranslationEvaluationMetrics(com.google.cloud.automl.v1.Tran return this; } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ public Builder clearTranslationEvaluationMetrics() { if (translationEvaluationMetricsBuilder_ == null) { @@ -1575,24 +1846,34 @@ public Builder clearTranslationEvaluationMetrics() { return this; } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ - public com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder getTranslationEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder + getTranslationEvaluationMetricsBuilder() { return getTranslationEvaluationMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder + getTranslationEvaluationMetricsOrBuilder() { if ((metricsCase_ == 9) && (translationEvaluationMetricsBuilder_ != null)) { return translationEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -1603,39 +1884,57 @@ public com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder getTrans } } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationEvaluationMetrics, com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1.TranslationEvaluationMetrics, + com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, + com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder> getTranslationEvaluationMetricsFieldBuilder() { if (translationEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 9)) { metrics_ = com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance(); } - translationEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TranslationEvaluationMetrics, com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder>( + translationEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TranslationEvaluationMetrics, + com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder, + com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1.TranslationEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 9; - onChanged();; + onChanged(); + ; return translationEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder> imageObjectDetectionEvaluationMetricsBuilder_; + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder> + imageObjectDetectionEvaluationMetricsBuilder_; /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ @java.lang.Override @@ -1643,35 +1942,48 @@ public boolean hasImageObjectDetectionEvaluationMetrics() { return metricsCase_ == 12; } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return The imageObjectDetectionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics + getImageObjectDetectionEvaluationMetrics() { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 12) { return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); } else { if (metricsCase_ == 12) { return imageObjectDetectionEvaluationMetricsBuilder_.getMessage(); } - return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); } } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ - public Builder setImageObjectDetectionEvaluationMetrics(com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics value) { + public Builder setImageObjectDetectionEvaluationMetrics( + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics value) { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1685,11 +1997,15 @@ public Builder setImageObjectDetectionEvaluationMetrics(com.google.cloud.automl. return this; } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ public Builder setImageObjectDetectionEvaluationMetrics( com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder builderForValue) { @@ -1703,18 +2019,28 @@ public Builder setImageObjectDetectionEvaluationMetrics( return this; } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ - public Builder mergeImageObjectDetectionEvaluationMetrics(com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics value) { + public Builder mergeImageObjectDetectionEvaluationMetrics( + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics value) { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 12 && - metrics_ != com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance()) { - metrics_ = com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.newBuilder((com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_) - .mergeFrom(value).buildPartial(); + if (metricsCase_ == 12 + && metrics_ + != com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.newBuilder( + (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -1729,11 +2055,15 @@ public Builder mergeImageObjectDetectionEvaluationMetrics(com.google.cloud.autom return this; } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ public Builder clearImageObjectDetectionEvaluationMetrics() { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { @@ -1752,67 +2082,97 @@ public Builder clearImageObjectDetectionEvaluationMetrics() { return this; } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder getImageObjectDetectionEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder + getImageObjectDetectionEvaluationMetricsBuilder() { return getImageObjectDetectionEvaluationMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder + getImageObjectDetectionEvaluationMetricsOrBuilder() { if ((metricsCase_ == 12) && (imageObjectDetectionEvaluationMetricsBuilder_ != null)) { return imageObjectDetectionEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { if (metricsCase_ == 12) { return (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); } } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder> getImageObjectDetectionEvaluationMetricsFieldBuilder() { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 12)) { - metrics_ = com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); + metrics_ = + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); } - imageObjectDetectionEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder>( + imageObjectDetectionEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.Builder, + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 12; - onChanged();; + onChanged(); + ; return imageObjectDetectionEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder> textSentimentEvaluationMetricsBuilder_; + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, + com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder> + textSentimentEvaluationMetricsBuilder_; /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return Whether the textSentimentEvaluationMetrics field is set. */ @java.lang.Override @@ -1820,15 +2180,21 @@ public boolean hasTextSentimentEvaluationMetrics() { return metricsCase_ == 11; } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return The textSentimentEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics() { + public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics + getTextSentimentEvaluationMetrics() { if (textSentimentEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 11) { return (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_; @@ -1842,13 +2208,18 @@ public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getTextSentimen } } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ - public Builder setTextSentimentEvaluationMetrics(com.google.cloud.automl.v1.TextSentimentEvaluationMetrics value) { + public Builder setTextSentimentEvaluationMetrics( + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics value) { if (textSentimentEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1862,11 +2233,15 @@ public Builder setTextSentimentEvaluationMetrics(com.google.cloud.automl.v1.Text return this; } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ public Builder setTextSentimentEvaluationMetrics( com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder builderForValue) { @@ -1880,18 +2255,27 @@ public Builder setTextSentimentEvaluationMetrics( return this; } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ - public Builder mergeTextSentimentEvaluationMetrics(com.google.cloud.automl.v1.TextSentimentEvaluationMetrics value) { + public Builder mergeTextSentimentEvaluationMetrics( + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics value) { if (textSentimentEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 11 && - metrics_ != com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance()) { - metrics_ = com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.newBuilder((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_) - .mergeFrom(value).buildPartial(); + if (metricsCase_ == 11 + && metrics_ + != com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.newBuilder( + (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -1906,11 +2290,15 @@ public Builder mergeTextSentimentEvaluationMetrics(com.google.cloud.automl.v1.Te return this; } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ public Builder clearTextSentimentEvaluationMetrics() { if (textSentimentEvaluationMetricsBuilder_ == null) { @@ -1929,24 +2317,34 @@ public Builder clearTextSentimentEvaluationMetrics() { return this; } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ - public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder getTextSentimentEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder + getTextSentimentEvaluationMetricsBuilder() { return getTextSentimentEvaluationMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder + getTextSentimentEvaluationMetricsOrBuilder() { if ((metricsCase_ == 11) && (textSentimentEvaluationMetricsBuilder_ != null)) { return textSentimentEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -1957,39 +2355,57 @@ public com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder getTex } } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, + com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder> getTextSentimentEvaluationMetricsFieldBuilder() { if (textSentimentEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 11)) { metrics_ = com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance(); } - textSentimentEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder>( + textSentimentEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics, + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder, + com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 11; - onChanged();; + onChanged(); + ; return textSentimentEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder> textExtractionEvaluationMetricsBuilder_; + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, + com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder> + textExtractionEvaluationMetricsBuilder_; /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return Whether the textExtractionEvaluationMetrics field is set. */ @java.lang.Override @@ -1997,15 +2413,21 @@ public boolean hasTextExtractionEvaluationMetrics() { return metricsCase_ == 13; } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return The textExtractionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + getTextExtractionEvaluationMetrics() { if (textExtractionEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 13) { return (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_; @@ -2019,13 +2441,18 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getTextExtract } } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ - public Builder setTextExtractionEvaluationMetrics(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics value) { + public Builder setTextExtractionEvaluationMetrics( + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics value) { if (textExtractionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2039,11 +2466,15 @@ public Builder setTextExtractionEvaluationMetrics(com.google.cloud.automl.v1.Tex return this; } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ public Builder setTextExtractionEvaluationMetrics( com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder builderForValue) { @@ -2057,18 +2488,28 @@ public Builder setTextExtractionEvaluationMetrics( return this; } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ - public Builder mergeTextExtractionEvaluationMetrics(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics value) { + public Builder mergeTextExtractionEvaluationMetrics( + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics value) { if (textExtractionEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 13 && - metrics_ != com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance()) { - metrics_ = com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.newBuilder((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_) - .mergeFrom(value).buildPartial(); + if (metricsCase_ == 13 + && metrics_ + != com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.newBuilder( + (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -2083,11 +2524,15 @@ public Builder mergeTextExtractionEvaluationMetrics(com.google.cloud.automl.v1.T return this; } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ public Builder clearTextExtractionEvaluationMetrics() { if (textExtractionEvaluationMetricsBuilder_ == null) { @@ -2106,24 +2551,34 @@ public Builder clearTextExtractionEvaluationMetrics() { return this; } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder getTextExtractionEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder + getTextExtractionEvaluationMetricsBuilder() { return getTextExtractionEvaluationMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder + getTextExtractionEvaluationMetricsOrBuilder() { if ((metricsCase_ == 13) && (textExtractionEvaluationMetricsBuilder_ != null)) { return textExtractionEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -2134,33 +2589,46 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder getTe } } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, + com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder> getTextExtractionEvaluationMetricsFieldBuilder() { if (textExtractionEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 13)) { - metrics_ = com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance(); + metrics_ = + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance(); } - textExtractionEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder>( + textExtractionEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder, + com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 13; - onChanged();; + onChanged(); + ; return textExtractionEvaluationMetricsBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2168,13 +2636,13 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder getTe
      * 
* * string name = 1; + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2183,6 +2651,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2190,15 +2660,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2206,6 +2675,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2213,20 +2684,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2234,15 +2707,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2250,16 +2726,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2267,6 +2743,8 @@ public Builder setNameBytes( private java.lang.Object annotationSpecId_ = ""; /** + * + * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2279,13 +2757,13 @@ public Builder setNameBytes(
      * 
* * string annotation_spec_id = 2; + * * @return The annotationSpecId. */ public java.lang.String getAnnotationSpecId() { java.lang.Object ref = annotationSpecId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; @@ -2294,6 +2772,8 @@ public java.lang.String getAnnotationSpecId() { } } /** + * + * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2306,15 +2786,14 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 2; + * * @return The bytes for annotationSpecId. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -2322,6 +2801,8 @@ public java.lang.String getAnnotationSpecId() { } } /** + * + * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2334,20 +2815,22 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 2; + * * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId( - java.lang.String value) { + public Builder setAnnotationSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2360,15 +2843,18 @@ public Builder setAnnotationSpecId(
      * 
* * string annotation_spec_id = 2; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { - + annotationSpecId_ = getDefaultInstance().getAnnotationSpecId(); onChanged(); return this; } /** + * + * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2381,16 +2867,16 @@ public Builder clearAnnotationSpecId() {
      * 
* * string annotation_spec_id = 2; + * * @param value The bytes for annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecId_ = value; onChanged(); return this; @@ -2398,6 +2884,8 @@ public Builder setAnnotationSpecIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2412,13 +2900,13 @@ public Builder setAnnotationSpecIdBytes(
      * 
* * string display_name = 15; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2427,6 +2915,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2441,15 +2931,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 15; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2457,6 +2946,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2471,20 +2962,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 15; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2499,15 +2992,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 15; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -2522,16 +3018,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 15; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2539,34 +3035,47 @@ public Builder setDisplayNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -2587,14 +3096,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2605,6 +3115,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -2615,7 +3127,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2627,6 +3139,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -2645,6 +3159,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -2652,11 +3168,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -2667,11 +3185,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -2679,21 +3200,26 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } - private int evaluatedExampleCount_ ; + private int evaluatedExampleCount_; /** + * + * *
      * 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
@@ -2706,6 +3232,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * int32 evaluated_example_count = 6; + * * @return The evaluatedExampleCount. */ @java.lang.Override @@ -2713,6 +3240,8 @@ public int getEvaluatedExampleCount() { return evaluatedExampleCount_; } /** + * + * *
      * 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
@@ -2725,16 +3254,19 @@ public int getEvaluatedExampleCount() {
      * 
* * int32 evaluated_example_count = 6; + * * @param value The evaluatedExampleCount to set. * @return This builder for chaining. */ public Builder setEvaluatedExampleCount(int value) { - + evaluatedExampleCount_ = value; onChanged(); return this; } /** + * + * *
      * 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
@@ -2747,17 +3279,18 @@ public Builder setEvaluatedExampleCount(int value) {
      * 
* * int32 evaluated_example_count = 6; + * * @return This builder for chaining. */ public Builder clearEvaluatedExampleCount() { - + evaluatedExampleCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2767,12 +3300,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ModelEvaluation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ModelEvaluation) private static final com.google.cloud.automl.v1.ModelEvaluation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ModelEvaluation(); } @@ -2781,16 +3314,16 @@ public static com.google.cloud.automl.v1.ModelEvaluation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModelEvaluation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModelEvaluation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelEvaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelEvaluation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2805,6 +3338,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.ModelEvaluation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java index e67255a93..6cd4e4624 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/model_evaluation.proto package com.google.cloud.automl.v1; -public interface ModelEvaluationOrBuilder extends +public interface ModelEvaluationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ModelEvaluation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -15,11 +33,16 @@ public interface ModelEvaluationOrBuilder extends
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return Whether the classificationEvaluationMetrics field is set. */ boolean hasClassificationEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -27,11 +50,16 @@ public interface ModelEvaluationOrBuilder extends
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return The classificationEvaluationMetrics. */ com.google.cloud.automl.v1.ClassificationEvaluationMetrics getClassificationEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -39,119 +67,182 @@ public interface ModelEvaluationOrBuilder extends
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ - com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1.ClassificationEvaluationMetricsOrBuilder + getClassificationEvaluationMetricsOrBuilder(); /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return Whether the translationEvaluationMetrics field is set. */ boolean hasTranslationEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return The translationEvaluationMetrics. */ com.google.cloud.automl.v1.TranslationEvaluationMetrics getTranslationEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ - com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder + getTranslationEvaluationMetricsOrBuilder(); /** + * + * *
    * Model evaluation metrics for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ boolean hasImageObjectDetectionEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return The imageObjectDetectionEvaluationMetrics. */ - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics(); + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics + getImageObjectDetectionEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for image object detection.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ - com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetricsOrBuilder + getImageObjectDetectionEvaluationMetricsOrBuilder(); /** + * + * *
    * Evaluation metrics for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return Whether the textSentimentEvaluationMetrics field is set. */ boolean hasTextSentimentEvaluationMetrics(); /** + * + * *
    * Evaluation metrics for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return The textSentimentEvaluationMetrics. */ com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics(); /** + * + * *
    * Evaluation metrics for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ - com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder + getTextSentimentEvaluationMetricsOrBuilder(); /** + * + * *
    * Evaluation metrics for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return Whether the textExtractionEvaluationMetrics field is set. */ boolean hasTextExtractionEvaluationMetrics(); /** + * + * *
    * Evaluation metrics for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return The textExtractionEvaluationMetrics. */ com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics(); /** + * + * *
    * Evaluation metrics for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ - com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder + getTextExtractionEvaluationMetricsOrBuilder(); /** + * + * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -159,10 +250,13 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -170,12 +264,14 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -188,10 +284,13 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string annotation_spec_id = 2; + * * @return The annotationSpecId. */ java.lang.String getAnnotationSpecId(); /** + * + * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -204,12 +303,14 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string annotation_spec_id = 2; + * * @return The bytes for annotationSpecId. */ - com.google.protobuf.ByteString - getAnnotationSpecIdBytes(); + com.google.protobuf.ByteString getAnnotationSpecIdBytes(); /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -224,10 +325,13 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string display_name = 15; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
@@ -242,30 +346,38 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string display_name = 15; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
@@ -275,6 +387,8 @@ public interface ModelEvaluationOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * 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
@@ -287,6 +401,7 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * int32 evaluated_example_count = 6; + * * @return The evaluatedExampleCount. */ int getEvaluatedExampleCount(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOuterClass.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOuterClass.java new file mode 100644 index 000000000..e2e372537 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationOuterClass.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/model_evaluation.proto + +package com.google.cloud.automl.v1; + +public final class ModelEvaluationOuterClass { + private ModelEvaluationOuterClass() {} + + 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_v1_ModelEvaluation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ModelEvaluation_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/v1/model_evaluatio" + + "n.proto\022\026google.cloud.automl.v1\032\031google/" + + "api/resource.proto\032+google/cloud/automl/" + + "v1/classification.proto\032&google/cloud/au" + + "toml/v1/detection.proto\032,google/cloud/au" + + "toml/v1/text_extraction.proto\032+google/cl" + + "oud/automl/v1/text_sentiment.proto\032(goog" + + "le/cloud/automl/v1/translation.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\034google/ap" + + "i/annotations.proto\"\276\006\n\017ModelEvaluation\022" + + "d\n!classification_evaluation_metrics\030\010 \001" + + "(\01327.google.cloud.automl.v1.Classificati" + + "onEvaluationMetricsH\000\022^\n\036translation_eva" + + "luation_metrics\030\t \001(\01324.google.cloud.aut" + + "oml.v1.TranslationEvaluationMetricsH\000\022r\n" + + ")image_object_detection_evaluation_metri" + + "cs\030\014 \001(\0132=.google.cloud.automl.v1.ImageO" + + "bjectDetectionEvaluationMetricsH\000\022c\n!tex" + + "t_sentiment_evaluation_metrics\030\013 \001(\01326.g" + + "oogle.cloud.automl.v1.TextSentimentEvalu" + + "ationMetricsH\000\022e\n\"text_extraction_evalua" + + "tion_metrics\030\r \001(\01327.google.cloud.automl" + + ".v1.TextExtractionEvaluationMetricsH\000\022\014\n" + + "\004name\030\001 \001(\t\022\032\n\022annotation_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\027evalua" + + "ted_example_count\030\006 \001(\005:\207\001\352A\203\001\n%automl.g" + + "oogleapis.com/ModelEvaluation\022Zprojects/" + + "{project}/locations/{location}/models/{m" + + "odel}/modelEvaluations/{model_evaluation" + + "}B\t\n\007metricsB\252\001\n\032com.google.cloud.automl" + + ".v1P\001Z * Output configuration for ModelExport Action. *
* * Protobuf type {@code google.cloud.automl.v1.ModelExportOutputConfig} */ -public final class ModelExportOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ModelExportOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.ModelExportOutputConfig) ModelExportOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModelExportOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ModelExportOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,91 +71,98 @@ private ModelExportOutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage(com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destinationCase_ = 1; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; } - com.google.protobuf.MapEntry - params__ = input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put( - params__.getKey(), params__.getValue()); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - modelFormat_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + modelFormat_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ModelExportOutputConfig.class, com.google.cloud.automl.v1.ModelExportOutputConfig.Builder.class); + com.google.cloud.automl.v1.ModelExportOutputConfig.class, + com.google.cloud.automl.v1.ModelExportOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -154,24 +178,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -183,7 +211,10 @@ public int getNumber() {
    *  will be written.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -191,6 +222,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -202,17 +235,22 @@ public boolean hasGcsDestination() {
    *  will be written.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -224,12 +262,14 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
    *  will be written.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } @@ -237,6 +277,8 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui 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
@@ -269,6 +311,7 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
    * 
* * string model_format = 4; + * * @return The modelFormat. */ @java.lang.Override @@ -277,14 +320,15 @@ public java.lang.String getModelFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -317,16 +361,15 @@ public java.lang.String getModelFormat() {
    * 
* * string model_format = 4; + * * @return The bytes for modelFormat. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelFormat_ = b; return b; } else { @@ -335,24 +378,23 @@ public java.lang.String getModelFormat() { } public static final int PARAMS_FIELD_NUMBER = 2; + private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -361,6 +403,8 @@ 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
@@ -372,22 +416,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 2;
    */
-
   @java.lang.Override
-  public boolean containsParams(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsParams(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetParams().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Override
   @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
@@ -400,11 +444,12 @@ public java.util.Map getParams() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
   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
@@ -417,16 +462,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
-  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();
+  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
@@ -439,12 +484,11 @@ public java.lang.String getParamsOrDefault(
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getParamsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetParams().getMap();
+  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();
     }
@@ -452,6 +496,7 @@ public java.lang.String getParamsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -463,17 +508,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.automl.v1.GcsDestination) destination_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetParams(),
-        ParamsDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 2);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelFormat_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modelFormat_);
     }
@@ -487,18 +527,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.automl.v1.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__);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.automl.v1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelFormat_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modelFormat_);
@@ -511,22 +552,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.ModelExportOutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.ModelExportOutputConfig other = (com.google.cloud.automl.v1.ModelExportOutputConfig) obj;
+    com.google.cloud.automl.v1.ModelExportOutputConfig other =
+        (com.google.cloud.automl.v1.ModelExportOutputConfig) obj;
 
-    if (!getModelFormat()
-        .equals(other.getModelFormat())) return false;
-    if (!internalGetParams().equals(
-        other.internalGetParams())) return false;
+    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;
+        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -562,139 +601,146 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.ModelExportOutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.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.v1.ModelExportOutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.automl.v1.ModelExportOutputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.automl.v1.ModelExportOutputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.ModelExportOutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1.ModelExportOutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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.v1.ModelExportOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.ModelExportOutputConfig) com.google.cloud.automl.v1.ModelExportOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.ModelExportOutputConfig.class, com.google.cloud.automl.v1.ModelExportOutputConfig.Builder.class); + com.google.cloud.automl.v1.ModelExportOutputConfig.class, + com.google.cloud.automl.v1.ModelExportOutputConfig.Builder.class); } // Construct using com.google.cloud.automl.v1.ModelExportOutputConfig.newBuilder() @@ -702,16 +748,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -724,9 +769,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_ModelExportOutputConfig_descriptor; } @java.lang.Override @@ -745,7 +790,8 @@ public com.google.cloud.automl.v1.ModelExportOutputConfig build() { @java.lang.Override public com.google.cloud.automl.v1.ModelExportOutputConfig buildPartial() { - com.google.cloud.automl.v1.ModelExportOutputConfig result = new com.google.cloud.automl.v1.ModelExportOutputConfig(this); + com.google.cloud.automl.v1.ModelExportOutputConfig result = + new com.google.cloud.automl.v1.ModelExportOutputConfig(this); int from_bitField0_ = bitField0_; if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { @@ -766,38 +812,39 @@ public com.google.cloud.automl.v1.ModelExportOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.ModelExportOutputConfig) { - return mergeFrom((com.google.cloud.automl.v1.ModelExportOutputConfig)other); + return mergeFrom((com.google.cloud.automl.v1.ModelExportOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -805,21 +852,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.ModelExportOutputConfig other) { - if (other == com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.ModelExportOutputConfig.getDefaultInstance()) + return this; if (!other.getModelFormat().isEmpty()) { modelFormat_ = other.modelFormat_; onChanged(); } - internalGetMutableParams().mergeFrom( - other.internalGetParams()); + internalGetMutableParams().mergeFrom(other.internalGetParams()); switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -840,7 +889,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.ModelExportOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.ModelExportOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -849,12 +899,12 @@ public Builder mergeFrom( } return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -867,8 +917,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.automl.v1.GcsDestination, + com.google.cloud.automl.v1.GcsDestination.Builder, + com.google.cloud.automl.v1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -880,7 +935,10 @@ public Builder clearDestination() {
      *  will be written.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -888,6 +946,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -899,7 +959,10 @@ public boolean hasGcsDestination() {
      *  will be written.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsDestination. */ @java.lang.Override @@ -917,6 +980,8 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -928,7 +993,9 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
      *  will be written.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -944,6 +1011,8 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value return this; } /** + * + * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -955,7 +1024,9 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value
      *  will be written.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGcsDestination( com.google.cloud.automl.v1.GcsDestination.Builder builderForValue) { @@ -969,6 +1040,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -980,14 +1053,19 @@ public Builder setGcsDestination(
      *  will be written.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.automl.v1.GcsDestination.newBuilder((com.google.cloud.automl.v1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.automl.v1.GcsDestination.newBuilder( + (com.google.cloud.automl.v1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -1002,6 +1080,8 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val return this; } /** + * + * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -1013,7 +1093,9 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val
      *  will be written.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1032,6 +1114,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -1043,12 +1127,16 @@ public Builder clearGcsDestination() {
      *  will be written.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -1060,7 +1148,9 @@ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilde
      *  will be written.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1074,6 +1164,8 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui } } /** + * + * *
      * Required. The Google Cloud Storage location where the model is to be written to.
      * This location may only be set for the following model formats:
@@ -1085,29 +1177,39 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
      *  will be written.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> + com.google.cloud.automl.v1.GcsDestination, + com.google.cloud.automl.v1.GcsDestination.Builder, + com.google.cloud.automl.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.GcsDestination, + com.google.cloud.automl.v1.GcsDestination.Builder, + com.google.cloud.automl.v1.GcsDestinationOrBuilder>( (com.google.cloud.automl.v1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } 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
@@ -1140,13 +1242,13 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
      * 
* * string model_format = 4; + * * @return The modelFormat. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelFormat_ = s; return s; @@ -1155,6 +1257,8 @@ public 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
@@ -1187,15 +1291,14 @@ public java.lang.String getModelFormat() {
      * 
* * string model_format = 4; + * * @return The bytes for modelFormat. */ - public com.google.protobuf.ByteString - getModelFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelFormat_ = b; return b; } else { @@ -1203,6 +1306,8 @@ public 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
@@ -1235,20 +1340,22 @@ public java.lang.String getModelFormat() {
      * 
* * string model_format = 4; + * * @param value The modelFormat to set. * @return This builder for chaining. */ - public Builder setModelFormat( - java.lang.String value) { + public Builder setModelFormat(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -1281,15 +1388,18 @@ public Builder setModelFormat(
      * 
* * string model_format = 4; + * * @return This builder for chaining. */ 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
@@ -1322,37 +1432,36 @@ public Builder clearModelFormat() {
      * 
* * string model_format = 4; + * * @param value The bytes for modelFormat to set. * @return This builder for chaining. */ - public Builder setModelFormatBytes( - com.google.protobuf.ByteString value) { + public Builder setModelFormatBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelFormat_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } + private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged();; + internalGetMutableParams() { + onChanged(); + ; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1364,6 +1473,8 @@ 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
@@ -1375,22 +1486,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 2;
      */
-
     @java.lang.Override
-    public boolean containsParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsParams(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetParams().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getParamsMap()} instead.
-     */
+    /** Use {@link #getParamsMap()} instead. */
     @java.lang.Override
     @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
@@ -1403,11 +1514,12 @@ public java.util.Map getParams() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
     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
@@ -1420,16 +1532,17 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
     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();
+        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
@@ -1442,12 +1555,11 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getParamsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetParams().getMap();
+    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();
       }
@@ -1455,11 +1567,12 @@ public java.lang.String getParamsOrThrow(
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap()
-          .clear();
+      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
@@ -1471,23 +1584,21 @@ public Builder clearParams() {
      *
      * map<string, string> params = 2;
      */
-
-    public Builder removeParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableParams().getMutableMap()
-          .remove(key);
+    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.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableParams() {
+    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
@@ -1499,16 +1610,19 @@ public Builder removeParams(
      *
      * 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);
+    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
@@ -1520,16 +1634,13 @@ public Builder putParams(
      *
      * map<string, string> params = 2;
      */
-
-    public Builder putAllParams(
-        java.util.Map values) {
-      internalGetMutableParams().getMutableMap()
-          .putAll(values);
+    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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1539,12 +1650,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.ModelExportOutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.ModelExportOutputConfig)
   private static final com.google.cloud.automl.v1.ModelExportOutputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.ModelExportOutputConfig();
   }
@@ -1553,16 +1664,16 @@ public static com.google.cloud.automl.v1.ModelExportOutputConfig getDefaultInsta
     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);
-    }
-  };
+  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;
@@ -1577,6 +1688,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.ModelExportOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
index 46026606f..57d1497ac 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/io.proto
 
 package com.google.cloud.automl.v1;
 
-public interface ModelExportOutputConfigOrBuilder extends
+public interface ModelExportOutputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.ModelExportOutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -19,11 +37,16 @@ public interface ModelExportOutputConfigOrBuilder extends
    *  will be written.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -35,11 +58,16 @@ public interface ModelExportOutputConfigOrBuilder extends
    *  will be written.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsDestination. */ com.google.cloud.automl.v1.GcsDestination getGcsDestination(); /** + * + * *
    * Required. The Google Cloud Storage location where the model is to be written to.
    * This location may only be set for the following model formats:
@@ -51,11 +79,15 @@ public interface ModelExportOutputConfigOrBuilder extends
    *  will be written.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
    * 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
@@ -88,10 +120,13 @@ public interface ModelExportOutputConfigOrBuilder extends
    * 
* * string model_format = 4; + * * @return The modelFormat. */ 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
@@ -124,12 +159,14 @@ public interface ModelExportOutputConfigOrBuilder extends
    * 
* * string model_format = 4; + * * @return The bytes for modelFormat. */ - com.google.protobuf.ByteString - getModelFormatBytes(); + 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
@@ -143,6 +180,8 @@ public interface ModelExportOutputConfigOrBuilder extends
    */
   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
@@ -154,15 +193,13 @@ public interface ModelExportOutputConfigOrBuilder extends
    *
    * map<string, string> params = 2;
    */
-  boolean containsParams(
-      java.lang.String key);
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  boolean containsParams(java.lang.String key);
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getParams();
+  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
@@ -174,9 +211,10 @@ boolean containsParams(
    *
    * map<string, string> params = 2;
    */
-  java.util.Map
-  getParamsMap();
+  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
@@ -188,11 +226,10 @@ boolean containsParams(
    *
    * map<string, string> params = 2;
    */
-
-  java.lang.String getParamsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  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
@@ -204,9 +241,7 @@ java.lang.String getParamsOrDefault(
    *
    * map<string, string> params = 2;
    */
-
-  java.lang.String getParamsOrThrow(
-      java.lang.String key);
+  java.lang.String getParamsOrThrow(java.lang.String key);
 
   public com.google.cloud.automl.v1.ModelExportOutputConfig.DestinationCase getDestinationCase();
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java
index 3b1a40e2d..50848b2ea 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOrBuilder.java
@@ -1,197 +1,299 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/model.proto
 
 package com.google.cloud.automl.v1;
 
-public interface ModelOrBuilder extends
+public interface ModelOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Model)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Metadata for translation models.
    * 
* * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * * @return Whether the translationModelMetadata field is set. */ boolean hasTranslationModelMetadata(); /** + * + * *
    * Metadata for translation models.
    * 
* * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; + * * @return The translationModelMetadata. */ com.google.cloud.automl.v1.TranslationModelMetadata getTranslationModelMetadata(); /** + * + * *
    * Metadata for translation models.
    * 
* * .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; */ - com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder(); + com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder + getTranslationModelMetadataOrBuilder(); /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return Whether the imageClassificationModelMetadata field is set. */ boolean hasImageClassificationModelMetadata(); /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return The imageClassificationModelMetadata. */ com.google.cloud.automl.v1.ImageClassificationModelMetadata getImageClassificationModelMetadata(); /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ - com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder(); + com.google.cloud.automl.v1.ImageClassificationModelMetadataOrBuilder + getImageClassificationModelMetadataOrBuilder(); /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return Whether the textClassificationModelMetadata field is set. */ boolean hasTextClassificationModelMetadata(); /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return The textClassificationModelMetadata. */ com.google.cloud.automl.v1.TextClassificationModelMetadata getTextClassificationModelMetadata(); /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ - com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder(); + com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder + getTextClassificationModelMetadataOrBuilder(); /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return Whether the imageObjectDetectionModelMetadata field is set. */ boolean hasImageObjectDetectionModelMetadata(); /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return The imageObjectDetectionModelMetadata. */ - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata(); + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadata + getImageObjectDetectionModelMetadata(); /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ - com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder(); + com.google.cloud.automl.v1.ImageObjectDetectionModelMetadataOrBuilder + getImageObjectDetectionModelMetadataOrBuilder(); /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return Whether the textExtractionModelMetadata field is set. */ boolean hasTextExtractionModelMetadata(); /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return The textExtractionModelMetadata. */ com.google.cloud.automl.v1.TextExtractionModelMetadata getTextExtractionModelMetadata(); /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder(); + com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder + getTextExtractionModelMetadataOrBuilder(); /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return Whether the textSentimentModelMetadata field is set. */ boolean hasTextSentimentModelMetadata(); /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return The textSentimentModelMetadata. */ com.google.cloud.automl.v1.TextSentimentModelMetadata getTextSentimentModelMetadata(); /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ - com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder(); + com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder + getTextSentimentModelMetadataOrBuilder(); /** + * + * *
    * Output only. Resource name of the model.
    * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the model.
    * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * 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
@@ -200,10 +302,13 @@ public interface ModelOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ 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
@@ -212,52 +317,65 @@ public interface ModelOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * 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; + * * @return The datasetId. */ 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.
    * 
* * string dataset_id = 3; + * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString - getDatasetIdBytes(); + com.google.protobuf.ByteString getDatasetIdBytes(); /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
@@ -267,24 +385,32 @@ public interface ModelOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
@@ -294,49 +420,62 @@ public interface ModelOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Deployment state of the model. A model can only serve
    * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; + * * @return The enum numeric value on the wire for deploymentState. */ int getDeploymentStateValue(); /** + * + * *
    * Output only. Deployment state of the model. A model can only serve
    * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; + * * @return The deploymentState. */ com.google.cloud.automl.v1.Model.DeploymentState getDeploymentState(); /** + * + * *
    * Used to perform a consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 10; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Used to perform a consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 10; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -350,6 +489,8 @@ public interface ModelOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -361,15 +502,13 @@ public interface ModelOrBuilder extends
    *
    * map<string, string> labels = 34;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -381,9 +520,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 34;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -395,11 +535,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 34;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata to organize your model.
    * Label keys and values can be no longer than 64 characters
@@ -411,9 +550,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 34;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   public com.google.cloud.automl.v1.Model.ModelMetadataCase getModelMetadataCase();
 }
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOuterClass.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOuterClass.java
new file mode 100644
index 000000000..e15de4c57
--- /dev/null
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelOuterClass.java
@@ -0,0 +1,143 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1/model.proto
+
+package com.google.cloud.automl.v1;
+
+public final class ModelOuterClass {
+  private ModelOuterClass() {}
+
+  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_v1_Model_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_Model_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_Model_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_Model_LabelsEntry_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/v1/model.proto\022\026go"
+          + "ogle.cloud.automl.v1\032\031google/api/resourc"
+          + "e.proto\032\"google/cloud/automl/v1/image.pr"
+          + "oto\032!google/cloud/automl/v1/text.proto\032("
+          + "google/cloud/automl/v1/translation.proto"
+          + "\032\037google/protobuf/timestamp.proto\032\034googl"
+          + "e/api/annotations.proto\"\361\010\n\005Model\022V\n\032tra"
+          + "nslation_model_metadata\030\017 \001(\01320.google.c"
+          + "loud.automl.v1.TranslationModelMetadataH"
+          + "\000\022g\n#image_classification_model_metadata"
+          + "\030\r \001(\01328.google.cloud.automl.v1.ImageCla"
+          + "ssificationModelMetadataH\000\022e\n\"text_class"
+          + "ification_model_metadata\030\016 \001(\01327.google."
+          + "cloud.automl.v1.TextClassificationModelM"
+          + "etadataH\000\022j\n%image_object_detection_mode"
+          + "l_metadata\030\024 \001(\01329.google.cloud.automl.v"
+          + "1.ImageObjectDetectionModelMetadataH\000\022]\n"
+          + "\036text_extraction_model_metadata\030\023 \001(\01323."
+          + "google.cloud.automl.v1.TextExtractionMod"
+          + "elMetadataH\000\022[\n\035text_sentiment_model_met"
+          + "adata\030\026 \001(\01322.google.cloud.automl.v1.Tex"
+          + "tSentimentModelMetadataH\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\013update_time\030\013 \001(\0132\032.google"
+          + ".protobuf.Timestamp\022G\n\020deployment_state\030"
+          + "\010 \001(\0162-.google.cloud.automl.v1.Model.Dep"
+          + "loymentState\022\014\n\004etag\030\n \001(\t\0229\n\006labels\030\" \003"
+          + "(\0132).google.cloud.automl.v1.Model.Labels"
+          + "Entry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
+          + "ue\030\002 \001(\t:\0028\001\"Q\n\017DeploymentState\022 \n\034DEPLO"
+          + "YMENT_STATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020\001\022"
+          + "\016\n\nUNDEPLOYED\020\002:X\352AU\n\033automl.googleapis."
+          + "com/Model\0226projects/{project}/locations/"
+          + "{location}/models/{model}B\020\n\016model_metad"
+          + "ataB\252\001\n\032com.google.cloud.automl.v1P\001Z
  * A vertex represents a 2D point in the image.
  * The normalized vertex coordinates are between 0 to 1 fractions relative to
@@ -14,30 +31,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1.NormalizedVertex}
  */
-public final class NormalizedVertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.NormalizedVertex)
     NormalizedVertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private NormalizedVertex() {
-  }
+
+  private NormalizedVertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,56 +72,61 @@ private NormalizedVertex(
           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;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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.v1.Geometry.internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1.Geometry
+        .internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.automl.v1.Geometry
+        .internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1.NormalizedVertex.class, com.google.cloud.automl.v1.NormalizedVertex.Builder.class);
+            com.google.cloud.automl.v1.NormalizedVertex.class,
+            com.google.cloud.automl.v1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * Required. Horizontal coordinate.
    * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -116,11 +137,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Required. Vertical coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -129,6 +153,7 @@ public float getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +165,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (x_ != 0F) { output.writeFloat(1, x_); } @@ -158,12 +182,10 @@ public int getSerializedSize() { size = 0; if (x_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (y_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,19 +195,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.automl.v1.NormalizedVertex other = (com.google.cloud.automl.v1.NormalizedVertex) obj; + com.google.cloud.automl.v1.NormalizedVertex other = + (com.google.cloud.automl.v1.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 (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; } @@ -198,107 +219,112 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.NormalizedVertex parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.NormalizedVertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.NormalizedVertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.NormalizedVertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.NormalizedVertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.NormalizedVertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -309,21 +335,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.NormalizedVertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.NormalizedVertex)
       com.google.cloud.automl.v1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.Geometry
+          .internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.automl.v1.Geometry
+          .internal_static_google_cloud_automl_v1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.NormalizedVertex.class, com.google.cloud.automl.v1.NormalizedVertex.Builder.class);
+              com.google.cloud.automl.v1.NormalizedVertex.class,
+              com.google.cloud.automl.v1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.NormalizedVertex.newBuilder()
@@ -331,16 +359,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -352,9 +379,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.Geometry.internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.Geometry
+          .internal_static_google_cloud_automl_v1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -373,7 +400,8 @@ public com.google.cloud.automl.v1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.NormalizedVertex buildPartial() {
-      com.google.cloud.automl.v1.NormalizedVertex result = new com.google.cloud.automl.v1.NormalizedVertex(this);
+      com.google.cloud.automl.v1.NormalizedVertex result =
+          new com.google.cloud.automl.v1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -384,38 +412,39 @@ public com.google.cloud.automl.v1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.automl.v1.NormalizedVertex)other);
+        return mergeFrom((com.google.cloud.automl.v1.NormalizedVertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -459,13 +488,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * Required. Horizontal coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -473,42 +505,51 @@ public float getX() { return x_; } /** + * + * *
      * Required. Horizontal coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * Required. Horizontal coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -516,37 +557,43 @@ public float getY() { return y_; } /** + * + * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -556,12 +603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.NormalizedVertex) private static final com.google.cloud.automl.v1.NormalizedVertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.NormalizedVertex(); } @@ -570,16 +617,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -594,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/NormalizedVertexOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..db32a46ad --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/NormalizedVertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/geometry.proto + +package com.google.cloud.automl.v1; + +public interface NormalizedVertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Horizontal coordinate.
+   * 
+ * + * float x = 1; + * + * @return The x. + */ + float getX(); + + /** + * + * + *
+   * Required. Vertical coordinate.
+   * 
+ * + * float y = 2; + * + * @return The y. + */ + float getY(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java index e7836c8cb..f183e108e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadata.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; /** + * + * *
  * Metadata used across all long running operations returned by AutoML API.
  * 
* * Protobuf type {@code google.cloud.automl.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { partialFailures_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,186 +71,240 @@ private OperationMetadata( case 0: done = true; break; - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - partialFailures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - partialFailures_.add( - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + partialFailures_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + partialFailures_.add( + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - break; - } - case 66: { - com.google.cloud.automl.v1.DeleteOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 8) { - subBuilder = ((com.google.cloud.automl.v1.DeleteOperationMetadata) details_).toBuilder(); - } - details_ = - input.readMessage(com.google.cloud.automl.v1.DeleteOperationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.DeleteOperationMetadata) details_); - details_ = subBuilder.buildPartial(); + break; } - detailsCase_ = 8; - break; - } - case 82: { - com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 10) { - subBuilder = ((com.google.cloud.automl.v1.CreateModelOperationMetadata) details_).toBuilder(); - } - details_ = - input.readMessage(com.google.cloud.automl.v1.CreateModelOperationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.CreateModelOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 10; - break; - } - case 104: { + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } - progressPercent_ = input.readInt32(); - break; - } - case 122: { - com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 15) { - subBuilder = ((com.google.cloud.automl.v1.ImportDataOperationMetadata) details_).toBuilder(); - } - details_ = - input.readMessage(com.google.cloud.automl.v1.ImportDataOperationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ImportDataOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 15; - break; - } - case 130: { - com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 16) { - subBuilder = ((com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_).toBuilder(); + break; } - details_ = - input.readMessage(com.google.cloud.automl.v1.BatchPredictOperationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_); - details_ = subBuilder.buildPartial(); - } - detailsCase_ = 16; - break; - } - case 170: { - com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 21) { - subBuilder = ((com.google.cloud.automl.v1.ExportDataOperationMetadata) details_).toBuilder(); + case 66: + { + com.google.cloud.automl.v1.DeleteOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 8) { + subBuilder = + ((com.google.cloud.automl.v1.DeleteOperationMetadata) details_).toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1.DeleteOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.DeleteOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 8; + break; } - details_ = - input.readMessage(com.google.cloud.automl.v1.ExportDataOperationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ExportDataOperationMetadata) details_); - details_ = subBuilder.buildPartial(); + case 82: + { + com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 10) { + subBuilder = + ((com.google.cloud.automl.v1.CreateModelOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1.CreateModelOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 10; + break; } - detailsCase_ = 21; - break; - } - case 178: { - com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 22) { - subBuilder = ((com.google.cloud.automl.v1.ExportModelOperationMetadata) details_).toBuilder(); + case 104: + { + progressPercent_ = input.readInt32(); + break; } - details_ = - input.readMessage(com.google.cloud.automl.v1.ExportModelOperationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.ExportModelOperationMetadata) details_); - details_ = subBuilder.buildPartial(); + case 122: + { + com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 15) { + subBuilder = + ((com.google.cloud.automl.v1.ImportDataOperationMetadata) details_).toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1.ImportDataOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 15; + break; } - detailsCase_ = 22; - break; - } - case 194: { - com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 24) { - subBuilder = ((com.google.cloud.automl.v1.DeployModelOperationMetadata) details_).toBuilder(); + case 130: + { + com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 16) { + subBuilder = + ((com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1.BatchPredictOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 16; + break; } - details_ = - input.readMessage(com.google.cloud.automl.v1.DeployModelOperationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.DeployModelOperationMetadata) details_); - details_ = subBuilder.buildPartial(); + case 170: + { + com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 21) { + subBuilder = + ((com.google.cloud.automl.v1.ExportDataOperationMetadata) details_).toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1.ExportDataOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 21; + break; } - detailsCase_ = 24; - break; - } - case 202: { - com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 25) { - subBuilder = ((com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_).toBuilder(); + case 178: + { + com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 22) { + subBuilder = + ((com.google.cloud.automl.v1.ExportModelOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1.ExportModelOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 22; + break; } - details_ = - input.readMessage(com.google.cloud.automl.v1.UndeployModelOperationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_); - details_ = subBuilder.buildPartial(); + case 194: + { + com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 24) { + subBuilder = + ((com.google.cloud.automl.v1.DeployModelOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1.DeployModelOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 24; + break; } - detailsCase_ = 25; - break; - } - case 242: { - com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 30) { - subBuilder = ((com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_).toBuilder(); + case 202: + { + com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 25) { + subBuilder = + ((com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1.UndeployModelOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 25; + break; } - details_ = - input.readMessage(com.google.cloud.automl.v1.CreateDatasetOperationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_); - details_ = subBuilder.buildPartial(); + case 242: + { + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 30) { + subBuilder = + ((com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 30; + break; } - detailsCase_ = 30; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); @@ -242,23 +313,28 @@ private OperationMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.OperationMetadata.class, com.google.cloud.automl.v1.OperationMetadata.Builder.class); + com.google.cloud.automl.v1.OperationMetadata.class, + com.google.cloud.automl.v1.OperationMetadata.Builder.class); } private int detailsCase_ = 0; private java.lang.Object details_; + public enum DetailsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DELETE_DETAILS(8), DEPLOY_MODEL_DETAILS(24), @@ -271,6 +347,7 @@ public enum DetailsCase EXPORT_MODEL_DETAILS(22), DETAILS_NOT_SET(0); private final int value; + private DetailsCase(int value) { this.value = value; } @@ -286,37 +363,50 @@ 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 30: return CREATE_DATASET_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 0: return DETAILS_NOT_SET; - default: return null; + case 8: + return DELETE_DETAILS; + case 24: + return DEPLOY_MODEL_DETAILS; + case 25: + return UNDEPLOY_MODEL_DETAILS; + case 10: + return CREATE_MODEL_DETAILS; + case 30: + return CREATE_DATASET_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 0: + return DETAILS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DetailsCase - getDetailsCase() { - return DetailsCase.forNumber( - detailsCase_); + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); } public static final int DELETE_DETAILS_FIELD_NUMBER = 8; /** + * + * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; + * * @return Whether the deleteDetails field is set. */ @java.lang.Override @@ -324,21 +414,26 @@ public boolean hasDeleteDetails() { return detailsCase_ == 8; } /** + * + * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; + * * @return The deleteDetails. */ @java.lang.Override public com.google.cloud.automl.v1.DeleteOperationMetadata getDeleteDetails() { if (detailsCase_ == 8) { - return (com.google.cloud.automl.v1.DeleteOperationMetadata) details_; + return (com.google.cloud.automl.v1.DeleteOperationMetadata) details_; } return com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of a Delete operation.
    * 
@@ -348,18 +443,21 @@ public com.google.cloud.automl.v1.DeleteOperationMetadata getDeleteDetails() { @java.lang.Override public com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder getDeleteDetailsOrBuilder() { if (detailsCase_ == 8) { - return (com.google.cloud.automl.v1.DeleteOperationMetadata) details_; + return (com.google.cloud.automl.v1.DeleteOperationMetadata) details_; } return com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance(); } public static final int DEPLOY_MODEL_DETAILS_FIELD_NUMBER = 24; /** + * + * *
    * Details of a DeployModel operation.
    * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; + * * @return Whether the deployModelDetails field is set. */ @java.lang.Override @@ -367,21 +465,26 @@ public boolean hasDeployModelDetails() { return detailsCase_ == 24; } /** + * + * *
    * Details of a DeployModel operation.
    * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; + * * @return The deployModelDetails. */ @java.lang.Override public com.google.cloud.automl.v1.DeployModelOperationMetadata getDeployModelDetails() { if (detailsCase_ == 24) { - return (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_; } return com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of a DeployModel operation.
    * 
@@ -389,20 +492,25 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadata getDeployModelDet * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ @java.lang.Override - public com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder + getDeployModelDetailsOrBuilder() { if (detailsCase_ == 24) { - return (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_; } return com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance(); } public static final int UNDEPLOY_MODEL_DETAILS_FIELD_NUMBER = 25; /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return Whether the undeployModelDetails field is set. */ @java.lang.Override @@ -410,42 +518,53 @@ public boolean hasUndeployModelDetails() { return detailsCase_ == 25; } /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return The undeployModelDetails. */ @java.lang.Override public com.google.cloud.automl.v1.UndeployModelOperationMetadata getUndeployModelDetails() { if (detailsCase_ == 25) { - return (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_; } return com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ @java.lang.Override - public com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder + getUndeployModelDetailsOrBuilder() { if (detailsCase_ == 25) { - return (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_; } return com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance(); } public static final int CREATE_MODEL_DETAILS_FIELD_NUMBER = 10; /** + * + * *
    * Details of CreateModel operation.
    * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; + * * @return Whether the createModelDetails field is set. */ @java.lang.Override @@ -453,21 +572,26 @@ public boolean hasCreateModelDetails() { return detailsCase_ == 10; } /** + * + * *
    * Details of CreateModel operation.
    * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; + * * @return The createModelDetails. */ @java.lang.Override public com.google.cloud.automl.v1.CreateModelOperationMetadata getCreateModelDetails() { if (detailsCase_ == 10) { - return (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_; } return com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of CreateModel operation.
    * 
@@ -475,20 +599,25 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadata getCreateModelDet * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ @java.lang.Override - public com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder + getCreateModelDetailsOrBuilder() { if (detailsCase_ == 10) { - return (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_; } return com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance(); } public static final int CREATE_DATASET_DETAILS_FIELD_NUMBER = 30; /** + * + * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * + * * @return Whether the createDatasetDetails field is set. */ @java.lang.Override @@ -496,42 +625,53 @@ public boolean hasCreateDatasetDetails() { return detailsCase_ == 30; } /** + * + * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * + * * @return The createDatasetDetails. */ @java.lang.Override public com.google.cloud.automl.v1.CreateDatasetOperationMetadata getCreateDatasetDetails() { if (detailsCase_ == 30) { - return (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_; + return (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_; } return com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * */ @java.lang.Override - public com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder getCreateDatasetDetailsOrBuilder() { + public com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder + getCreateDatasetDetailsOrBuilder() { if (detailsCase_ == 30) { - return (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_; + return (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_; } return com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance(); } public static final int IMPORT_DATA_DETAILS_FIELD_NUMBER = 15; /** + * + * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; + * * @return Whether the importDataDetails field is set. */ @java.lang.Override @@ -539,21 +679,26 @@ public boolean hasImportDataDetails() { return detailsCase_ == 15; } /** + * + * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; + * * @return The importDataDetails. */ @java.lang.Override public com.google.cloud.automl.v1.ImportDataOperationMetadata getImportDataDetails() { if (detailsCase_ == 15) { - return (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_; + return (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_; } return com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of ImportData operation.
    * 
@@ -561,20 +706,24 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadata getImportDataDetai * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ @java.lang.Override - public com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder getImportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder + getImportDataDetailsOrBuilder() { if (detailsCase_ == 15) { - return (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_; + return (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_; } return com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance(); } public static final int BATCH_PREDICT_DETAILS_FIELD_NUMBER = 16; /** + * + * *
    * Details of BatchPredict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * * @return Whether the batchPredictDetails field is set. */ @java.lang.Override @@ -582,21 +731,26 @@ public boolean hasBatchPredictDetails() { return detailsCase_ == 16; } /** + * + * *
    * Details of BatchPredict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * * @return The batchPredictDetails. */ @java.lang.Override public com.google.cloud.automl.v1.BatchPredictOperationMetadata getBatchPredictDetails() { if (detailsCase_ == 16) { - return (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_; + return (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_; } return com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of BatchPredict operation.
    * 
@@ -604,20 +758,24 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadata getBatchPredictD * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder + getBatchPredictDetailsOrBuilder() { if (detailsCase_ == 16) { - return (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_; + return (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_; } return com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance(); } public static final int EXPORT_DATA_DETAILS_FIELD_NUMBER = 21; /** + * + * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; + * * @return Whether the exportDataDetails field is set. */ @java.lang.Override @@ -625,21 +783,26 @@ public boolean hasExportDataDetails() { return detailsCase_ == 21; } /** + * + * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; + * * @return The exportDataDetails. */ @java.lang.Override public com.google.cloud.automl.v1.ExportDataOperationMetadata getExportDataDetails() { if (detailsCase_ == 21) { - return (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_; + return (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_; } return com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of ExportData operation.
    * 
@@ -647,20 +810,24 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata getExportDataDetai * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ @java.lang.Override - public com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder getExportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder + getExportDataDetailsOrBuilder() { if (detailsCase_ == 21) { - return (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_; + return (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_; } return com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance(); } public static final int EXPORT_MODEL_DETAILS_FIELD_NUMBER = 22; /** + * + * *
    * Details of ExportModel operation.
    * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; + * * @return Whether the exportModelDetails field is set. */ @java.lang.Override @@ -668,21 +835,26 @@ public boolean hasExportModelDetails() { return detailsCase_ == 22; } /** + * + * *
    * Details of ExportModel operation.
    * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; + * * @return The exportModelDetails. */ @java.lang.Override public com.google.cloud.automl.v1.ExportModelOperationMetadata getExportModelDetails() { if (detailsCase_ == 22) { - return (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_; } return com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of ExportModel operation.
    * 
@@ -690,9 +862,10 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata getExportModelDet * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder + getExportModelDetailsOrBuilder() { if (detailsCase_ == 22) { - return (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_; + return (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_; } return com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance(); } @@ -700,12 +873,15 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder getExpor 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; + * * @return The progressPercent. */ @java.lang.Override @@ -716,6 +892,8 @@ public int getProgressPercent() { 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.
@@ -730,6 +908,8 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -740,11 +920,13 @@ public java.util.List getPartialFailuresList() {
    * repeated .google.rpc.Status partial_failures = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPartialFailuresOrBuilderList() {
     return partialFailures_;
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -759,6 +941,8 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -773,6 +957,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
     return partialFailures_.get(index);
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -783,19 +969,21 @@ public com.google.rpc.Status getPartialFailures(int index) {
    * repeated .google.rpc.Status partial_failures = 2;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
-      int index) {
+  public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
     return partialFailures_.get(index);
   }
 
   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; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -803,11 +991,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ @java.lang.Override @@ -815,6 +1006,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when the operation was created.
    * 
@@ -829,11 +1022,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -841,11 +1037,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return The updateTime. */ @java.lang.Override @@ -853,6 +1052,8 @@ 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.
    * 
@@ -865,6 +1066,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -876,8 +1078,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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)); } @@ -927,56 +1128,61 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < partialFailures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, partialFailures_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, partialFailures_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (detailsCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.automl.v1.DeleteOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.automl.v1.DeleteOperationMetadata) details_); } if (detailsCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, progressPercent_); } if (detailsCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_); } if (detailsCase_ == 16) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_); } if (detailsCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_); } if (detailsCase_ == 22) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_); } if (detailsCase_ == 24) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_); } if (detailsCase_ == 25) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_); } if (detailsCase_ == 30) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -986,64 +1192,52 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.OperationMetadata other = (com.google.cloud.automl.v1.OperationMetadata) obj; + com.google.cloud.automl.v1.OperationMetadata other = + (com.google.cloud.automl.v1.OperationMetadata) obj; - if (getProgressPercent() - != other.getProgressPercent()) return false; - if (!getPartialFailuresList() - .equals(other.getPartialFailuresList())) return false; + 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 (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + 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; + if (!getDeleteDetails().equals(other.getDeleteDetails())) return false; break; case 24: - if (!getDeployModelDetails() - .equals(other.getDeployModelDetails())) return false; + if (!getDeployModelDetails().equals(other.getDeployModelDetails())) return false; break; case 25: - if (!getUndeployModelDetails() - .equals(other.getUndeployModelDetails())) return false; + if (!getUndeployModelDetails().equals(other.getUndeployModelDetails())) return false; break; case 10: - if (!getCreateModelDetails() - .equals(other.getCreateModelDetails())) return false; + if (!getCreateModelDetails().equals(other.getCreateModelDetails())) return false; break; case 30: - if (!getCreateDatasetDetails() - .equals(other.getCreateDatasetDetails())) return false; + if (!getCreateDatasetDetails().equals(other.getCreateDatasetDetails())) return false; break; case 15: - if (!getImportDataDetails() - .equals(other.getImportDataDetails())) return false; + if (!getImportDataDetails().equals(other.getImportDataDetails())) return false; break; case 16: - if (!getBatchPredictDetails() - .equals(other.getBatchPredictDetails())) return false; + if (!getBatchPredictDetails().equals(other.getBatchPredictDetails())) return false; break; case 21: - if (!getExportDataDetails() - .equals(other.getExportDataDetails())) return false; + if (!getExportDataDetails().equals(other.getExportDataDetails())) return false; break; case 22: - if (!getExportModelDetails() - .equals(other.getExportModelDetails())) return false; + if (!getExportModelDetails().equals(other.getExportModelDetails())) return false; break; case 0: default: @@ -1118,118 +1312,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.OperationMetadata) com.google.cloud.automl.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.OperationMetadata.class, com.google.cloud.automl.v1.OperationMetadata.Builder.class); + com.google.cloud.automl.v1.OperationMetadata.class, + com.google.cloud.automl.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.OperationMetadata.newBuilder() @@ -1237,17 +1440,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPartialFailuresFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1277,9 +1480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -1298,7 +1501,8 @@ public com.google.cloud.automl.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.OperationMetadata buildPartial() { - com.google.cloud.automl.v1.OperationMetadata result = new com.google.cloud.automl.v1.OperationMetadata(this); + com.google.cloud.automl.v1.OperationMetadata result = + new com.google.cloud.automl.v1.OperationMetadata(this); int from_bitField0_ = bitField0_; if (detailsCase_ == 8) { if (deleteDetailsBuilder_ == null) { @@ -1392,38 +1596,39 @@ public com.google.cloud.automl.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1453,9 +1658,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.OperationMetadata other) { partialFailuresBuilder_ = null; partialFailures_ = other.partialFailures_; bitField0_ = (bitField0_ & ~0x00000001); - partialFailuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialFailuresFieldBuilder() : null; + partialFailuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialFailuresFieldBuilder() + : null; } else { partialFailuresBuilder_.addAllMessages(other.partialFailures_); } @@ -1468,45 +1674,55 @@ public Builder mergeFrom(com.google.cloud.automl.v1.OperationMetadata other) { 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 CREATE_DATASET_DETAILS: { - mergeCreateDatasetDetails(other.getCreateDatasetDetails()); - 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 DETAILS_NOT_SET: { - break; - } + 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 CREATE_DATASET_DETAILS: + { + mergeCreateDatasetDetails(other.getCreateDatasetDetails()); + 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 DETAILS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1536,12 +1752,12 @@ public Builder mergeFrom( } return this; } + private int detailsCase_ = 0; private java.lang.Object details_; - public DetailsCase - getDetailsCase() { - return DetailsCase.forNumber( - detailsCase_); + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); } public Builder clearDetails() { @@ -1554,13 +1770,19 @@ public Builder clearDetails() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeleteOperationMetadata, com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder> deleteDetailsBuilder_; + com.google.cloud.automl.v1.DeleteOperationMetadata, + com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, + com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder> + deleteDetailsBuilder_; /** + * + * *
      * Details of a Delete operation.
      * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; + * * @return Whether the deleteDetails field is set. */ @java.lang.Override @@ -1568,11 +1790,14 @@ public boolean hasDeleteDetails() { return detailsCase_ == 8; } /** + * + * *
      * Details of a Delete operation.
      * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; + * * @return The deleteDetails. */ @java.lang.Override @@ -1590,6 +1815,8 @@ public com.google.cloud.automl.v1.DeleteOperationMetadata getDeleteDetails() { } } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1610,6 +1837,8 @@ public Builder setDeleteDetails(com.google.cloud.automl.v1.DeleteOperationMetada return this; } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1628,6 +1857,8 @@ public Builder setDeleteDetails( return this; } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1636,10 +1867,14 @@ public Builder setDeleteDetails( */ public Builder mergeDeleteDetails(com.google.cloud.automl.v1.DeleteOperationMetadata value) { if (deleteDetailsBuilder_ == null) { - if (detailsCase_ == 8 && - details_ != com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.automl.v1.DeleteOperationMetadata.newBuilder((com.google.cloud.automl.v1.DeleteOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 8 + && details_ + != com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1.DeleteOperationMetadata.newBuilder( + (com.google.cloud.automl.v1.DeleteOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -1654,6 +1889,8 @@ public Builder mergeDeleteDetails(com.google.cloud.automl.v1.DeleteOperationMeta return this; } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1677,6 +1914,8 @@ public Builder clearDeleteDetails() { return this; } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1687,6 +1926,8 @@ public com.google.cloud.automl.v1.DeleteOperationMetadata.Builder getDeleteDetai return getDeleteDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1705,6 +1946,8 @@ public com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder getDeleteDeta } } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1712,32 +1955,44 @@ public com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder getDeleteDeta * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeleteOperationMetadata, com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder> + com.google.cloud.automl.v1.DeleteOperationMetadata, + com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, + com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder> getDeleteDetailsFieldBuilder() { if (deleteDetailsBuilder_ == null) { if (!(detailsCase_ == 8)) { details_ = com.google.cloud.automl.v1.DeleteOperationMetadata.getDefaultInstance(); } - deleteDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeleteOperationMetadata, com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder>( + deleteDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.DeleteOperationMetadata, + com.google.cloud.automl.v1.DeleteOperationMetadata.Builder, + com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.DeleteOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 8; - onChanged();; + onChanged(); + ; return deleteDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeployModelOperationMetadata, com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder> deployModelDetailsBuilder_; + com.google.cloud.automl.v1.DeployModelOperationMetadata, + com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder> + deployModelDetailsBuilder_; /** + * + * *
      * Details of a DeployModel operation.
      * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; + * * @return Whether the deployModelDetails field is set. */ @java.lang.Override @@ -1745,11 +2000,14 @@ public boolean hasDeployModelDetails() { return detailsCase_ == 24; } /** + * + * *
      * Details of a DeployModel operation.
      * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; + * * @return The deployModelDetails. */ @java.lang.Override @@ -1767,13 +2025,16 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadata getDeployModelDet } } /** + * + * *
      * Details of a DeployModel operation.
      * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ - public Builder setDeployModelDetails(com.google.cloud.automl.v1.DeployModelOperationMetadata value) { + public Builder setDeployModelDetails( + com.google.cloud.automl.v1.DeployModelOperationMetadata value) { if (deployModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1787,6 +2048,8 @@ public Builder setDeployModelDetails(com.google.cloud.automl.v1.DeployModelOpera return this; } /** + * + * *
      * Details of a DeployModel operation.
      * 
@@ -1805,18 +2068,25 @@ public Builder setDeployModelDetails( return this; } /** + * + * *
      * Details of a DeployModel operation.
      * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ - public Builder mergeDeployModelDetails(com.google.cloud.automl.v1.DeployModelOperationMetadata value) { + public Builder mergeDeployModelDetails( + com.google.cloud.automl.v1.DeployModelOperationMetadata value) { if (deployModelDetailsBuilder_ == null) { - if (detailsCase_ == 24 && - details_ != com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.automl.v1.DeployModelOperationMetadata.newBuilder((com.google.cloud.automl.v1.DeployModelOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 24 + && details_ + != com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1.DeployModelOperationMetadata.newBuilder( + (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -1831,6 +2101,8 @@ public Builder mergeDeployModelDetails(com.google.cloud.automl.v1.DeployModelOpe return this; } /** + * + * *
      * Details of a DeployModel operation.
      * 
@@ -1854,16 +2126,21 @@ public Builder clearDeployModelDetails() { return this; } /** + * + * *
      * Details of a DeployModel operation.
      * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ - public com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder getDeployModelDetailsBuilder() { + public com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder + getDeployModelDetailsBuilder() { return getDeployModelDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of a DeployModel operation.
      * 
@@ -1871,7 +2148,8 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder getDeploy * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ @java.lang.Override - public com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder + getDeployModelDetailsOrBuilder() { if ((detailsCase_ == 24) && (deployModelDetailsBuilder_ != null)) { return deployModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -1882,6 +2160,8 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder getDeplo } } /** + * + * *
      * Details of a DeployModel operation.
      * 
@@ -1889,32 +2169,45 @@ public com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder getDeplo * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeployModelOperationMetadata, com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder> + com.google.cloud.automl.v1.DeployModelOperationMetadata, + com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder> getDeployModelDetailsFieldBuilder() { if (deployModelDetailsBuilder_ == null) { if (!(detailsCase_ == 24)) { details_ = com.google.cloud.automl.v1.DeployModelOperationMetadata.getDefaultInstance(); } - deployModelDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.DeployModelOperationMetadata, com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder>( + deployModelDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.DeployModelOperationMetadata, + com.google.cloud.automl.v1.DeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.DeployModelOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 24; - onChanged();; + onChanged(); + ; return deployModelDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.UndeployModelOperationMetadata, com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder> undeployModelDetailsBuilder_; + com.google.cloud.automl.v1.UndeployModelOperationMetadata, + com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder> + undeployModelDetailsBuilder_; /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return Whether the undeployModelDetails field is set. */ @java.lang.Override @@ -1922,11 +2215,15 @@ public boolean hasUndeployModelDetails() { return detailsCase_ == 25; } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return The undeployModelDetails. */ @java.lang.Override @@ -1944,13 +2241,17 @@ public com.google.cloud.automl.v1.UndeployModelOperationMetadata getUndeployMode } } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - public Builder setUndeployModelDetails(com.google.cloud.automl.v1.UndeployModelOperationMetadata value) { + public Builder setUndeployModelDetails( + com.google.cloud.automl.v1.UndeployModelOperationMetadata value) { if (undeployModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1964,11 +2265,14 @@ public Builder setUndeployModelDetails(com.google.cloud.automl.v1.UndeployModelO return this; } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ public Builder setUndeployModelDetails( com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder builderForValue) { @@ -1982,18 +2286,26 @@ public Builder setUndeployModelDetails( return this; } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - public Builder mergeUndeployModelDetails(com.google.cloud.automl.v1.UndeployModelOperationMetadata value) { + public Builder mergeUndeployModelDetails( + com.google.cloud.automl.v1.UndeployModelOperationMetadata value) { if (undeployModelDetailsBuilder_ == null) { - if (detailsCase_ == 25 && - details_ != com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.automl.v1.UndeployModelOperationMetadata.newBuilder((com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 25 + && details_ + != com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1.UndeployModelOperationMetadata.newBuilder( + (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2008,11 +2320,14 @@ public Builder mergeUndeployModelDetails(com.google.cloud.automl.v1.UndeployMode return this; } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ public Builder clearUndeployModelDetails() { if (undeployModelDetailsBuilder_ == null) { @@ -2031,24 +2346,32 @@ public Builder clearUndeployModelDetails() { return this; } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - public com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder getUndeployModelDetailsBuilder() { + public com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder + getUndeployModelDetailsBuilder() { return getUndeployModelDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ @java.lang.Override - public com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder + getUndeployModelDetailsOrBuilder() { if ((detailsCase_ == 25) && (undeployModelDetailsBuilder_ != null)) { return undeployModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2059,39 +2382,54 @@ public com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder getUnd } } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.UndeployModelOperationMetadata, com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder> + com.google.cloud.automl.v1.UndeployModelOperationMetadata, + com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder> getUndeployModelDetailsFieldBuilder() { if (undeployModelDetailsBuilder_ == null) { if (!(detailsCase_ == 25)) { details_ = com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance(); } - undeployModelDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.UndeployModelOperationMetadata, com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder>( + undeployModelDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.UndeployModelOperationMetadata, + com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.UndeployModelOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 25; - onChanged();; + onChanged(); + ; return undeployModelDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateModelOperationMetadata, com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder> createModelDetailsBuilder_; + com.google.cloud.automl.v1.CreateModelOperationMetadata, + com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, + com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder> + createModelDetailsBuilder_; /** + * + * *
      * Details of CreateModel operation.
      * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; + * * @return Whether the createModelDetails field is set. */ @java.lang.Override @@ -2099,11 +2437,14 @@ public boolean hasCreateModelDetails() { return detailsCase_ == 10; } /** + * + * *
      * Details of CreateModel operation.
      * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; + * * @return The createModelDetails. */ @java.lang.Override @@ -2121,13 +2462,16 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadata getCreateModelDet } } /** + * + * *
      * Details of CreateModel operation.
      * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ - public Builder setCreateModelDetails(com.google.cloud.automl.v1.CreateModelOperationMetadata value) { + public Builder setCreateModelDetails( + com.google.cloud.automl.v1.CreateModelOperationMetadata value) { if (createModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2141,6 +2485,8 @@ public Builder setCreateModelDetails(com.google.cloud.automl.v1.CreateModelOpera return this; } /** + * + * *
      * Details of CreateModel operation.
      * 
@@ -2159,18 +2505,25 @@ public Builder setCreateModelDetails( return this; } /** + * + * *
      * Details of CreateModel operation.
      * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ - public Builder mergeCreateModelDetails(com.google.cloud.automl.v1.CreateModelOperationMetadata value) { + public Builder mergeCreateModelDetails( + com.google.cloud.automl.v1.CreateModelOperationMetadata value) { if (createModelDetailsBuilder_ == null) { - if (detailsCase_ == 10 && - details_ != com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.automl.v1.CreateModelOperationMetadata.newBuilder((com.google.cloud.automl.v1.CreateModelOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 10 + && details_ + != com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1.CreateModelOperationMetadata.newBuilder( + (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2185,6 +2538,8 @@ public Builder mergeCreateModelDetails(com.google.cloud.automl.v1.CreateModelOpe return this; } /** + * + * *
      * Details of CreateModel operation.
      * 
@@ -2208,16 +2563,21 @@ public Builder clearCreateModelDetails() { return this; } /** + * + * *
      * Details of CreateModel operation.
      * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ - public com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder getCreateModelDetailsBuilder() { + public com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder + getCreateModelDetailsBuilder() { return getCreateModelDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of CreateModel operation.
      * 
@@ -2225,7 +2585,8 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder getCreate * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ @java.lang.Override - public com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder + getCreateModelDetailsOrBuilder() { if ((detailsCase_ == 10) && (createModelDetailsBuilder_ != null)) { return createModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2236,6 +2597,8 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder getCreat } } /** + * + * *
      * Details of CreateModel operation.
      * 
@@ -2243,32 +2606,45 @@ public com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder getCreat * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateModelOperationMetadata, com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder> + com.google.cloud.automl.v1.CreateModelOperationMetadata, + com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, + com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder> getCreateModelDetailsFieldBuilder() { if (createModelDetailsBuilder_ == null) { if (!(detailsCase_ == 10)) { details_ = com.google.cloud.automl.v1.CreateModelOperationMetadata.getDefaultInstance(); } - createModelDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateModelOperationMetadata, com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder>( + createModelDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.CreateModelOperationMetadata, + com.google.cloud.automl.v1.CreateModelOperationMetadata.Builder, + com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.CreateModelOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 10; - onChanged();; + onChanged(); + ; return createModelDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateDatasetOperationMetadata, com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder> createDatasetDetailsBuilder_; + com.google.cloud.automl.v1.CreateDatasetOperationMetadata, + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, + com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder> + createDatasetDetailsBuilder_; /** + * + * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * + * * @return Whether the createDatasetDetails field is set. */ @java.lang.Override @@ -2276,11 +2652,15 @@ public boolean hasCreateDatasetDetails() { return detailsCase_ == 30; } /** + * + * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * + * * @return The createDatasetDetails. */ @java.lang.Override @@ -2298,13 +2678,17 @@ public com.google.cloud.automl.v1.CreateDatasetOperationMetadata getCreateDatase } } /** + * + * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * */ - public Builder setCreateDatasetDetails(com.google.cloud.automl.v1.CreateDatasetOperationMetadata value) { + public Builder setCreateDatasetDetails( + com.google.cloud.automl.v1.CreateDatasetOperationMetadata value) { if (createDatasetDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2318,11 +2702,14 @@ public Builder setCreateDatasetDetails(com.google.cloud.automl.v1.CreateDatasetO return this; } /** + * + * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * */ public Builder setCreateDatasetDetails( com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder builderForValue) { @@ -2336,18 +2723,26 @@ public Builder setCreateDatasetDetails( return this; } /** + * + * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * */ - public Builder mergeCreateDatasetDetails(com.google.cloud.automl.v1.CreateDatasetOperationMetadata value) { + public Builder mergeCreateDatasetDetails( + com.google.cloud.automl.v1.CreateDatasetOperationMetadata value) { if (createDatasetDetailsBuilder_ == null) { - if (detailsCase_ == 30 && - details_ != com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.automl.v1.CreateDatasetOperationMetadata.newBuilder((com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 30 + && details_ + != com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.newBuilder( + (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2362,11 +2757,14 @@ public Builder mergeCreateDatasetDetails(com.google.cloud.automl.v1.CreateDatase return this; } /** + * + * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * */ public Builder clearCreateDatasetDetails() { if (createDatasetDetailsBuilder_ == null) { @@ -2385,24 +2783,32 @@ public Builder clearCreateDatasetDetails() { return this; } /** + * + * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * */ - public com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder getCreateDatasetDetailsBuilder() { + public com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder + getCreateDatasetDetailsBuilder() { return getCreateDatasetDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * */ @java.lang.Override - public com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder getCreateDatasetDetailsOrBuilder() { + public com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder + getCreateDatasetDetailsOrBuilder() { if ((detailsCase_ == 30) && (createDatasetDetailsBuilder_ != null)) { return createDatasetDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2413,39 +2819,54 @@ public com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder getCre } } /** + * + * *
      * Details of CreateDataset operation.
      * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateDatasetOperationMetadata, com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder> + com.google.cloud.automl.v1.CreateDatasetOperationMetadata, + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, + com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder> getCreateDatasetDetailsFieldBuilder() { if (createDatasetDetailsBuilder_ == null) { if (!(detailsCase_ == 30)) { details_ = com.google.cloud.automl.v1.CreateDatasetOperationMetadata.getDefaultInstance(); } - createDatasetDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.CreateDatasetOperationMetadata, com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder>( + createDatasetDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.CreateDatasetOperationMetadata, + com.google.cloud.automl.v1.CreateDatasetOperationMetadata.Builder, + com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.CreateDatasetOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 30; - onChanged();; + onChanged(); + ; return createDatasetDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImportDataOperationMetadata, com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder> importDataDetailsBuilder_; + com.google.cloud.automl.v1.ImportDataOperationMetadata, + com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, + com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder> + importDataDetailsBuilder_; /** + * + * *
      * Details of ImportData operation.
      * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; + * * @return Whether the importDataDetails field is set. */ @java.lang.Override @@ -2453,11 +2874,14 @@ public boolean hasImportDataDetails() { return detailsCase_ == 15; } /** + * + * *
      * Details of ImportData operation.
      * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; + * * @return The importDataDetails. */ @java.lang.Override @@ -2475,13 +2899,16 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadata getImportDataDetai } } /** + * + * *
      * Details of ImportData operation.
      * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ - public Builder setImportDataDetails(com.google.cloud.automl.v1.ImportDataOperationMetadata value) { + public Builder setImportDataDetails( + com.google.cloud.automl.v1.ImportDataOperationMetadata value) { if (importDataDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2495,6 +2922,8 @@ public Builder setImportDataDetails(com.google.cloud.automl.v1.ImportDataOperati return this; } /** + * + * *
      * Details of ImportData operation.
      * 
@@ -2513,18 +2942,25 @@ public Builder setImportDataDetails( return this; } /** + * + * *
      * Details of ImportData operation.
      * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ - public Builder mergeImportDataDetails(com.google.cloud.automl.v1.ImportDataOperationMetadata value) { + public Builder mergeImportDataDetails( + com.google.cloud.automl.v1.ImportDataOperationMetadata value) { if (importDataDetailsBuilder_ == null) { - if (detailsCase_ == 15 && - details_ != com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.automl.v1.ImportDataOperationMetadata.newBuilder((com.google.cloud.automl.v1.ImportDataOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 15 + && details_ + != com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1.ImportDataOperationMetadata.newBuilder( + (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2539,6 +2975,8 @@ public Builder mergeImportDataDetails(com.google.cloud.automl.v1.ImportDataOpera return this; } /** + * + * *
      * Details of ImportData operation.
      * 
@@ -2562,16 +3000,21 @@ public Builder clearImportDataDetails() { return this; } /** + * + * *
      * Details of ImportData operation.
      * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ - public com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder getImportDataDetailsBuilder() { + public com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder + getImportDataDetailsBuilder() { return getImportDataDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of ImportData operation.
      * 
@@ -2579,7 +3022,8 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder getImportD * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ @java.lang.Override - public com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder getImportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder + getImportDataDetailsOrBuilder() { if ((detailsCase_ == 15) && (importDataDetailsBuilder_ != null)) { return importDataDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2590,6 +3034,8 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder getImport } } /** + * + * *
      * Details of ImportData operation.
      * 
@@ -2597,32 +3043,45 @@ public com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder getImport * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImportDataOperationMetadata, com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder> + com.google.cloud.automl.v1.ImportDataOperationMetadata, + com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, + com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder> getImportDataDetailsFieldBuilder() { if (importDataDetailsBuilder_ == null) { if (!(detailsCase_ == 15)) { details_ = com.google.cloud.automl.v1.ImportDataOperationMetadata.getDefaultInstance(); } - importDataDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ImportDataOperationMetadata, com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder>( + importDataDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ImportDataOperationMetadata, + com.google.cloud.automl.v1.ImportDataOperationMetadata.Builder, + com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.ImportDataOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 15; - onChanged();; + onChanged(); + ; return importDataDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOperationMetadata, com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder> batchPredictDetailsBuilder_; + com.google.cloud.automl.v1.BatchPredictOperationMetadata, + com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, + com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder> + batchPredictDetailsBuilder_; /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * + * * @return Whether the batchPredictDetails field is set. */ @java.lang.Override @@ -2630,11 +3089,15 @@ public boolean hasBatchPredictDetails() { return detailsCase_ == 16; } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * + * * @return The batchPredictDetails. */ @java.lang.Override @@ -2652,13 +3115,17 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadata getBatchPredictD } } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ - public Builder setBatchPredictDetails(com.google.cloud.automl.v1.BatchPredictOperationMetadata value) { + public Builder setBatchPredictDetails( + com.google.cloud.automl.v1.BatchPredictOperationMetadata value) { if (batchPredictDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2672,11 +3139,14 @@ public Builder setBatchPredictDetails(com.google.cloud.automl.v1.BatchPredictOpe return this; } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ public Builder setBatchPredictDetails( com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder builderForValue) { @@ -2690,18 +3160,26 @@ public Builder setBatchPredictDetails( return this; } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ - public Builder mergeBatchPredictDetails(com.google.cloud.automl.v1.BatchPredictOperationMetadata value) { + public Builder mergeBatchPredictDetails( + com.google.cloud.automl.v1.BatchPredictOperationMetadata value) { if (batchPredictDetailsBuilder_ == null) { - if (detailsCase_ == 16 && - details_ != com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.automl.v1.BatchPredictOperationMetadata.newBuilder((com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 16 + && details_ + != com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1.BatchPredictOperationMetadata.newBuilder( + (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2716,11 +3194,14 @@ public Builder mergeBatchPredictDetails(com.google.cloud.automl.v1.BatchPredictO return this; } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ public Builder clearBatchPredictDetails() { if (batchPredictDetailsBuilder_ == null) { @@ -2739,24 +3220,32 @@ public Builder clearBatchPredictDetails() { return this; } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ - public com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder getBatchPredictDetailsBuilder() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder + getBatchPredictDetailsBuilder() { return getBatchPredictDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ @java.lang.Override - public com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder() { + public com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder + getBatchPredictDetailsOrBuilder() { if ((detailsCase_ == 16) && (batchPredictDetailsBuilder_ != null)) { return batchPredictDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2767,39 +3256,54 @@ public com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder getBatc } } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOperationMetadata, com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder> + com.google.cloud.automl.v1.BatchPredictOperationMetadata, + com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, + com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder> getBatchPredictDetailsFieldBuilder() { if (batchPredictDetailsBuilder_ == null) { if (!(detailsCase_ == 16)) { details_ = com.google.cloud.automl.v1.BatchPredictOperationMetadata.getDefaultInstance(); } - batchPredictDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.BatchPredictOperationMetadata, com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder>( + batchPredictDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.BatchPredictOperationMetadata, + com.google.cloud.automl.v1.BatchPredictOperationMetadata.Builder, + com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.BatchPredictOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 16; - onChanged();; + onChanged(); + ; return batchPredictDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata, com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder> exportDataDetailsBuilder_; + com.google.cloud.automl.v1.ExportDataOperationMetadata, + com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, + com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder> + exportDataDetailsBuilder_; /** + * + * *
      * Details of ExportData operation.
      * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; + * * @return Whether the exportDataDetails field is set. */ @java.lang.Override @@ -2807,11 +3311,14 @@ public boolean hasExportDataDetails() { return detailsCase_ == 21; } /** + * + * *
      * Details of ExportData operation.
      * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; + * * @return The exportDataDetails. */ @java.lang.Override @@ -2829,13 +3336,16 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata getExportDataDetai } } /** + * + * *
      * Details of ExportData operation.
      * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ - public Builder setExportDataDetails(com.google.cloud.automl.v1.ExportDataOperationMetadata value) { + public Builder setExportDataDetails( + com.google.cloud.automl.v1.ExportDataOperationMetadata value) { if (exportDataDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2849,6 +3359,8 @@ public Builder setExportDataDetails(com.google.cloud.automl.v1.ExportDataOperati return this; } /** + * + * *
      * Details of ExportData operation.
      * 
@@ -2867,18 +3379,25 @@ public Builder setExportDataDetails( return this; } /** + * + * *
      * Details of ExportData operation.
      * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ - public Builder mergeExportDataDetails(com.google.cloud.automl.v1.ExportDataOperationMetadata value) { + public Builder mergeExportDataDetails( + com.google.cloud.automl.v1.ExportDataOperationMetadata value) { if (exportDataDetailsBuilder_ == null) { - if (detailsCase_ == 21 && - details_ != com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.automl.v1.ExportDataOperationMetadata.newBuilder((com.google.cloud.automl.v1.ExportDataOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 21 + && details_ + != com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1.ExportDataOperationMetadata.newBuilder( + (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2893,6 +3412,8 @@ public Builder mergeExportDataDetails(com.google.cloud.automl.v1.ExportDataOpera return this; } /** + * + * *
      * Details of ExportData operation.
      * 
@@ -2916,16 +3437,21 @@ public Builder clearExportDataDetails() { return this; } /** + * + * *
      * Details of ExportData operation.
      * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ - public com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder getExportDataDetailsBuilder() { + public com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder + getExportDataDetailsBuilder() { return getExportDataDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of ExportData operation.
      * 
@@ -2933,7 +3459,8 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder getExportD * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ @java.lang.Override - public com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder getExportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder + getExportDataDetailsOrBuilder() { if ((detailsCase_ == 21) && (exportDataDetailsBuilder_ != null)) { return exportDataDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2944,6 +3471,8 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder getExport } } /** + * + * *
      * Details of ExportData operation.
      * 
@@ -2951,32 +3480,44 @@ public com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder getExport * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata, com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder> + com.google.cloud.automl.v1.ExportDataOperationMetadata, + com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, + com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder> getExportDataDetailsFieldBuilder() { if (exportDataDetailsBuilder_ == null) { if (!(detailsCase_ == 21)) { details_ = com.google.cloud.automl.v1.ExportDataOperationMetadata.getDefaultInstance(); } - exportDataDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportDataOperationMetadata, com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder>( + exportDataDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ExportDataOperationMetadata, + com.google.cloud.automl.v1.ExportDataOperationMetadata.Builder, + com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.ExportDataOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 21; - onChanged();; + onChanged(); + ; return exportDataDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata, com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder> exportModelDetailsBuilder_; + com.google.cloud.automl.v1.ExportModelOperationMetadata, + com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, + com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder> + exportModelDetailsBuilder_; /** + * + * *
      * Details of ExportModel operation.
      * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; + * * @return Whether the exportModelDetails field is set. */ @java.lang.Override @@ -2984,11 +3525,14 @@ public boolean hasExportModelDetails() { return detailsCase_ == 22; } /** + * + * *
      * Details of ExportModel operation.
      * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; + * * @return The exportModelDetails. */ @java.lang.Override @@ -3006,13 +3550,16 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata getExportModelDet } } /** + * + * *
      * Details of ExportModel operation.
      * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ - public Builder setExportModelDetails(com.google.cloud.automl.v1.ExportModelOperationMetadata value) { + public Builder setExportModelDetails( + com.google.cloud.automl.v1.ExportModelOperationMetadata value) { if (exportModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3026,6 +3573,8 @@ public Builder setExportModelDetails(com.google.cloud.automl.v1.ExportModelOpera return this; } /** + * + * *
      * Details of ExportModel operation.
      * 
@@ -3044,18 +3593,25 @@ public Builder setExportModelDetails( return this; } /** + * + * *
      * Details of ExportModel operation.
      * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ - public Builder mergeExportModelDetails(com.google.cloud.automl.v1.ExportModelOperationMetadata value) { + public Builder mergeExportModelDetails( + com.google.cloud.automl.v1.ExportModelOperationMetadata value) { if (exportModelDetailsBuilder_ == null) { - if (detailsCase_ == 22 && - details_ != com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.automl.v1.ExportModelOperationMetadata.newBuilder((com.google.cloud.automl.v1.ExportModelOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 22 + && details_ + != com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1.ExportModelOperationMetadata.newBuilder( + (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -3070,6 +3626,8 @@ public Builder mergeExportModelDetails(com.google.cloud.automl.v1.ExportModelOpe return this; } /** + * + * *
      * Details of ExportModel operation.
      * 
@@ -3093,16 +3651,21 @@ public Builder clearExportModelDetails() { return this; } /** + * + * *
      * Details of ExportModel operation.
      * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ - public com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder getExportModelDetailsBuilder() { + public com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder + getExportModelDetailsBuilder() { return getExportModelDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of ExportModel operation.
      * 
@@ -3110,7 +3673,8 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder getExport * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ @java.lang.Override - public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder() { + public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder + getExportModelDetailsOrBuilder() { if ((detailsCase_ == 22) && (exportModelDetailsBuilder_ != null)) { return exportModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -3121,6 +3685,8 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder getExpor } } /** + * + * *
      * Details of ExportModel operation.
      * 
@@ -3128,32 +3694,41 @@ public com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder getExpor * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata, com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder> + com.google.cloud.automl.v1.ExportModelOperationMetadata, + com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, + com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder> getExportModelDetailsFieldBuilder() { if (exportModelDetailsBuilder_ == null) { if (!(detailsCase_ == 22)) { details_ = com.google.cloud.automl.v1.ExportModelOperationMetadata.getDefaultInstance(); } - exportModelDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExportModelOperationMetadata, com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder>( + exportModelDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ExportModelOperationMetadata, + com.google.cloud.automl.v1.ExportModelOperationMetadata.Builder, + com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder>( (com.google.cloud.automl.v1.ExportModelOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 22; - onChanged();; + onChanged(); + ; return exportModelDetailsBuilder_; } - private int progressPercent_ ; + private int progressPercent_; /** + * + * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; + * * @return The progressPercent. */ @java.lang.Override @@ -3161,50 +3736,60 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; } private java.util.List partialFailures_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePartialFailuresIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { partialFailures_ = new java.util.ArrayList(partialFailures_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailuresBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + partialFailuresBuilder_; /** + * + * *
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3222,6 +3807,8 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3239,6 +3826,8 @@ public int getPartialFailuresCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3256,6 +3845,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3265,8 +3856,7 @@ public com.google.rpc.Status getPartialFailures(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder setPartialFailures(
-        int index, com.google.rpc.Status value) {
+    public Builder setPartialFailures(int index, com.google.rpc.Status value) {
       if (partialFailuresBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3280,6 +3870,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3289,8 +3881,7 @@ public Builder setPartialFailures(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder setPartialFailures(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setPartialFailures(int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.set(index, builderForValue.build());
@@ -3301,6 +3892,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3324,6 +3917,8 @@ public Builder addPartialFailures(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3333,8 +3928,7 @@ public Builder addPartialFailures(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(
-        int index, com.google.rpc.Status value) {
+    public Builder addPartialFailures(int index, com.google.rpc.Status value) {
       if (partialFailuresBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3348,6 +3942,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3357,8 +3953,7 @@ public Builder addPartialFailures(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.add(builderForValue.build());
@@ -3369,6 +3964,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3378,8 +3975,7 @@ public Builder addPartialFailures(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialFailures(int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.add(index, builderForValue.build());
@@ -3390,6 +3986,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3403,8 +4001,7 @@ public Builder addAllPartialFailures(
         java.lang.Iterable values) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, partialFailures_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialFailures_);
         onChanged();
       } else {
         partialFailuresBuilder_.addAllMessages(values);
@@ -3412,6 +4009,8 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3432,6 +4031,8 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3452,6 +4053,8 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3461,11 +4064,12 @@ public Builder removePartialFailures(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.Status.Builder getPartialFailuresBuilder(
-        int index) {
+    public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) {
       return getPartialFailuresFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3475,14 +4079,16 @@ public com.google.rpc.Status.Builder getPartialFailuresBuilder(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
-        int index) {
+    public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
       if (partialFailuresBuilder_ == null) {
-        return partialFailures_.get(index);  } else {
+        return partialFailures_.get(index);
+      } else {
         return partialFailuresBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3492,8 +4098,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public java.util.List 
-         getPartialFailuresOrBuilderList() {
+    public java.util.List
+        getPartialFailuresOrBuilderList() {
       if (partialFailuresBuilder_ != null) {
         return partialFailuresBuilder_.getMessageOrBuilderList();
       } else {
@@ -3501,6 +4107,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3511,10 +4119,12 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
      * repeated .google.rpc.Status partial_failures = 2;
      */
     public com.google.rpc.Status.Builder addPartialFailuresBuilder() {
-      return getPartialFailuresFieldBuilder().addBuilder(
-          com.google.rpc.Status.getDefaultInstance());
+      return getPartialFailuresFieldBuilder()
+          .addBuilder(com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3524,12 +4134,13 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder() {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.Status.Builder addPartialFailuresBuilder(
-        int index) {
-      return getPartialFailuresFieldBuilder().addBuilder(
-          index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addPartialFailuresBuilder(int index) {
+      return getPartialFailuresFieldBuilder()
+          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3539,16 +4150,19 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public java.util.List 
-         getPartialFailuresBuilderList() {
+    public java.util.List getPartialFailuresBuilderList() {
       return getPartialFailuresFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getPartialFailuresFieldBuilder() {
       if (partialFailuresBuilder_ == null) {
-        partialFailuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+        partialFailuresBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
                 partialFailures_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -3560,34 +4174,47 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder(
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3608,14 +4235,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3626,6 +4254,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3636,7 +4266,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3648,6 +4278,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3666,6 +4298,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3673,11 +4307,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3688,11 +4324,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3700,14 +4339,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3715,34 +4357,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3763,14 +4418,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3781,6 +4437,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3791,7 +4449,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3803,6 +4461,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3821,6 +4481,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3828,11 +4490,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 4; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3843,11 +4507,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3855,21 +4522,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3879,12 +4549,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.OperationMetadata) private static final com.google.cloud.automl.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.OperationMetadata(); } @@ -3893,16 +4563,16 @@ public static com.google.cloud.automl.v1.OperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3917,6 +4587,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java index e01f70e9c..5ae3599b9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/operations.proto package com.google.cloud.automl.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; + * * @return Whether the deleteDetails field is set. */ boolean hasDeleteDetails(); /** + * + * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; + * * @return The deleteDetails. */ com.google.cloud.automl.v1.DeleteOperationMetadata getDeleteDetails(); /** + * + * *
    * Details of a Delete operation.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.automl.v1.DeleteOperationMetadataOrBuilder getDeleteDetailsOrBuilder(); /** + * + * *
    * Details of a DeployModel operation.
    * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; + * * @return Whether the deployModelDetails field is set. */ boolean hasDeployModelDetails(); /** + * + * *
    * Details of a DeployModel operation.
    * 
* * .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; + * * @return The deployModelDetails. */ com.google.cloud.automl.v1.DeployModelOperationMetadata getDeployModelDetails(); /** + * + * *
    * Details of a DeployModel operation.
    * 
@@ -62,51 +94,71 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.automl.v1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder(); /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return Whether the undeployModelDetails field is set. */ boolean hasUndeployModelDetails(); /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return The undeployModelDetails. */ com.google.cloud.automl.v1.UndeployModelOperationMetadata getUndeployModelDetails(); /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder(); + com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder + getUndeployModelDetailsOrBuilder(); /** + * + * *
    * Details of CreateModel operation.
    * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; + * * @return Whether the createModelDetails field is set. */ boolean hasCreateModelDetails(); /** + * + * *
    * Details of CreateModel operation.
    * 
* * .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; + * * @return The createModelDetails. */ com.google.cloud.automl.v1.CreateModelOperationMetadata getCreateModelDetails(); /** + * + * *
    * Details of CreateModel operation.
    * 
@@ -116,51 +168,71 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.automl.v1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder(); /** + * + * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * + * * @return Whether the createDatasetDetails field is set. */ boolean hasCreateDatasetDetails(); /** + * + * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * + * * @return The createDatasetDetails. */ com.google.cloud.automl.v1.CreateDatasetOperationMetadata getCreateDatasetDetails(); /** + * + * *
    * Details of CreateDataset operation.
    * 
* - * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; + * */ - com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder getCreateDatasetDetailsOrBuilder(); + com.google.cloud.automl.v1.CreateDatasetOperationMetadataOrBuilder + getCreateDatasetDetailsOrBuilder(); /** + * + * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; + * * @return Whether the importDataDetails field is set. */ boolean hasImportDataDetails(); /** + * + * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; + * * @return The importDataDetails. */ com.google.cloud.automl.v1.ImportDataOperationMetadata getImportDataDetails(); /** + * + * *
    * Details of ImportData operation.
    * 
@@ -170,51 +242,68 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.automl.v1.ImportDataOperationMetadataOrBuilder getImportDataDetailsOrBuilder(); /** + * + * *
    * Details of BatchPredict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * * @return Whether the batchPredictDetails field is set. */ boolean hasBatchPredictDetails(); /** + * + * *
    * Details of BatchPredict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; + * * @return The batchPredictDetails. */ com.google.cloud.automl.v1.BatchPredictOperationMetadata getBatchPredictDetails(); /** + * + * *
    * Details of BatchPredict operation.
    * 
* * .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; */ - com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder(); + com.google.cloud.automl.v1.BatchPredictOperationMetadataOrBuilder + getBatchPredictDetailsOrBuilder(); /** + * + * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; + * * @return Whether the exportDataDetails field is set. */ boolean hasExportDataDetails(); /** + * + * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; + * * @return The exportDataDetails. */ com.google.cloud.automl.v1.ExportDataOperationMetadata getExportDataDetails(); /** + * + * *
    * Details of ExportData operation.
    * 
@@ -224,24 +313,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.automl.v1.ExportDataOperationMetadataOrBuilder getExportDataDetailsOrBuilder(); /** + * + * *
    * Details of ExportModel operation.
    * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; + * * @return Whether the exportModelDetails field is set. */ boolean hasExportModelDetails(); /** + * + * *
    * Details of ExportModel operation.
    * 
* * .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; + * * @return The exportModelDetails. */ com.google.cloud.automl.v1.ExportModelOperationMetadata getExportModelDetails(); /** + * + * *
    * Details of ExportModel operation.
    * 
@@ -251,17 +348,22 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.automl.v1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder(); /** + * + * *
    * Output only. Progress of operation. Range: [0, 100].
    * Not used currently.
    * 
* * int32 progress_percent = 13; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -271,9 +373,10 @@ public interface OperationMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List 
-      getPartialFailuresList();
+  java.util.List getPartialFailuresList();
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -285,6 +388,8 @@ public interface OperationMetadataOrBuilder extends
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -296,6 +401,8 @@ public interface OperationMetadataOrBuilder extends
    */
   int getPartialFailuresCount();
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -305,9 +412,10 @@ public interface OperationMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List 
-      getPartialFailuresOrBuilderList();
+  java.util.List getPartialFailuresOrBuilderList();
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -317,28 +425,35 @@ public interface OperationMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
@@ -348,24 +463,32 @@ com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when the operation was updated for the last time.
    * 
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java new file mode 100644 index 000000000..56bade28f --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/Operations.java @@ -0,0 +1,277 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public final class Operations { + private Operations() {} + + 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_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_DeleteOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_DeleteOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_DeployModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_CreateDatasetOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_CreateModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ImportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_ExportModelOperationMetadata_ExportModelOutputInfo_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/v1/operations.prot" + + "o\022\026google.cloud.automl.v1\032$google/cloud/" + + "automl/v1/dataset.proto\032\037google/cloud/au" + + "toml/v1/io.proto\032\037google/protobuf/timest" + + "amp.proto\032\027google/rpc/status.proto\032\034goog" + + "le/api/annotations.proto\"\311\007\n\021OperationMe" + + "tadata\022I\n\016delete_details\030\010 \001(\0132/.google." + + "cloud.automl.v1.DeleteOperationMetadataH" + + "\000\022T\n\024deploy_model_details\030\030 \001(\01324.google" + + ".cloud.automl.v1.DeployModelOperationMet" + + "adataH\000\022X\n\026undeploy_model_details\030\031 \001(\0132" + + "6.google.cloud.automl.v1.UndeployModelOp" + + "erationMetadataH\000\022T\n\024create_model_detail" + + "s\030\n \001(\01324.google.cloud.automl.v1.CreateM" + + "odelOperationMetadataH\000\022X\n\026create_datase" + + "t_details\030\036 \001(\01326.google.cloud.automl.v1" + + ".CreateDatasetOperationMetadataH\000\022R\n\023imp" + + "ort_data_details\030\017 \001(\01323.google.cloud.au" + + "toml.v1.ImportDataOperationMetadataH\000\022V\n" + + "\025batch_predict_details\030\020 \001(\01325.google.cl" + + "oud.automl.v1.BatchPredictOperationMetad" + + "ataH\000\022R\n\023export_data_details\030\025 \001(\01323.goo" + + "gle.cloud.automl.v1.ExportDataOperationM" + + "etadataH\000\022T\n\024export_model_details\030\026 \001(\0132" + + "4.google.cloud.automl.v1.ExportModelOper" + + "ationMetadataH\000\022\030\n\020progress_percent\030\r \001(" + + "\005\022,\n\020partial_failures\030\002 \003(\0132\022.google.rpc" + + ".Status\022/\n\013create_time\030\003 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032." + + "google.protobuf.TimestampB\t\n\007details\"\031\n\027" + + "DeleteOperationMetadata\"\036\n\034DeployModelOp" + + "erationMetadata\" \n\036UndeployModelOperatio" + + "nMetadata\" \n\036CreateDatasetOperationMetad" + + "ata\"\036\n\034CreateModelOperationMetadata\"\035\n\033I" + + "mportDataOperationMetadata\"\307\001\n\033ExportDat" + + "aOperationMetadata\022]\n\013output_info\030\001 \001(\0132" + + "H.google.cloud.automl.v1.ExportDataOpera" + + "tionMetadata.ExportDataOutputInfo\032I\n\024Exp" + + "ortDataOutputInfo\022\036\n\024gcs_output_director" + + "y\030\001 \001(\tH\000B\021\n\017output_location\"\226\002\n\035BatchPr" + + "edictOperationMetadata\022E\n\014input_config\030\001" + + " \001(\0132/.google.cloud.automl.v1.BatchPredi" + + "ctInputConfig\022a\n\013output_info\030\002 \001(\0132L.goo" + + "gle.cloud.automl.v1.BatchPredictOperatio" + + "nMetadata.BatchPredictOutputInfo\032K\n\026Batc" + + "hPredictOutputInfo\022\036\n\024gcs_output_directo" + + "ry\030\001 \001(\tH\000B\021\n\017output_location\"\266\001\n\034Export" + + "ModelOperationMetadata\022_\n\013output_info\030\002 " + + "\001(\0132J.google.cloud.automl.v1.ExportModel" + + "OperationMetadata.ExportModelOutputInfo\032" + + "5\n\025ExportModelOutputInfo\022\034\n\024gcs_output_d" + + "irectory\030\001 \001(\tB\252\001\n\032com.google.cloud.auto" + + "ml.v1P\001Z * * For Translation: * CSV file `translation.csv`, with each line in format: @@ -36,30 +53,29 @@ * * Protobuf type {@code google.cloud.automl.v1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -78,60 +94,67 @@ private OutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage(com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.automl.v1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.automl.v1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destinationCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Io.internal_static_google_cloud_automl_v1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.automl.v1.Io + .internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.OutputConfig.class, com.google.cloud.automl.v1.OutputConfig.Builder.class); + com.google.cloud.automl.v1.OutputConfig.class, + com.google.cloud.automl.v1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -147,24 +170,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -174,7 +201,10 @@ public int getNumber() {
    * output will be written into that directory.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -182,6 +212,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -191,17 +223,22 @@ public boolean hasGcsDestination() {
    * output will be written into that directory.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -211,17 +248,20 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
    * output will be written into that directory.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.automl.v1.GcsDestination) destination_; + return (com.google.cloud.automl.v1.GcsDestination) destination_; } return com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +273,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1.GcsDestination) destination_); } @@ -248,8 +287,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.automl.v1.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.automl.v1.GcsDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -259,7 +299,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.OutputConfig)) { return super.equals(obj); @@ -269,8 +309,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 0: default: @@ -299,97 +338,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.OutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.OutputConfig 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.v1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * *  For Translation:
    *         CSV file `translation.csv`, with each line in format:
@@ -422,21 +468,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1.OutputConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.OutputConfig)
       com.google.cloud.automl.v1.OutputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_OutputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_OutputConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_OutputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1.OutputConfig.class, com.google.cloud.automl.v1.OutputConfig.Builder.class);
+              com.google.cloud.automl.v1.OutputConfig.class,
+              com.google.cloud.automl.v1.OutputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1.OutputConfig.newBuilder()
@@ -444,16 +492,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -463,9 +510,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1.Io.internal_static_google_cloud_automl_v1_OutputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1.Io
+          .internal_static_google_cloud_automl_v1_OutputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -484,7 +531,8 @@ public com.google.cloud.automl.v1.OutputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1.OutputConfig buildPartial() {
-      com.google.cloud.automl.v1.OutputConfig result = new com.google.cloud.automl.v1.OutputConfig(this);
+      com.google.cloud.automl.v1.OutputConfig result =
+          new com.google.cloud.automl.v1.OutputConfig(this);
       if (destinationCase_ == 1) {
         if (gcsDestinationBuilder_ == null) {
           result.destination_ = destination_;
@@ -501,38 +549,39 @@ public com.google.cloud.automl.v1.OutputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.v1.OutputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1.OutputConfig)other);
+        return mergeFrom((com.google.cloud.automl.v1.OutputConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -542,13 +591,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.automl.v1.OutputConfig other) {
       if (other == com.google.cloud.automl.v1.OutputConfig.getDefaultInstance()) return this;
       switch (other.getDestinationCase()) {
-        case GCS_DESTINATION: {
-          mergeGcsDestination(other.getGcsDestination());
-          break;
-        }
-        case DESTINATION_NOT_SET: {
-          break;
-        }
+        case GCS_DESTINATION:
+          {
+            mergeGcsDestination(other.getGcsDestination());
+            break;
+          }
+        case DESTINATION_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -578,12 +629,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-    public DestinationCase
-        getDestinationCase() {
-      return DestinationCase.forNumber(
-          destinationCase_);
+
+    public DestinationCase getDestinationCase() {
+      return DestinationCase.forNumber(destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -593,10 +644,14 @@ public Builder clearDestination() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_;
+            com.google.cloud.automl.v1.GcsDestination,
+            com.google.cloud.automl.v1.GcsDestination.Builder,
+            com.google.cloud.automl.v1.GcsDestinationOrBuilder>
+        gcsDestinationBuilder_;
     /**
+     *
+     *
      * 
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -606,7 +661,10 @@ public Builder clearDestination() {
      * output will be written into that directory.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -614,6 +672,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -623,7 +683,10 @@ public boolean hasGcsDestination() {
      * output will be written into that directory.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsDestination. */ @java.lang.Override @@ -641,6 +704,8 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -650,7 +715,9 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
      * output will be written into that directory.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -666,6 +733,8 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value return this; } /** + * + * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -675,7 +744,9 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value
      * output will be written into that directory.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGcsDestination( com.google.cloud.automl.v1.GcsDestination.Builder builderForValue) { @@ -689,6 +760,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -698,14 +771,19 @@ public Builder setGcsDestination(
      * output will be written into that directory.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.automl.v1.GcsDestination.newBuilder((com.google.cloud.automl.v1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ != com.google.cloud.automl.v1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.automl.v1.GcsDestination.newBuilder( + (com.google.cloud.automl.v1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -720,6 +798,8 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val return this; } /** + * + * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -729,7 +809,9 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val
      * output will be written into that directory.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -748,6 +830,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -757,12 +841,16 @@ public Builder clearGcsDestination() {
      * output will be written into that directory.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -772,7 +860,9 @@ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilde
      * output will be written into that directory.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -786,6 +876,8 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui } } /** + * + * *
      * Required. The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -795,29 +887,37 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
      * output will be written into that directory.
      * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder> + com.google.cloud.automl.v1.GcsDestination, + com.google.cloud.automl.v1.GcsDestination.Builder, + com.google.cloud.automl.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.automl.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.GcsDestination, com.google.cloud.automl.v1.GcsDestination.Builder, com.google.cloud.automl.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.GcsDestination, + com.google.cloud.automl.v1.GcsDestination.Builder, + com.google.cloud.automl.v1.GcsDestinationOrBuilder>( (com.google.cloud.automl.v1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,12 +927,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.OutputConfig) private static final com.google.cloud.automl.v1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.OutputConfig(); } @@ -841,16 +941,16 @@ public static com.google.cloud.automl.v1.OutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -865,6 +965,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java index d7491fc67..6d767e844 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/io.proto package com.google.cloud.automl.v1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -17,11 +35,16 @@ public interface OutputConfigOrBuilder extends
    * output will be written into that directory.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -31,11 +54,16 @@ public interface OutputConfigOrBuilder extends
    * output will be written into that directory.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gcsDestination. */ com.google.cloud.automl.v1.GcsDestination getGcsDestination(); /** + * + * *
    * Required. The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -45,7 +73,9 @@ public interface OutputConfigOrBuilder extends
    * output will be written into that directory.
    * 
* - * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java index ce6889132..96b2e0216 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/prediction_service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
  * 
* * Protobuf type {@code google.cloud.automl.v1.PredictRequest} */ -public final class PredictRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PredictRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.PredictRequest) PredictRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PredictRequest.newBuilder() to construct. private PredictRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PredictRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PredictRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PredictRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,90 +71,100 @@ private PredictRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.cloud.automl.v1.ExamplePayload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); + name_ = s; + break; } - payload_ = input.readMessage(com.google.cloud.automl.v1.ExamplePayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.automl.v1.ExamplePayload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.automl.v1.ExamplePayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; } - 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; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.PredictRequest.class, com.google.cloud.automl.v1.PredictRequest.Builder.class); + com.google.cloud.automl.v1.PredictRequest.class, + com.google.cloud.automl.v1.PredictRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -146,29 +173,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -179,12 +208,17 @@ public java.lang.String getName() { public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.cloud.automl.v1.ExamplePayload payload_; /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the payload field is set. */ @java.lang.Override @@ -192,25 +226,36 @@ public boolean hasPayload() { return payload_ != null; } /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The payload. */ @java.lang.Override public com.google.cloud.automl.v1.ExamplePayload getPayload() { - return payload_ == null ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() + : payload_; } /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPayloadOrBuilder() { @@ -218,24 +263,23 @@ public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPayloadOrBuilder() } public static final int PARAMS_FIELD_NUMBER = 3; + private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -244,6 +288,8 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -272,22 +318,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 3;
    */
-
   @java.lang.Override
-  public boolean containsParams(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsParams(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetParams().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getParams() {
     return getParamsMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -317,11 +363,12 @@ public java.util.Map getParams() {
    * map<string, string> params = 3;
    */
   @java.lang.Override
-
   public java.util.Map getParamsMap() {
     return internalGetParams().getMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -351,16 +398,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 3;
    */
   @java.lang.Override
-
-  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();
+  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, any string must be up to 25000
    * characters long.
@@ -390,12 +437,11 @@ public java.lang.String getParamsOrDefault(
    * map<string, string> params = 3;
    */
   @java.lang.Override
-
-  public java.lang.String getParamsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetParams().getMap();
+  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();
     }
@@ -403,6 +449,7 @@ public java.lang.String getParamsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -414,20 +461,15 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     if (payload_ != null) {
       output.writeMessage(2, getPayload());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetParams(),
-        ParamsDefaultEntryHolder.defaultEntry,
-        3);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 3);
     unknownFields.writeTo(output);
   }
 
@@ -441,18 +483,17 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (payload_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getPayload());
-    }
-    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(3, params__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload());
+    }
+    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(3, params__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -462,22 +503,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.PredictRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.PredictRequest other = (com.google.cloud.automl.v1.PredictRequest) obj;
+    com.google.cloud.automl.v1.PredictRequest other =
+        (com.google.cloud.automl.v1.PredictRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasPayload() != other.hasPayload()) return false;
     if (hasPayload()) {
-      if (!getPayload()
-          .equals(other.getPayload())) return false;
+      if (!getPayload().equals(other.getPayload())) return false;
     }
-    if (!internalGetParams().equals(
-        other.internalGetParams())) return false;
+    if (!internalGetParams().equals(other.internalGetParams())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -504,140 +543,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.PredictRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.PredictRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.PredictRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.PredictRequest 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.v1.PredictRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.automl.v1.PredictRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.automl.v1.PredictRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.PredictRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.PredictRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1.PredictRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
    * 
* * Protobuf type {@code google.cloud.automl.v1.PredictRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.PredictRequest) com.google.cloud.automl.v1.PredictRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.PredictRequest.class, com.google.cloud.automl.v1.PredictRequest.Builder.class); + com.google.cloud.automl.v1.PredictRequest.class, + com.google.cloud.automl.v1.PredictRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.PredictRequest.newBuilder() @@ -645,16 +691,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -671,9 +716,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictRequest_descriptor; } @java.lang.Override @@ -692,7 +737,8 @@ public com.google.cloud.automl.v1.PredictRequest build() { @java.lang.Override public com.google.cloud.automl.v1.PredictRequest buildPartial() { - com.google.cloud.automl.v1.PredictRequest result = new com.google.cloud.automl.v1.PredictRequest(this); + com.google.cloud.automl.v1.PredictRequest result = + new com.google.cloud.automl.v1.PredictRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (payloadBuilder_ == null) { @@ -710,38 +756,39 @@ public com.google.cloud.automl.v1.PredictRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.PredictRequest) { - return mergeFrom((com.google.cloud.automl.v1.PredictRequest)other); + return mergeFrom((com.google.cloud.automl.v1.PredictRequest) other); } else { super.mergeFrom(other); return this; @@ -757,8 +804,7 @@ public Builder mergeFrom(com.google.cloud.automl.v1.PredictRequest other) { if (other.hasPayload()) { mergePayload(other.getPayload()); } - internalGetMutableParams().mergeFrom( - other.internalGetParams()); + internalGetMutableParams().mergeFrom(other.internalGetParams()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -787,22 +833,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -811,20 +862,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -832,54 +886,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -887,42 +954,61 @@ public Builder setNameBytes( private com.google.cloud.automl.v1.ExamplePayload payload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder> payloadBuilder_; + com.google.cloud.automl.v1.ExamplePayload, + com.google.cloud.automl.v1.ExamplePayload.Builder, + com.google.cloud.automl.v1.ExamplePayloadOrBuilder> + payloadBuilder_; /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The payload. */ public com.google.cloud.automl.v1.ExamplePayload getPayload() { if (payloadBuilder_ == null) { - return payload_ == null ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() + : payload_; } else { return payloadBuilder_.getMessage(); } } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPayload(com.google.cloud.automl.v1.ExamplePayload value) { if (payloadBuilder_ == null) { @@ -938,15 +1024,18 @@ public Builder setPayload(com.google.cloud.automl.v1.ExamplePayload value) { return this; } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPayload( - com.google.cloud.automl.v1.ExamplePayload.Builder builderForValue) { + public Builder setPayload(com.google.cloud.automl.v1.ExamplePayload.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -957,18 +1046,24 @@ public Builder setPayload( return this; } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePayload(com.google.cloud.automl.v1.ExamplePayload value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = - com.google.cloud.automl.v1.ExamplePayload.newBuilder(payload_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.ExamplePayload.newBuilder(payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -980,12 +1075,16 @@ public Builder mergePayload(com.google.cloud.automl.v1.ExamplePayload value) { return this; } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -999,72 +1098,87 @@ public Builder clearPayload() { return this; } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.ExamplePayload.Builder getPayloadBuilder() { - + onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { - return payload_ == null ? - com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() + : payload_; } } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder> + com.google.cloud.automl.v1.ExamplePayload, + com.google.cloud.automl.v1.ExamplePayload.Builder, + com.google.cloud.automl.v1.ExamplePayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ExamplePayload, + com.google.cloud.automl.v1.ExamplePayload.Builder, + com.google.cloud.automl.v1.ExamplePayloadOrBuilder>( + getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } + private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged();; + internalGetMutableParams() { + onChanged(); + ; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1076,6 +1190,8 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1104,22 +1220,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 3;
      */
-
     @java.lang.Override
-    public boolean containsParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsParams(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetParams().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getParamsMap()} instead.
-     */
+    /** Use {@link #getParamsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getParams() {
       return getParamsMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1149,11 +1265,12 @@ public java.util.Map getParams() {
      * map<string, string> params = 3;
      */
     @java.lang.Override
-
     public java.util.Map getParamsMap() {
       return internalGetParams().getMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1183,16 +1300,17 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 3;
      */
     @java.lang.Override
-
     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();
+        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, any string must be up to 25000
      * characters long.
@@ -1222,12 +1340,11 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 3;
      */
     @java.lang.Override
-
-    public java.lang.String getParamsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetParams().getMap();
+    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();
       }
@@ -1235,11 +1352,12 @@ public java.lang.String getParamsOrThrow(
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap()
-          .clear();
+      internalGetMutableParams().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1268,23 +1386,21 @@ public Builder clearParams() {
      *
      * map<string, string> params = 3;
      */
-
-    public Builder removeParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableParams().getMutableMap()
-          .remove(key);
+    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.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableParams() {
+    public java.util.Map getMutableParams() {
       return internalGetMutableParams().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1313,16 +1429,19 @@ public Builder removeParams(
      *
      * map<string, string> params = 3;
      */
-    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);
+    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, any string must be up to 25000
      * characters long.
@@ -1351,16 +1470,13 @@ public Builder putParams(
      *
      * map<string, string> params = 3;
      */
-
-    public Builder putAllParams(
-        java.util.Map values) {
-      internalGetMutableParams().getMutableMap()
-          .putAll(values);
+    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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1370,12 +1486,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.PredictRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.PredictRequest)
   private static final com.google.cloud.automl.v1.PredictRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.PredictRequest();
   }
@@ -1384,16 +1500,16 @@ public static com.google.cloud.automl.v1.PredictRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public PredictRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new PredictRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public PredictRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new PredictRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1408,6 +1524,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.PredictRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java
index 7d03187b3..258596683 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictRequestOrBuilder.java
@@ -1,63 +1,104 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
-public interface PredictRequestOrBuilder extends
+public interface PredictRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.PredictRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Name of the model requested to serve the prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the payload field is set. */ boolean hasPayload(); /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The payload. */ com.google.cloud.automl.v1.ExamplePayload getPayload(); /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPayloadOrBuilder(); /** + * + * *
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -88,6 +129,8 @@ public interface PredictRequestOrBuilder extends
    */
   int getParamsCount();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -116,15 +159,13 @@ public interface PredictRequestOrBuilder extends
    *
    * map<string, string> params = 3;
    */
-  boolean containsParams(
-      java.lang.String key);
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  boolean containsParams(java.lang.String key);
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getParams();
+  java.util.Map getParams();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -153,9 +194,10 @@ boolean containsParams(
    *
    * map<string, string> params = 3;
    */
-  java.util.Map
-  getParamsMap();
+  java.util.Map getParamsMap();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -184,11 +226,10 @@ boolean containsParams(
    *
    * map<string, string> params = 3;
    */
-
-  java.lang.String getParamsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -217,7 +258,5 @@ java.lang.String getParamsOrDefault(
    *
    * map<string, string> params = 3;
    */
-
-  java.lang.String getParamsOrThrow(
-      java.lang.String key);
+  java.lang.String getParamsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java
index 9999792bb..2b6a2630f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponse.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
 /**
+ *
+ *
  * 
  * Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
  * 
* * Protobuf type {@code google.cloud.automl.v1.PredictResponse} */ -public final class PredictResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PredictResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.PredictResponse) PredictResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PredictResponse.newBuilder() to construct. private PredictResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PredictResponse() { payload_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PredictResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PredictResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,55 +71,61 @@ private PredictResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - payload_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - payload_.add( - input.readMessage(com.google.cloud.automl.v1.AnnotationPayload.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + payload_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + payload_.add( + input.readMessage( + com.google.cloud.automl.v1.AnnotationPayload.parser(), extensionRegistry)); + break; } - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - metadata_.getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } - case 26: { - com.google.cloud.automl.v1.ExamplePayload.Builder subBuilder = null; - if (preprocessedInput_ != null) { - subBuilder = preprocessedInput_.toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metadata_ = + com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); + break; } - preprocessedInput_ = input.readMessage(com.google.cloud.automl.v1.ExamplePayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(preprocessedInput_); - preprocessedInput_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1.ExamplePayload.Builder subBuilder = null; + if (preprocessedInput_ != null) { + subBuilder = preprocessedInput_.toBuilder(); + } + preprocessedInput_ = + input.readMessage( + com.google.cloud.automl.v1.ExamplePayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(preprocessedInput_); + preprocessedInput_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { payload_ = java.util.Collections.unmodifiableList(payload_); @@ -111,34 +134,38 @@ private PredictResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.PredictResponse.class, com.google.cloud.automl.v1.PredictResponse.Builder.class); + com.google.cloud.automl.v1.PredictResponse.class, + com.google.cloud.automl.v1.PredictResponse.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private java.util.List payload_; /** + * + * *
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -152,6 +179,8 @@ public java.util.List getPayloadLi
     return payload_;
   }
   /**
+   *
+   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -161,11 +190,13 @@ public java.util.List getPayloadLi
    * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPayloadOrBuilderList() {
     return payload_;
   }
   /**
+   *
+   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -179,6 +210,8 @@ public int getPayloadCount() {
     return payload_.size();
   }
   /**
+   *
+   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -192,6 +225,8 @@ public com.google.cloud.automl.v1.AnnotationPayload getPayload(int index) {
     return payload_.get(index);
   }
   /**
+   *
+   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -201,14 +236,15 @@ public com.google.cloud.automl.v1.AnnotationPayload getPayload(int index) {
    * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
-      int index) {
+  public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(int index) {
     return payload_.get(index);
   }
 
   public static final int PREPROCESSED_INPUT_FIELD_NUMBER = 3;
   private com.google.cloud.automl.v1.ExamplePayload preprocessedInput_;
   /**
+   *
+   *
    * 
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -220,6 +256,7 @@ public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder
    * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; + * * @return Whether the preprocessedInput field is set. */ @java.lang.Override @@ -227,6 +264,8 @@ public boolean hasPreprocessedInput() { return preprocessedInput_ != null; } /** + * + * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -238,13 +277,18 @@ public boolean hasPreprocessedInput() {
    * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; + * * @return The preprocessedInput. */ @java.lang.Override public com.google.cloud.automl.v1.ExamplePayload getPreprocessedInput() { - return preprocessedInput_ == null ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : preprocessedInput_; + return preprocessedInput_ == null + ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() + : preprocessedInput_; } /** + * + * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -263,24 +307,23 @@ public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPreprocessedInputOr
   }
 
   public static final int METADATA_FIELD_NUMBER = 2;
+
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_MetadataEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.automl.v1.PredictionServiceProto
+                .internal_static_google_cloud_automl_v1_PredictResponse_MetadataEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> metadata_;
-  private com.google.protobuf.MapField
-  internalGetMetadata() {
+
+  private com.google.protobuf.MapField metadata_;
+
+  private com.google.protobuf.MapField internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
@@ -289,6 +332,8 @@ public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -308,22 +353,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 2;
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -344,11 +389,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -369,16 +415,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -399,12 +446,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -412,6 +458,7 @@ public java.lang.String getMetadataOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -423,17 +470,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < payload_.size(); i++) {
       output.writeMessage(1, payload_.get(i));
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetMetadata(),
-        MetadataDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 2);
     if (preprocessedInput_ != null) {
       output.writeMessage(3, getPreprocessedInput());
     }
@@ -447,22 +489,20 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < payload_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, payload_.get(i));
-    }
-    for (java.util.Map.Entry entry
-         : internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, metadata__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, payload_.get(i));
+    }
+    for (java.util.Map.Entry entry :
+        internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry metadata__ =
+          MetadataDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metadata__);
     }
     if (preprocessedInput_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getPreprocessedInput());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPreprocessedInput());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -472,22 +512,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1.PredictResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1.PredictResponse other = (com.google.cloud.automl.v1.PredictResponse) obj;
+    com.google.cloud.automl.v1.PredictResponse other =
+        (com.google.cloud.automl.v1.PredictResponse) obj;
 
-    if (!getPayloadList()
-        .equals(other.getPayloadList())) return false;
+    if (!getPayloadList().equals(other.getPayloadList())) return false;
     if (hasPreprocessedInput() != other.hasPreprocessedInput()) return false;
     if (hasPreprocessedInput()) {
-      if (!getPreprocessedInput()
-          .equals(other.getPreprocessedInput())) return false;
+      if (!getPreprocessedInput().equals(other.getPreprocessedInput())) return false;
     }
-    if (!internalGetMetadata().equals(
-        other.internalGetMetadata())) return false;
+    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -516,140 +554,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1.PredictResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1.PredictResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.v1.PredictResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.PredictResponse 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.v1.PredictResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.automl.v1.PredictResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.automl.v1.PredictResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.PredictResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1.PredictResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1.PredictResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
    * 
* * Protobuf type {@code google.cloud.automl.v1.PredictResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.PredictResponse) com.google.cloud.automl.v1.PredictResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_fieldAccessorTable + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.PredictResponse.class, com.google.cloud.automl.v1.PredictResponse.Builder.class); + com.google.cloud.automl.v1.PredictResponse.class, + com.google.cloud.automl.v1.PredictResponse.Builder.class); } // Construct using com.google.cloud.automl.v1.PredictResponse.newBuilder() @@ -657,17 +702,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPayloadFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -688,9 +733,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.PredictionServiceProto.internal_static_google_cloud_automl_v1_PredictResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.PredictionServiceProto + .internal_static_google_cloud_automl_v1_PredictResponse_descriptor; } @java.lang.Override @@ -709,7 +754,8 @@ public com.google.cloud.automl.v1.PredictResponse build() { @java.lang.Override public com.google.cloud.automl.v1.PredictResponse buildPartial() { - com.google.cloud.automl.v1.PredictResponse result = new com.google.cloud.automl.v1.PredictResponse(this); + com.google.cloud.automl.v1.PredictResponse result = + new com.google.cloud.automl.v1.PredictResponse(this); int from_bitField0_ = bitField0_; if (payloadBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -735,38 +781,39 @@ public com.google.cloud.automl.v1.PredictResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.PredictResponse) { - return mergeFrom((com.google.cloud.automl.v1.PredictResponse)other); + return mergeFrom((com.google.cloud.automl.v1.PredictResponse) other); } else { super.mergeFrom(other); return this; @@ -793,9 +840,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.PredictResponse other) { payloadBuilder_ = null; payload_ = other.payload_; bitField0_ = (bitField0_ & ~0x00000001); - payloadBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPayloadFieldBuilder() : null; + payloadBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPayloadFieldBuilder() + : null; } else { payloadBuilder_.addAllMessages(other.payload_); } @@ -804,8 +852,7 @@ public Builder mergeFrom(com.google.cloud.automl.v1.PredictResponse other) { if (other.hasPreprocessedInput()) { mergePreprocessedInput(other.getPreprocessedInput()); } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -834,21 +881,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List payload_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePayloadIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { payload_ = new java.util.ArrayList(payload_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.AnnotationPayload, com.google.cloud.automl.v1.AnnotationPayload.Builder, com.google.cloud.automl.v1.AnnotationPayloadOrBuilder> payloadBuilder_; + com.google.cloud.automl.v1.AnnotationPayload, + com.google.cloud.automl.v1.AnnotationPayload.Builder, + com.google.cloud.automl.v1.AnnotationPayloadOrBuilder> + payloadBuilder_; /** + * + * *
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -865,6 +919,8 @@ public java.util.List getPayloadLi
       }
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -881,6 +937,8 @@ public int getPayloadCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -897,6 +955,8 @@ public com.google.cloud.automl.v1.AnnotationPayload getPayload(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -905,8 +965,7 @@ public com.google.cloud.automl.v1.AnnotationPayload getPayload(int index) {
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public Builder setPayload(
-        int index, com.google.cloud.automl.v1.AnnotationPayload value) {
+    public Builder setPayload(int index, com.google.cloud.automl.v1.AnnotationPayload value) {
       if (payloadBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -920,6 +979,8 @@ public Builder setPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -940,6 +1001,8 @@ public Builder setPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -962,6 +1025,8 @@ public Builder addPayload(com.google.cloud.automl.v1.AnnotationPayload value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -970,8 +1035,7 @@ public Builder addPayload(com.google.cloud.automl.v1.AnnotationPayload value) {
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public Builder addPayload(
-        int index, com.google.cloud.automl.v1.AnnotationPayload value) {
+    public Builder addPayload(int index, com.google.cloud.automl.v1.AnnotationPayload value) {
       if (payloadBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -985,6 +1049,8 @@ public Builder addPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1005,6 +1071,8 @@ public Builder addPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1025,6 +1093,8 @@ public Builder addPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1037,8 +1107,7 @@ public Builder addAllPayload(
         java.lang.Iterable values) {
       if (payloadBuilder_ == null) {
         ensurePayloadIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, payload_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, payload_);
         onChanged();
       } else {
         payloadBuilder_.addAllMessages(values);
@@ -1046,6 +1115,8 @@ public Builder addAllPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1065,6 +1136,8 @@ public Builder clearPayload() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1084,6 +1157,8 @@ public Builder removePayload(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1092,11 +1167,12 @@ public Builder removePayload(int index) {
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public com.google.cloud.automl.v1.AnnotationPayload.Builder getPayloadBuilder(
-        int index) {
+    public com.google.cloud.automl.v1.AnnotationPayload.Builder getPayloadBuilder(int index) {
       return getPayloadFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1105,14 +1181,16 @@ public com.google.cloud.automl.v1.AnnotationPayload.Builder getPayloadBuilder(
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
-        int index) {
+    public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(int index) {
       if (payloadBuilder_ == null) {
-        return payload_.get(index);  } else {
+        return payload_.get(index);
+      } else {
         return payloadBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1121,8 +1199,8 @@ public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public java.util.List 
-         getPayloadOrBuilderList() {
+    public java.util.List
+        getPayloadOrBuilderList() {
       if (payloadBuilder_ != null) {
         return payloadBuilder_.getMessageOrBuilderList();
       } else {
@@ -1130,6 +1208,8 @@ public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder
       }
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1139,10 +1219,12 @@ public com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
     public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder() {
-      return getPayloadFieldBuilder().addBuilder(
-          com.google.cloud.automl.v1.AnnotationPayload.getDefaultInstance());
+      return getPayloadFieldBuilder()
+          .addBuilder(com.google.cloud.automl.v1.AnnotationPayload.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1151,12 +1233,13 @@ public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder()
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder(
-        int index) {
-      return getPayloadFieldBuilder().addBuilder(
-          index, com.google.cloud.automl.v1.AnnotationPayload.getDefaultInstance());
+    public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder(int index) {
+      return getPayloadFieldBuilder()
+          .addBuilder(index, com.google.cloud.automl.v1.AnnotationPayload.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -1165,20 +1248,23 @@ public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder(
      *
      * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
      */
-    public java.util.List 
-         getPayloadBuilderList() {
+    public java.util.List
+        getPayloadBuilderList() {
       return getPayloadFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.automl.v1.AnnotationPayload, com.google.cloud.automl.v1.AnnotationPayload.Builder, com.google.cloud.automl.v1.AnnotationPayloadOrBuilder> 
+            com.google.cloud.automl.v1.AnnotationPayload,
+            com.google.cloud.automl.v1.AnnotationPayload.Builder,
+            com.google.cloud.automl.v1.AnnotationPayloadOrBuilder>
         getPayloadFieldBuilder() {
       if (payloadBuilder_ == null) {
-        payloadBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.automl.v1.AnnotationPayload, com.google.cloud.automl.v1.AnnotationPayload.Builder, com.google.cloud.automl.v1.AnnotationPayloadOrBuilder>(
-                payload_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        payloadBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.automl.v1.AnnotationPayload,
+                com.google.cloud.automl.v1.AnnotationPayload.Builder,
+                com.google.cloud.automl.v1.AnnotationPayloadOrBuilder>(
+                payload_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         payload_ = null;
       }
       return payloadBuilder_;
@@ -1186,8 +1272,13 @@ public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder(
 
     private com.google.cloud.automl.v1.ExamplePayload preprocessedInput_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder> preprocessedInputBuilder_;
+            com.google.cloud.automl.v1.ExamplePayload,
+            com.google.cloud.automl.v1.ExamplePayload.Builder,
+            com.google.cloud.automl.v1.ExamplePayloadOrBuilder>
+        preprocessedInputBuilder_;
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1199,12 +1290,15 @@ public com.google.cloud.automl.v1.AnnotationPayload.Builder addPayloadBuilder(
      * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; + * * @return Whether the preprocessedInput field is set. */ public boolean hasPreprocessedInput() { return preprocessedInputBuilder_ != null || preprocessedInput_ != null; } /** + * + * *
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1216,16 +1310,21 @@ public boolean hasPreprocessedInput() {
      * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; + * * @return The preprocessedInput. */ public com.google.cloud.automl.v1.ExamplePayload getPreprocessedInput() { if (preprocessedInputBuilder_ == null) { - return preprocessedInput_ == null ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : preprocessedInput_; + return preprocessedInput_ == null + ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() + : preprocessedInput_; } else { return preprocessedInputBuilder_.getMessage(); } } /** + * + * *
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1252,6 +1351,8 @@ public Builder setPreprocessedInput(com.google.cloud.automl.v1.ExamplePayload va
       return this;
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1276,6 +1377,8 @@ public Builder setPreprocessedInput(
       return this;
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1292,7 +1395,9 @@ public Builder mergePreprocessedInput(com.google.cloud.automl.v1.ExamplePayload
       if (preprocessedInputBuilder_ == null) {
         if (preprocessedInput_ != null) {
           preprocessedInput_ =
-            com.google.cloud.automl.v1.ExamplePayload.newBuilder(preprocessedInput_).mergeFrom(value).buildPartial();
+              com.google.cloud.automl.v1.ExamplePayload.newBuilder(preprocessedInput_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           preprocessedInput_ = value;
         }
@@ -1304,6 +1409,8 @@ public Builder mergePreprocessedInput(com.google.cloud.automl.v1.ExamplePayload
       return this;
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1328,6 +1435,8 @@ public Builder clearPreprocessedInput() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1341,11 +1450,13 @@ public Builder clearPreprocessedInput() {
      * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
      */
     public com.google.cloud.automl.v1.ExamplePayload.Builder getPreprocessedInputBuilder() {
-      
+
       onChanged();
       return getPreprocessedInputFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1362,11 +1473,14 @@ public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPreprocessedInputOr
       if (preprocessedInputBuilder_ != null) {
         return preprocessedInputBuilder_.getMessageOrBuilder();
       } else {
-        return preprocessedInput_ == null ?
-            com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance() : preprocessedInput_;
+        return preprocessedInput_ == null
+            ? com.google.cloud.automl.v1.ExamplePayload.getDefaultInstance()
+            : preprocessedInput_;
       }
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1380,35 +1494,38 @@ public com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPreprocessedInputOr
      * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder> 
+            com.google.cloud.automl.v1.ExamplePayload,
+            com.google.cloud.automl.v1.ExamplePayload.Builder,
+            com.google.cloud.automl.v1.ExamplePayloadOrBuilder>
         getPreprocessedInputFieldBuilder() {
       if (preprocessedInputBuilder_ == null) {
-        preprocessedInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.ExamplePayload, com.google.cloud.automl.v1.ExamplePayload.Builder, com.google.cloud.automl.v1.ExamplePayloadOrBuilder>(
-                getPreprocessedInput(),
-                getParentForChildren(),
-                isClean());
+        preprocessedInputBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.automl.v1.ExamplePayload,
+                com.google.cloud.automl.v1.ExamplePayload.Builder,
+                com.google.cloud.automl.v1.ExamplePayloadOrBuilder>(
+                getPreprocessedInput(), getParentForChildren(), isClean());
         preprocessedInput_ = null;
       }
       return preprocessedInputBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> metadata_;
-    private com.google.protobuf.MapField
-    internalGetMetadata() {
+    private com.google.protobuf.MapField metadata_;
+
+    private com.google.protobuf.MapField internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableMetadata() {
-      onChanged();;
+        internalGetMutableMetadata() {
+      onChanged();
+      ;
       if (metadata_ == null) {
-        metadata_ = com.google.protobuf.MapField.newMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ =
+            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -1420,6 +1537,8 @@ public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1439,22 +1558,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 2;
      */
-
     @java.lang.Override
-    public boolean containsMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetadataMap()} instead.
-     */
+    /** Use {@link #getMetadataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1475,11 +1594,12 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
-
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1500,16 +1620,17 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
-
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1530,12 +1651,11 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getMetadataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+    public java.lang.String getMetadataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1543,11 +1663,12 @@ public java.lang.String getMetadataOrThrow(
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap()
-          .clear();
+      internalGetMutableMetadata().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1567,23 +1688,21 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 2;
      */
-
-    public Builder removeMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableMetadata().getMutableMap()
-          .remove(key);
+    public Builder removeMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMetadata() {
+    public java.util.Map getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1603,16 +1722,19 @@ public Builder removeMetadata(
      *
      * map<string, string> metadata = 2;
      */
-    public Builder putMetadata(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableMetadata().getMutableMap()
-          .put(key, value);
+    public Builder putMetadata(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * AutoML Vision Object Detection
@@ -1632,16 +1754,13 @@ public Builder putMetadata(
      *
      * map<string, string> metadata = 2;
      */
-
-    public Builder putAllMetadata(
-        java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetadata(java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1651,12 +1770,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.PredictResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.PredictResponse)
   private static final com.google.cloud.automl.v1.PredictResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1.PredictResponse();
   }
@@ -1665,16 +1784,16 @@ public static com.google.cloud.automl.v1.PredictResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public PredictResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new PredictResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public PredictResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new PredictResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1689,6 +1808,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1.PredictResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java
rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java
index 2a2a55984..b45c3eca1 100644
--- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1/prediction_service.proto
 
 package com.google.cloud.automl.v1;
 
-public interface PredictResponseOrBuilder extends
+public interface PredictResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.PredictResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -16,9 +34,10 @@ public interface PredictResponseOrBuilder extends
    *
    * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
    */
-  java.util.List 
-      getPayloadList();
+  java.util.List getPayloadList();
   /**
+   *
+   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -29,6 +48,8 @@ public interface PredictResponseOrBuilder extends
    */
   com.google.cloud.automl.v1.AnnotationPayload getPayload(int index);
   /**
+   *
+   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -39,6 +60,8 @@ public interface PredictResponseOrBuilder extends
    */
   int getPayloadCount();
   /**
+   *
+   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -47,9 +70,11 @@ public interface PredictResponseOrBuilder extends
    *
    * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
    */
-  java.util.List 
+  java.util.List
       getPayloadOrBuilderList();
   /**
+   *
+   *
    * 
    * Prediction result.
    * AutoML Translation and AutoML Natural Language Sentiment Analysis
@@ -58,10 +83,11 @@ public interface PredictResponseOrBuilder extends
    *
    * repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;
    */
-  com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
-      int index);
+  com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -73,10 +99,13 @@ com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
    * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; + * * @return Whether the preprocessedInput field is set. */ boolean hasPreprocessedInput(); /** + * + * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -88,10 +117,13 @@ com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
    * 
* * .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; + * * @return The preprocessedInput. */ com.google.cloud.automl.v1.ExamplePayload getPreprocessedInput(); /** + * + * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -107,6 +139,8 @@ com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
   com.google.cloud.automl.v1.ExamplePayloadOrBuilder getPreprocessedInputOrBuilder();
 
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -128,6 +162,8 @@ com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -147,15 +183,13 @@ com.google.cloud.automl.v1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
    *
    * map<string, string> metadata = 2;
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -175,9 +209,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 2;
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -197,11 +232,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 2;
    */
-
-  java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * AutoML Vision Object Detection
@@ -221,7 +255,5 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 2;
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 }
diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceProto.java
new file mode 100644
index 000000000..7cd19ff91
--- /dev/null
+++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceProto.java
@@ -0,0 +1,231 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1/prediction_service.proto
+
+package com.google.cloud.automl.v1;
+
+public final class PredictionServiceProto {
+  private PredictionServiceProto() {}
+
+  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_v1_PredictRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_PredictRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_PredictRequest_ParamsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_PredictRequest_ParamsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_PredictResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_PredictResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_PredictResponse_MetadataEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_PredictResponse_MetadataEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_BatchPredictRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_BatchPredictRequest_ParamsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictRequest_ParamsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_BatchPredictResult_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1_BatchPredictResult_MetadataEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1_BatchPredictResult_MetadataEntry_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/v1/prediction_serv"
+          + "ice.proto\022\026google.cloud.automl.v1\032\034googl"
+          + "e/api/annotations.proto\032\027google/api/clie"
+          + "nt.proto\032\037google/api/field_behavior.prot"
+          + "o\032\031google/api/resource.proto\032/google/clo"
+          + "ud/automl/v1/annotation_payload.proto\032\'g"
+          + "oogle/cloud/automl/v1/data_items.proto\032\037"
+          + "google/cloud/automl/v1/io.proto\032\'google/"
+          + "cloud/automl/v1/operations.proto\032#google"
+          + "/longrunning/operations.proto\"\364\001\n\016Predic"
+          + "tRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.g"
+          + "oogleapis.com/Model\022<\n\007payload\030\002 \001(\0132&.g"
+          + "oogle.cloud.automl.v1.ExamplePayloadB\003\340A"
+          + "\002\022B\n\006params\030\003 \003(\01322.google.cloud.automl."
+          + "v1.PredictRequest.ParamsEntry\032-\n\013ParamsE"
+          + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\213\002\n"
+          + "\017PredictResponse\022:\n\007payload\030\001 \003(\0132).goog"
+          + "le.cloud.automl.v1.AnnotationPayload\022B\n\022"
+          + "preprocessed_input\030\003 \001(\0132&.google.cloud."
+          + "automl.v1.ExamplePayload\022G\n\010metadata\030\002 \003"
+          + "(\01325.google.cloud.automl.v1.PredictRespo"
+          + "nse.MetadataEntry\032/\n\rMetadataEntry\022\013\n\003ke"
+          + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\332\002\n\023BatchPred"
+          + "ictRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl"
+          + ".googleapis.com/Model\022J\n\014input_config\030\003 "
+          + "\001(\0132/.google.cloud.automl.v1.BatchPredic"
+          + "tInputConfigB\003\340A\002\022L\n\routput_config\030\004 \001(\013"
+          + "20.google.cloud.automl.v1.BatchPredictOu"
+          + "tputConfigB\003\340A\002\022G\n\006params\030\005 \003(\01327.google"
+          + ".cloud.automl.v1.BatchPredictRequest.Par"
+          + "amsEntry\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
+          + "value\030\002 \001(\t:\0028\001\"\221\001\n\022BatchPredictResult\022J"
+          + "\n\010metadata\030\001 \003(\01328.google.cloud.automl.v"
+          + "1.BatchPredictResult.MetadataEntry\032/\n\rMe"
+          + "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
+          + "\0028\0012\205\004\n\021PredictionService\022\257\001\n\007Predict\022&."
+          + "google.cloud.automl.v1.PredictRequest\032\'."
+          + "google.cloud.automl.v1.PredictResponse\"S"
+          + "\202\323\344\223\0027\"2/v1/{name=projects/*/locations/*"
+          + "/models/*}:predict:\001*\332A\023name,payload,par"
+          + "ams\022\362\001\n\014BatchPredict\022+.google.cloud.auto"
+          + "ml.v1.BatchPredictRequest\032\035.google.longr"
+          + "unning.Operation\"\225\001\202\323\344\223\002<\"7/v1/{name=pro"
+          + "jects/*/locations/*/models/*}:batchPredi"
+          + "ct:\001*\332A&name,input_config,output_config,"
+          + "params\312A\'\n\022BatchPredictResult\022\021Operation"
+          + "Metadata\032I\312A\025automl.googleapis.com\322A.htt"
+          + "ps://www.googleapis.com/auth/cloud-platf"
+          + "ormB\302\001\n\032com.google.cloud.automl.v1B\026Pred"
+          + "ictionServiceProtoP\001Z
  * Dataset metadata for classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextClassificationDatasetMetadata} */ -public final class TextClassificationDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextClassificationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextClassificationDatasetMetadata) TextClassificationDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextClassificationDatasetMetadata.newBuilder() to construct. - private TextClassificationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextClassificationDatasetMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextClassificationDatasetMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextClassificationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextClassificationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,72 +71,85 @@ private TextClassificationDatasetMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + classificationType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.class, com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.class, + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 1; private int classificationType_; /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The classificationType. */ - @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { + @java.lang.Override + public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = + com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,9 +161,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (classificationType_ + != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, classificationType_); } unknownFields.writeTo(output); @@ -144,9 +176,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, classificationType_); + if (classificationType_ + != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -156,12 +189,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextClassificationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextClassificationDatasetMetadata other = (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) obj; + com.google.cloud.automl.v1.TextClassificationDatasetMetadata other = + (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -183,117 +217,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextClassificationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata 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.v1.TextClassificationDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextClassificationDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.TextClassificationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Dataset metadata for classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TextClassificationDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextClassificationDatasetMetadata) com.google.cloud.automl.v1.TextClassificationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextClassificationDatasetMetadata.class, com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.class, + com.google.cloud.automl.v1.TextClassificationDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextClassificationDatasetMetadata.newBuilder() @@ -301,16 +345,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,13 +363,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.TextClassificationDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1.TextClassificationDatasetMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance(); } @@ -341,7 +385,8 @@ public com.google.cloud.automl.v1.TextClassificationDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextClassificationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.TextClassificationDatasetMetadata result = new com.google.cloud.automl.v1.TextClassificationDatasetMetadata(this); + com.google.cloud.automl.v1.TextClassificationDatasetMetadata result = + new com.google.cloud.automl.v1.TextClassificationDatasetMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -351,38 +396,39 @@ public com.google.cloud.automl.v1.TextClassificationDatasetMetadata buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextClassificationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextClassificationDatasetMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.TextClassificationDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -390,7 +436,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextClassificationDatasetMetadata other) { - if (other == com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1.TextClassificationDatasetMetadata.getDefaultInstance()) + return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -413,7 +461,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextClassificationDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -425,51 +474,65 @@ public Builder mergeFrom( private int classificationType_ = 0; /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The classificationType. */ @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = + com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @param value The classificationType to set. * @return This builder for chaining. */ @@ -477,28 +540,31 @@ public Builder setClassificationType(com.google.cloud.automl.v1.ClassificationTy if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -508,12 +574,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextClassificationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextClassificationDatasetMetadata) - private static final com.google.cloud.automl.v1.TextClassificationDatasetMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.TextClassificationDatasetMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextClassificationDatasetMetadata(); } @@ -522,16 +589,16 @@ public static com.google.cloud.automl.v1.TextClassificationDatasetMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -546,6 +613,4 @@ public com.google.protobuf.Parser getParserFo public com.google.cloud.automl.v1.TextClassificationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java index d3c6235b8..81f67298d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationDatasetMetadataOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; -public interface TextClassificationDatasetMetadataOrBuilder extends +public interface TextClassificationDatasetMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextClassificationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 1; + * * @return The classificationType. */ com.google.cloud.automl.v1.ClassificationType getClassificationType(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java index 21e0bc7d4..b68b57f29 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadata.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model metadata that is specific to text classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextClassificationModelMetadata} */ -public final class TextClassificationModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextClassificationModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextClassificationModelMetadata) TextClassificationModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextClassificationModelMetadata.newBuilder() to construct. - private TextClassificationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextClassificationModelMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextClassificationModelMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextClassificationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextClassificationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,72 +71,85 @@ private TextClassificationModelMetadata( case 0: done = true; break; - case 24: { - int rawValue = input.readEnum(); + case 24: + { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + classificationType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextClassificationModelMetadata.class, com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextClassificationModelMetadata.class, + com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 3; private int classificationType_; /** + * + * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; + * * @return The classificationType. */ - @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { + @java.lang.Override + public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = + com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,9 +161,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (classificationType_ + != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, classificationType_); } unknownFields.writeTo(output); @@ -144,9 +176,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, classificationType_); + if (classificationType_ + != com.google.cloud.automl.v1.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -156,12 +189,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextClassificationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextClassificationModelMetadata other = (com.google.cloud.automl.v1.TextClassificationModelMetadata) obj; + com.google.cloud.automl.v1.TextClassificationModelMetadata other = + (com.google.cloud.automl.v1.TextClassificationModelMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -183,117 +217,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextClassificationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextClassificationModelMetadata 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.v1.TextClassificationModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextClassificationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextClassificationModelMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.TextClassificationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextClassificationModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextClassificationModelMetadata) com.google.cloud.automl.v1.TextClassificationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextClassificationModelMetadata.class, com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextClassificationModelMetadata.class, + com.google.cloud.automl.v1.TextClassificationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextClassificationModelMetadata.newBuilder() @@ -301,16 +345,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +363,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; } @java.lang.Override @@ -341,7 +384,8 @@ public com.google.cloud.automl.v1.TextClassificationModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextClassificationModelMetadata buildPartial() { - com.google.cloud.automl.v1.TextClassificationModelMetadata result = new com.google.cloud.automl.v1.TextClassificationModelMetadata(this); + com.google.cloud.automl.v1.TextClassificationModelMetadata result = + new com.google.cloud.automl.v1.TextClassificationModelMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -351,38 +395,39 @@ public com.google.cloud.automl.v1.TextClassificationModelMetadata buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextClassificationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextClassificationModelMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.TextClassificationModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -390,7 +435,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextClassificationModelMetadata other) { - if (other == com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TextClassificationModelMetadata.getDefaultInstance()) + return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -413,7 +459,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextClassificationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextClassificationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -425,51 +472,65 @@ public Builder mergeFrom( private int classificationType_ = 0; /** + * + * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; + * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; + * * @return The classificationType. */ @java.lang.Override public com.google.cloud.automl.v1.ClassificationType getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1.ClassificationType result = com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); + com.google.cloud.automl.v1.ClassificationType result = + com.google.cloud.automl.v1.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1.ClassificationType.UNRECOGNIZED : result; } /** + * + * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; + * * @param value The classificationType to set. * @return This builder for chaining. */ @@ -477,28 +538,31 @@ public Builder setClassificationType(com.google.cloud.automl.v1.ClassificationTy if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; + * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -508,12 +572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextClassificationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextClassificationModelMetadata) private static final com.google.cloud.automl.v1.TextClassificationModelMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextClassificationModelMetadata(); } @@ -522,16 +586,16 @@ public static com.google.cloud.automl.v1.TextClassificationModelMetadata getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -546,6 +610,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.automl.v1.TextClassificationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java index 639ed939b..92b8b26c7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextClassificationModelMetadataOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; -public interface TextClassificationModelMetadataOrBuilder extends +public interface TextClassificationModelMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextClassificationModelMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; + * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** + * + * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1.ClassificationType classification_type = 3; + * * @return The classificationType. */ com.google.cloud.automl.v1.ClassificationType getClassificationType(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtraction.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtraction.java new file mode 100644 index 000000000..6b1c12dd2 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtraction.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text_extraction.proto + +package com.google.cloud.automl.v1; + +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_v1_TextExtractionAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextExtractionAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_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 = { + "\n,google/cloud/automl/v1/text_extraction" + + ".proto\022\026google.cloud.automl.v1\032)google/c" + + "loud/automl/v1/text_segment.proto\032\034googl" + + "e/api/annotations.proto\"t\n\030TextExtractio" + + "nAnnotation\022;\n\014text_segment\030\003 \001(\0132#.goog" + + "le.cloud.automl.v1.TextSegmentH\000\022\r\n\005scor" + + "e\030\001 \001(\002B\014\n\nannotation\"\222\002\n\037TextExtraction" + + "EvaluationMetrics\022\016\n\006au_prc\030\001 \001(\002\022r\n\032con" + + "fidence_metrics_entries\030\002 \003(\0132N.google.c" + + "loud.automl.v1.TextExtractionEvaluationM" + + "etrics.ConfidenceMetricsEntry\032k\n\026Confide" + + "nceMetricsEntry\022\034\n\024confidence_threshold\030" + + "\001 \001(\002\022\016\n\006recall\030\003 \001(\002\022\021\n\tprecision\030\004 \001(\002" + + "\022\020\n\010f1_score\030\005 \001(\002B\252\001\n\032com.google.cloud." + + "automl.v1P\001Z * Annotation for identifying spans of text. *
* * Protobuf type {@code google.cloud.automl.v1.TextExtractionAnnotation} */ -public final class TextExtractionAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextExtractionAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextExtractionAnnotation) TextExtractionAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextExtractionAnnotation.newBuilder() to construct. private TextExtractionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextExtractionAnnotation() { - } + + private TextExtractionAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextExtractionAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextExtractionAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,65 +68,72 @@ private TextExtractionAnnotation( case 0: done = true; break; - case 13: { - - score_ = input.readFloat(); - break; - } - case 26: { - com.google.cloud.automl.v1.TextSegment.Builder subBuilder = null; - if (annotationCase_ == 3) { - subBuilder = ((com.google.cloud.automl.v1.TextSegment) annotation_).toBuilder(); + case 13: + { + score_ = input.readFloat(); + break; } - annotation_ = - input.readMessage(com.google.cloud.automl.v1.TextSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSegment) annotation_); - annotation_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1.TextSegment.Builder subBuilder = null; + if (annotationCase_ == 3) { + subBuilder = ((com.google.cloud.automl.v1.TextSegment) annotation_).toBuilder(); + } + annotation_ = + input.readMessage( + com.google.cloud.automl.v1.TextSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1.TextSegment) annotation_); + annotation_ = subBuilder.buildPartial(); + } + annotationCase_ = 3; + break; } - annotationCase_ = 3; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionAnnotation.class, com.google.cloud.automl.v1.TextExtractionAnnotation.Builder.class); + com.google.cloud.automl.v1.TextExtractionAnnotation.class, + com.google.cloud.automl.v1.TextExtractionAnnotation.Builder.class); } private int annotationCase_ = 0; private java.lang.Object annotation_; + public enum AnnotationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT_SEGMENT(3), ANNOTATION_NOT_SET(0); private final int value; + private AnnotationCase(int value) { this.value = value; } @@ -126,30 +149,35 @@ public static AnnotationCase valueOf(int value) { public static AnnotationCase forNumber(int value) { switch (value) { - case 3: return TEXT_SEGMENT; - case 0: return ANNOTATION_NOT_SET; - default: return null; + case 3: + return TEXT_SEGMENT; + case 0: + return ANNOTATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AnnotationCase - getAnnotationCase() { - return AnnotationCase.forNumber( - annotationCase_); + public AnnotationCase getAnnotationCase() { + return AnnotationCase.forNumber(annotationCase_); } public static final int TEXT_SEGMENT_FIELD_NUMBER = 3; /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; + * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -157,22 +185,27 @@ public boolean hasTextSegment() { return annotationCase_ == 3; } /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; + * * @return The textSegment. */ @java.lang.Override public com.google.cloud.automl.v1.TextSegment getTextSegment() { if (annotationCase_ == 3) { - return (com.google.cloud.automl.v1.TextSegment) annotation_; + return (com.google.cloud.automl.v1.TextSegment) annotation_; } return com.google.cloud.automl.v1.TextSegment.getDefaultInstance(); } /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
@@ -183,7 +216,7 @@ public com.google.cloud.automl.v1.TextSegment getTextSegment() {
   @java.lang.Override
   public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder() {
     if (annotationCase_ == 3) {
-       return (com.google.cloud.automl.v1.TextSegment) annotation_;
+      return (com.google.cloud.automl.v1.TextSegment) annotation_;
     }
     return com.google.cloud.automl.v1.TextSegment.getDefaultInstance();
   }
@@ -191,12 +224,15 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
   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; + * * @return The score. */ @java.lang.Override @@ -205,6 +241,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +253,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (score_ != 0F) { output.writeFloat(1, score_); } @@ -234,12 +270,12 @@ public int getSerializedSize() { size = 0; if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } if (annotationCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.automl.v1.TextSegment) annotation_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.automl.v1.TextSegment) annotation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -249,21 +285,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextExtractionAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextExtractionAnnotation other = (com.google.cloud.automl.v1.TextExtractionAnnotation) obj; + com.google.cloud.automl.v1.TextExtractionAnnotation other = + (com.google.cloud.automl.v1.TextExtractionAnnotation) obj; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!getAnnotationCase().equals(other.getAnnotationCase())) return false; switch (annotationCase_) { case 3: - if (!getTextSegment() - .equals(other.getTextSegment())) return false; + if (!getTextSegment().equals(other.getTextSegment())) return false; break; case 0: default: @@ -280,8 +315,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); switch (annotationCase_) { case 3: hash = (37 * hash) + TEXT_SEGMENT_FIELD_NUMBER; @@ -296,117 +330,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextExtractionAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.TextExtractionAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextExtractionAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextExtractionAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextExtractionAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.TextExtractionAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextExtractionAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextExtractionAnnotation) com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionAnnotation.class, com.google.cloud.automl.v1.TextExtractionAnnotation.Builder.class); + com.google.cloud.automl.v1.TextExtractionAnnotation.class, + com.google.cloud.automl.v1.TextExtractionAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1.TextExtractionAnnotation.newBuilder() @@ -414,16 +457,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionAnnotation_descriptor; } @java.lang.Override @@ -456,7 +498,8 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1.TextExtractionAnnotation buildPartial() { - com.google.cloud.automl.v1.TextExtractionAnnotation result = new com.google.cloud.automl.v1.TextExtractionAnnotation(this); + com.google.cloud.automl.v1.TextExtractionAnnotation result = + new com.google.cloud.automl.v1.TextExtractionAnnotation(this); if (annotationCase_ == 3) { if (textSegmentBuilder_ == null) { result.annotation_ = annotation_; @@ -474,38 +517,39 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextExtractionAnnotation) { - return mergeFrom((com.google.cloud.automl.v1.TextExtractionAnnotation)other); + return mergeFrom((com.google.cloud.automl.v1.TextExtractionAnnotation) other); } else { super.mergeFrom(other); return this; @@ -513,18 +557,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionAnnotation other) { - if (other == com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TextExtractionAnnotation.getDefaultInstance()) + return this; if (other.getScore() != 0F) { setScore(other.getScore()); } switch (other.getAnnotationCase()) { - case TEXT_SEGMENT: { - mergeTextSegment(other.getTextSegment()); - break; - } - case ANNOTATION_NOT_SET: { - break; - } + case TEXT_SEGMENT: + { + mergeTextSegment(other.getTextSegment()); + break; + } + case ANNOTATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -545,7 +592,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextExtractionAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextExtractionAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,12 +602,12 @@ public Builder mergeFrom( } return this; } + private int annotationCase_ = 0; private java.lang.Object annotation_; - public AnnotationCase - getAnnotationCase() { - return AnnotationCase.forNumber( - annotationCase_); + + public AnnotationCase getAnnotationCase() { + return AnnotationCase.forNumber(annotationCase_); } public Builder clearAnnotation() { @@ -569,16 +617,21 @@ public Builder clearAnnotation() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder> textSegmentBuilder_; + com.google.cloud.automl.v1.TextSegment, + com.google.cloud.automl.v1.TextSegment.Builder, + com.google.cloud.automl.v1.TextSegmentOrBuilder> + textSegmentBuilder_; /** + * + * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; + * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -586,12 +639,15 @@ public boolean hasTextSegment() { return annotationCase_ == 3; } /** + * + * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
      * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; + * * @return The textSegment. */ @java.lang.Override @@ -609,6 +665,8 @@ public com.google.cloud.automl.v1.TextSegment getTextSegment() { } } /** + * + * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -630,6 +688,8 @@ public Builder setTextSegment(com.google.cloud.automl.v1.TextSegment value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -637,8 +697,7 @@ public Builder setTextSegment(com.google.cloud.automl.v1.TextSegment value) {
      *
      * .google.cloud.automl.v1.TextSegment text_segment = 3;
      */
-    public Builder setTextSegment(
-        com.google.cloud.automl.v1.TextSegment.Builder builderForValue) {
+    public Builder setTextSegment(com.google.cloud.automl.v1.TextSegment.Builder builderForValue) {
       if (textSegmentBuilder_ == null) {
         annotation_ = builderForValue.build();
         onChanged();
@@ -649,6 +708,8 @@ public Builder setTextSegment(
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -658,10 +719,13 @@ public Builder setTextSegment(
      */
     public Builder mergeTextSegment(com.google.cloud.automl.v1.TextSegment value) {
       if (textSegmentBuilder_ == null) {
-        if (annotationCase_ == 3 &&
-            annotation_ != com.google.cloud.automl.v1.TextSegment.getDefaultInstance()) {
-          annotation_ = com.google.cloud.automl.v1.TextSegment.newBuilder((com.google.cloud.automl.v1.TextSegment) annotation_)
-              .mergeFrom(value).buildPartial();
+        if (annotationCase_ == 3
+            && annotation_ != com.google.cloud.automl.v1.TextSegment.getDefaultInstance()) {
+          annotation_ =
+              com.google.cloud.automl.v1.TextSegment.newBuilder(
+                      (com.google.cloud.automl.v1.TextSegment) annotation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           annotation_ = value;
         }
@@ -676,6 +740,8 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1.TextSegment value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -700,6 +766,8 @@ public Builder clearTextSegment() {
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -711,6 +779,8 @@ public com.google.cloud.automl.v1.TextSegment.Builder getTextSegmentBuilder() {
       return getTextSegmentFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -730,6 +800,8 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -738,32 +810,41 @@ public com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder()
      * .google.cloud.automl.v1.TextSegment text_segment = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder> 
+            com.google.cloud.automl.v1.TextSegment,
+            com.google.cloud.automl.v1.TextSegment.Builder,
+            com.google.cloud.automl.v1.TextSegmentOrBuilder>
         getTextSegmentFieldBuilder() {
       if (textSegmentBuilder_ == null) {
         if (!(annotationCase_ == 3)) {
           annotation_ = com.google.cloud.automl.v1.TextSegment.getDefaultInstance();
         }
-        textSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1.TextSegment, com.google.cloud.automl.v1.TextSegment.Builder, com.google.cloud.automl.v1.TextSegmentOrBuilder>(
+        textSegmentBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.automl.v1.TextSegment,
+                com.google.cloud.automl.v1.TextSegment.Builder,
+                com.google.cloud.automl.v1.TextSegmentOrBuilder>(
                 (com.google.cloud.automl.v1.TextSegment) annotation_,
                 getParentForChildren(),
                 isClean());
         annotation_ = null;
       }
       annotationCase_ = 3;
-      onChanged();;
+      onChanged();
+      ;
       return textSegmentBuilder_;
     }
 
-    private float score_ ;
+    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; + * * @return The score. */ @java.lang.Override @@ -771,39 +852,45 @@ 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; + * * @param value The score to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -813,12 +900,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextExtractionAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextExtractionAnnotation) private static final com.google.cloud.automl.v1.TextExtractionAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextExtractionAnnotation(); } @@ -827,16 +914,16 @@ public static com.google.cloud.automl.v1.TextExtractionAnnotation getDefaultInst 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); - } - }; + 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; @@ -851,6 +938,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TextExtractionAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java index 85f6b2844..779187206 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionAnnotationOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_extraction.proto package com.google.cloud.automl.v1; -public interface TextExtractionAnnotationOrBuilder extends +public interface TextExtractionAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextExtractionAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; + * * @return Whether the textSegment field is set. */ boolean hasTextSegment(); /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1.TextSegment text_segment = 3; + * * @return The textSegment. */ com.google.cloud.automl.v1.TextSegment getTextSegment(); /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
@@ -38,12 +62,15 @@ public interface TextExtractionAnnotationOrBuilder extends
   com.google.cloud.automl.v1.TextSegmentOrBuilder getTextSegmentOrBuilder();
 
   /**
+   *
+   *
    * 
    * 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; + * * @return The score. */ float getScore(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java index 5bee475a2..79b698c3f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; /** + * + * *
  * Dataset metadata that is specific to text extraction
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextExtractionDatasetMetadata} */ -public final class TextExtractionDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextExtractionDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextExtractionDatasetMetadata) TextExtractionDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextExtractionDatasetMetadata.newBuilder() to construct. private TextExtractionDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextExtractionDatasetMetadata() { - } + + private TextExtractionDatasetMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextExtractionDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextExtractionDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private TextExtractionDatasetMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.class, com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.class, + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextExtractionDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextExtractionDatasetMetadata other = (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) obj; + com.google.cloud.automl.v1.TextExtractionDatasetMetadata other = + (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextExtractionDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.TextExtractionDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextExtractionDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.TextExtractionDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextExtractionDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextExtractionDatasetMetadata) com.google.cloud.automl.v1.TextExtractionDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionDatasetMetadata.class, com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.class, + com.google.cloud.automl.v1.TextExtractionDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextExtractionDatasetMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; } @java.lang.Override @@ -295,7 +323,8 @@ public com.google.cloud.automl.v1.TextExtractionDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextExtractionDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.TextExtractionDatasetMetadata result = new com.google.cloud.automl.v1.TextExtractionDatasetMetadata(this); + com.google.cloud.automl.v1.TextExtractionDatasetMetadata result = + new com.google.cloud.automl.v1.TextExtractionDatasetMetadata(this); onBuilt(); return result; } @@ -304,38 +333,39 @@ public com.google.cloud.automl.v1.TextExtractionDatasetMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextExtractionDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextExtractionDatasetMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.TextExtractionDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +373,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionDatasetMetadata other) { - if (other == com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TextExtractionDatasetMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextExtractionDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +404,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextExtractionDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextExtractionDatasetMetadata) private static final com.google.cloud.automl.v1.TextExtractionDatasetMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextExtractionDatasetMetadata(); } @@ -398,16 +430,16 @@ public static com.google.cloud.automl.v1.TextExtractionDatasetMetadata getDefaul 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); - } - }; + 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; @@ -422,6 +454,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.automl.v1.TextExtractionDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadataOrBuilder.java new file mode 100644 index 000000000..022b074f5 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionDatasetMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text.proto + +package com.google.cloud.automl.v1; + +public interface TextExtractionDatasetMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextExtractionDatasetMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java index 571c4ad60..0abc7644f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetrics.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_extraction.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model evaluation metrics for text extraction problems.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextExtractionEvaluationMetrics} */ -public final class TextExtractionEvaluationMetrics extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextExtractionEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextExtractionEvaluationMetrics) TextExtractionEvaluationMetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextExtractionEvaluationMetrics.newBuilder() to construct. - private TextExtractionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextExtractionEvaluationMetrics( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextExtractionEvaluationMetrics() { confidenceMetricsEntries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextExtractionEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextExtractionEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,60 +72,73 @@ private TextExtractionEvaluationMetrics( case 0: done = true; break; - case 13: { - - auPrc_ = input.readFloat(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 13: + { + auPrc_ = input.readFloat(); + break; } - confidenceMetricsEntries_.add( - input.readMessage(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry>(); + mutable_bitField0_ |= 0x00000001; + } + confidenceMetricsEntries_.add( + input.readMessage( + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + 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.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.class, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.class, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder.class); } - public interface ConfidenceMetricsEntryOrBuilder extends + public interface ConfidenceMetricsEntryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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
@@ -115,71 +146,83 @@ public interface ConfidenceMetricsEntryOrBuilder extends
      * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** + * + * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 3; + * * @return The recall. */ float getRecall(); /** + * + * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 4; + * * @return The precision. */ float getPrecision(); /** + * + * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 5; + * * @return The f1Score. */ float getF1Score(); } /** + * + * *
    * Metrics for a single confidence threshold.
    * 
* - * Protobuf type {@code google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code + * google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) ConfidenceMetricsEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfidenceMetricsEntry() { - } + + private ConfidenceMetricsEntry() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -198,61 +241,67 @@ private ConfidenceMetricsEntry( 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; + 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; } - 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); + 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.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .class, + com.google.cloud.automl.v1.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
@@ -260,6 +309,7 @@ private ConfidenceMetricsEntry(
      * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -270,11 +320,14 @@ public float getConfidenceThreshold() { public static final int RECALL_FIELD_NUMBER = 3; private float recall_; /** + * + * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 3; + * * @return The recall. */ @java.lang.Override @@ -285,11 +338,14 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 4; private float precision_; /** + * + * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 4; + * * @return The precision. */ @java.lang.Override @@ -300,11 +356,14 @@ public float getPrecision() { 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; + * * @return The f1Score. */ @java.lang.Override @@ -313,6 +372,7 @@ public float getF1Score() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +384,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -348,20 +407,16 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, recall_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, precision_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, f1Score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, f1Score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -371,25 +426,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry)) { + if (!(obj + instanceof + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other = (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) obj; + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other = + (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) - != java.lang.Float.floatToIntBits( - other.getConfidenceThreshold())) return false; + != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits( - other.getRecall())) return false; + != java.lang.Float.floatToIntBits(other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits( - other.getPrecision())) return false; + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits( - other.getF1Score())) return false; + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -402,104 +456,114 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidenceThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1Score()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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); + + public static com.google.cloud.automl.v1.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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -509,44 +573,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metrics for a single confidence threshold.
      * 
* - * Protobuf type {@code google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code + * google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .class, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder.class); } - // Construct using com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() + // Construct using + // com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -562,19 +634,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { - return com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance(); + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getDefaultInstanceForType() { + return com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry build() { - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry result = buildPartial(); + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + build() { + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -582,8 +658,11 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetr } @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry buildPartial() { - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry result = new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry(this); + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + buildPartial() { + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry result = + new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry( + this); result.confidenceThreshold_ = confidenceThreshold_; result.recall_ = recall_; result.precision_ = precision_; @@ -596,46 +675,56 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) { - return mergeFrom((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry)other); + if (other + instanceof + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) { + return mergeFrom( + (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other) { - if (other == com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other) { + if (other + == com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .getDefaultInstance()) return this; if (other.getConfidenceThreshold() != 0F) { setConfidenceThreshold(other.getConfidenceThreshold()); } @@ -663,11 +752,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parsedMessage = null; + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -677,8 +769,10 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_ ; + 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
@@ -686,6 +780,7 @@ public Builder mergeFrom(
        * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -693,6 +788,8 @@ 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
@@ -700,16 +797,19 @@ public float getConfidenceThreshold() {
        * 
* * float confidence_threshold = 1; + * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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
@@ -717,22 +817,26 @@ public Builder setConfidenceThreshold(float value) {
        * 
* * float confidence_threshold = 1; + * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private float recall_ ; + private float recall_; /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; + * * @return The recall. */ @java.lang.Override @@ -740,42 +844,51 @@ public float getRecall() { return recall_; } /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; + * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; + * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_ ; + private float precision_; /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; + * * @return The precision. */ @java.lang.Override @@ -783,42 +896,51 @@ public float getPrecision() { return precision_; } /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float f1Score_ ; + private float f1Score_; /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; + * * @return The f1Score. */ @java.lang.Override @@ -826,34 +948,41 @@ public float getF1Score() { return f1Score_; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; + * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; + * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -866,30 +995,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) - private static final com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstance() { + public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -901,20 +1034,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } 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; + * * @return The auPrc. */ @java.lang.Override @@ -923,71 +1059,100 @@ public float getAuPrc() { } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 2; - private java.util.List confidenceMetricsEntries_; + private java.util.List< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + confidenceMetricsEntries_; /** + * + * *
    * Output only. Metrics that have confidence thresholds.
    * Precision-recall curve can be derived from it.
    * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ @java.lang.Override - public java.util.List getConfidenceMetricsEntriesList() { + public java.util.List< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + getConfidenceMetricsEntriesList() { return confidenceMetricsEntries_; } /** + * + * *
    * Output only. Metrics that have confidence thresholds.
    * Precision-recall curve can be derived from it.
    * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesOrBuilderList() { return confidenceMetricsEntries_; } /** + * + * *
    * Output only. Metrics that have confidence thresholds.
    * Precision-recall curve can be derived from it.
    * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ @java.lang.Override 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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { return confidenceMetricsEntries_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -999,8 +1164,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (auPrc_ != 0F) { output.writeFloat(1, auPrc_); } @@ -1017,12 +1181,12 @@ public int getSerializedSize() { size = 0; if (auPrc_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, auPrc_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, confidenceMetricsEntries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1032,18 +1196,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextExtractionEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics other = (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) obj; + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics other = + (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) obj; if (java.lang.Float.floatToIntBits(getAuPrc()) - != java.lang.Float.floatToIntBits( - other.getAuPrc())) return false; - if (!getConfidenceMetricsEntriesList() - .equals(other.getConfidenceMetricsEntriesList())) return false; + != java.lang.Float.floatToIntBits(other.getAuPrc())) return false; + if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1056,8 +1220,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AU_PRC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAuPrc()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuPrc()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); @@ -1068,117 +1231,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextExtractionEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextExtractionEvaluationMetrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextExtractionEvaluationMetrics) com.google.cloud.automl.v1.TextExtractionEvaluationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.class, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.class, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.Builder.class); } // Construct using com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.newBuilder() @@ -1186,17 +1359,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConfidenceMetricsEntriesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1212,9 +1385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextExtraction.internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextExtraction + .internal_static_google_cloud_automl_v1_TextExtractionEvaluationMetrics_descriptor; } @java.lang.Override @@ -1233,12 +1406,14 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics build() { @java.lang.Override public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics buildPartial() { - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics result = new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics(this); + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics result = + new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics(this); int from_bitField0_ = bitField0_; result.auPrc_ = auPrc_; if (confidenceMetricsEntriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + confidenceMetricsEntries_ = + java.util.Collections.unmodifiableList(confidenceMetricsEntries_); bitField0_ = (bitField0_ & ~0x00000001); } result.confidenceMetricsEntries_ = confidenceMetricsEntries_; @@ -1253,38 +1428,39 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextExtractionEvaluationMetrics) { - return mergeFrom((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics)other); + return mergeFrom((com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) other); } else { super.mergeFrom(other); return this; @@ -1292,7 +1468,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics other) { - if (other == com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.getDefaultInstance()) + return this; if (other.getAuPrc() != 0F) { setAuPrc(other.getAuPrc()); } @@ -1314,9 +1491,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionEvaluationMetr confidenceMetricsEntriesBuilder_ = null; confidenceMetricsEntries_ = other.confidenceMetricsEntries_; bitField0_ = (bitField0_ & ~0x00000001); - confidenceMetricsEntriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfidenceMetricsEntriesFieldBuilder() : null; + confidenceMetricsEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConfidenceMetricsEntriesFieldBuilder() + : null; } else { confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_); } @@ -1341,7 +1519,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextExtractionEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1350,15 +1529,19 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private float auPrc_ ; + private float auPrc_; /** + * + * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; + * * @return The auPrc. */ @java.lang.Override @@ -1366,56 +1549,78 @@ public float getAuPrc() { return auPrc_; } /** + * + * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; + * * @param value The auPrc to set. * @return This builder for chaining. */ public Builder setAuPrc(float value) { - + auPrc_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; + * * @return This builder for chaining. */ public Builder clearAuPrc() { - + auPrc_ = 0F; onChanged(); return this; } - private java.util.List confidenceMetricsEntries_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + private void ensureConfidenceMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = new java.util.ArrayList(confidenceMetricsEntries_); + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry>( + confidenceMetricsEntries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> confidenceMetricsEntriesBuilder_; + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + confidenceMetricsEntriesBuilder_; /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public java.util.List getConfidenceMetricsEntriesList() { + public java.util.List< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + getConfidenceMetricsEntriesList() { if (confidenceMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } else { @@ -1423,12 +1628,16 @@ public java.util.List * Output only. Metrics that have confidence thresholds. * Precision-recall curve can be derived from it. *
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1438,14 +1647,19 @@ public int getConfidenceMetricsEntriesCount() { } } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { @@ -1453,15 +1667,20 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetr } } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder setConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1475,15 +1694,21 @@ public Builder setConfidenceMetricsEntries( return this; } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder setConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); @@ -1494,14 +1719,19 @@ public Builder setConfidenceMetricsEntries( return this; } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntries( + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1515,15 +1745,20 @@ public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1.TextExtrac return this; } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder addConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1537,15 +1772,20 @@ public Builder addConfidenceMetricsEntries( return this; } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); @@ -1556,15 +1796,21 @@ public Builder addConfidenceMetricsEntries( return this; } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder addConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); @@ -1575,19 +1821,26 @@ public Builder addConfidenceMetricsEntries( return this; } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder addAllConfidenceMetricsEntries( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry> + values) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, confidenceMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); onChanged(); } else { confidenceMetricsEntriesBuilder_.addAllMessages(values); @@ -1595,12 +1848,16 @@ public Builder addAllConfidenceMetricsEntries( return this; } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1613,12 +1870,16 @@ public Builder clearConfidenceMetricsEntries() { return this; } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1631,42 +1892,59 @@ public Builder removeConfidenceMetricsEntries(int index) { return this; } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder( - int index) { + public com.google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { if (confidenceMetricsEntriesBuilder_ == null) { - return confidenceMetricsEntries_.get(index); } else { + 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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public java.util.List - getConfidenceMetricsEntriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1674,48 +1952,78 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetr } } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder() { - return getConfidenceMetricsEntriesFieldBuilder().addBuilder( - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntriesBuilder() { + return getConfidenceMetricsEntriesFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .getDefaultInstance()); } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder( - int index) { - return getConfidenceMetricsEntriesFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntriesBuilder(int index) { + return getConfidenceMetricsEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .getDefaultInstance()); } /** + * + * *
      * Output only. Metrics that have confidence thresholds.
      * Precision-recall curve can be derived from it.
      * 
* - * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public java.util.List - getConfidenceMetricsEntriesBuilderList() { + public java.util.List< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder> + getConfidenceMetricsEntriesBuilderList() { return getConfidenceMetricsEntriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesFieldBuilder() { if (confidenceMetricsEntriesBuilder_ == null) { - confidenceMetricsEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder, + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1724,9 +2032,9 @@ public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetr } return confidenceMetricsEntriesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1736,12 +2044,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextExtractionEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextExtractionEvaluationMetrics) private static final com.google.cloud.automl.v1.TextExtractionEvaluationMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextExtractionEvaluationMetrics(); } @@ -1750,16 +2058,16 @@ public static com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getDefa 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); - } - }; + 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; @@ -1774,6 +2082,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.automl.v1.TextExtractionEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetricsOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000..2af4cb942 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionEvaluationMetricsOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text_extraction.proto + +package com.google.cloud.automl.v1; + +public interface TextExtractionEvaluationMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextExtractionEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The Area under precision recall curve metric.
+   * 
+ * + * float au_prc = 1; + * + * @return The auPrc. + */ + float getAuPrc(); + + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + java.util.List + getConfidenceMetricsEntriesList(); + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index); + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1.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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList(); + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java index ca153b30c..46347be0e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model metadata that is specific to text extraction.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextExtractionModelMetadata} */ -public final class TextExtractionModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextExtractionModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextExtractionModelMetadata) TextExtractionModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextExtractionModelMetadata.newBuilder() to construct. private TextExtractionModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextExtractionModelMetadata() { - } + + private TextExtractionModelMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextExtractionModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextExtractionModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private TextExtractionModelMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionModelMetadata.class, com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextExtractionModelMetadata.class, + com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextExtractionModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextExtractionModelMetadata other = (com.google.cloud.automl.v1.TextExtractionModelMetadata) obj; + com.google.cloud.automl.v1.TextExtractionModelMetadata other = + (com.google.cloud.automl.v1.TextExtractionModelMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextExtractionModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.TextExtractionModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextExtractionModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextExtractionModelMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.TextExtractionModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextExtractionModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextExtractionModelMetadata) com.google.cloud.automl.v1.TextExtractionModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextExtractionModelMetadata.class, com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextExtractionModelMetadata.class, + com.google.cloud.automl.v1.TextExtractionModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextExtractionModelMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; } @java.lang.Override @@ -295,7 +323,8 @@ public com.google.cloud.automl.v1.TextExtractionModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextExtractionModelMetadata buildPartial() { - com.google.cloud.automl.v1.TextExtractionModelMetadata result = new com.google.cloud.automl.v1.TextExtractionModelMetadata(this); + com.google.cloud.automl.v1.TextExtractionModelMetadata result = + new com.google.cloud.automl.v1.TextExtractionModelMetadata(this); onBuilt(); return result; } @@ -304,38 +333,39 @@ public com.google.cloud.automl.v1.TextExtractionModelMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextExtractionModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextExtractionModelMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.TextExtractionModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +373,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextExtractionModelMetadata other) { - if (other == com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TextExtractionModelMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextExtractionModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextExtractionModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +404,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextExtractionModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextExtractionModelMetadata) private static final com.google.cloud.automl.v1.TextExtractionModelMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextExtractionModelMetadata(); } @@ -398,16 +430,16 @@ public static com.google.cloud.automl.v1.TextExtractionModelMetadata getDefaultI 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); - } - }; + 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; @@ -422,6 +454,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1.TextExtractionModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java new file mode 100644 index 000000000..d8b325fe4 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextExtractionModelMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text.proto + +package com.google.cloud.automl.v1; + +public interface TextExtractionModelMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextExtractionModelMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java new file mode 100644 index 000000000..2824d3182 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextProto.java @@ -0,0 +1,136 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text.proto + +package com.google.cloud.automl.v1; + +public final class TextProto { + private TextProto() {} + + 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_v1_TextClassificationDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextClassificationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextClassificationModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextExtractionDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextExtractionModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_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/v1/text.proto\022\026goo" + + "gle.cloud.automl.v1\032+google/cloud/automl" + + "/v1/classification.proto\032\034google/api/ann" + + "otations.proto\"l\n!TextClassificationData" + + "setMetadata\022G\n\023classification_type\030\001 \001(\016" + + "2*.google.cloud.automl.v1.Classification" + + "Type\"j\n\037TextClassificationModelMetadata\022" + + "G\n\023classification_type\030\003 \001(\0162*.google.cl" + + "oud.automl.v1.ClassificationType\"\037\n\035Text" + + "ExtractionDatasetMetadata\"\035\n\033TextExtract" + + "ionModelMetadata\"5\n\034TextSentimentDataset" + + "Metadata\022\025\n\rsentiment_max\030\001 \001(\005\"\034\n\032TextS" + + "entimentModelMetadataB\265\001\n\032com.google.clo" + + "ud.automl.v1B\tTextProtoP\001Z * A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding. *
* * Protobuf type {@code google.cloud.automl.v1.TextSegment} */ -public final class TextSegment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextSegment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSegment) TextSegmentOrBuilder { -private static final long serialVersionUID = 0L; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSegment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSegment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,62 +70,68 @@ private TextSegment( 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(); + 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; + content_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TextSegmentProto.internal_static_google_cloud_automl_v1_TextSegment_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextSegmentProto + .internal_static_google_cloud_automl_v1_TextSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSegmentProto.internal_static_google_cloud_automl_v1_TextSegment_fieldAccessorTable + return com.google.cloud.automl.v1.TextSegmentProto + .internal_static_google_cloud_automl_v1_TextSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSegment.class, com.google.cloud.automl.v1.TextSegment.Builder.class); + com.google.cloud.automl.v1.TextSegment.class, + com.google.cloud.automl.v1.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; + * * @return The content. */ @java.lang.Override @@ -117,29 +140,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -150,12 +173,15 @@ public java.lang.String getContent() { 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; + * * @return The startOffset. */ @java.lang.Override @@ -166,6 +192,8 @@ public long getStartOffset() { 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).
@@ -173,6 +201,7 @@ public long getStartOffset() {
    * 
* * int64 end_offset = 2; + * * @return The endOffset. */ @java.lang.Override @@ -181,6 +210,7 @@ public long getEndOffset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,8 +222,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startOffset_ != 0L) { output.writeInt64(1, startOffset_); } @@ -213,12 +242,10 @@ public int getSerializedSize() { size = 0; if (startOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, startOffset_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, startOffset_); } if (endOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, endOffset_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, endOffset_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); @@ -231,19 +258,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSegment)) { return super.equals(obj); } com.google.cloud.automl.v1.TextSegment other = (com.google.cloud.automl.v1.TextSegment) obj; - if (!getContent() - .equals(other.getContent())) return false; - if (getStartOffset() - != other.getStartOffset()) return false; - if (getEndOffset() - != other.getEndOffset()) return false; + 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; } @@ -258,128 +282,135 @@ public int 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 = (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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getEndOffset()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1.TextSegment parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.TextSegment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSegment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSegment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.TextSegment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSegment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.TextSegment parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSegment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextSegment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSegment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextSegment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.TextSegment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextSegment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSegment) com.google.cloud.automl.v1.TextSegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextSegmentProto.internal_static_google_cloud_automl_v1_TextSegment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextSegmentProto + .internal_static_google_cloud_automl_v1_TextSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSegmentProto.internal_static_google_cloud_automl_v1_TextSegment_fieldAccessorTable + return com.google.cloud.automl.v1.TextSegmentProto + .internal_static_google_cloud_automl_v1_TextSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSegment.class, com.google.cloud.automl.v1.TextSegment.Builder.class); + com.google.cloud.automl.v1.TextSegment.class, + com.google.cloud.automl.v1.TextSegment.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSegment.newBuilder() @@ -387,16 +418,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextSegmentProto.internal_static_google_cloud_automl_v1_TextSegment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextSegmentProto + .internal_static_google_cloud_automl_v1_TextSegment_descriptor; } @java.lang.Override @@ -431,7 +461,8 @@ public com.google.cloud.automl.v1.TextSegment build() { @java.lang.Override public com.google.cloud.automl.v1.TextSegment buildPartial() { - com.google.cloud.automl.v1.TextSegment result = new com.google.cloud.automl.v1.TextSegment(this); + com.google.cloud.automl.v1.TextSegment result = + new com.google.cloud.automl.v1.TextSegment(this); result.content_ = content_; result.startOffset_ = startOffset_; result.endOffset_ = endOffset_; @@ -443,38 +474,39 @@ public com.google.cloud.automl.v1.TextSegment buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSegment) { - return mergeFrom((com.google.cloud.automl.v1.TextSegment)other); + return mergeFrom((com.google.cloud.automl.v1.TextSegment) other); } else { super.mergeFrom(other); return this; @@ -524,18 +556,20 @@ public Builder mergeFrom( private java.lang.Object content_ = ""; /** + * + * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; + * * @return The content. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -544,20 +578,21 @@ public java.lang.String getContent() { } } /** + * + * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -565,67 +600,77 @@ public java.lang.String getContent() { } } /** + * + * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { + public Builder setContent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** + * + * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { + public Builder setContentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; onChanged(); return this; } - private long startOffset_ ; + 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; + * * @return The startOffset. */ @java.lang.Override @@ -633,39 +678,47 @@ 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; + * * @param value The startOffset to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearStartOffset() { - + startOffset_ = 0L; onChanged(); return this; } - private long endOffset_ ; + 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).
@@ -673,6 +726,7 @@ public Builder clearStartOffset() {
      * 
* * int64 end_offset = 2; + * * @return The endOffset. */ @java.lang.Override @@ -680,6 +734,8 @@ 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).
@@ -687,16 +743,19 @@ public long getEndOffset() {
      * 
* * int64 end_offset = 2; + * * @param value The endOffset to set. * @return This builder for chaining. */ 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).
@@ -704,17 +763,18 @@ public Builder setEndOffset(long value) {
      * 
* * int64 end_offset = 2; + * * @return This builder for chaining. */ public Builder clearEndOffset() { - + endOffset_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -724,12 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSegment) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSegment) private static final com.google.cloud.automl.v1.TextSegment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSegment(); } @@ -738,16 +798,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -762,6 +822,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TextSegment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java index 5ea830914..cfff94cf0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentOrBuilder.java @@ -1,44 +1,70 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_segment.proto package com.google.cloud.automl.v1; -public interface TextSegmentOrBuilder extends +public interface TextSegmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSegment) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The content of the TextSegment.
    * 
* * string content = 3; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * Output only. The content of the TextSegment.
    * 
* * string content = 3; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + 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; + * * @return The startOffset. */ 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).
@@ -46,6 +72,7 @@ public interface TextSegmentOrBuilder extends
    * 
* * int64 end_offset = 2; + * * @return The endOffset. */ long getEndOffset(); diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentProto.java new file mode 100644 index 000000000..eaeeb936e --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSegmentProto.java @@ -0,0 +1,72 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text_segment.proto + +package com.google.cloud.automl.v1; + +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_v1_TextSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_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/v1/text_segment.pr" + + "oto\022\026google.cloud.automl.v1\032\034google/api/" + + "annotations.proto\"H\n\013TextSegment\022\017\n\007cont" + + "ent\030\003 \001(\t\022\024\n\014start_offset\030\001 \001(\003\022\022\n\nend_o" + + "ffset\030\002 \001(\003B\274\001\n\032com.google.cloud.automl." + + "v1B\020TextSegmentProtoP\001Z * Contains annotation details specific to text sentiment. *
* * Protobuf type {@code google.cloud.automl.v1.TextSentimentAnnotation} */ -public final class TextSentimentAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextSentimentAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSentimentAnnotation) TextSentimentAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextSentimentAnnotation.newBuilder() to construct. private TextSentimentAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextSentimentAnnotation() { - } + + private TextSentimentAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSentimentAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSentimentAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,46 +68,50 @@ private TextSentimentAnnotation( case 0: done = true; break; - case 8: { - - sentiment_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + sentiment_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextSentimentProto + .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TextSentimentProto + .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentAnnotation.class, com.google.cloud.automl.v1.TextSentimentAnnotation.Builder.class); + com.google.cloud.automl.v1.TextSentimentAnnotation.class, + com.google.cloud.automl.v1.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.v1.AutoMl.ImportData] when populating the dataset from which the model used
@@ -108,6 +128,7 @@ private TextSentimentAnnotation(
    * 
* * int32 sentiment = 1; + * * @return The sentiment. */ @java.lang.Override @@ -116,6 +137,7 @@ public int getSentiment() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,8 +149,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sentiment_ != 0) { output.writeInt32(1, sentiment_); } @@ -142,8 +163,7 @@ public int getSerializedSize() { size = 0; if (sentiment_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sentiment_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentiment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -153,15 +173,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSentimentAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextSentimentAnnotation other = (com.google.cloud.automl.v1.TextSentimentAnnotation) obj; + com.google.cloud.automl.v1.TextSentimentAnnotation other = + (com.google.cloud.automl.v1.TextSentimentAnnotation) obj; - if (getSentiment() - != other.getSentiment()) return false; + if (getSentiment() != other.getSentiment()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -181,117 +201,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSentimentAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.TextSentimentAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextSentimentAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSentimentAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.TextSentimentAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextSentimentAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSentimentAnnotation) com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextSentimentProto + .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TextSentimentProto + .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentAnnotation.class, com.google.cloud.automl.v1.TextSentimentAnnotation.Builder.class); + com.google.cloud.automl.v1.TextSentimentAnnotation.class, + com.google.cloud.automl.v1.TextSentimentAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSentimentAnnotation.newBuilder() @@ -299,16 +328,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -318,9 +346,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextSentimentProto + .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; } @java.lang.Override @@ -339,7 +367,8 @@ public com.google.cloud.automl.v1.TextSentimentAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1.TextSentimentAnnotation buildPartial() { - com.google.cloud.automl.v1.TextSentimentAnnotation result = new com.google.cloud.automl.v1.TextSentimentAnnotation(this); + com.google.cloud.automl.v1.TextSentimentAnnotation result = + new com.google.cloud.automl.v1.TextSentimentAnnotation(this); result.sentiment_ = sentiment_; onBuilt(); return result; @@ -349,38 +378,39 @@ public com.google.cloud.automl.v1.TextSentimentAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSentimentAnnotation) { - return mergeFrom((com.google.cloud.automl.v1.TextSentimentAnnotation)other); + return mergeFrom((com.google.cloud.automl.v1.TextSentimentAnnotation) other); } else { super.mergeFrom(other); return this; @@ -388,7 +418,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextSentimentAnnotation other) { - if (other == com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance()) + return this; if (other.getSentiment() != 0) { setSentiment(other.getSentiment()); } @@ -411,7 +442,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextSentimentAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextSentimentAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -421,8 +453,10 @@ public Builder mergeFrom( return this; } - private int sentiment_ ; + private int sentiment_; /** + * + * *
      * Output only. The sentiment with the semantic, as given to the
      * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used
@@ -439,6 +473,7 @@ public Builder mergeFrom(
      * 
* * int32 sentiment = 1; + * * @return The sentiment. */ @java.lang.Override @@ -446,6 +481,8 @@ public int getSentiment() { return sentiment_; } /** + * + * *
      * Output only. The sentiment with the semantic, as given to the
      * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used
@@ -462,16 +499,19 @@ public int getSentiment() {
      * 
* * int32 sentiment = 1; + * * @param value The sentiment to set. * @return This builder for chaining. */ 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.v1.AutoMl.ImportData] when populating the dataset from which the model used
@@ -488,17 +528,18 @@ public Builder setSentiment(int value) {
      * 
* * int32 sentiment = 1; + * * @return This builder for chaining. */ public Builder clearSentiment() { - + sentiment_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -508,12 +549,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSentimentAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentAnnotation) private static final com.google.cloud.automl.v1.TextSentimentAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSentimentAnnotation(); } @@ -522,16 +563,16 @@ public static com.google.cloud.automl.v1.TextSentimentAnnotation getDefaultInsta 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); - } - }; + 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; @@ -546,6 +587,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TextSentimentAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java index 2838f7d86..3ee6f26fe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_sentiment.proto package com.google.cloud.automl.v1; -public interface TextSentimentAnnotationOrBuilder extends +public interface TextSentimentAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSentimentAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The sentiment with the semantic, as given to the
    * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used
@@ -24,6 +42,7 @@ public interface TextSentimentAnnotationOrBuilder extends
    * 
* * int32 sentiment = 1; + * * @return The sentiment. */ int getSentiment(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java index b001d9063..3d9ca71d1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; /** + * + * *
  * Dataset metadata for text sentiment.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextSentimentDatasetMetadata} */ -public final class TextSentimentDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextSentimentDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSentimentDatasetMetadata) TextSentimentDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextSentimentDatasetMetadata.newBuilder() to construct. private TextSentimentDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextSentimentDatasetMetadata() { - } + + private TextSentimentDatasetMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSentimentDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSentimentDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,46 +68,50 @@ private TextSentimentDatasetMetadata( case 0: done = true; break; - case 8: { - - sentimentMax_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + sentimentMax_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.class, com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.class, + com.google.cloud.automl.v1.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
@@ -102,6 +122,7 @@ private TextSentimentDatasetMetadata(
    * 
* * int32 sentiment_max = 1; + * * @return The sentimentMax. */ @java.lang.Override @@ -110,6 +131,7 @@ public int getSentimentMax() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +143,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sentimentMax_ != 0) { output.writeInt32(1, sentimentMax_); } @@ -136,8 +157,7 @@ public int getSerializedSize() { size = 0; if (sentimentMax_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sentimentMax_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentimentMax_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -147,15 +167,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSentimentDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextSentimentDatasetMetadata other = (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) obj; + com.google.cloud.automl.v1.TextSentimentDatasetMetadata other = + (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) obj; - if (getSentimentMax() - != other.getSentimentMax()) return false; + if (getSentimentMax() != other.getSentimentMax()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -175,117 +195,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSentimentDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.TextSentimentDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextSentimentDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.TextSentimentDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextSentimentDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSentimentDatasetMetadata) com.google.cloud.automl.v1.TextSentimentDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentDatasetMetadata.class, com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.class, + com.google.cloud.automl.v1.TextSentimentDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSentimentDatasetMetadata.newBuilder() @@ -293,16 +323,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextSentimentDatasetMetadata_descriptor; } @java.lang.Override @@ -333,7 +362,8 @@ public com.google.cloud.automl.v1.TextSentimentDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextSentimentDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.TextSentimentDatasetMetadata result = new com.google.cloud.automl.v1.TextSentimentDatasetMetadata(this); + com.google.cloud.automl.v1.TextSentimentDatasetMetadata result = + new com.google.cloud.automl.v1.TextSentimentDatasetMetadata(this); result.sentimentMax_ = sentimentMax_; onBuilt(); return result; @@ -343,38 +373,39 @@ public com.google.cloud.automl.v1.TextSentimentDatasetMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSentimentDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextSentimentDatasetMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.TextSentimentDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -382,7 +413,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextSentimentDatasetMetadata other) { - if (other == com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TextSentimentDatasetMetadata.getDefaultInstance()) + return this; if (other.getSentimentMax() != 0) { setSentimentMax(other.getSentimentMax()); } @@ -405,7 +437,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextSentimentDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -415,8 +448,10 @@ public Builder mergeFrom( return this; } - private int sentimentMax_ ; + 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
@@ -427,6 +462,7 @@ public Builder mergeFrom(
      * 
* * int32 sentiment_max = 1; + * * @return The sentimentMax. */ @java.lang.Override @@ -434,6 +470,8 @@ 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
@@ -444,16 +482,19 @@ public int getSentimentMax() {
      * 
* * int32 sentiment_max = 1; + * * @param value The sentimentMax to set. * @return This builder for chaining. */ 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
@@ -464,17 +505,18 @@ public Builder setSentimentMax(int value) {
      * 
* * int32 sentiment_max = 1; + * * @return This builder for chaining. */ public Builder clearSentimentMax() { - + sentimentMax_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -484,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSentimentDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentDatasetMetadata) private static final com.google.cloud.automl.v1.TextSentimentDatasetMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSentimentDatasetMetadata(); } @@ -498,16 +540,16 @@ public static com.google.cloud.automl.v1.TextSentimentDatasetMetadata getDefault 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); - } - }; + 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; @@ -522,6 +564,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.TextSentimentDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java index 80456f70d..a48f848ce 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentDatasetMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; -public interface TextSentimentDatasetMetadataOrBuilder extends +public interface TextSentimentDatasetMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.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
@@ -18,6 +36,7 @@ public interface TextSentimentDatasetMetadataOrBuilder extends
    * 
* * int32 sentiment_max = 1; + * * @return The sentimentMax. */ int getSentimentMax(); diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java index baf96b66b..9c10bafd0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetrics.java @@ -1,39 +1,56 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_sentiment.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model evaluation metrics for text sentiment problems.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextSentimentEvaluationMetrics} */ -public final class TextSentimentEvaluationMetrics extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextSentimentEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSentimentEvaluationMetrics) TextSentimentEvaluationMetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextSentimentEvaluationMetrics.newBuilder() to construct. - private TextSentimentEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextSentimentEvaluationMetrics( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextSentimentEvaluationMetrics() { - } + + private TextSentimentEvaluationMetrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSentimentEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSentimentEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,94 +69,105 @@ private TextSentimentEvaluationMetrics( 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder subBuilder = null; - if (confusionMatrix_ != null) { - subBuilder = confusionMatrix_.toBuilder(); + case 13: + { + precision_ = input.readFloat(); + break; } - confusionMatrix_ = input.readMessage(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confusionMatrix_); - confusionMatrix_ = subBuilder.buildPartial(); + case 21: + { + recall_ = input.readFloat(); + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder + subBuilder = null; + if (confusionMatrix_ != null) { + subBuilder = confusionMatrix_.toBuilder(); + } + confusionMatrix_ = + input.readMessage( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(confusionMatrix_); + confusionMatrix_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextSentimentProto + .internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TextSentimentProto + .internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.class, com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.class, + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder.class); } public static final int PRECISION_FIELD_NUMBER = 1; private float precision_; /** + * + * *
    * Output only. Precision.
    * 
* * float precision = 1; + * * @return The precision. */ @java.lang.Override @@ -150,11 +178,14 @@ public float getPrecision() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** + * + * *
    * Output only. Recall.
    * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -165,11 +196,14 @@ public float getRecall() { 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; + * * @return The f1Score. */ @java.lang.Override @@ -180,12 +214,15 @@ public float getF1Score() { 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; + * * @return The meanAbsoluteError. */ @java.lang.Override @@ -196,12 +233,15 @@ public float getMeanAbsoluteError() { 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; + * * @return The meanSquaredError. */ @java.lang.Override @@ -212,12 +252,15 @@ public float getMeanSquaredError() { 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; + * * @return The linearKappa. */ @java.lang.Override @@ -228,12 +271,15 @@ public float getLinearKappa() { 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; + * * @return The quadraticKappa. */ @java.lang.Override @@ -242,15 +288,21 @@ public float getQuadraticKappa() { } public static final int CONFUSION_MATRIX_FIELD_NUMBER = 8; - private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; + private com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return Whether the confusionMatrix field is set. */ @java.lang.Override @@ -258,34 +310,49 @@ 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return The confusionMatrix. */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { - return confusionMatrix_ == null ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + getConfusionMatrix() { + return confusionMatrix_ == null + ? com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ @java.lang.Override - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder() { return getConfusionMatrix(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,8 +364,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (precision_ != 0F) { output.writeFloat(1, precision_); } @@ -333,36 +399,28 @@ public int getSerializedSize() { size = 0; if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, precision_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, precision_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, f1Score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, f1Score_); } if (meanAbsoluteError_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, meanAbsoluteError_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, meanAbsoluteError_); } if (meanSquaredError_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, meanSquaredError_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, meanSquaredError_); } if (linearKappa_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, linearKappa_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, linearKappa_); } if (quadraticKappa_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, quadraticKappa_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, quadraticKappa_); } if (confusionMatrix_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getConfusionMatrix()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConfusionMatrix()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -372,38 +430,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSentimentEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics other = (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) obj; + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics other = + (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) obj; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits( - other.getPrecision())) return false; + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits( - other.getRecall())) return false; + != java.lang.Float.floatToIntBits(other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits( - other.getF1Score())) return false; + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; if (java.lang.Float.floatToIntBits(getMeanAbsoluteError()) - != java.lang.Float.floatToIntBits( - other.getMeanAbsoluteError())) return false; + != java.lang.Float.floatToIntBits(other.getMeanAbsoluteError())) return false; if (java.lang.Float.floatToIntBits(getMeanSquaredError()) - != java.lang.Float.floatToIntBits( - other.getMeanSquaredError())) return false; + != java.lang.Float.floatToIntBits(other.getMeanSquaredError())) return false; if (java.lang.Float.floatToIntBits(getLinearKappa()) - != java.lang.Float.floatToIntBits( - other.getLinearKappa())) return false; + != java.lang.Float.floatToIntBits(other.getLinearKappa())) return false; if (java.lang.Float.floatToIntBits(getQuadraticKappa()) - != java.lang.Float.floatToIntBits( - other.getQuadraticKappa())) return false; + != java.lang.Float.floatToIntBits(other.getQuadraticKappa())) return false; if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; if (hasConfusionMatrix()) { - if (!getConfusionMatrix() - .equals(other.getConfusionMatrix())) return false; + if (!getConfusionMatrix().equals(other.getConfusionMatrix())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -417,26 +468,19 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1Score()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAbsoluteError()); hash = (37 * hash) + MEAN_SQUARED_ERROR_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMeanSquaredError()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanSquaredError()); hash = (37 * hash) + LINEAR_KAPPA_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLinearKappa()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLinearKappa()); hash = (37 * hash) + QUADRATIC_KAPPA_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getQuadraticKappa()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getQuadraticKappa()); if (hasConfusionMatrix()) { hash = (37 * hash) + CONFUSION_MATRIX_FIELD_NUMBER; hash = (53 * hash) + getConfusionMatrix().hashCode(); @@ -447,117 +491,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSentimentEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.TextSentimentEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextSentimentEvaluationMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.TextSentimentEvaluationMetrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSentimentEvaluationMetrics) com.google.cloud.automl.v1.TextSentimentEvaluationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextSentimentProto + .internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TextSentimentProto + .internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.class, com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.class, + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.newBuilder() @@ -565,16 +619,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -602,9 +655,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextSentimentProto.internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextSentimentProto + .internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; } @java.lang.Override @@ -623,7 +676,8 @@ public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics build() { @java.lang.Override public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics buildPartial() { - com.google.cloud.automl.v1.TextSentimentEvaluationMetrics result = new com.google.cloud.automl.v1.TextSentimentEvaluationMetrics(this); + com.google.cloud.automl.v1.TextSentimentEvaluationMetrics result = + new com.google.cloud.automl.v1.TextSentimentEvaluationMetrics(this); result.precision_ = precision_; result.recall_ = recall_; result.f1Score_ = f1Score_; @@ -644,38 +698,39 @@ public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSentimentEvaluationMetrics) { - return mergeFrom((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics)other); + return mergeFrom((com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) other); } else { super.mergeFrom(other); return this; @@ -683,7 +738,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextSentimentEvaluationMetrics other) { - if (other == com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.getDefaultInstance()) + return this; if (other.getPrecision() != 0F) { setPrecision(other.getPrecision()); } @@ -727,7 +783,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextSentimentEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -737,13 +794,16 @@ public Builder mergeFrom( return this; } - private float precision_ ; + private float precision_; /** + * + * *
      * Output only. Precision.
      * 
* * float precision = 1; + * * @return The precision. */ @java.lang.Override @@ -751,42 +811,51 @@ public float getPrecision() { return precision_; } /** + * + * *
      * Output only. Precision.
      * 
* * float precision = 1; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Precision.
      * 
* * float precision = 1; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float recall_ ; + private float recall_; /** + * + * *
      * Output only. Recall.
      * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -794,42 +863,51 @@ public float getRecall() { return recall_; } /** + * + * *
      * Output only. Recall.
      * 
* * float recall = 2; + * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Recall.
      * 
* * float recall = 2; + * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float f1Score_ ; + private float f1Score_; /** + * + * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 3; + * * @return The f1Score. */ @java.lang.Override @@ -837,43 +915,52 @@ public float getF1Score() { return f1Score_; } /** + * + * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 3; + * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 3; + * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - private float meanAbsoluteError_ ; + 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; + * * @return The meanAbsoluteError. */ @java.lang.Override @@ -881,45 +968,54 @@ 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; + * * @param value The meanAbsoluteError to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearMeanAbsoluteError() { - + meanAbsoluteError_ = 0F; onChanged(); return this; } - private float meanSquaredError_ ; + 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; + * * @return The meanSquaredError. */ @java.lang.Override @@ -927,45 +1023,54 @@ 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; + * * @param value The meanSquaredError to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearMeanSquaredError() { - + meanSquaredError_ = 0F; onChanged(); return this; } - private float linearKappa_ ; + 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; + * * @return The linearKappa. */ @java.lang.Override @@ -973,45 +1078,54 @@ 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; + * * @param value The linearKappa to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearLinearKappa() { - + linearKappa_ = 0F; onChanged(); return this; } - private float quadraticKappa_ ; + 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; + * * @return The quadraticKappa. */ @java.lang.Override @@ -1019,80 +1133,109 @@ 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; + * * @param value The quadraticKappa to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearQuadraticKappa() { - + quadraticKappa_ = 0F; onChanged(); return this; } - private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; + private com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + confusionMatrix_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> confusionMatrixBuilder_; + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, + com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return Whether the confusionMatrix field is set. */ 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return The confusionMatrix. */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix + getConfusionMatrix() { if (confusionMatrixBuilder_ == null) { - return confusionMatrix_ == null ? com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + return confusionMatrix_ == null + ? com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ - public Builder setConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { + public Builder setConfusionMatrix( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1106,16 +1249,21 @@ public Builder setConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvalu 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ public Builder setConfusionMatrix( - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue) { + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder + builderForValue) { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = builderForValue.build(); onChanged(); @@ -1126,19 +1274,27 @@ public Builder setConfusionMatrix( 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ - public Builder mergeConfusionMatrix(com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { + public Builder mergeConfusionMatrix( + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (confusionMatrix_ != null) { confusionMatrix_ = - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder(confusionMatrix_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder( + confusionMatrix_) + .mergeFrom(value) + .buildPartial(); } else { confusionMatrix_ = value; } @@ -1150,13 +1306,17 @@ public Builder mergeConfusionMatrix(com.google.cloud.automl.v1.ClassificationEva 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ public Builder clearConfusionMatrix() { if (confusionMatrixBuilder_ == null) { @@ -1170,61 +1330,81 @@ public Builder clearConfusionMatrix() { 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder getConfusionMatrixBuilder() { - + public com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ - public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { + public com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder() { if (confusionMatrixBuilder_ != null) { return confusionMatrixBuilder_.getMessageOrBuilder(); } else { - return confusionMatrix_ == null ? - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + return confusionMatrix_ == null + ? com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder> getConfusionMatrixFieldBuilder() { if (confusionMatrixBuilder_ == null) { - confusionMatrixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder>( - getConfusionMatrix(), - getParentForChildren(), - isClean()); + confusionMatrixBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Builder, + com.google.cloud.automl.v1.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder>( + getConfusionMatrix(), getParentForChildren(), isClean()); confusionMatrix_ = null; } return confusionMatrixBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1234,12 +1414,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSentimentEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentEvaluationMetrics) private static final com.google.cloud.automl.v1.TextSentimentEvaluationMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSentimentEvaluationMetrics(); } @@ -1248,16 +1428,16 @@ public static com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getDefau 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); - } - }; + 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; @@ -1272,6 +1452,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.automl.v1.TextSentimentEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java index 3a5a68318..0c4bfa820 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentEvaluationMetricsOrBuilder.java @@ -1,116 +1,168 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text_sentiment.proto package com.google.cloud.automl.v1; -public interface TextSentimentEvaluationMetricsOrBuilder extends +public interface TextSentimentEvaluationMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSentimentEvaluationMetrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Precision.
    * 
* * float precision = 1; + * * @return The precision. */ float getPrecision(); /** + * + * *
    * Output only. Recall.
    * 
* * float recall = 2; + * * @return The recall. */ float getRecall(); /** + * + * *
    * Output only. The harmonic mean of recall and precision.
    * 
* * float f1_score = 3; + * * @return The f1Score. */ 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; + * * @return The meanAbsoluteError. */ 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; + * * @return The meanSquaredError. */ 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; + * * @return The linearKappa. */ 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; + * * @return The quadraticKappa. */ 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return Whether the confusionMatrix field is set. */ 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return The confusionMatrix. */ com.google.cloud.automl.v1.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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ - com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder(); + com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java index b04f4b571..0b7578153 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/text.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model metadata that is specific to text sentiment.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TextSentimentModelMetadata} */ -public final class TextSentimentModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextSentimentModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSentimentModelMetadata) TextSentimentModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextSentimentModelMetadata.newBuilder() to construct. private TextSentimentModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextSentimentModelMetadata() { - } + + private TextSentimentModelMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSentimentModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSentimentModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private TextSentimentModelMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentModelMetadata.class, com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextSentimentModelMetadata.class, + com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSentimentModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TextSentimentModelMetadata other = (com.google.cloud.automl.v1.TextSentimentModelMetadata) obj; + com.google.cloud.automl.v1.TextSentimentModelMetadata other = + (com.google.cloud.automl.v1.TextSentimentModelMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSentimentModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.TextSentimentModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextSentimentModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TextSentimentModelMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.TextSentimentModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model metadata that is specific to text sentiment.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TextSentimentModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSentimentModelMetadata) com.google.cloud.automl.v1.TextSentimentModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSentimentModelMetadata.class, com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder.class); + com.google.cloud.automl.v1.TextSentimentModelMetadata.class, + com.google.cloud.automl.v1.TextSentimentModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSentimentModelMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TextProto.internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TextProto + .internal_static_google_cloud_automl_v1_TextSentimentModelMetadata_descriptor; } @java.lang.Override @@ -295,7 +323,8 @@ public com.google.cloud.automl.v1.TextSentimentModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TextSentimentModelMetadata buildPartial() { - com.google.cloud.automl.v1.TextSentimentModelMetadata result = new com.google.cloud.automl.v1.TextSentimentModelMetadata(this); + com.google.cloud.automl.v1.TextSentimentModelMetadata result = + new com.google.cloud.automl.v1.TextSentimentModelMetadata(this); onBuilt(); return result; } @@ -304,38 +333,39 @@ public com.google.cloud.automl.v1.TextSentimentModelMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSentimentModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TextSentimentModelMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.TextSentimentModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +373,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TextSentimentModelMetadata other) { - if (other == com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TextSentimentModelMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TextSentimentModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TextSentimentModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +404,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSentimentModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentModelMetadata) private static final com.google.cloud.automl.v1.TextSentimentModelMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSentimentModelMetadata(); } @@ -398,16 +430,16 @@ public static com.google.cloud.automl.v1.TextSentimentModelMetadata getDefaultIn 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); - } - }; + 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; @@ -422,6 +454,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1.TextSentimentModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadataOrBuilder.java new file mode 100644 index 000000000..a43f89a9f --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentModelMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text.proto + +package com.google.cloud.automl.v1; + +public interface TextSentimentModelMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSentimentModelMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentProto.java new file mode 100644 index 000000000..54aa34a8d --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSentimentProto.java @@ -0,0 +1,101 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/text_sentiment.proto + +package com.google.cloud.automl.v1; + +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); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TextSentimentEvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_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 = { + "\n+google/cloud/automl/v1/text_sentiment." + + "proto\022\026google.cloud.automl.v1\032+google/cl" + + "oud/automl/v1/classification.proto\032\034goog" + + "le/api/annotations.proto\",\n\027TextSentimen" + + "tAnnotation\022\021\n\tsentiment\030\001 \001(\005\"\240\002\n\036TextS" + + "entimentEvaluationMetrics\022\021\n\tprecision\030\001" + + " \001(\002\022\016\n\006recall\030\002 \001(\002\022\020\n\010f1_score\030\003 \001(\002\022\033" + + "\n\023mean_absolute_error\030\004 \001(\002\022\032\n\022mean_squa" + + "red_error\030\005 \001(\002\022\024\n\014linear_kappa\030\006 \001(\002\022\027\n" + + "\017quadratic_kappa\030\007 \001(\002\022a\n\020confusion_matr" + + "ix\030\010 \001(\0132G.google.cloud.automl.v1.Classi" + + "ficationEvaluationMetrics.ConfusionMatri" + + "xB\276\001\n\032com.google.cloud.automl.v1B\022TextSe" + + "ntimentProtoP\001Z * A representation of a text snippet. *
* * Protobuf type {@code google.cloud.automl.v1.TextSnippet} */ -public final class TextSnippet extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextSnippet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSnippet) TextSnippetOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextSnippet.newBuilder() to construct. private TextSnippet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextSnippet() { content_ = ""; mimeType_ = ""; @@ -27,16 +45,15 @@ private TextSnippet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSnippet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSnippet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,65 +72,73 @@ private TextSnippet( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - content_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + content_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - contentUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + contentUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.DataItems.internal_static_google_cloud_automl_v1_TextSnippet_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_TextSnippet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_TextSnippet_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_TextSnippet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSnippet.class, com.google.cloud.automl.v1.TextSnippet.Builder.class); + com.google.cloud.automl.v1.TextSnippet.class, + com.google.cloud.automl.v1.TextSnippet.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private volatile java.lang.Object content_; /** + * + * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -122,30 +147,30 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -156,6 +181,8 @@ public java.lang.String getContent() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -163,6 +190,7 @@ public java.lang.String getContent() {
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -171,14 +199,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -186,16 +215,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -206,11 +234,14 @@ public java.lang.String getMimeType() { public static final int CONTENT_URI_FIELD_NUMBER = 4; private volatile java.lang.Object contentUri_; /** + * + * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; + * * @return The contentUri. */ @java.lang.Override @@ -219,29 +250,29 @@ public java.lang.String getContentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentUri_ = s; return s; } } /** + * + * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; + * * @return The bytes for contentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentUriBytes() { + public com.google.protobuf.ByteString getContentUriBytes() { java.lang.Object ref = contentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentUri_ = b; return b; } else { @@ -250,6 +281,7 @@ public java.lang.String getContentUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +293,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -298,19 +329,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TextSnippet)) { return super.equals(obj); } com.google.cloud.automl.v1.TextSnippet other = (com.google.cloud.automl.v1.TextSnippet) obj; - if (!getContent() - .equals(other.getContent())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; - if (!getContentUri() - .equals(other.getContentUri())) return false; + if (!getContent().equals(other.getContent())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getContentUri().equals(other.getContentUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,118 +361,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.TextSnippet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.TextSnippet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSnippet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TextSnippet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSnippet 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.v1.TextSnippet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TextSnippet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.TextSnippet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSnippet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextSnippet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSnippet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TextSnippet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TextSnippet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.TextSnippet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A representation of a text snippet.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TextSnippet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSnippet) com.google.cloud.automl.v1.TextSnippetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_TextSnippet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_TextSnippet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_TextSnippet_fieldAccessorTable + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_TextSnippet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TextSnippet.class, com.google.cloud.automl.v1.TextSnippet.Builder.class); + com.google.cloud.automl.v1.TextSnippet.class, + com.google.cloud.automl.v1.TextSnippet.Builder.class); } // Construct using com.google.cloud.automl.v1.TextSnippet.newBuilder() @@ -452,16 +489,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +511,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.DataItems.internal_static_google_cloud_automl_v1_TextSnippet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.DataItems + .internal_static_google_cloud_automl_v1_TextSnippet_descriptor; } @java.lang.Override @@ -496,7 +532,8 @@ public com.google.cloud.automl.v1.TextSnippet build() { @java.lang.Override public com.google.cloud.automl.v1.TextSnippet buildPartial() { - com.google.cloud.automl.v1.TextSnippet result = new com.google.cloud.automl.v1.TextSnippet(this); + com.google.cloud.automl.v1.TextSnippet result = + new com.google.cloud.automl.v1.TextSnippet(this); result.content_ = content_; result.mimeType_ = mimeType_; result.contentUri_ = contentUri_; @@ -508,38 +545,39 @@ public com.google.cloud.automl.v1.TextSnippet buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TextSnippet) { - return mergeFrom((com.google.cloud.automl.v1.TextSnippet)other); + return mergeFrom((com.google.cloud.automl.v1.TextSnippet) other); } else { super.mergeFrom(other); return this; @@ -591,19 +629,21 @@ public Builder mergeFrom( private java.lang.Object content_ = ""; /** + * + * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; + * * @return The content. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -612,21 +652,22 @@ public java.lang.String getContent() { } } /** + * + * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -634,57 +675,64 @@ public java.lang.String getContent() { } } /** + * + * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { + public Builder setContent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** + * + * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { + public Builder setContentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; onChanged(); return this; @@ -692,6 +740,8 @@ public Builder setContentBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -699,13 +749,13 @@ public Builder setContentBytes(
      * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -714,6 +764,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -721,15 +773,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -737,6 +788,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -744,20 +797,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -765,15 +820,18 @@ public Builder setMimeType(
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -781,16 +839,16 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -798,18 +856,20 @@ public Builder setMimeTypeBytes( private java.lang.Object contentUri_ = ""; /** + * + * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; + * * @return The contentUri. */ public java.lang.String getContentUri() { java.lang.Object ref = contentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentUri_ = s; return s; @@ -818,20 +878,21 @@ public java.lang.String getContentUri() { } } /** + * + * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; + * * @return The bytes for contentUri. */ - public com.google.protobuf.ByteString - getContentUriBytes() { + public com.google.protobuf.ByteString getContentUriBytes() { java.lang.Object ref = contentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentUri_ = b; return b; } else { @@ -839,61 +900,68 @@ public java.lang.String getContentUri() { } } /** + * + * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; + * * @param value The contentUri to set. * @return This builder for chaining. */ - public Builder setContentUri( - java.lang.String value) { + public Builder setContentUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; + * * @return This builder for chaining. */ public Builder clearContentUri() { - + contentUri_ = getDefaultInstance().getContentUri(); onChanged(); return this; } /** + * + * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; + * * @param value The bytes for contentUri to set. * @return This builder for chaining. */ - public Builder setContentUriBytes( - com.google.protobuf.ByteString value) { + public Builder setContentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -903,12 +971,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSnippet) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSnippet) private static final com.google.cloud.automl.v1.TextSnippet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSnippet(); } @@ -917,16 +985,16 @@ public static com.google.cloud.automl.v1.TextSnippet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextSnippet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextSnippet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSnippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSnippet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -941,6 +1009,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TextSnippet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java index eca6c83cf..023aa5b39 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TextSnippetOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/data_items.proto package com.google.cloud.automl.v1; -public interface TextSnippetOrBuilder extends +public interface TextSnippetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSnippet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -37,10 +60,13 @@ public interface TextSnippetOrBuilder extends
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -48,28 +74,33 @@ public interface TextSnippetOrBuilder extends
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; + * * @return The contentUri. */ java.lang.String getContentUri(); /** + * + * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; + * * @return The bytes for contentUri. */ - com.google.protobuf.ByteString - getContentUriBytes(); + com.google.protobuf.ByteString getContentUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java index cf125351d..b2ddf4ee3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotation.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; /** + * + * *
  * Annotation details specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationAnnotation} */ -public final class TranslationAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslationAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TranslationAnnotation) TranslationAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslationAnnotation.newBuilder() to construct. private TranslationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslationAnnotation() { - } + + private TranslationAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,59 +68,67 @@ private TranslationAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; - if (translatedContent_ != null) { - subBuilder = translatedContent_.toBuilder(); + case 10: + { + com.google.cloud.automl.v1.TextSnippet.Builder subBuilder = null; + if (translatedContent_ != null) { + subBuilder = translatedContent_.toBuilder(); + } + translatedContent_ = + input.readMessage( + com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(translatedContent_); + translatedContent_ = subBuilder.buildPartial(); + } + + break; } - translatedContent_ = input.readMessage(com.google.cloud.automl.v1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(translatedContent_); - translatedContent_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationAnnotation.class, com.google.cloud.automl.v1.TranslationAnnotation.Builder.class); + com.google.cloud.automl.v1.TranslationAnnotation.class, + com.google.cloud.automl.v1.TranslationAnnotation.Builder.class); } public static final int TRANSLATED_CONTENT_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.TextSnippet translatedContent_; /** + * + * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; + * * @return Whether the translatedContent field is set. */ @java.lang.Override @@ -112,18 +136,25 @@ public boolean hasTranslatedContent() { return translatedContent_ != null; } /** + * + * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; + * * @return The translatedContent. */ @java.lang.Override public com.google.cloud.automl.v1.TextSnippet getTranslatedContent() { - return translatedContent_ == null ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : translatedContent_; + return translatedContent_ == null + ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() + : translatedContent_; } /** + * + * *
    * Output only . The translated content.
    * 
@@ -136,6 +167,7 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getTranslatedContentOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (translatedContent_ != null) { output.writeMessage(1, getTranslatedContent()); } @@ -162,8 +193,7 @@ public int getSerializedSize() { size = 0; if (translatedContent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTranslatedContent()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTranslatedContent()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,17 +203,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TranslationAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1.TranslationAnnotation other = (com.google.cloud.automl.v1.TranslationAnnotation) obj; + com.google.cloud.automl.v1.TranslationAnnotation other = + (com.google.cloud.automl.v1.TranslationAnnotation) obj; if (hasTranslatedContent() != other.hasTranslatedContent()) return false; if (hasTranslatedContent()) { - if (!getTranslatedContent() - .equals(other.getTranslatedContent())) return false; + if (!getTranslatedContent().equals(other.getTranslatedContent())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -205,118 +235,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TranslationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationAnnotation 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.v1.TranslationAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TranslationAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.TranslationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Annotation details specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TranslationAnnotation) com.google.cloud.automl.v1.TranslationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationAnnotation.class, com.google.cloud.automl.v1.TranslationAnnotation.Builder.class); + com.google.cloud.automl.v1.TranslationAnnotation.class, + com.google.cloud.automl.v1.TranslationAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1.TranslationAnnotation.newBuilder() @@ -324,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; } @java.lang.Override @@ -368,7 +406,8 @@ public com.google.cloud.automl.v1.TranslationAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1.TranslationAnnotation buildPartial() { - com.google.cloud.automl.v1.TranslationAnnotation result = new com.google.cloud.automl.v1.TranslationAnnotation(this); + com.google.cloud.automl.v1.TranslationAnnotation result = + new com.google.cloud.automl.v1.TranslationAnnotation(this); if (translatedContentBuilder_ == null) { result.translatedContent_ = translatedContent_; } else { @@ -382,38 +421,39 @@ public com.google.cloud.automl.v1.TranslationAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TranslationAnnotation) { - return mergeFrom((com.google.cloud.automl.v1.TranslationAnnotation)other); + return mergeFrom((com.google.cloud.automl.v1.TranslationAnnotation) other); } else { super.mergeFrom(other); return this; @@ -421,7 +461,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TranslationAnnotation other) { - if (other == com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TranslationAnnotation.getDefaultInstance()) + return this; if (other.hasTranslatedContent()) { mergeTranslatedContent(other.getTranslatedContent()); } @@ -456,34 +497,47 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.TextSnippet translatedContent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> translatedContentBuilder_; + com.google.cloud.automl.v1.TextSnippet, + com.google.cloud.automl.v1.TextSnippet.Builder, + com.google.cloud.automl.v1.TextSnippetOrBuilder> + translatedContentBuilder_; /** + * + * *
      * Output only . The translated content.
      * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; + * * @return Whether the translatedContent field is set. */ public boolean hasTranslatedContent() { return translatedContentBuilder_ != null || translatedContent_ != null; } /** + * + * *
      * Output only . The translated content.
      * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; + * * @return The translatedContent. */ public com.google.cloud.automl.v1.TextSnippet getTranslatedContent() { if (translatedContentBuilder_ == null) { - return translatedContent_ == null ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : translatedContent_; + return translatedContent_ == null + ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() + : translatedContent_; } else { return translatedContentBuilder_.getMessage(); } } /** + * + * *
      * Output only . The translated content.
      * 
@@ -504,6 +558,8 @@ public Builder setTranslatedContent(com.google.cloud.automl.v1.TextSnippet value return this; } /** + * + * *
      * Output only . The translated content.
      * 
@@ -522,6 +578,8 @@ public Builder setTranslatedContent( return this; } /** + * + * *
      * Output only . The translated content.
      * 
@@ -532,7 +590,9 @@ public Builder mergeTranslatedContent(com.google.cloud.automl.v1.TextSnippet val if (translatedContentBuilder_ == null) { if (translatedContent_ != null) { translatedContent_ = - com.google.cloud.automl.v1.TextSnippet.newBuilder(translatedContent_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.TextSnippet.newBuilder(translatedContent_) + .mergeFrom(value) + .buildPartial(); } else { translatedContent_ = value; } @@ -544,6 +604,8 @@ public Builder mergeTranslatedContent(com.google.cloud.automl.v1.TextSnippet val return this; } /** + * + * *
      * Output only . The translated content.
      * 
@@ -562,6 +624,8 @@ public Builder clearTranslatedContent() { return this; } /** + * + * *
      * Output only . The translated content.
      * 
@@ -569,11 +633,13 @@ public Builder clearTranslatedContent() { * .google.cloud.automl.v1.TextSnippet translated_content = 1; */ public com.google.cloud.automl.v1.TextSnippet.Builder getTranslatedContentBuilder() { - + onChanged(); return getTranslatedContentFieldBuilder().getBuilder(); } /** + * + * *
      * Output only . The translated content.
      * 
@@ -584,11 +650,14 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getTranslatedContentOrBui if (translatedContentBuilder_ != null) { return translatedContentBuilder_.getMessageOrBuilder(); } else { - return translatedContent_ == null ? - com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() : translatedContent_; + return translatedContent_ == null + ? com.google.cloud.automl.v1.TextSnippet.getDefaultInstance() + : translatedContent_; } } /** + * + * *
      * Output only . The translated content.
      * 
@@ -596,21 +665,24 @@ public com.google.cloud.automl.v1.TextSnippetOrBuilder getTranslatedContentOrBui * .google.cloud.automl.v1.TextSnippet translated_content = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder> + com.google.cloud.automl.v1.TextSnippet, + com.google.cloud.automl.v1.TextSnippet.Builder, + com.google.cloud.automl.v1.TextSnippetOrBuilder> getTranslatedContentFieldBuilder() { if (translatedContentBuilder_ == null) { - translatedContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.TextSnippet, com.google.cloud.automl.v1.TextSnippet.Builder, com.google.cloud.automl.v1.TextSnippetOrBuilder>( - getTranslatedContent(), - getParentForChildren(), - isClean()); + translatedContentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.TextSnippet, + com.google.cloud.automl.v1.TextSnippet.Builder, + com.google.cloud.automl.v1.TextSnippetOrBuilder>( + getTranslatedContent(), getParentForChildren(), isClean()); translatedContent_ = null; } return translatedContentBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -620,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TranslationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TranslationAnnotation) private static final com.google.cloud.automl.v1.TranslationAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TranslationAnnotation(); } @@ -634,16 +706,16 @@ public static com.google.cloud.automl.v1.TranslationAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -658,6 +730,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TranslationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java index a35582cd8..6d5b47db8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationAnnotationOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; -public interface TranslationAnnotationOrBuilder extends +public interface TranslationAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TranslationAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; + * * @return Whether the translatedContent field is set. */ boolean hasTranslatedContent(); /** + * + * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1.TextSnippet translated_content = 1; + * * @return The translatedContent. */ com.google.cloud.automl.v1.TextSnippet getTranslatedContent(); /** + * + * *
    * Output only . The translated content.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java index f69a22b39..905947903 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; /** + * + * *
  * Dataset metadata that is specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationDatasetMetadata} */ -public final class TranslationDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TranslationDatasetMetadata) TranslationDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslationDatasetMetadata.newBuilder() to construct. private TranslationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslationDatasetMetadata() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -26,16 +44,15 @@ private TranslationDatasetMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,65 @@ private TranslationDatasetMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + targetLanguageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationDatasetMetadata.class, com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TranslationDatasetMetadata.class, + com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceLanguageCode_; /** + * + * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -114,29 +138,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -147,11 +171,14 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object targetLanguageCode_; /** + * + * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -160,29 +187,29 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -191,6 +218,7 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +230,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -233,17 +260,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TranslationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TranslationDatasetMetadata other = (com.google.cloud.automl.v1.TranslationDatasetMetadata) obj; + com.google.cloud.automl.v1.TranslationDatasetMetadata other = + (com.google.cloud.automl.v1.TranslationDatasetMetadata) obj; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode() - .equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,117 +291,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TranslationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationDatasetMetadata 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.v1.TranslationDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TranslationDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.TranslationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Dataset metadata that is specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TranslationDatasetMetadata) com.google.cloud.automl.v1.TranslationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationDatasetMetadata.class, com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1.TranslationDatasetMetadata.class, + com.google.cloud.automl.v1.TranslationDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TranslationDatasetMetadata.newBuilder() @@ -383,16 +419,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -404,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_descriptor; } @java.lang.Override @@ -425,7 +460,8 @@ public com.google.cloud.automl.v1.TranslationDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TranslationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1.TranslationDatasetMetadata result = new com.google.cloud.automl.v1.TranslationDatasetMetadata(this); + com.google.cloud.automl.v1.TranslationDatasetMetadata result = + new com.google.cloud.automl.v1.TranslationDatasetMetadata(this); result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; onBuilt(); @@ -436,38 +472,39 @@ public com.google.cloud.automl.v1.TranslationDatasetMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TranslationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TranslationDatasetMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.TranslationDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -475,7 +512,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TranslationDatasetMetadata other) { - if (other == com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TranslationDatasetMetadata.getDefaultInstance()) + return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; onChanged(); @@ -503,7 +541,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TranslationDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TranslationDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -515,18 +554,20 @@ public Builder mergeFrom( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -535,20 +576,21 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -556,54 +598,61 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -611,18 +660,20 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -631,20 +682,21 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -652,61 +704,68 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { + public Builder setTargetLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -716,12 +775,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TranslationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TranslationDatasetMetadata) private static final com.google.cloud.automl.v1.TranslationDatasetMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TranslationDatasetMetadata(); } @@ -730,16 +789,16 @@ public static com.google.cloud.automl.v1.TranslationDatasetMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -754,6 +813,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1.TranslationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java index 0d83cbcfc..89f8e39db 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationDatasetMetadataOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; -public interface TranslationDatasetMetadataOrBuilder extends +public interface TranslationDatasetMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TranslationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java index 638555082..71148b638 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetrics.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; /** + * + * *
  * Evaluation metrics for the dataset.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationEvaluationMetrics} */ -public final class TranslationEvaluationMetrics extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslationEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TranslationEvaluationMetrics) TranslationEvaluationMetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslationEvaluationMetrics.newBuilder() to construct. private TranslationEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslationEvaluationMetrics() { - } + + private TranslationEvaluationMetrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslationEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslationEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,56 +68,61 @@ private TranslationEvaluationMetrics( case 0: done = true; break; - case 9: { - - bleuScore_ = input.readDouble(); - break; - } - case 17: { - - baseBleuScore_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 9: + { + bleuScore_ = input.readDouble(); + break; + } + case 17: + { + baseBleuScore_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationEvaluationMetrics.class, com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TranslationEvaluationMetrics.class, + com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder.class); } public static final int BLEU_SCORE_FIELD_NUMBER = 1; private double bleuScore_; /** + * + * *
    * Output only. BLEU score.
    * 
* * double bleu_score = 1; + * * @return The bleuScore. */ @java.lang.Override @@ -112,11 +133,14 @@ public double getBleuScore() { public static final int BASE_BLEU_SCORE_FIELD_NUMBER = 2; private double baseBleuScore_; /** + * + * *
    * Output only. BLEU score for base model.
    * 
* * double base_bleu_score = 2; + * * @return The baseBleuScore. */ @java.lang.Override @@ -125,6 +149,7 @@ public double getBaseBleuScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +161,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (bleuScore_ != 0D) { output.writeDouble(1, bleuScore_); } @@ -154,12 +178,10 @@ public int getSerializedSize() { size = 0; if (bleuScore_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, bleuScore_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, bleuScore_); } if (baseBleuScore_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, baseBleuScore_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, baseBleuScore_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -169,19 +191,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TranslationEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1.TranslationEvaluationMetrics other = (com.google.cloud.automl.v1.TranslationEvaluationMetrics) obj; + com.google.cloud.automl.v1.TranslationEvaluationMetrics other = + (com.google.cloud.automl.v1.TranslationEvaluationMetrics) obj; if (java.lang.Double.doubleToLongBits(getBleuScore()) - != java.lang.Double.doubleToLongBits( - other.getBleuScore())) return false; + != java.lang.Double.doubleToLongBits(other.getBleuScore())) return false; if (java.lang.Double.doubleToLongBits(getBaseBleuScore()) - != java.lang.Double.doubleToLongBits( - other.getBaseBleuScore())) return false; + != java.lang.Double.doubleToLongBits(other.getBaseBleuScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -194,128 +215,142 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLEU_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBleuScore())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBleuScore())); hash = (37 * hash) + BASE_BLEU_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBaseBleuScore())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBaseBleuScore())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TranslationEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics 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.v1.TranslationEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationEvaluationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.TranslationEvaluationMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.TranslationEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Evaluation metrics for the dataset.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationEvaluationMetrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TranslationEvaluationMetrics) com.google.cloud.automl.v1.TranslationEvaluationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationEvaluationMetrics.class, com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1.TranslationEvaluationMetrics.class, + com.google.cloud.automl.v1.TranslationEvaluationMetrics.Builder.class); } // Construct using com.google.cloud.automl.v1.TranslationEvaluationMetrics.newBuilder() @@ -323,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -344,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override @@ -365,7 +399,8 @@ public com.google.cloud.automl.v1.TranslationEvaluationMetrics build() { @java.lang.Override public com.google.cloud.automl.v1.TranslationEvaluationMetrics buildPartial() { - com.google.cloud.automl.v1.TranslationEvaluationMetrics result = new com.google.cloud.automl.v1.TranslationEvaluationMetrics(this); + com.google.cloud.automl.v1.TranslationEvaluationMetrics result = + new com.google.cloud.automl.v1.TranslationEvaluationMetrics(this); result.bleuScore_ = bleuScore_; result.baseBleuScore_ = baseBleuScore_; onBuilt(); @@ -376,38 +411,39 @@ public com.google.cloud.automl.v1.TranslationEvaluationMetrics buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TranslationEvaluationMetrics) { - return mergeFrom((com.google.cloud.automl.v1.TranslationEvaluationMetrics)other); + return mergeFrom((com.google.cloud.automl.v1.TranslationEvaluationMetrics) other); } else { super.mergeFrom(other); return this; @@ -415,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TranslationEvaluationMetrics other) { - if (other == com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TranslationEvaluationMetrics.getDefaultInstance()) + return this; if (other.getBleuScore() != 0D) { setBleuScore(other.getBleuScore()); } @@ -441,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TranslationEvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TranslationEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,13 +489,16 @@ public Builder mergeFrom( return this; } - private double bleuScore_ ; + private double bleuScore_; /** + * + * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; + * * @return The bleuScore. */ @java.lang.Override @@ -465,42 +506,51 @@ public double getBleuScore() { return bleuScore_; } /** + * + * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; + * * @param value The bleuScore to set. * @return This builder for chaining. */ public Builder setBleuScore(double value) { - + bleuScore_ = value; onChanged(); return this; } /** + * + * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; + * * @return This builder for chaining. */ public Builder clearBleuScore() { - + bleuScore_ = 0D; onChanged(); return this; } - private double baseBleuScore_ ; + private double baseBleuScore_; /** + * + * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; + * * @return The baseBleuScore. */ @java.lang.Override @@ -508,37 +558,43 @@ public double getBaseBleuScore() { return baseBleuScore_; } /** + * + * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; + * * @param value The baseBleuScore to set. * @return This builder for chaining. */ public Builder setBaseBleuScore(double value) { - + baseBleuScore_ = value; onChanged(); return this; } /** + * + * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; + * * @return This builder for chaining. */ public Builder clearBaseBleuScore() { - + baseBleuScore_ = 0D; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -548,12 +604,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TranslationEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TranslationEvaluationMetrics) private static final com.google.cloud.automl.v1.TranslationEvaluationMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TranslationEvaluationMetrics(); } @@ -562,16 +618,16 @@ public static com.google.cloud.automl.v1.TranslationEvaluationMetrics getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationEvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationEvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationEvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +642,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1.TranslationEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetricsOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000..1ed64a3c0 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationEvaluationMetricsOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/translation.proto + +package com.google.cloud.automl.v1; + +public interface TranslationEvaluationMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TranslationEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. BLEU score.
+   * 
+ * + * double bleu_score = 1; + * + * @return The bleuScore. + */ + double getBleuScore(); + + /** + * + * + *
+   * Output only. BLEU score for base model.
+   * 
+ * + * double base_bleu_score = 2; + * + * @return The baseBleuScore. + */ + double getBaseBleuScore(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java index b8e9073f9..cf6af7fcd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; /** + * + * *
  * Model metadata that is specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationModelMetadata} */ -public final class TranslationModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslationModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TranslationModelMetadata) TranslationModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslationModelMetadata.newBuilder() to construct. private TranslationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslationModelMetadata() { baseModel_ = ""; sourceLanguageCode_ = ""; @@ -27,16 +45,15 @@ private TranslationModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,66 @@ private TranslationModelMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - baseModel_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + baseModel_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + targetLanguageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationModelMetadata.class, com.google.cloud.automl.v1.TranslationModelMetadata.Builder.class); + com.google.cloud.automl.v1.TranslationModelMetadata.class, + com.google.cloud.automl.v1.TranslationModelMetadata.Builder.class); } public static final int BASE_MODEL_FIELD_NUMBER = 1; private volatile java.lang.Object baseModel_; /** + * + * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -116,6 +140,7 @@ private TranslationModelMetadata(
    * 
* * string base_model = 1; + * * @return The baseModel. */ @java.lang.Override @@ -124,14 +149,15 @@ public java.lang.String getBaseModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModel_ = s; return s; } } /** + * + * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -140,16 +166,15 @@ public java.lang.String getBaseModel() {
    * 
* * string base_model = 1; + * * @return The bytes for baseModel. */ @java.lang.Override - public com.google.protobuf.ByteString - getBaseModelBytes() { + public com.google.protobuf.ByteString getBaseModelBytes() { java.lang.Object ref = baseModel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseModel_ = b; return b; } else { @@ -160,12 +185,15 @@ public java.lang.String getBaseModel() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceLanguageCode_; /** + * + * *
    * Output only. Inferred from the dataset.
    * The source language (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -174,30 +202,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Output only. Inferred from the dataset.
    * The source language (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -208,12 +236,15 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object targetLanguageCode_; /** + * + * *
    * Output only. The target language (The BCP-47 language code) that is used
    * for training.
    * 
* * string target_language_code = 3; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -222,30 +253,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Output only. The target language (The BCP-47 language code) that is used
    * for training.
    * 
* * string target_language_code = 3; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -254,6 +285,7 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseModel_); } @@ -302,19 +333,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.TranslationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.TranslationModelMetadata other = (com.google.cloud.automl.v1.TranslationModelMetadata) obj; + com.google.cloud.automl.v1.TranslationModelMetadata other = + (com.google.cloud.automl.v1.TranslationModelMetadata) obj; - if (!getBaseModel() - .equals(other.getBaseModel())) return false; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode() - .equals(other.getTargetLanguageCode())) return false; + if (!getBaseModel().equals(other.getBaseModel())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,117 +367,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.TranslationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationModelMetadata 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.v1.TranslationModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.TranslationModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.TranslationModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.TranslationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.TranslationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model metadata that is specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1.TranslationModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TranslationModelMetadata) com.google.cloud.automl.v1.TranslationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.TranslationModelMetadata.class, com.google.cloud.automl.v1.TranslationModelMetadata.Builder.class); + com.google.cloud.automl.v1.TranslationModelMetadata.class, + com.google.cloud.automl.v1.TranslationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.TranslationModelMetadata.newBuilder() @@ -456,16 +494,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.TranslationProto.internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.TranslationProto + .internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; } @java.lang.Override @@ -500,7 +537,8 @@ public com.google.cloud.automl.v1.TranslationModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.TranslationModelMetadata buildPartial() { - com.google.cloud.automl.v1.TranslationModelMetadata result = new com.google.cloud.automl.v1.TranslationModelMetadata(this); + com.google.cloud.automl.v1.TranslationModelMetadata result = + new com.google.cloud.automl.v1.TranslationModelMetadata(this); result.baseModel_ = baseModel_; result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; @@ -512,38 +550,39 @@ public com.google.cloud.automl.v1.TranslationModelMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.TranslationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1.TranslationModelMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.TranslationModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -551,7 +590,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.TranslationModelMetadata other) { - if (other == com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.TranslationModelMetadata.getDefaultInstance()) + return this; if (!other.getBaseModel().isEmpty()) { baseModel_ = other.baseModel_; onChanged(); @@ -583,7 +623,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.TranslationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.TranslationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,6 +636,8 @@ public Builder mergeFrom( private java.lang.Object baseModel_ = ""; /** + * + * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -603,13 +646,13 @@ public Builder mergeFrom(
      * 
* * string base_model = 1; + * * @return The baseModel. */ public java.lang.String getBaseModel() { java.lang.Object ref = baseModel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModel_ = s; return s; @@ -618,6 +661,8 @@ public java.lang.String getBaseModel() { } } /** + * + * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -626,15 +671,14 @@ public java.lang.String getBaseModel() {
      * 
* * string base_model = 1; + * * @return The bytes for baseModel. */ - public com.google.protobuf.ByteString - getBaseModelBytes() { + public com.google.protobuf.ByteString getBaseModelBytes() { java.lang.Object ref = baseModel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseModel_ = b; return b; } else { @@ -642,6 +686,8 @@ public java.lang.String getBaseModel() { } } /** + * + * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -650,20 +696,22 @@ public java.lang.String getBaseModel() {
      * 
* * string base_model = 1; + * * @param value The baseModel to set. * @return This builder for chaining. */ - public Builder setBaseModel( - java.lang.String value) { + public Builder setBaseModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + baseModel_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -672,15 +720,18 @@ public Builder setBaseModel(
      * 
* * string base_model = 1; + * * @return This builder for chaining. */ public Builder clearBaseModel() { - + baseModel_ = getDefaultInstance().getBaseModel(); onChanged(); return this; } /** + * + * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -689,16 +740,16 @@ public Builder clearBaseModel() {
      * 
* * string base_model = 1; + * * @param value The bytes for baseModel to set. * @return This builder for chaining. */ - public Builder setBaseModelBytes( - com.google.protobuf.ByteString value) { + public Builder setBaseModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseModel_ = value; onChanged(); return this; @@ -706,19 +757,21 @@ public Builder setBaseModelBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Output only. Inferred from the dataset.
      * The source language (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -727,21 +780,22 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Output only. Inferred from the dataset.
      * The source language (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -749,57 +803,64 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Output only. Inferred from the dataset.
      * The source language (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Inferred from the dataset.
      * The source language (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. Inferred from the dataset.
      * The source language (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -807,19 +868,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Output only. The target language (The BCP-47 language code) that is used
      * for training.
      * 
* * string target_language_code = 3; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -828,21 +891,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Output only. The target language (The BCP-47 language code) that is used
      * for training.
      * 
* * string target_language_code = 3; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -850,64 +914,71 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Output only. The target language (The BCP-47 language code) that is used
      * for training.
      * 
* * string target_language_code = 3; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { + public Builder setTargetLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The target language (The BCP-47 language code) that is used
      * for training.
      * 
* * string target_language_code = 3; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The target language (The BCP-47 language code) that is used
      * for training.
      * 
* * string target_language_code = 3; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -917,12 +988,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TranslationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TranslationModelMetadata) private static final com.google.cloud.automl.v1.TranslationModelMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TranslationModelMetadata(); } @@ -931,16 +1002,16 @@ public static com.google.cloud.automl.v1.TranslationModelMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -955,6 +1026,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.TranslationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java index 308999a28..099eb4b56 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationModelMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/translation.proto package com.google.cloud.automl.v1; -public interface TranslationModelMetadataOrBuilder extends +public interface TranslationModelMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TranslationModelMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -16,10 +34,13 @@ public interface TranslationModelMetadataOrBuilder extends
    * 
* * string base_model = 1; + * * @return The baseModel. */ java.lang.String getBaseModel(); /** + * + * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -28,52 +49,62 @@ public interface TranslationModelMetadataOrBuilder extends
    * 
* * string base_model = 1; + * * @return The bytes for baseModel. */ - com.google.protobuf.ByteString - getBaseModelBytes(); + com.google.protobuf.ByteString getBaseModelBytes(); /** + * + * *
    * Output only. Inferred from the dataset.
    * The source language (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Output only. Inferred from the dataset.
    * The source language (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Output only. The target language (The BCP-47 language code) that is used
    * for training.
    * 
* * string target_language_code = 3; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Output only. The target language (The BCP-47 language code) that is used
    * for training.
    * 
* * string target_language_code = 3; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); } diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java new file mode 100644 index 000000000..a1ad0339a --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/TranslationProto.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/translation.proto + +package com.google.cloud.automl.v1; + +public final class TranslationProto { + private TranslationProto() {} + + 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_v1_TranslationDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TranslationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TranslationEvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TranslationModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TranslationModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1_TranslationAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1_TranslationAnnotation_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/v1/translation.pro" + + "to\022\026google.cloud.automl.v1\032\037google/api/f" + + "ield_behavior.proto\032\'google/cloud/automl" + + "/v1/data_items.proto\032\034google/api/annotat" + + "ions.proto\"b\n\032TranslationDatasetMetadata" + + "\022!\n\024source_language_code\030\001 \001(\tB\003\340A\002\022!\n\024t" + + "arget_language_code\030\002 \001(\tB\003\340A\002\"K\n\034Transl" + + "ationEvaluationMetrics\022\022\n\nbleu_score\030\001 \001" + + "(\001\022\027\n\017base_bleu_score\030\002 \001(\001\"j\n\030Translati" + + "onModelMetadata\022\022\n\nbase_model\030\001 \001(\t\022\034\n\024s" + + "ource_language_code\030\002 \001(\t\022\034\n\024target_lang" + + "uage_code\030\003 \001(\t\"X\n\025TranslationAnnotation" + + "\022?\n\022translated_content\030\001 \001(\0132#.google.cl" + + "oud.automl.v1.TextSnippetB\274\001\n\032com.google" + + ".cloud.automl.v1B\020TranslationProtoP\001Z * Details of UndeployModel operation. *
* * Protobuf type {@code google.cloud.automl.v1.UndeployModelOperationMetadata} */ -public final class UndeployModelOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UndeployModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.UndeployModelOperationMetadata) UndeployModelOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UndeployModelOperationMetadata.newBuilder() to construct. - private UndeployModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UndeployModelOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UndeployModelOperationMetadata() { - } + + private UndeployModelOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UndeployModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UndeployModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,42 @@ private UndeployModelOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.Operations.internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UndeployModelOperationMetadata.class, com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.UndeployModelOperationMetadata.class, + com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +116,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +134,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.UndeployModelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1.UndeployModelOperationMetadata other = (com.google.cloud.automl.v1.UndeployModelOperationMetadata) obj; + com.google.cloud.automl.v1.UndeployModelOperationMetadata other = + (com.google.cloud.automl.v1.UndeployModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +159,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.UndeployModelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.UndeployModelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.UndeployModelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1.UndeployModelOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1.UndeployModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v1.UndeployModelOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.UndeployModelOperationMetadata) com.google.cloud.automl.v1.UndeployModelOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UndeployModelOperationMetadata.class, com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1.UndeployModelOperationMetadata.class, + com.google.cloud.automl.v1.UndeployModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1.UndeployModelOperationMetadata.newBuilder() @@ -257,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +303,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.Operations.internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.Operations + .internal_static_google_cloud_automl_v1_UndeployModelOperationMetadata_descriptor; } @java.lang.Override @@ -295,7 +324,8 @@ public com.google.cloud.automl.v1.UndeployModelOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1.UndeployModelOperationMetadata buildPartial() { - com.google.cloud.automl.v1.UndeployModelOperationMetadata result = new com.google.cloud.automl.v1.UndeployModelOperationMetadata(this); + com.google.cloud.automl.v1.UndeployModelOperationMetadata result = + new com.google.cloud.automl.v1.UndeployModelOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +334,39 @@ public com.google.cloud.automl.v1.UndeployModelOperationMetadata buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.UndeployModelOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1.UndeployModelOperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1.UndeployModelOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +374,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.UndeployModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.UndeployModelOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +395,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1.UndeployModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1.UndeployModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +405,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +417,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.UndeployModelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.UndeployModelOperationMetadata) private static final com.google.cloud.automl.v1.UndeployModelOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.UndeployModelOperationMetadata(); } @@ -398,16 +431,16 @@ public static com.google.cloud.automl.v1.UndeployModelOperationMetadata getDefau 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); - } - }; + 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; @@ -422,6 +455,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.automl.v1.UndeployModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..f23639c42 --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/operations.proto + +package com.google.cloud.automl.v1; + +public interface UndeployModelOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.UndeployModelOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java index 7b686f2a7..4e2b37380 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.UndeployModel][google.cloud.automl.v1.AutoMl.UndeployModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1.UndeployModelRequest} */ -public final class UndeployModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UndeployModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.UndeployModelRequest) UndeployModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UndeployModelRequest.newBuilder() to construct. private UndeployModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UndeployModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UndeployModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UndeployModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private UndeployModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UndeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UndeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UndeployModelRequest.class, com.google.cloud.automl.v1.UndeployModelRequest.Builder.class); + com.google.cloud.automl.v1.UndeployModelRequest.class, + com.google.cloud.automl.v1.UndeployModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the model to undeploy.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the model to undeploy.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.UndeployModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.UndeployModelRequest other = (com.google.cloud.automl.v1.UndeployModelRequest) obj; + com.google.cloud.automl.v1.UndeployModelRequest other = + (com.google.cloud.automl.v1.UndeployModelRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.UndeployModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.UndeployModelRequest 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.v1.UndeployModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.UndeployModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.UndeployModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.UndeployModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.UndeployModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.UndeployModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.UndeployModel][google.cloud.automl.v1.AutoMl.UndeployModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1.UndeployModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.UndeployModelRequest) com.google.cloud.automl.v1.UndeployModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UndeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UndeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UndeployModelRequest.class, com.google.cloud.automl.v1.UndeployModelRequest.Builder.class); + com.google.cloud.automl.v1.UndeployModelRequest.class, + com.google.cloud.automl.v1.UndeployModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.UndeployModelRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UndeployModelRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1.UndeployModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.UndeployModelRequest buildPartial() { - com.google.cloud.automl.v1.UndeployModelRequest result = new com.google.cloud.automl.v1.UndeployModelRequest(this); + com.google.cloud.automl.v1.UndeployModelRequest result = + new com.google.cloud.automl.v1.UndeployModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1.UndeployModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.UndeployModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.UndeployModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1.UndeployModelRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.UndeployModelRequest other) { - if (other == com.google.cloud.automl.v1.UndeployModelRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.UndeployModelRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -445,18 +483,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the model to undeploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +507,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model to undeploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +531,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model to undeploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to undeploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to undeploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.UndeployModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.UndeployModelRequest) private static final com.google.cloud.automl.v1.UndeployModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.UndeployModelRequest(); } @@ -564,16 +622,16 @@ public static com.google.cloud.automl.v1.UndeployModelRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeployModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UndeployModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeployModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeployModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +646,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.UndeployModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequestOrBuilder.java new file mode 100644 index 000000000..5702f0cbc --- /dev/null +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UndeployModelRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1/service.proto + +package com.google.cloud.automl.v1; + +public interface UndeployModelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.UndeployModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the model to undeploy.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the model to undeploy.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java index 59a53d846..a3d47a549 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1.AutoMl.UpdateDataset]
  * 
* * Protobuf type {@code google.cloud.automl.v1.UpdateDatasetRequest} */ -public final class UpdateDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.UpdateDatasetRequest) UpdateDatasetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateDatasetRequest.newBuilder() to construct. private UpdateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateDatasetRequest() { - } + + private UpdateDatasetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,82 @@ private UpdateDatasetRequest( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.Dataset.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = input.readMessage(com.google.cloud.automl.v1.Dataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.automl.v1.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = + input.readMessage(com.google.cloud.automl.v1.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; } + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UpdateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UpdateDatasetRequest.class, com.google.cloud.automl.v1.UpdateDatasetRequest.Builder.class); + com.google.cloud.automl.v1.UpdateDatasetRequest.class, + com.google.cloud.automl.v1.UpdateDatasetRequest.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.Dataset dataset_; /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ @java.lang.Override @@ -125,11 +151,15 @@ public boolean hasDataset() { return dataset_ != null; } /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ @java.lang.Override @@ -137,11 +167,14 @@ public com.google.cloud.automl.v1.Dataset getDataset() { return dataset_ == null ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; } /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { @@ -151,11 +184,15 @@ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -163,11 +200,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -175,11 +216,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -187,6 +231,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dataset_ != null) { output.writeMessage(1, getDataset()); } @@ -216,12 +260,10 @@ public int getSerializedSize() { size = 0; if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataset()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +273,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.UpdateDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.UpdateDatasetRequest other = (com.google.cloud.automl.v1.UpdateDatasetRequest) obj; + com.google.cloud.automl.v1.UpdateDatasetRequest other = + (com.google.cloud.automl.v1.UpdateDatasetRequest) obj; if (hasDataset() != other.hasDataset()) return false; if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) return false; + if (!getDataset().equals(other.getDataset())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -272,118 +313,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.UpdateDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.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.v1.UpdateDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.UpdateDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.UpdateDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.UpdateDatasetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.UpdateDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.UpdateDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1.AutoMl.UpdateDataset]
    * 
* * Protobuf type {@code google.cloud.automl.v1.UpdateDatasetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.UpdateDatasetRequest) com.google.cloud.automl.v1.UpdateDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UpdateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UpdateDatasetRequest.class, com.google.cloud.automl.v1.UpdateDatasetRequest.Builder.class); + com.google.cloud.automl.v1.UpdateDatasetRequest.class, + com.google.cloud.automl.v1.UpdateDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.UpdateDatasetRequest.newBuilder() @@ -391,16 +441,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UpdateDatasetRequest_descriptor; } @java.lang.Override @@ -441,7 +490,8 @@ public com.google.cloud.automl.v1.UpdateDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1.UpdateDatasetRequest buildPartial() { - com.google.cloud.automl.v1.UpdateDatasetRequest result = new com.google.cloud.automl.v1.UpdateDatasetRequest(this); + com.google.cloud.automl.v1.UpdateDatasetRequest result = + new com.google.cloud.automl.v1.UpdateDatasetRequest(this); if (datasetBuilder_ == null) { result.dataset_ = dataset_; } else { @@ -460,38 +510,39 @@ public com.google.cloud.automl.v1.UpdateDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.UpdateDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1.UpdateDatasetRequest)other); + return mergeFrom((com.google.cloud.automl.v1.UpdateDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -499,7 +550,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1.UpdateDatasetRequest other) { - if (other == com.google.cloud.automl.v1.UpdateDatasetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1.UpdateDatasetRequest.getDefaultInstance()) + return this; if (other.hasDataset()) { mergeDataset(other.getDataset()); } @@ -537,39 +589,55 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.Dataset dataset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> datasetBuilder_; + com.google.cloud.automl.v1.Dataset, + com.google.cloud.automl.v1.Dataset.Builder, + com.google.cloud.automl.v1.DatasetOrBuilder> + datasetBuilder_; /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ public boolean hasDataset() { return datasetBuilder_ != null || dataset_ != null; } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ public com.google.cloud.automl.v1.Dataset getDataset() { if (datasetBuilder_ == null) { - return dataset_ == null ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() + : dataset_; } else { return datasetBuilder_.getMessage(); } } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataset(com.google.cloud.automl.v1.Dataset value) { if (datasetBuilder_ == null) { @@ -585,14 +653,16 @@ public Builder setDataset(com.google.cloud.automl.v1.Dataset value) { return this; } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDataset( - com.google.cloud.automl.v1.Dataset.Builder builderForValue) { + public Builder setDataset(com.google.cloud.automl.v1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); onChanged(); @@ -603,17 +673,22 @@ public Builder setDataset( return this; } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDataset(com.google.cloud.automl.v1.Dataset value) { if (datasetBuilder_ == null) { if (dataset_ != null) { dataset_ = - com.google.cloud.automl.v1.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.Dataset.newBuilder(dataset_) + .mergeFrom(value) + .buildPartial(); } else { dataset_ = value; } @@ -625,11 +700,14 @@ public Builder mergeDataset(com.google.cloud.automl.v1.Dataset value) { return this; } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -643,48 +721,61 @@ public Builder clearDataset() { return this; } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.Dataset.Builder getDatasetBuilder() { - + onChanged(); return getDatasetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { if (datasetBuilder_ != null) { return datasetBuilder_.getMessageOrBuilder(); } else { - return dataset_ == null ? - com.google.cloud.automl.v1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.automl.v1.Dataset.getDefaultInstance() + : dataset_; } } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder> + com.google.cloud.automl.v1.Dataset, + com.google.cloud.automl.v1.Dataset.Builder, + com.google.cloud.automl.v1.DatasetOrBuilder> getDatasetFieldBuilder() { if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Dataset, com.google.cloud.automl.v1.Dataset.Builder, com.google.cloud.automl.v1.DatasetOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); + datasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Dataset, + com.google.cloud.automl.v1.Dataset.Builder, + com.google.cloud.automl.v1.DatasetOrBuilder>( + getDataset(), getParentForChildren(), isClean()); dataset_ = null; } return datasetBuilder_; @@ -692,39 +783,55 @@ public com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder() { 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -740,14 +847,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -758,17 +867,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -780,11 +892,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -798,55 +913,68 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.UpdateDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.UpdateDatasetRequest) private static final com.google.cloud.automl.v1.UpdateDatasetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.UpdateDatasetRequest(); } @@ -870,16 +998,16 @@ public static com.google.cloud.automl.v1.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); - } - }; + 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; @@ -894,6 +1022,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.UpdateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java index e040d5944..67c962eb7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateDatasetRequestOrBuilder.java @@ -1,63 +1,101 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface UpdateDatasetRequestOrBuilder extends +public interface UpdateDatasetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.UpdateDatasetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ boolean hasDataset(); /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ com.google.cloud.automl.v1.Dataset getDataset(); /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1.DatasetOrBuilder getDatasetOrBuilder(); /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java index b57a77d9f..009a4feff 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; /** + * + * *
  * Request message for [AutoMl.UpdateModel][google.cloud.automl.v1.AutoMl.UpdateModel]
  * 
* * Protobuf type {@code google.cloud.automl.v1.UpdateModelRequest} */ -public final class UpdateModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.UpdateModelRequest) UpdateModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateModelRequest.newBuilder() to construct. private UpdateModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateModelRequest() { - } + + private UpdateModelRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,81 @@ private UpdateModelRequest( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1.Model.Builder subBuilder = null; - if (model_ != null) { - subBuilder = model_.toBuilder(); - } - model_ = input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(model_); - model_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); + case 10: + { + com.google.cloud.automl.v1.Model.Builder subBuilder = null; + if (model_ != null) { + subBuilder = model_.toBuilder(); + } + model_ = + input.readMessage(com.google.cloud.automl.v1.Model.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(model_); + model_ = subBuilder.buildPartial(); + } + + break; } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + 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; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UpdateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UpdateModelRequest.class, com.google.cloud.automl.v1.UpdateModelRequest.Builder.class); + com.google.cloud.automl.v1.UpdateModelRequest.class, + com.google.cloud.automl.v1.UpdateModelRequest.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private com.google.cloud.automl.v1.Model model_; /** + * + * *
    * Required. The model which replaces the resource on the server.
    * 
* * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the model field is set. */ @java.lang.Override @@ -125,11 +150,14 @@ public boolean hasModel() { return model_ != null; } /** + * + * *
    * Required. The model which replaces the resource on the server.
    * 
* * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The model. */ @java.lang.Override @@ -137,6 +165,8 @@ public com.google.cloud.automl.v1.Model getModel() { return model_ == null ? com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; } /** + * + * *
    * Required. The model which replaces the resource on the server.
    * 
@@ -151,11 +181,15 @@ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -163,11 +197,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -175,11 +213,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -187,6 +228,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (model_ != null) { output.writeMessage(1, getModel()); } @@ -216,12 +257,10 @@ public int getSerializedSize() { size = 0; if (model_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getModel()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getModel()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +270,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1.UpdateModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1.UpdateModelRequest other = (com.google.cloud.automl.v1.UpdateModelRequest) obj; + com.google.cloud.automl.v1.UpdateModelRequest other = + (com.google.cloud.automl.v1.UpdateModelRequest) obj; if (hasModel() != other.hasModel()) return false; if (hasModel()) { - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -272,118 +310,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.UpdateModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.UpdateModelRequest 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.v1.UpdateModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1.UpdateModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1.UpdateModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.UpdateModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1.UpdateModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1.UpdateModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.UpdateModel][google.cloud.automl.v1.AutoMl.UpdateModel]
    * 
* * Protobuf type {@code google.cloud.automl.v1.UpdateModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.UpdateModelRequest) com.google.cloud.automl.v1.UpdateModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UpdateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1.UpdateModelRequest.class, com.google.cloud.automl.v1.UpdateModelRequest.Builder.class); + com.google.cloud.automl.v1.UpdateModelRequest.class, + com.google.cloud.automl.v1.UpdateModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1.UpdateModelRequest.newBuilder() @@ -391,16 +438,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1.AutoMlProto.internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1.AutoMlProto + .internal_static_google_cloud_automl_v1_UpdateModelRequest_descriptor; } @java.lang.Override @@ -441,7 +487,8 @@ public com.google.cloud.automl.v1.UpdateModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1.UpdateModelRequest buildPartial() { - com.google.cloud.automl.v1.UpdateModelRequest result = new com.google.cloud.automl.v1.UpdateModelRequest(this); + com.google.cloud.automl.v1.UpdateModelRequest result = + new com.google.cloud.automl.v1.UpdateModelRequest(this); if (modelBuilder_ == null) { result.model_ = model_; } else { @@ -460,38 +507,39 @@ public com.google.cloud.automl.v1.UpdateModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.v1.UpdateModelRequest) { - return mergeFrom((com.google.cloud.automl.v1.UpdateModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1.UpdateModelRequest) other); } else { super.mergeFrom(other); return this; @@ -537,24 +585,35 @@ public Builder mergeFrom( private com.google.cloud.automl.v1.Model model_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> modelBuilder_; + com.google.cloud.automl.v1.Model, + com.google.cloud.automl.v1.Model.Builder, + com.google.cloud.automl.v1.ModelOrBuilder> + modelBuilder_; /** + * + * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** + * + * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The model. */ public com.google.cloud.automl.v1.Model getModel() { @@ -565,11 +624,14 @@ public com.google.cloud.automl.v1.Model getModel() { } } /** + * + * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setModel(com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { @@ -585,14 +647,16 @@ public Builder setModel(com.google.cloud.automl.v1.Model value) { return this; } /** + * + * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setModel( - com.google.cloud.automl.v1.Model.Builder builderForValue) { + public Builder setModel(com.google.cloud.automl.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); @@ -603,17 +667,20 @@ public Builder setModel( return this; } /** + * + * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeModel(com.google.cloud.automl.v1.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = - com.google.cloud.automl.v1.Model.newBuilder(model_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } @@ -625,11 +692,14 @@ public Builder mergeModel(com.google.cloud.automl.v1.Model value) { return this; } /** + * + * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearModel() { if (modelBuilder_ == null) { @@ -643,48 +713,59 @@ public Builder clearModel() { return this; } /** + * + * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.Model.Builder getModelBuilder() { - + onChanged(); return getModelFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { - return model_ == null ? - com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; + return model_ == null ? com.google.cloud.automl.v1.Model.getDefaultInstance() : model_; } } /** + * + * *
      * Required. The model which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder> + com.google.cloud.automl.v1.Model, + com.google.cloud.automl.v1.Model.Builder, + com.google.cloud.automl.v1.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1.Model, com.google.cloud.automl.v1.Model.Builder, com.google.cloud.automl.v1.ModelOrBuilder>( - getModel(), - getParentForChildren(), - isClean()); + modelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1.Model, + com.google.cloud.automl.v1.Model.Builder, + com.google.cloud.automl.v1.ModelOrBuilder>( + getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; @@ -692,39 +773,55 @@ public com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder() { 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -740,14 +837,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -758,17 +857,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -780,11 +882,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -798,55 +903,68 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. The update mask applies to the resource.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,12 +974,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.UpdateModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.UpdateModelRequest) private static final com.google.cloud.automl.v1.UpdateModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.UpdateModelRequest(); } @@ -870,16 +988,16 @@ public static com.google.cloud.automl.v1.UpdateModelRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -894,6 +1012,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1.UpdateModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java rename to proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java index 73a2b5492..0cd3a2cfb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/UpdateModelRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1/service.proto package com.google.cloud.automl.v1; -public interface UpdateModelRequestOrBuilder extends +public interface UpdateModelRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.UpdateModelRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The model which replaces the resource on the server.
    * 
* * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the model field is set. */ boolean hasModel(); /** + * + * *
    * Required. The model which replaces the resource on the server.
    * 
* * .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The model. */ com.google.cloud.automl.v1.Model getModel(); /** + * + * *
    * Required. The model which replaces the resource on the server.
    * 
@@ -35,29 +59,40 @@ public interface UpdateModelRequestOrBuilder extends com.google.cloud.automl.v1.ModelOrBuilder getModelOrBuilder(); /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. The update mask applies to the resource.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_payload.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_payload.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_payload.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_payload.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_spec.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_spec.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_spec.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/annotation_spec.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/classification.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/classification.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/classification.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/classification.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/data_items.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/data_items.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/data_items.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/data_items.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/dataset.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/dataset.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/dataset.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/dataset.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/detection.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/detection.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/detection.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/detection.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/geometry.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/geometry.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/geometry.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/geometry.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/image.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/image.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/image.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/image.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model_evaluation.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model_evaluation.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model_evaluation.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/model_evaluation.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/operations.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/operations.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/operations.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/operations.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/prediction_service.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/prediction_service.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/prediction_service.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/prediction_service.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/service.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/service.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/service.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/service.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_extraction.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_extraction.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_extraction.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_extraction.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_segment.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_segment.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_segment.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_segment.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_sentiment.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_sentiment.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_sentiment.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/text_sentiment.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/translation.proto b/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/translation.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/translation.proto rename to proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/translation.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java index 47088f055..312438037 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/annotation_payload.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Contains annotation information that is relevant to AutoML.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.AnnotationPayload} */ -public final class AnnotationPayload extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotationPayload extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.AnnotationPayload) AnnotationPayloadOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotationPayload.newBuilder() to construct. private AnnotationPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotationPayload() { annotationSpecId_ = ""; displayName_ = ""; @@ -26,16 +44,15 @@ private AnnotationPayload() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotationPayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotationPayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,166 +71,233 @@ private AnnotationPayload( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecId_ = s; - break; - } - case 18: { - com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder subBuilder = null; - if (detailCase_ == 2) { - subBuilder = ((com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_).toBuilder(); + annotationSpecId_ = s; + break; } - detail_ = - input.readMessage(com.google.cloud.automl.v1beta1.TranslationAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_); - detail_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder subBuilder = null; + if (detailCase_ == 2) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_).toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TranslationAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 2; + break; } - detailCase_ = 2; - break; - } - case 26: { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder subBuilder = null; - if (detailCase_ == 3) { - subBuilder = ((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_).toBuilder(); + case 26: + { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder + subBuilder = null; + if (detailCase_ == 3) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) + detail_) + .toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) + detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 3; + break; } - detail_ = - input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_); - detail_ = subBuilder.buildPartial(); + 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; } - 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(); + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - 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(); + displayName_ = s; + break; } - 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(); + 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; } - 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(); + 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; } - detailCase_ = 7; - break; - } - case 66: { - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder subBuilder = null; - if (detailCase_ == 8) { - subBuilder = ((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_).toBuilder(); + case 66: + { + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder subBuilder = + null; + if (detailCase_ == 8) { + subBuilder = + ((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_) + .toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 8; + break; } - detail_ = - input.readMessage(com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); - detail_ = subBuilder.buildPartial(); + 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; } - detailCase_ = 8; - 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(); + 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; } - 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(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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)) { - 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); + 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.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.AnnotationPayload.class, com.google.cloud.automl.v1beta1.AnnotationPayload.Builder.class); + com.google.cloud.automl.v1beta1.AnnotationPayload.class, + com.google.cloud.automl.v1beta1.AnnotationPayload.Builder.class); } private int detailCase_ = 0; private java.lang.Object detail_; + public enum DetailCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION(2), CLASSIFICATION(3), @@ -225,6 +309,7 @@ public enum DetailCase TABLES(10), DETAIL_NOT_SET(0); private final int value; + private DetailCase(int value) { this.value = value; } @@ -240,36 +325,48 @@ public static DetailCase valueOf(int value) { public static DetailCase forNumber(int value) { switch (value) { - case 2: return TRANSLATION; - case 3: return CLASSIFICATION; - case 4: return IMAGE_OBJECT_DETECTION; - case 9: return VIDEO_CLASSIFICATION; - case 8: return VIDEO_OBJECT_TRACKING; - case 6: return TEXT_EXTRACTION; - case 7: return TEXT_SENTIMENT; - case 10: return TABLES; - case 0: return DETAIL_NOT_SET; - default: return null; + case 2: + return TRANSLATION; + case 3: + return CLASSIFICATION; + case 4: + return IMAGE_OBJECT_DETECTION; + case 9: + return VIDEO_CLASSIFICATION; + case 8: + return VIDEO_OBJECT_TRACKING; + case 6: + return TEXT_EXTRACTION; + case 7: + return TEXT_SENTIMENT; + case 10: + return TABLES; + case 0: + return DETAIL_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DetailCase - getDetailCase() { - return DetailCase.forNumber( - detailCase_); + public DetailCase getDetailCase() { + return DetailCase.forNumber(detailCase_); } public static final int TRANSLATION_FIELD_NUMBER = 2; /** + * + * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; + * * @return Whether the translation field is set. */ @java.lang.Override @@ -277,21 +374,26 @@ public boolean hasTranslation() { return detailCase_ == 2; } /** + * + * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; + * * @return The translation. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationAnnotation getTranslation() { if (detailCase_ == 2) { - return (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_; } return com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation details for translation.
    * 
@@ -301,18 +403,21 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation getTranslation() { @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder getTranslationOrBuilder() { if (detailCase_ == 2) { - return (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_; } return com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance(); } public static final int CLASSIFICATION_FIELD_NUMBER = 3; /** + * + * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; + * * @return Whether the classification field is set. */ @java.lang.Override @@ -320,21 +425,28 @@ public boolean hasClassification() { return detailCase_ == 3; } /** + * + * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; + * * @return The classification. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassification() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + getClassification() { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance(); } /** + * + * *
    * Annotation details for content or image classification.
    * 
@@ -342,20 +454,26 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotat * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationOrBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder + getClassificationOrBuilder() { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .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; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + * * @return Whether the imageObjectDetection field is set. */ @java.lang.Override @@ -363,43 +481,55 @@ public boolean hasImageObjectDetection() { return detailCase_ == 4; } /** + * + * *
    * Annotation details for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + * * @return The imageObjectDetection. */ @java.lang.Override 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) detail_; } return com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation details for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder() { + 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) 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; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + * * @return Whether the videoClassification field is set. */ @java.lang.Override @@ -407,44 +537,61 @@ public boolean hasVideoClassification() { return detailCase_ == 9; } /** + * + * *
    * Annotation details for video classification.
    * Returned for Video Classification predictions.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + * * @return The videoClassification. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation getVideoClassification() { + 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) + detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.getDefaultInstance(); + 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; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotationOrBuilder getVideoClassificationOrBuilder() { + 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) + detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_FIELD_NUMBER = 8; /** + * + * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * + * * @return Whether the videoObjectTracking field is set. */ @java.lang.Override @@ -452,42 +599,53 @@ public boolean hasVideoObjectTracking() { return detailCase_ == 8; } /** + * + * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * + * * @return The videoObjectTracking. */ @java.lang.Override public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getVideoObjectTracking() { if (detailCase_ == 8) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder + getVideoObjectTrackingOrBuilder() { if (detailCase_ == 8) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } public static final int TEXT_EXTRACTION_FIELD_NUMBER = 6; /** + * + * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + * * @return Whether the textExtraction field is set. */ @java.lang.Override @@ -495,21 +653,26 @@ public boolean hasTextExtraction() { return detailCase_ == 6; } /** + * + * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + * * @return The textExtraction. */ @java.lang.Override 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) detail_; } return com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation details for text extraction.
    * 
@@ -517,20 +680,24 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotation getTextExtractio * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder() { + 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) 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; + * * @return Whether the textSentiment field is set. */ @java.lang.Override @@ -538,21 +705,28 @@ public boolean hasTextSentiment() { return detailCase_ == 7; } /** + * + * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + * * @return The textSentiment. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation getTextSentiment() { + 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) detail_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance(); } /** + * + * *
    * Annotation details for text sentiment.
    * 
@@ -560,20 +734,25 @@ public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotatio * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder() { + 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) detail_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.getDefaultInstance(); + 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; + * * @return Whether the tables field is set. */ @java.lang.Override @@ -581,21 +760,26 @@ public boolean hasTables() { return detailCase_ == 10; } /** + * + * *
    * Annotation details for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + * * @return The tables. */ @java.lang.Override 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) detail_; } return com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation details for Tables.
    * 
@@ -605,7 +789,7 @@ public com.google.cloud.automl.v1beta1.TablesAnnotation getTables() { @java.lang.Override 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) detail_; } return com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); } @@ -613,6 +797,8 @@ public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuil public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecId_; /** + * + * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -620,6 +806,7 @@ public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuil
    * 
* * string annotation_spec_id = 1; + * * @return The annotationSpecId. */ @java.lang.Override @@ -628,14 +815,15 @@ public java.lang.String getAnnotationSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; } } /** + * + * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -643,16 +831,15 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string annotation_spec_id = 1; + * * @return The bytes for annotationSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -663,6 +850,8 @@ public java.lang.String getAnnotationSpecId() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -673,6 +862,7 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string display_name = 5; + * * @return The displayName. */ @java.lang.Override @@ -681,14 +871,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -699,16 +890,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -717,6 +907,7 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -728,8 +919,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecId_); } @@ -737,10 +927,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_); } if (detailCase_ == 3) { - output.writeMessage(3, (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_); + output.writeMessage( + 3, + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_); } if (detailCase_ == 4) { - output.writeMessage(4, (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_); + output.writeMessage( + 4, (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); @@ -749,13 +942,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(6, (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_); } if (detailCase_ == 7) { - output.writeMessage(7, (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) detail_); + output.writeMessage( + 7, (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) detail_); } if (detailCase_ == 8) { - output.writeMessage(8, (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); + output.writeMessage( + 8, (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); } if (detailCase_ == 9) { - output.writeMessage(9, (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) detail_); + output.writeMessage( + 9, + (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + detail_); } if (detailCase_ == 10) { output.writeMessage(10, (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_); @@ -773,39 +971,52 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, annotationSpecId_); } if (detailCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_); } if (detailCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (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_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 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_); + 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_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) detail_); } if (detailCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_); } if (detailCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) detail_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -815,50 +1026,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.AnnotationPayload)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.AnnotationPayload other = (com.google.cloud.automl.v1beta1.AnnotationPayload) obj; + com.google.cloud.automl.v1beta1.AnnotationPayload other = + (com.google.cloud.automl.v1beta1.AnnotationPayload) obj; - if (!getAnnotationSpecId() - .equals(other.getAnnotationSpecId())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getAnnotationSpecId().equals(other.getAnnotationSpecId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDetailCase().equals(other.getDetailCase())) return false; switch (detailCase_) { case 2: - if (!getTranslation() - .equals(other.getTranslation())) return false; + if (!getTranslation().equals(other.getTranslation())) return false; break; case 3: - if (!getClassification() - .equals(other.getClassification())) return false; + if (!getClassification().equals(other.getClassification())) return false; break; case 4: - if (!getImageObjectDetection() - .equals(other.getImageObjectDetection())) return false; + if (!getImageObjectDetection().equals(other.getImageObjectDetection())) return false; break; case 9: - if (!getVideoClassification() - .equals(other.getVideoClassification())) return false; + if (!getVideoClassification().equals(other.getVideoClassification())) return false; break; case 8: - if (!getVideoObjectTracking() - .equals(other.getVideoObjectTracking())) return false; + if (!getVideoObjectTracking().equals(other.getVideoObjectTracking())) return false; break; case 6: - if (!getTextExtraction() - .equals(other.getTextExtraction())) return false; + if (!getTextExtraction().equals(other.getTextExtraction())) return false; break; case 7: - if (!getTextSentiment() - .equals(other.getTextSentiment())) return false; + if (!getTextSentiment().equals(other.getTextSentiment())) return false; break; case 10: - if (!getTables() - .equals(other.getTables())) return false; + if (!getTables().equals(other.getTables())) return false; break; case 0: default: @@ -920,117 +1122,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.AnnotationPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.AnnotationPayload 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.AnnotationPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.AnnotationPayload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.AnnotationPayload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.AnnotationPayload parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.AnnotationPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains annotation information that is relevant to AutoML.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.AnnotationPayload} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.AnnotationPayload) com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.AnnotationPayload.class, com.google.cloud.automl.v1beta1.AnnotationPayload.Builder.class); + com.google.cloud.automl.v1beta1.AnnotationPayload.class, + com.google.cloud.automl.v1beta1.AnnotationPayload.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.AnnotationPayload.newBuilder() @@ -1038,16 +1249,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1061,9 +1271,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; } @java.lang.Override @@ -1082,7 +1292,8 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload build() { @java.lang.Override public com.google.cloud.automl.v1beta1.AnnotationPayload buildPartial() { - com.google.cloud.automl.v1beta1.AnnotationPayload result = new com.google.cloud.automl.v1beta1.AnnotationPayload(this); + com.google.cloud.automl.v1beta1.AnnotationPayload result = + new com.google.cloud.automl.v1beta1.AnnotationPayload(this); if (detailCase_ == 2) { if (translationBuilder_ == null) { result.detail_ = detail_; @@ -1150,38 +1361,39 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.AnnotationPayload) { - return mergeFrom((com.google.cloud.automl.v1beta1.AnnotationPayload)other); + return mergeFrom((com.google.cloud.automl.v1beta1.AnnotationPayload) other); } else { super.mergeFrom(other); return this; @@ -1189,7 +1401,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.AnnotationPayload other) { - if (other == com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance()) + return this; if (!other.getAnnotationSpecId().isEmpty()) { annotationSpecId_ = other.annotationSpecId_; onChanged(); @@ -1199,41 +1412,50 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.AnnotationPayload other onChanged(); } switch (other.getDetailCase()) { - case TRANSLATION: { - mergeTranslation(other.getTranslation()); - break; - } - case CLASSIFICATION: { - mergeClassification(other.getClassification()); - break; - } - case IMAGE_OBJECT_DETECTION: { - mergeImageObjectDetection(other.getImageObjectDetection()); - break; - } - case VIDEO_CLASSIFICATION: { - mergeVideoClassification(other.getVideoClassification()); - break; - } - case VIDEO_OBJECT_TRACKING: { - mergeVideoObjectTracking(other.getVideoObjectTracking()); - 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; - } + case TRANSLATION: + { + mergeTranslation(other.getTranslation()); + break; + } + case CLASSIFICATION: + { + mergeClassification(other.getClassification()); + break; + } + case IMAGE_OBJECT_DETECTION: + { + mergeImageObjectDetection(other.getImageObjectDetection()); + break; + } + case VIDEO_CLASSIFICATION: + { + mergeVideoClassification(other.getVideoClassification()); + break; + } + case VIDEO_OBJECT_TRACKING: + { + mergeVideoObjectTracking(other.getVideoObjectTracking()); + 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; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1254,7 +1476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.AnnotationPayload) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.AnnotationPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1263,12 +1486,12 @@ public Builder mergeFrom( } return this; } + private int detailCase_ = 0; private java.lang.Object detail_; - public DetailCase - getDetailCase() { - return DetailCase.forNumber( - detailCase_); + + public DetailCase getDetailCase() { + return DetailCase.forNumber(detailCase_); } public Builder clearDetail() { @@ -1278,15 +1501,20 @@ public Builder clearDetail() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationAnnotation, com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder> translationBuilder_; + com.google.cloud.automl.v1beta1.TranslationAnnotation, + com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, + com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder> + translationBuilder_; /** + * + * *
      * Annotation details for translation.
      * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; + * * @return Whether the translation field is set. */ @java.lang.Override @@ -1294,11 +1522,14 @@ public boolean hasTranslation() { return detailCase_ == 2; } /** + * + * *
      * Annotation details for translation.
      * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; + * * @return The translation. */ @java.lang.Override @@ -1316,6 +1547,8 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation getTranslation() { } } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1336,6 +1569,8 @@ public Builder setTranslation(com.google.cloud.automl.v1beta1.TranslationAnnotat return this; } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1354,6 +1589,8 @@ public Builder setTranslation( return this; } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1362,10 +1599,14 @@ public Builder setTranslation( */ public Builder mergeTranslation(com.google.cloud.automl.v1beta1.TranslationAnnotation value) { if (translationBuilder_ == null) { - if (detailCase_ == 2 && - detail_ != com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance()) { - detail_ = com.google.cloud.automl.v1beta1.TranslationAnnotation.newBuilder((com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_) - .mergeFrom(value).buildPartial(); + if (detailCase_ == 2 + && detail_ + != com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1beta1.TranslationAnnotation.newBuilder( + (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_) + .mergeFrom(value) + .buildPartial(); } else { detail_ = value; } @@ -1380,6 +1621,8 @@ public Builder mergeTranslation(com.google.cloud.automl.v1beta1.TranslationAnnot return this; } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1403,6 +1646,8 @@ public Builder clearTranslation() { return this; } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1413,6 +1658,8 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder getTranslat return getTranslationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1420,7 +1667,8 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder getTranslat * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder getTranslationOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder + getTranslationOrBuilder() { if ((detailCase_ == 2) && (translationBuilder_ != null)) { return translationBuilder_.getMessageOrBuilder(); } else { @@ -1431,6 +1679,8 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder getTransla } } /** + * + * *
      * Annotation details for translation.
      * 
@@ -1438,32 +1688,44 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder getTransla * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationAnnotation, com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder> + com.google.cloud.automl.v1beta1.TranslationAnnotation, + com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, + com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder> getTranslationFieldBuilder() { if (translationBuilder_ == null) { if (!(detailCase_ == 2)) { detail_ = com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance(); } - translationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationAnnotation, com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder>( + translationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TranslationAnnotation, + com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder, + com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder>( (com.google.cloud.automl.v1beta1.TranslationAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 2; - onChanged();; + onChanged(); + ; return translationBuilder_; } 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> classificationBuilder_; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder> + classificationBuilder_; /** + * + * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; + * * @return Whether the classification field is set. */ @java.lang.Override @@ -1471,35 +1733,45 @@ public boolean hasClassification() { return detailCase_ == 3; } /** + * + * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; + * * @return The classification. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassification() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + getClassification() { if (classificationBuilder_ == null) { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) + detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance(); } else { if (detailCase_ == 3) { return classificationBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ - public Builder setClassification(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { + public Builder setClassification( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { if (classificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1513,6 +1785,8 @@ public Builder setClassification(com.google.cloud.automl.v1beta1.ClassificationP return this; } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1520,7 +1794,8 @@ public Builder setClassification(com.google.cloud.automl.v1beta1.ClassificationP * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ public Builder setClassification( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder + builderForValue) { if (classificationBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); @@ -1531,18 +1806,28 @@ public Builder setClassification( return this; } /** + * + * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ - public Builder mergeClassification(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { + public Builder mergeClassification( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { if (classificationBuilder_ == null) { - if (detailCase_ == 3 && - detail_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance()) { - detail_ = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.newBuilder((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_) - .mergeFrom(value).buildPartial(); + if (detailCase_ == 3 + && detail_ + != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .newBuilder( + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) + detail_) + .mergeFrom(value) + .buildPartial(); } else { detail_ = value; } @@ -1557,6 +1842,8 @@ public Builder mergeClassification(com.google.cloud.automl.v1beta1.Classificatio return this; } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1580,16 +1867,21 @@ public Builder clearClassification() { return this; } /** + * + * *
      * Annotation details for content or image classification.
      * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder getClassificationBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder + getClassificationBuilder() { return getClassificationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1597,17 +1889,22 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotat * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationOrBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder + getClassificationOrBuilder() { if ((detailCase_ == 3) && (classificationBuilder_ != null)) { return classificationBuilder_.getMessageOrBuilder(); } else { if (detailCase_ == 3) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) + detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation details for content or image classification.
      * 
@@ -1615,32 +1912,50 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotat * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ 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> + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder> getClassificationFieldBuilder() { if (classificationBuilder_ == null) { if (!(detailCase_ == 3)) { - detail_ = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); - } - classificationBuilder_ = 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>( - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_, + detail_ = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance(); + } + classificationBuilder_ = + 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>( + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) + detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 3; - onChanged();; + onChanged(); + ; 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_; + 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; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + * * @return Whether the imageObjectDetection field is set. */ @java.lang.Override @@ -1648,15 +1963,20 @@ public boolean hasImageObjectDetection() { return detailCase_ == 4; } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + * * @return The imageObjectDetection. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation getImageObjectDetection() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation + getImageObjectDetection() { if (imageObjectDetectionBuilder_ == null) { if (detailCase_ == 4) { return (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_; @@ -1670,13 +1990,17 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation getImageOb } } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ - public Builder setImageObjectDetection(com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation value) { + public Builder setImageObjectDetection( + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation value) { if (imageObjectDetectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1690,11 +2014,14 @@ public Builder setImageObjectDetection(com.google.cloud.automl.v1beta1.ImageObje return this; } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ public Builder setImageObjectDetection( com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder builderForValue) { @@ -1708,18 +2035,27 @@ public Builder setImageObjectDetection( return this; } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ - public Builder mergeImageObjectDetection(com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation value) { + 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(); + 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; } @@ -1734,11 +2070,14 @@ public Builder mergeImageObjectDetection(com.google.cloud.automl.v1beta1.ImageOb return this; } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ public Builder clearImageObjectDetection() { if (imageObjectDetectionBuilder_ == null) { @@ -1757,24 +2096,32 @@ public Builder clearImageObjectDetection() { return this; } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ - public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder getImageObjectDetectionBuilder() { + 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; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder + getImageObjectDetectionOrBuilder() { if ((detailCase_ == 4) && (imageObjectDetectionBuilder_ != null)) { return imageObjectDetectionBuilder_.getMessageOrBuilder(); } else { @@ -1785,40 +2132,59 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder g } } /** + * + * *
      * Annotation details for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .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> + 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>( + 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();; + 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_; + 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; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + * * @return Whether the videoClassification field is set. */ @java.lang.Override @@ -1826,37 +2192,49 @@ public boolean hasVideoClassification() { return detailCase_ == 9; } /** + * + * *
      * Annotation details for video classification.
      * Returned for Video Classification predictions.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + * * @return The videoClassification. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation getVideoClassification() { + 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) + detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.getDefaultInstance(); + 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(); + 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; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * */ - public Builder setVideoClassification(com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation value) { + public Builder setVideoClassification( + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation value) { if (videoClassificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1870,15 +2248,19 @@ public Builder setVideoClassification(com.google.cloud.automl.v1beta1.Classifica return this; } /** + * + * *
      * Annotation details for video classification.
      * Returned for Video Classification predictions.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * */ public Builder setVideoClassification( - com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.Builder + builderForValue) { if (videoClassificationBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); @@ -1889,19 +2271,31 @@ public Builder setVideoClassification( return this; } /** + * + * *
      * Annotation details for video classification.
      * Returned for Video Classification predictions.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * */ - public Builder mergeVideoClassification(com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation value) { + 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(); + 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; } @@ -1916,12 +2310,15 @@ public Builder mergeVideoClassification(com.google.cloud.automl.v1beta1.Classifi return this; } /** + * + * *
      * Annotation details for video classification.
      * Returned for Video Classification predictions.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * */ public Builder clearVideoClassification() { if (videoClassificationBuilder_ == null) { @@ -1940,70 +2337,104 @@ public Builder clearVideoClassification() { return this; } /** + * + * *
      * Annotation details for video classification.
      * Returned for Video Classification predictions.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.Builder getVideoClassificationBuilder() { + 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; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotationOrBuilder getVideoClassificationOrBuilder() { + 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) + detail_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.getDefaultInstance(); + 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; + * .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> + 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_, + 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();; + onChanged(); + ; return videoClassificationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder> videoObjectTrackingBuilder_; + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder> + videoObjectTrackingBuilder_; /** + * + * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * + * * @return Whether the videoObjectTracking field is set. */ @java.lang.Override @@ -2011,11 +2442,15 @@ public boolean hasVideoObjectTracking() { return detailCase_ == 8; } /** + * + * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * + * * @return The videoObjectTracking. */ @java.lang.Override @@ -2033,13 +2468,17 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getVideoObj } } /** + * + * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * */ - public Builder setVideoObjectTracking(com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation value) { + public Builder setVideoObjectTracking( + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation value) { if (videoObjectTrackingBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2053,11 +2492,14 @@ public Builder setVideoObjectTracking(com.google.cloud.automl.v1beta1.VideoObjec return this; } /** + * + * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * */ public Builder setVideoObjectTracking( com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder builderForValue) { @@ -2071,18 +2513,27 @@ public Builder setVideoObjectTracking( return this; } /** + * + * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * */ - public Builder mergeVideoObjectTracking(com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation value) { + public Builder mergeVideoObjectTracking( + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation value) { if (videoObjectTrackingBuilder_ == null) { - if (detailCase_ == 8 && - detail_ != com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance()) { - detail_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.newBuilder((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_) - .mergeFrom(value).buildPartial(); + if (detailCase_ == 8 + && detail_ + != com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation + .getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.newBuilder( + (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_) + .mergeFrom(value) + .buildPartial(); } else { detail_ = value; } @@ -2097,11 +2548,14 @@ public Builder mergeVideoObjectTracking(com.google.cloud.automl.v1beta1.VideoObj return this; } /** + * + * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * */ public Builder clearVideoObjectTracking() { if (videoObjectTrackingBuilder_ == null) { @@ -2120,24 +2574,32 @@ public Builder clearVideoObjectTracking() { return this; } /** + * + * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * */ - public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder getVideoObjectTrackingBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder + getVideoObjectTrackingBuilder() { return getVideoObjectTrackingFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder + getVideoObjectTrackingOrBuilder() { if ((detailCase_ == 8) && (videoObjectTrackingBuilder_ != null)) { return videoObjectTrackingBuilder_.getMessageOrBuilder(); } else { @@ -2148,39 +2610,55 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder ge } } /** + * + * *
      * Annotation details for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder> + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder> getVideoObjectTrackingFieldBuilder() { if (videoObjectTrackingBuilder_ == null) { if (!(detailCase_ == 8)) { - detail_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); - } - videoObjectTrackingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder>( + detail_ = + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); + } + videoObjectTrackingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder>( (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 8; - onChanged();; + onChanged(); + ; return videoObjectTrackingBuilder_; } 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_; + 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; + * * @return Whether the textExtraction field is set. */ @java.lang.Override @@ -2188,11 +2666,14 @@ public boolean hasTextExtraction() { return detailCase_ == 6; } /** + * + * *
      * Annotation details for text extraction.
      * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + * * @return The textExtraction. */ @java.lang.Override @@ -2210,13 +2691,16 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotation getTextExtractio } } /** + * + * *
      * Annotation details for text extraction.
      * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; */ - public Builder setTextExtraction(com.google.cloud.automl.v1beta1.TextExtractionAnnotation value) { + public Builder setTextExtraction( + com.google.cloud.automl.v1beta1.TextExtractionAnnotation value) { if (textExtractionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2230,6 +2714,8 @@ public Builder setTextExtraction(com.google.cloud.automl.v1beta1.TextExtractionA return this; } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -2248,18 +2734,25 @@ public Builder setTextExtraction( 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) { + 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(); + 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; } @@ -2274,6 +2767,8 @@ public Builder mergeTextExtraction(com.google.cloud.automl.v1beta1.TextExtractio return this; } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -2297,16 +2792,21 @@ public Builder clearTextExtraction() { return this; } /** + * + * *
      * Annotation details for text extraction.
      * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; */ - public com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder getTextExtractionBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder + getTextExtractionBuilder() { return getTextExtractionFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -2314,7 +2814,8 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder getTextE * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder + getTextExtractionOrBuilder() { if ((detailCase_ == 6) && (textExtractionBuilder_ != null)) { return textExtractionBuilder_.getMessageOrBuilder(); } else { @@ -2325,6 +2826,8 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder getText } } /** + * + * *
      * Annotation details for text extraction.
      * 
@@ -2332,32 +2835,44 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder getText * .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> + 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>( + 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();; + 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_; + 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; + * * @return Whether the textSentiment field is set. */ @java.lang.Override @@ -2365,35 +2880,45 @@ public boolean hasTextSentiment() { return detailCase_ == 7; } /** + * + * *
      * Annotation details for text sentiment.
      * 
* * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + * * @return The textSentiment. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation getTextSentiment() { + 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) + detail_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.getDefaultInstance(); + 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(); + 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) { + public Builder setTextSentiment( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation value) { if (textSentimentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2407,6 +2932,8 @@ public Builder setTextSentiment(com.google.cloud.automl.v1beta1.TextSentimentPro return this; } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -2414,7 +2941,8 @@ public Builder setTextSentiment(com.google.cloud.automl.v1beta1.TextSentimentPro * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; */ public Builder setTextSentiment( - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder builderForValue) { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder + builderForValue) { if (textSentimentBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); @@ -2425,18 +2953,27 @@ public Builder setTextSentiment( 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) { + 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(); + 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; } @@ -2451,6 +2988,8 @@ public Builder mergeTextSentiment(com.google.cloud.automl.v1beta1.TextSentimentP return this; } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -2474,16 +3013,21 @@ public Builder clearTextSentiment() { 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() { + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder + getTextSentimentBuilder() { return getTextSentimentFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -2491,17 +3035,22 @@ public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotatio * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder() { + 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) + detail_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation details for text sentiment.
      * 
@@ -2509,32 +3058,48 @@ public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotatio * .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> + 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_, + 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();; + 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_; + 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; + * * @return Whether the tables field is set. */ @java.lang.Override @@ -2542,11 +3107,14 @@ public boolean hasTables() { return detailCase_ == 10; } /** + * + * *
      * Annotation details for Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + * * @return The tables. */ @java.lang.Override @@ -2564,6 +3132,8 @@ public com.google.cloud.automl.v1beta1.TablesAnnotation getTables() { } } /** + * + * *
      * Annotation details for Tables.
      * 
@@ -2584,6 +3154,8 @@ public Builder setTables(com.google.cloud.automl.v1beta1.TablesAnnotation value) return this; } /** + * + * *
      * Annotation details for Tables.
      * 
@@ -2602,6 +3174,8 @@ public Builder setTables( return this; } /** + * + * *
      * Annotation details for Tables.
      * 
@@ -2610,10 +3184,13 @@ public Builder setTables( */ 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(); + 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; } @@ -2628,6 +3205,8 @@ public Builder mergeTables(com.google.cloud.automl.v1beta1.TablesAnnotation valu return this; } /** + * + * *
      * Annotation details for Tables.
      * 
@@ -2651,6 +3230,8 @@ public Builder clearTables() { return this; } /** + * + * *
      * Annotation details for Tables.
      * 
@@ -2661,6 +3242,8 @@ public com.google.cloud.automl.v1beta1.TablesAnnotation.Builder getTablesBuilder return getTablesFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation details for Tables.
      * 
@@ -2679,6 +3262,8 @@ public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuil } } /** + * + * *
      * Annotation details for Tables.
      * 
@@ -2686,26 +3271,34 @@ public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuil * .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> + 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>( + 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();; + onChanged(); + ; return tablesBuilder_; } private java.lang.Object annotationSpecId_ = ""; /** + * + * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -2713,13 +3306,13 @@ public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuil
      * 
* * string annotation_spec_id = 1; + * * @return The annotationSpecId. */ public java.lang.String getAnnotationSpecId() { java.lang.Object ref = annotationSpecId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; @@ -2728,6 +3321,8 @@ public java.lang.String getAnnotationSpecId() { } } /** + * + * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -2735,15 +3330,14 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 1; + * * @return The bytes for annotationSpecId. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -2751,6 +3345,8 @@ public java.lang.String getAnnotationSpecId() { } } /** + * + * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -2758,20 +3354,22 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 1; + * * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId( - java.lang.String value) { + public Builder setAnnotationSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecId_ = value; onChanged(); return this; } /** + * + * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -2779,15 +3377,18 @@ public Builder setAnnotationSpecId(
      * 
* * string annotation_spec_id = 1; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { - + annotationSpecId_ = getDefaultInstance().getAnnotationSpecId(); onChanged(); return this; } /** + * + * *
      * Output only . The resource ID of the annotation spec that
      * this annotation pertains to. The annotation spec comes from either an
@@ -2795,16 +3396,16 @@ public Builder clearAnnotationSpecId() {
      * 
* * string annotation_spec_id = 1; + * * @param value The bytes for annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecId_ = value; onChanged(); return this; @@ -2812,6 +3413,8 @@ public Builder setAnnotationSpecIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -2822,13 +3425,13 @@ public Builder setAnnotationSpecIdBytes(
      * 
* * string display_name = 5; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2837,6 +3440,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -2847,15 +3452,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2863,6 +3467,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -2873,20 +3479,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 5; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -2897,15 +3505,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 5; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -2916,23 +3527,23 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 5; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2942,12 +3553,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.AnnotationPayload) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.AnnotationPayload) private static final com.google.cloud.automl.v1beta1.AnnotationPayload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.AnnotationPayload(); } @@ -2956,16 +3567,16 @@ public static com.google.cloud.automl.v1beta1.AnnotationPayload getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationPayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationPayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationPayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2980,6 +3591,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.AnnotationPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java index 70c9c1eae..f22edd3d4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/annotation_payload.proto package com.google.cloud.automl.v1beta1; -public interface AnnotationPayloadOrBuilder extends +public interface AnnotationPayloadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.AnnotationPayload) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; + * * @return Whether the translation field is set. */ boolean hasTranslation(); /** + * + * *
    * Annotation details for translation.
    * 
* * .google.cloud.automl.v1beta1.TranslationAnnotation translation = 2; + * * @return The translation. */ com.google.cloud.automl.v1beta1.TranslationAnnotation getTranslation(); /** + * + * *
    * Annotation details for translation.
    * 
@@ -35,135 +59,189 @@ public interface AnnotationPayloadOrBuilder extends com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder getTranslationOrBuilder(); /** + * + * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; + * * @return Whether the classification field is set. */ boolean hasClassification(); /** + * + * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; + * * @return The classification. */ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassification(); /** + * + * *
    * Annotation details for content or image classification.
    * 
* * .google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder + getClassificationOrBuilder(); /** + * + * *
    * Annotation details for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + * * @return Whether the imageObjectDetection field is set. */ boolean hasImageObjectDetection(); /** + * + * *
    * Annotation details for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + * * @return The imageObjectDetection. */ com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation getImageObjectDetection(); /** + * + * *
    * Annotation details for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder(); + 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; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + * * @return Whether the videoClassification field is set. */ boolean hasVideoClassification(); /** + * + * *
    * Annotation details for video classification.
    * Returned for Video Classification predictions.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + * * @return The videoClassification. */ - com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation getVideoClassification(); + 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; + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * */ - com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotationOrBuilder getVideoClassificationOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotationOrBuilder + getVideoClassificationOrBuilder(); /** + * + * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * + * * @return Whether the videoObjectTracking field is set. */ boolean hasVideoObjectTracking(); /** + * + * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * + * * @return The videoObjectTracking. */ com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getVideoObjectTracking(); /** + * + * *
    * Annotation details for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * .google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation video_object_tracking = 8; + * */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingOrBuilder(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder + getVideoObjectTrackingOrBuilder(); /** + * + * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + * * @return Whether the textExtraction field is set. */ boolean hasTextExtraction(); /** + * + * *
    * Annotation details for text extraction.
    * 
* * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + * * @return The textExtraction. */ com.google.cloud.automl.v1beta1.TextExtractionAnnotation getTextExtraction(); /** + * + * *
    * Annotation details for text extraction.
    * 
@@ -173,51 +251,68 @@ public interface AnnotationPayloadOrBuilder extends com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder(); /** + * + * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + * * @return Whether the textSentiment field is set. */ boolean hasTextSentiment(); /** + * + * *
    * Annotation details for text sentiment.
    * 
* * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + * * @return The textSentiment. */ 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(); + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder + getTextSentimentOrBuilder(); /** + * + * *
    * Annotation details for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + * * @return Whether the tables field is set. */ boolean hasTables(); /** + * + * *
    * Annotation details for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + * * @return The tables. */ com.google.cloud.automl.v1beta1.TablesAnnotation getTables(); /** + * + * *
    * Annotation details for Tables.
    * 
@@ -227,6 +322,8 @@ public interface AnnotationPayloadOrBuilder extends com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuilder(); /** + * + * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -234,10 +331,13 @@ public interface AnnotationPayloadOrBuilder extends
    * 
* * string annotation_spec_id = 1; + * * @return The annotationSpecId. */ java.lang.String getAnnotationSpecId(); /** + * + * *
    * Output only . The resource ID of the annotation spec that
    * this annotation pertains to. The annotation spec comes from either an
@@ -245,12 +345,14 @@ public interface AnnotationPayloadOrBuilder extends
    * 
* * string annotation_spec_id = 1; + * * @return The bytes for annotationSpecId. */ - com.google.protobuf.ByteString - getAnnotationSpecIdBytes(); + com.google.protobuf.ByteString getAnnotationSpecIdBytes(); /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -261,10 +363,13 @@ public interface AnnotationPayloadOrBuilder extends
    * 
* * string display_name = 5; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
@@ -275,10 +380,10 @@ public interface AnnotationPayloadOrBuilder extends
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); public com.google.cloud.automl.v1beta1.AnnotationPayload.DetailCase getDetailCase(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java new file mode 100644 index 000000000..28ba9778c --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java @@ -0,0 +1,120 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/annotation_payload.proto + +package com.google.cloud.automl.v1beta1; + +public final class AnnotationPayloadOuterClass { + private AnnotationPayloadOuterClass() {} + + 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_AnnotationPayload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/automl/v1beta1/annotation" + + "_payload.proto\022\033google.cloud.automl.v1be" + + "ta1\0320google/cloud/automl/v1beta1/classif" + + "ication.proto\032+google/cloud/automl/v1bet" + + "a1/detection.proto\032(google/cloud/automl/" + + "v1beta1/tables.proto\0321google/cloud/autom" + + "l/v1beta1/text_extraction.proto\0320google/" + + "cloud/automl/v1beta1/text_sentiment.prot" + + "o\032-google/cloud/automl/v1beta1/translati" + + "on.proto\032\031google/protobuf/any.proto\032\034goo" + + "gle/api/annotations.proto\"\346\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\022[\n\025video_" + + "object_tracking\030\010 \001(\0132:.google.cloud.aut" + + "oml.v1beta1.VideoObjectTrackingAnnotatio" + + "nH\000\022P\n\017text_extraction\030\006 \001(\01325.google.cl" + + "oud.automl.v1beta1.TextExtractionAnnotat" + + "ionH\000\022N\n\016text_sentiment\030\007 \001(\01324.google.c" + + "loud.automl.v1beta1.TextSentimentAnnotat" + + "ionH\000\022?\n\006tables\030\n \001(\0132-.google.cloud.aut" + + "oml.v1beta1.TablesAnnotationH\000\022\032\n\022annota" + + "tion_spec_id\030\001 \001(\t\022\024\n\014display_name\030\005 \001(\t" + + "B\010\n\006detailB\245\001\n\037com.google.cloud.automl.v" + + "1beta1P\001ZAgoogle.golang.org/genproto/goo" + + "gleapis/cloud/automl/v1beta1;automl\312\002\033Go" + + "ogle\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Clou" + + "d::AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + 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(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor, + new java.lang.String[] { + "Translation", + "Classification", + "ImageObjectDetection", + "VideoClassification", + "VideoObjectTracking", + "TextExtraction", + "TextSentiment", + "Tables", + "AnnotationSpecId", + "DisplayName", + "Detail", + }); + 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(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java index 2242b8881..96c46d347 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/annotation_spec.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * A definition of an annotation spec.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.AnnotationSpec} */ -public final class AnnotationSpec extends - com.google.protobuf.GeneratedMessageV3 implements +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; + 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_ = ""; @@ -26,16 +44,15 @@ private AnnotationSpec() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotationSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotationSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,64 @@ private AnnotationSpec( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 72: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - exampleCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + displayName_ = s; + break; + } + case 72: + { + exampleCount_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.AnnotationSpec.class, com.google.cloud.automl.v1beta1.AnnotationSpec.Builder.class); + 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:
@@ -113,6 +136,7 @@ private AnnotationSpec(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -121,14 +145,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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:
@@ -136,16 +161,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -156,12 +180,15 @@ public java.lang.String getName() { 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -170,30 +197,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -204,12 +231,15 @@ public java.lang.String getDisplayName() { 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; + * * @return The exampleCount. */ @java.lang.Override @@ -218,6 +248,7 @@ public int getExampleCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -256,8 +286,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (exampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, exampleCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, exampleCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,19 +296,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; } @@ -302,118 +329,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A definition of an annotation spec.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.AnnotationSpec} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.AnnotationSpec.class, com.google.cloud.automl.v1beta1.AnnotationSpec.Builder.class); + com.google.cloud.automl.v1beta1.AnnotationSpec.class, + com.google.cloud.automl.v1beta1.AnnotationSpec.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.AnnotationSpec.newBuilder() @@ -421,16 +457,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; } @java.lang.Override @@ -465,7 +500,8 @@ public com.google.cloud.automl.v1beta1.AnnotationSpec build() { @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); + com.google.cloud.automl.v1beta1.AnnotationSpec result = + new com.google.cloud.automl.v1beta1.AnnotationSpec(this); result.name_ = name_; result.displayName_ = displayName_; result.exampleCount_ = exampleCount_; @@ -477,38 +513,39 @@ public com.google.cloud.automl.v1beta1.AnnotationSpec buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.AnnotationSpec) other); } else { super.mergeFrom(other); return this; @@ -559,6 +596,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -566,13 +605,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -581,6 +620,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -588,15 +629,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -604,6 +644,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -611,20 +653,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -632,15 +676,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the annotation spec.
      * Form:
@@ -648,16 +695,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -665,19 +712,21 @@ public Builder setNameBytes( 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -686,21 +735,22 @@ public 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -708,70 +758,80 @@ public 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ 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 must match the regexp `[a-zA-Z0-9_]+`.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int exampleCount_ ; + private int exampleCount_; /** + * + * *
      * Output only. The number of examples in the parent dataset
      * labeled by the annotation spec.
      * 
* * int32 example_count = 9; + * * @return The exampleCount. */ @java.lang.Override @@ -779,39 +839,45 @@ public int getExampleCount() { return exampleCount_; } /** + * + * *
      * Output only. The number of examples in the parent dataset
      * labeled by the annotation spec.
      * 
* * int32 example_count = 9; + * * @param value The exampleCount to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -821,12 +887,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -835,16 +901,16 @@ 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); - } - }; + 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; @@ -859,6 +925,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.AnnotationSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java index c68f39581..439b1e004 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/annotation_spec.proto package com.google.cloud.automl.v1beta1; -public interface AnnotationSpecOrBuilder extends +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:
@@ -15,10 +33,13 @@ public interface AnnotationSpecOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the annotation spec.
    * Form:
@@ -26,40 +47,48 @@ public interface AnnotationSpecOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; + * * @return The displayName. */ 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 must match the regexp `[a-zA-Z0-9_]+`.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The number of examples in the parent dataset
    * labeled by the annotation spec.
    * 
* * int32 example_count = 9; + * * @return The exampleCount. */ int getExampleCount(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java new file mode 100644 index 000000000..ff959130e --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOuterClass.java @@ -0,0 +1,83 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/annotation_spec.proto + +package com.google.cloud.automl.v1beta1; + +public final class AnnotationSpecOuterClass { + private AnnotationSpecOuterClass() {} + + 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_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; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/automl/v1beta1/annotation" + + "_spec.proto\022\033google.cloud.automl.v1beta1" + + "\032\031google/api/resource.proto\032\034google/api/" + + "annotations.proto\"\326\001\n\016AnnotationSpec\022\014\n\004" + + "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\025\n\rexam" + + "ple_count\030\t \001(\005:\210\001\352A\204\001\n$automl.googleapi" + + "s.com/AnnotationSpec\022\\projects/{project}" + + "/locations/{location}/datasets/{dataset}" + + "/annotationSpecs/{annotation_spec}B\245\001\n\037c" + + "om.google.cloud.automl.v1beta1P\001ZAgoogle" + + ".golang.org/genproto/googleapis/cloud/au" + + "toml/v1beta1;automl\312\002\033Google\\Cloud\\AutoM" + + "l\\V1beta1\352\002\036Google::Cloud::AutoML::V1bet" + + "a1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + 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.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java index fe718839c..8ed24969e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use ArrayStats.newBuilder() to construct. private ArrayStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ArrayStats() { - } + + private ArrayStats() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ArrayStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ArrayStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,68 @@ private ArrayStats( case 0: done = true; break; - case 18: { - com.google.cloud.automl.v1beta1.DataStats.Builder subBuilder = null; - if (memberStats_ != null) { - subBuilder = memberStats_.toBuilder(); + 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; } - 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; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; + * * @return Whether the memberStats field is set. */ @java.lang.Override @@ -113,19 +137,26 @@ 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; + * * @return The memberStats. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DataStats getMemberStats() { - return memberStats_ == null ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() : memberStats_; + 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.
@@ -139,6 +170,7 @@ public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getMemberStatsOrBuilde
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -150,8 +182,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (memberStats_ != null) {
       output.writeMessage(2, getMemberStats());
     }
@@ -165,8 +196,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (memberStats_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getMemberStats());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMemberStats());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -176,17 +206,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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;
+    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 (!getMemberStats().equals(other.getMemberStats())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -208,118 +238,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom(
-      java.nio.ByteBuffer data)
+  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)
+      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)
+      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);
+    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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ArrayStats.class, + com.google.cloud.automl.v1beta1.ArrayStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ArrayStats.newBuilder() @@ -327,16 +366,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +388,9 @@ public Builder clear() { } @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; + 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 @@ -371,7 +409,8 @@ public com.google.cloud.automl.v1beta1.ArrayStats build() { @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); + com.google.cloud.automl.v1beta1.ArrayStats result = + new com.google.cloud.automl.v1beta1.ArrayStats(this); if (memberStatsBuilder_ == null) { result.memberStats_ = memberStats_; } else { @@ -385,38 +424,39 @@ public com.google.cloud.automl.v1beta1.ArrayStats buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ArrayStats) other); } else { super.mergeFrom(other); return this; @@ -459,36 +499,49 @@ public Builder mergeFrom( 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_; + 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; + * * @return Whether the memberStats field is set. */ 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; + * * @return The memberStats. */ public com.google.cloud.automl.v1beta1.DataStats getMemberStats() { if (memberStatsBuilder_ == null) { - return memberStats_ == null ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() : memberStats_; + 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.
@@ -510,6 +563,8 @@ public Builder setMemberStats(com.google.cloud.automl.v1beta1.DataStats 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.
@@ -529,6 +584,8 @@ public Builder setMemberStats(
       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.
@@ -540,7 +597,9 @@ 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();
+              com.google.cloud.automl.v1beta1.DataStats.newBuilder(memberStats_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           memberStats_ = value;
         }
@@ -552,6 +611,8 @@ public Builder mergeMemberStats(com.google.cloud.automl.v1beta1.DataStats 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.
@@ -571,6 +632,8 @@ public Builder clearMemberStats() {
       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.
@@ -579,11 +642,13 @@ public Builder clearMemberStats() {
      * .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.
@@ -595,11 +660,14 @@ public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getMemberStatsOrBuilde
       if (memberStatsBuilder_ != null) {
         return memberStatsBuilder_.getMessageOrBuilder();
       } else {
-        return memberStats_ == null ?
-            com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() : memberStats_;
+        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.
@@ -608,21 +676,24 @@ public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getMemberStatsOrBuilde
      * .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> 
+            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());
+        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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -632,12 +703,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -646,16 +717,16 @@ 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);
-    }
-  };
+  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;
@@ -670,6 +741,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.ArrayStats getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java
similarity index 66%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java
index 84e5aefa6..62b72935c 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+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; + * * @return Whether the memberStats field is set. */ 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; + * * @return The memberStats. */ 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.
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java
new file mode 100644
index 000000000..2a6ca3947
--- /dev/null
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java
@@ -0,0 +1,689 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1beta1/service.proto
+
+package com.google.cloud.automl.v1beta1;
+
+public final class AutoMlProto {
+  private AutoMlProto() {}
+
+  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_CreateDatasetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      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
+      internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      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
+      internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      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
+      internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_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/service.pr"
+          + "oto\022\033google.cloud.automl.v1beta1\032\034google"
+          + "/api/annotations.proto\032\027google/api/clien"
+          + "t.proto\032\037google/api/field_behavior.proto"
+          + "\032\031google/api/resource.proto\0324google/clou"
+          + "d/automl/v1beta1/annotation_payload.prot"
+          + "o\0321google/cloud/automl/v1beta1/annotatio"
+          + "n_spec.proto\032-google/cloud/automl/v1beta"
+          + "1/column_spec.proto\032)google/cloud/automl"
+          + "/v1beta1/dataset.proto\032\'google/cloud/aut"
+          + "oml/v1beta1/image.proto\032$google/cloud/au"
+          + "toml/v1beta1/io.proto\032\'google/cloud/auto"
+          + "ml/v1beta1/model.proto\0322google/cloud/aut"
+          + "oml/v1beta1/model_evaluation.proto\032,goog"
+          + "le/cloud/automl/v1beta1/operations.proto"
+          + "\032,google/cloud/automl/v1beta1/table_spec"
+          + ".proto\032#google/longrunning/operations.pr"
+          + "oto\032 google/protobuf/field_mask.proto\"\215\001"
+          + "\n\024CreateDatasetRequest\0229\n\006parent\030\001 \001(\tB)"
+          + "\340A\002\372A#\n!locations.googleapis.com/Locatio"
+          + "n\022:\n\007dataset\030\002 \001(\0132$.google.cloud.automl"
+          + ".v1beta1.DatasetB\003\340A\002\"H\n\021GetDatasetReque"
+          + "st\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googlea"
+          + "pis.com/Dataset\"\207\001\n\023ListDatasetsRequest\022"
+          + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl"
+          + "eapis.com/Location\022\016\n\006filter\030\003 \001(\t\022\021\n\tpa"
+          + "ge_size\030\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"g\n\024Lis"
+          + "tDatasetsResponse\0226\n\010datasets\030\001 \003(\0132$.go"
+          + "ogle.cloud.automl.v1beta1.Dataset\022\027\n\017nex"
+          + "t_page_token\030\002 \001(\t\"\203\001\n\024UpdateDatasetRequ"
+          + "est\022:\n\007dataset\030\001 \001(\0132$.google.cloud.auto"
+          + "ml.v1beta1.DatasetB\003\340A\002\022/\n\013update_mask\030\002"
+          + " \001(\0132\032.google.protobuf.FieldMask\"K\n\024Dele"
+          + "teDatasetRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035"
+          + "automl.googleapis.com/Dataset\"\215\001\n\021Import"
+          + "DataRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035autom"
+          + "l.googleapis.com/Dataset\022C\n\014input_config"
+          + "\030\003 \001(\0132(.google.cloud.automl.v1beta1.Inp"
+          + "utConfigB\003\340A\002\"\217\001\n\021ExportDataRequest\0223\n\004n"
+          + "ame\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleapis.com"
+          + "/Dataset\022E\n\routput_config\030\003 \001(\0132).google"
+          + ".cloud.automl.v1beta1.OutputConfigB\003\340A\002\""
+          + "V\n\030GetAnnotationSpecRequest\022:\n\004name\030\001 \001("
+          + "\tB,\340A\002\372A&\n$automl.googleapis.com/Annotat"
+          + "ionSpec\"|\n\023GetTableSpecRequest\0225\n\004name\030\001"
+          + " \001(\tB\'\340A\002\372A!\n\037automl.googleapis.com/Tabl"
+          + "eSpec\022.\n\nfield_mask\030\002 \001(\0132\032.google.proto"
+          + "buf.FieldMask\"\265\001\n\025ListTableSpecsRequest\022"
+          + "5\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleap"
+          + "is.com/Dataset\022.\n\nfield_mask\030\002 \001(\0132\032.goo"
+          + "gle.protobuf.FieldMask\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\"n\n"
+          + "\026ListTableSpecsResponse\022;\n\013table_specs\030\001"
+          + " \003(\0132&.google.cloud.automl.v1beta1.Table"
+          + "Spec\022\027\n\017next_page_token\030\002 \001(\t\"\212\001\n\026Update"
+          + "TableSpecRequest\022?\n\ntable_spec\030\001 \001(\0132&.g"
+          + "oogle.cloud.automl.v1beta1.TableSpecB\003\340A"
+          + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf"
+          + ".FieldMask\"~\n\024GetColumnSpecRequest\0226\n\004na"
+          + "me\030\001 \001(\tB(\340A\002\372A\"\n automl.googleapis.com/"
+          + "ColumnSpec\022.\n\nfield_mask\030\002 \001(\0132\032.google."
+          + "protobuf.FieldMask\"\270\001\n\026ListColumnSpecsRe"
+          + "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037automl.go"
+          + "ogleapis.com/TableSpec\022.\n\nfield_mask\030\002 \001"
+          + "(\0132\032.google.protobuf.FieldMask\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\"q\n\027ListColumnSpecsResponse\022=\n\014colu"
+          + "mn_specs\030\001 \003(\0132\'.google.cloud.automl.v1b"
+          + "eta1.ColumnSpec\022\027\n\017next_page_token\030\002 \001(\t"
+          + "\"\215\001\n\027UpdateColumnSpecRequest\022A\n\013column_s"
+          + "pec\030\001 \001(\0132\'.google.cloud.automl.v1beta1."
+          + "ColumnSpecB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g"
+          + "oogle.protobuf.FieldMask\"\207\001\n\022CreateModel"
+          + "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locatio"
+          + "ns.googleapis.com/Location\0226\n\005model\030\004 \001("
+          + "\0132\".google.cloud.automl.v1beta1.ModelB\003\340"
+          + "A\002\"D\n\017GetModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002"
+          + "\372A\035\n\033automl.googleapis.com/Model\"\205\001\n\021Lis"
+          + "tModelsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!"
+          + "locations.googleapis.com/Location\022\016\n\006fil"
+          + "ter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_tok"
+          + "en\030\006 \001(\t\"`\n\022ListModelsResponse\0221\n\005model\030"
+          + "\001 \003(\0132\".google.cloud.automl.v1beta1.Mode"
+          + "l\022\027\n\017next_page_token\030\002 \001(\t\"G\n\022DeleteMode"
+          + "lRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.g"
+          + "oogleapis.com/Model\"\357\002\n\022DeployModelReque"
+          + "st\022\204\001\n0image_object_detection_model_depl"
+          + "oyment_metadata\030\002 \001(\0132H.google.cloud.aut"
+          + "oml.v1beta1.ImageObjectDetectionModelDep"
+          + "loymentMetadataH\000\022\201\001\n.image_classificati"
+          + "on_model_deployment_metadata\030\004 \001(\0132G.goo"
+          + "gle.cloud.automl.v1beta1.ImageClassifica"
+          + "tionModelDeploymentMetadataH\000\0221\n\004name\030\001 "
+          + "\001(\tB#\340A\002\372A\035\n\033automl.googleapis.com/Model"
+          + "B\033\n\031model_deployment_metadata\"I\n\024Undeplo"
+          + "yModelRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033aut"
+          + "oml.googleapis.com/Model\"\231\001\n\022ExportModel"
+          + "Request\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.go"
+          + "ogleapis.com/Model\022P\n\routput_config\030\003 \001("
+          + "\01324.google.cloud.automl.v1beta1.ModelExp"
+          + "ortOutputConfigB\003\340A\002\"\261\001\n\036ExportEvaluated"
+          + "ExamplesRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033a"
+          + "utoml.googleapis.com/Model\022\\\n\routput_con"
+          + "fig\030\003 \001(\0132@.google.cloud.automl.v1beta1."
+          + "ExportEvaluatedExamplesOutputConfigB\003\340A\002"
+          + "\"X\n\031GetModelEvaluationRequest\022;\n\004name\030\001 "
+          + "\001(\tB-\340A\002\372A\'\n%automl.googleapis.com/Model"
+          + "Evaluation\"\211\001\n\033ListModelEvaluationsReque"
+          + "st\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googl"
+          + "eapis.com/Model\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\034ListMo"
+          + "delEvaluationsResponse\022F\n\020model_evaluati"
+          + "on\030\001 \003(\0132,.google.cloud.automl.v1beta1.M"
+          + "odelEvaluation\022\027\n\017next_page_token\030\002 \001(\t2"
+          + "\355\'\n\006AutoMl\022\275\001\n\rCreateDataset\0221.google.cl"
+          + "oud.automl.v1beta1.CreateDatasetRequest\032"
+          + "$.google.cloud.automl.v1beta1.Dataset\"S\202"
+          + "\323\344\223\002<\"1/v1beta1/{parent=projects/*/locat"
+          + "ions/*}/datasets:\007dataset\332A\016parent,datas"
+          + "et\022\244\001\n\nGetDataset\022..google.cloud.automl."
+          + "v1beta1.GetDatasetRequest\032$.google.cloud"
+          + ".automl.v1beta1.Dataset\"@\202\323\344\223\0023\0221/v1beta"
+          + "1/{name=projects/*/locations/*/datasets/"
+          + "*}\332A\004name\022\267\001\n\014ListDatasets\0220.google.clou"
+          + "d.automl.v1beta1.ListDatasetsRequest\0321.g"
+          + "oogle.cloud.automl.v1beta1.ListDatasetsR"
+          + "esponse\"B\202\323\344\223\0023\0221/v1beta1/{parent=projec"
+          + "ts/*/locations/*}/datasets\332A\006parent\022\276\001\n\r"
+          + "UpdateDataset\0221.google.cloud.automl.v1be"
+          + "ta1.UpdateDatasetRequest\032$.google.cloud."
+          + "automl.v1beta1.Dataset\"T\202\323\344\223\002D29/v1beta1"
+          + "/{dataset.name=projects/*/locations/*/da"
+          + "tasets/*}:\007dataset\332A\007dataset\022\320\001\n\rDeleteD"
+          + "ataset\0221.google.cloud.automl.v1beta1.Del"
+          + "eteDatasetRequest\032\035.google.longrunning.O"
+          + "peration\"m\202\323\344\223\0023*1/v1beta1/{name=project"
+          + "s/*/locations/*/datasets/*}\332A\004name\312A*\n\025g"
+          + "oogle.protobuf.Empty\022\021OperationMetadata\022"
+          + "\346\001\n\nImportData\022..google.cloud.automl.v1b"
+          + "eta1.ImportDataRequest\032\035.google.longrunn"
+          + "ing.Operation\"\210\001\202\323\344\223\002A\"/v1beta1/{n"
+          + "ame=projects/*/locations/*/datasets/*/ta"
+          + "bleSpecs/*}\332A\004name\022\312\001\n\016ListTableSpecs\0222."
+          + "google.cloud.automl.v1beta1.ListTableSpe"
+          + "csRequest\0323.google.cloud.automl.v1beta1."
+          + "ListTableSpecsResponse\"O\202\323\344\223\002@\022>/v1beta1"
+          + "/{parent=projects/*/locations/*/datasets"
+          + "/*}/tableSpecs\332A\006parent\022\332\001\n\017UpdateTableS"
+          + "pec\0223.google.cloud.automl.v1beta1.Update"
+          + "TableSpecRequest\032&.google.cloud.automl.v"
+          + "1beta1.TableSpec\"j\202\323\344\223\002W2I/v1beta1/{tabl"
+          + "e_spec.name=projects/*/locations/*/datas"
+          + "ets/*/tableSpecs/*}:\ntable_spec\332A\ntable_"
+          + "spec\022\310\001\n\rGetColumnSpec\0221.google.cloud.au"
+          + "toml.v1beta1.GetColumnSpecRequest\032\'.goog"
+          + "le.cloud.automl.v1beta1.ColumnSpec\"[\202\323\344\223"
+          + "\002N\022L/v1beta1/{name=projects/*/locations/"
+          + "*/datasets/*/tableSpecs/*/columnSpecs/*}"
+          + "\332A\004name\022\333\001\n\017ListColumnSpecs\0223.google.clo"
+          + "ud.automl.v1beta1.ListColumnSpecsRequest"
+          + "\0324.google.cloud.automl.v1beta1.ListColum"
+          + "nSpecsResponse\"]\202\323\344\223\002N\022L/v1beta1/{parent"
+          + "=projects/*/locations/*/datasets/*/table"
+          + "Specs/*}/columnSpecs\332A\006parent\022\356\001\n\020Update"
+          + "ColumnSpec\0224.google.cloud.automl.v1beta1"
+          + ".UpdateColumnSpecRequest\032\'.google.cloud."
+          + "automl.v1beta1.ColumnSpec\"{\202\323\344\223\002g2X/v1be"
+          + "ta1/{column_spec.name=projects/*/locatio"
+          + "ns/*/datasets/*/tableSpecs/*/columnSpecs"
+          + "/*}:\013column_spec\332A\013column_spec\022\311\001\n\013Creat"
+          + "eModel\022/.google.cloud.automl.v1beta1.Cre"
+          + "ateModelRequest\032\035.google.longrunning.Ope"
+          + "ration\"j\202\323\344\223\0028\"//v1beta1/{parent=project"
+          + "s/*/locations/*}/models:\005model\332A\014parent,"
+          + "model\312A\032\n\005Model\022\021OperationMetadata\022\234\001\n\010G"
+          + "etModel\022,.google.cloud.automl.v1beta1.Ge"
+          + "tModelRequest\032\".google.cloud.automl.v1be"
+          + "ta1.Model\">\202\323\344\223\0021\022//v1beta1/{name=projec"
+          + "ts/*/locations/*/models/*}\332A\004name\022\257\001\n\nLi"
+          + "stModels\022..google.cloud.automl.v1beta1.L"
+          + "istModelsRequest\032/.google.cloud.automl.v"
+          + "1beta1.ListModelsResponse\"@\202\323\344\223\0021\022//v1be"
+          + "ta1/{parent=projects/*/locations/*}/mode"
+          + "ls\332A\006parent\022\312\001\n\013DeleteModel\022/.google.clo"
+          + "ud.automl.v1beta1.DeleteModelRequest\032\035.g"
+          + "oogle.longrunning.Operation\"k\202\323\344\223\0021*//v1"
+          + "beta1/{name=projects/*/locations/*/model"
+          + "s/*}\332A\004name\312A*\n\025google.protobuf.Empty\022\021O"
+          + "perationMetadata\022\324\001\n\013DeployModel\022/.googl"
+          + "e.cloud.automl.v1beta1.DeployModelReques"
+          + "t\032\035.google.longrunning.Operation\"u\202\323\344\223\002;"
+          + "\"6/v1beta1/{name=projects/*/locations/*/"
+          + "models/*}:deploy:\001*\332A\004name\312A*\n\025google.pr"
+          + "otobuf.Empty\022\021OperationMetadata\022\332\001\n\rUnde"
+          + "ployModel\0221.google.cloud.automl.v1beta1."
+          + "UndeployModelRequest\032\035.google.longrunnin"
+          + "g.Operation\"w\202\323\344\223\002=\"8/v1beta1/{name=proj"
+          + "ects/*/locations/*/models/*}:undeploy:\001*"
+          + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera"
+          + "tionMetadata\022\343\001\n\013ExportModel\022/.google.cl"
+          + "oud.automl.v1beta1.ExportModelRequest\032\035."
+          + "google.longrunning.Operation\"\203\001\202\323\344\223\002;\"6/"
+          + "v1beta1/{name=projects/*/locations/*/mod"
+          + "els/*}:export:\001*\332A\022name,output_config\312A*"
+          + "\n\025google.protobuf.Empty\022\021OperationMetada"
+          + "ta\022\214\002\n\027ExportEvaluatedExamples\022;.google."
+          + "cloud.automl.v1beta1.ExportEvaluatedExam"
+          + "plesRequest\032\035.google.longrunning.Operati"
+          + "on\"\224\001\202\323\344\223\002L\"G/v1beta1/{name=projects/*/l"
+          + "ocations/*/models/*}:exportEvaluatedExam"
+          + "ples:\001*\332A\022name,output_config\312A*\n\025google."
+          + "protobuf.Empty\022\021OperationMetadata\022\315\001\n\022Ge"
+          + "tModelEvaluation\0226.google.cloud.automl.v"
+          + "1beta1.GetModelEvaluationRequest\032,.googl"
+          + "e.cloud.automl.v1beta1.ModelEvaluation\"Q"
+          + "\202\323\344\223\002D\022B/v1beta1/{name=projects/*/locati"
+          + "ons/*/models/*/modelEvaluations/*}\332A\004nam"
+          + "e\022\340\001\n\024ListModelEvaluations\0228.google.clou"
+          + "d.automl.v1beta1.ListModelEvaluationsReq"
+          + "uest\0329.google.cloud.automl.v1beta1.ListM"
+          + "odelEvaluationsResponse\"S\202\323\344\223\002D\022B/v1beta"
+          + "1/{parent=projects/*/locations/*/models/"
+          + "*}/modelEvaluations\332A\006parent\032I\312A\025automl."
+          + "googleapis.com\322A.https://www.googleapis."
+          + "com/auth/cloud-platformB\262\001\n\037com.google.c"
+          + "loud.automl.v1beta1B\013AutoMlProtoP\001ZAgoog"
+          + "le.golang.org/genproto/googleapis/cloud/"
+          + "automl/v1beta1;automl\312\002\033Google\\Cloud\\Aut"
+          + "oMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1b"
+          + "eta1b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor(),
+              com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.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(),
+            });
+    internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Dataset",
+            });
+    internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Filter", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor,
+            new java.lang.String[] {
+              "Datasets", "NextPageToken",
+            });
+    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,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor =
+        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,
+            new java.lang.String[] {
+              "Name", "InputConfig",
+            });
+    internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor =
+        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(17);
+    internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Model",
+            });
+    internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor =
+        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,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor =
+        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,
+            new java.lang.String[] {
+              "Parent", "Filter", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor =
+        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,
+            new java.lang.String[] {
+              "Model", "NextPageToken",
+            });
+    internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor =
+        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,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor =
+        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[] {
+              "ImageObjectDetectionModelDeploymentMetadata",
+              "ImageClassificationModelDeploymentMetadata",
+              "Name",
+              "ModelDeploymentMetadata",
+            });
+    internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor =
+        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(26);
+    internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor =
+        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,
+            new java.lang.String[] {
+              "Parent", "Filter", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor =
+        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,
+            new java.lang.String[] {
+              "ModelEvaluation", "NextPageToken",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    registry.add(com.google.longrunning.OperationsProto.operationInfo);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor();
+    com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.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();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java
similarity index 80%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java
index 02ddc883c..5f2b25df2 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
@@ -200,30 +217,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictInputConfig}
  */
-public final class BatchPredictInputConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  private static final long serialVersionUID = 0L;
   // Use BatchPredictInputConfig.newBuilder() to construct.
   private BatchPredictInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchPredictInputConfig() {
-  }
+
+  private BatchPredictInputConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchPredictInputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchPredictInputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -242,75 +258,84 @@ private BatchPredictInputConfig(
           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();
+          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;
             }
-            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();
+          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;
             }
-            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();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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;
+
+  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
+    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);
+            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,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_SOURCE(1),
     BIGQUERY_SOURCE(2),
     SOURCE_NOT_SET(0);
     private final int value;
+
     private SourceCase(int value) {
       this.value = value;
     }
@@ -326,30 +351,36 @@ public static SourceCase valueOf(int 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;
+        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 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; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -357,21 +388,26 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override 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) source_; } return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * 
@@ -381,18 +417,21 @@ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { @java.lang.Override 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) 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; + * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -400,21 +439,26 @@ public boolean hasBigquerySource() { return sourceCase_ == 2; } /** + * + * *
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + * * @return The bigquerySource. */ @java.lang.Override 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) source_; } return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); } /** + * + * *
    * The BigQuery location for the input content.
    * 
@@ -424,12 +468,13 @@ public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { @java.lang.Override 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) source_; } return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -441,8 +486,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -459,12 +503,14 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.automl.v1beta1.GcsSource) source_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1beta1.BigQuerySource) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -474,22 +520,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 2: - if (!getBigquerySource() - .equals(other.getBigquerySource())) return false; + if (!getBigquerySource().equals(other.getBigquerySource())) return false; break; case 0: default: @@ -523,96 +568,104 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.BatchPredictInputConfig prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -809,21 +862,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictInputConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.BatchPredictInputConfig.class,
+              com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder()
@@ -831,16 +886,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -850,9 +904,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -871,7 +925,8 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.BatchPredictInputConfig result =
+          new com.google.cloud.automl.v1beta1.BatchPredictInputConfig(this);
       if (sourceCase_ == 1) {
         if (gcsSourceBuilder_ == null) {
           result.source_ = source_;
@@ -895,38 +950,39 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictInputConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -934,19 +990,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictInputConfig other) {
-      if (other == com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance()) return this;
+      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;
-        }
+        case GCS_SOURCE:
+          {
+            mergeGcsSource(other.getGcsSource());
+            break;
+          }
+        case BIGQUERY_SOURCE:
+          {
+            mergeBigquerySource(other.getBigquerySource());
+            break;
+          }
+        case SOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -967,7 +1027,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictInputConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1beta1.BatchPredictInputConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -976,12 +1037,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-    public SourceCase
-        getSourceCase() {
-      return SourceCase.forNumber(
-          sourceCase_);
+
+    public SourceCase getSourceCase() {
+      return SourceCase.forNumber(sourceCase_);
     }
 
     public Builder clearSource() {
@@ -991,15 +1052,20 @@ public Builder clearSource() {
       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_;
+            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; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1007,11 +1073,14 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -1029,6 +1098,8 @@ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { } } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1049,14 +1120,15 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) { 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) { + public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1067,6 +1139,8 @@ public Builder setGcsSource( return this; } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1075,10 +1149,13 @@ public Builder setGcsSource( */ 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(); + 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; } @@ -1093,6 +1170,8 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) { return this; } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1116,6 +1195,8 @@ public Builder clearGcsSource() { return this; } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1126,6 +1207,8 @@ public com.google.cloud.automl.v1beta1.GcsSource.Builder getGcsSourceBuilder() { return getGcsSourceFieldBuilder().getBuilder(); } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1144,6 +1227,8 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder( } } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * 
@@ -1151,32 +1236,44 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder( * .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> + 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>( + 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();; + 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_; + 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; + * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -1184,11 +1281,14 @@ public boolean hasBigquerySource() { return sourceCase_ == 2; } /** + * + * *
      * The BigQuery location for the input content.
      * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + * * @return The bigquerySource. */ @java.lang.Override @@ -1206,6 +1306,8 @@ public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { } } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1226,6 +1328,8 @@ public Builder setBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySource return this; } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1244,6 +1348,8 @@ public Builder setBigquerySource( return this; } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1252,10 +1358,13 @@ public Builder setBigquerySource( */ 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(); + 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; } @@ -1270,6 +1379,8 @@ public Builder mergeBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySourc return this; } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1293,6 +1404,8 @@ public Builder clearBigquerySource() { return this; } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1303,6 +1416,8 @@ public com.google.cloud.automl.v1beta1.BigQuerySource.Builder getBigquerySourceB return getBigquerySourceFieldBuilder().getBuilder(); } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1321,6 +1436,8 @@ public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySource } } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1328,26 +1445,32 @@ public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySource * .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> + 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>( + 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();; + onChanged(); + ; return bigquerySourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1357,12 +1480,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1371,16 +1494,16 @@ public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig getDefault 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); - } - }; + 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; @@ -1395,6 +1518,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java index 8a747a326..3ef53c40c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location for the input content.
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.automl.v1beta1.GcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location for the input content.
    * 
@@ -35,24 +59,32 @@ public interface BatchPredictInputConfigOrBuilder extends com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** + * + * *
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + * * @return Whether the bigquerySource field is set. */ boolean hasBigquerySource(); /** + * + * *
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + * * @return The bigquerySource. */ com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource(); /** + * + * *
    * The BigQuery location for the input content.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java index 4c545479a..3a3e3bc25 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use BatchPredictOperationMetadata.newBuilder() to construct. private BatchPredictOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchPredictOperationMetadata() { - } + + private BatchPredictOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchPredictOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchPredictOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,167 +68,201 @@ private BatchPredictOperationMetadata( 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(); - } + 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; } + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.class, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder.class); } - public interface BatchPredictOutputInfoOrBuilder extends + 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; + * * @return Whether the gcsOutputDirectory field is set. */ boolean hasGcsOutputDirectory(); /** + * + * *
      * The full path of the Google Cloud Storage directory created, into which
      * the prediction output is written.
      * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ 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; + * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString - getGcsOutputDirectoryBytes(); + 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; + * * @return Whether the bigqueryOutputDataset field is set. */ boolean hasBigqueryOutputDataset(); /** + * + * *
      * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
      * format, into which the prediction output is written.
      * 
* * string bigquery_output_dataset = 2; + * * @return The bigqueryOutputDataset. */ 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; + * * @return The bytes for bigqueryOutputDataset. */ - com.google.protobuf.ByteString - getBigqueryOutputDatasetBytes(); + com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.OutputLocationCase getOutputLocationCase(); + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .OutputLocationCase + getOutputLocationCase(); } /** + * + * *
    * Further describes this batch predict's output.
    * Supplements
    * [BatchPredictOutputConfig][google.cloud.automl.v1beta1.BatchPredictOutputConfig].
    * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo} + * Protobuf type {@code + * google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo} */ - public static final class BatchPredictOutputInfo extends - com.google.protobuf.GeneratedMessageV3 implements + 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; + private static final long serialVersionUID = 0L; // Use BatchPredictOutputInfo.newBuilder() to construct. private BatchPredictOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchPredictOutputInfo() { - } + + private BatchPredictOutputInfo() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchPredictOutputInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchPredictOutputInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -231,59 +281,68 @@ private BatchPredictOutputInfo( 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; + 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; } - 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); + 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; + + 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 + 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); + 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, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_OUTPUT_DIRECTORY(1), BIGQUERY_OUTPUT_DATASET(2), OUTPUTLOCATION_NOT_SET(0); private final int value; + private OutputLocationCase(int value) { this.value = value; } @@ -299,43 +358,52 @@ public static OutputLocationCase valueOf(int 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; + 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 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; + * * @return Whether the gcsOutputDirectory field is set. */ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** + * + * *
      * The full path of the Google Cloud Storage directory created, into which
      * the prediction output is written.
      * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ public java.lang.String getGcsOutputDirectory() { @@ -346,8 +414,7 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -356,24 +423,25 @@ public 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; + * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -385,24 +453,30 @@ public java.lang.String getGcsOutputDirectory() { 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; + * * @return Whether the bigqueryOutputDataset field is set. */ public boolean hasBigqueryOutputDataset() { return outputLocationCase_ == 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; + * * @return The bigqueryOutputDataset. */ public java.lang.String getBigqueryOutputDataset() { @@ -413,8 +487,7 @@ public java.lang.String getBigqueryOutputDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 2) { outputLocation_ = s; @@ -423,24 +496,25 @@ public 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; + * * @return The bytes for bigqueryOutputDataset. */ - public com.google.protobuf.ByteString - getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 2) { outputLocation_ = b; } @@ -451,6 +525,7 @@ public java.lang.String getBigqueryOutputDataset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -462,8 +537,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputLocationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocation_); } @@ -493,22 +567,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo)) { + 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; + 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; + if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; break; case 2: - if (!getBigqueryOutputDataset() - .equals(other.getBigqueryOutputDataset())) return false; + if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false; break; case 0: default: @@ -541,88 +617,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + + 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 { + + 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 { + + 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 { + + 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 { + + 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) 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 + 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) 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 + 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) 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); + + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -632,46 +734,55 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further describes this batch predict's output.
      * Supplements
      * [BatchPredictOutputConfig][google.cloud.automl.v1beta1.BatchPredictOutputConfig].
      * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo} + * Protobuf type {@code + * google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -681,19 +792,23 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + build() { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -701,8 +816,12 @@ public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredic } @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); + 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_; } @@ -718,62 +837,76 @@ public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredic public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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; - } + 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(); @@ -790,11 +923,14 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -803,12 +939,12 @@ public Builder mergeFrom( } return this; } + private int outputLocationCase_ = 0; private java.lang.Object outputLocation_; - public OutputLocationCase - getOutputLocationCase() { - return OutputLocationCase.forNumber( - outputLocationCase_); + + public OutputLocationCase getOutputLocationCase() { + return OutputLocationCase.forNumber(outputLocationCase_); } public Builder clearOutputLocation() { @@ -818,14 +954,16 @@ public Builder clearOutputLocation() { return this; } - /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; + * * @return Whether the gcsOutputDirectory field is set. */ @java.lang.Override @@ -833,12 +971,15 @@ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -848,8 +989,7 @@ public java.lang.String getGcsOutputDirectory() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -860,25 +1000,26 @@ public 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; + * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -888,32 +1029,37 @@ public 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; + * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory( - java.lang.String value) { + public Builder setGcsOutputDirectory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 1; + 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; + * * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { @@ -925,21 +1071,23 @@ public Builder clearGcsOutputDirectory() { return this; } /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the prediction output is written.
        * 
* * string gcs_output_directory = 1; + * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputLocationCase_ = 1; outputLocation_ = value; onChanged(); @@ -947,12 +1095,15 @@ public Builder setGcsOutputDirectoryBytes( } /** + * + * *
        * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
        * format, into which the prediction output is written.
        * 
* * string bigquery_output_dataset = 2; + * * @return Whether the bigqueryOutputDataset field is set. */ @java.lang.Override @@ -960,12 +1111,15 @@ public boolean hasBigqueryOutputDataset() { return outputLocationCase_ == 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; + * * @return The bigqueryOutputDataset. */ @java.lang.Override @@ -975,8 +1129,7 @@ public java.lang.String getBigqueryOutputDataset() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 2) { outputLocation_ = s; @@ -987,25 +1140,26 @@ public 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; + * * @return The bytes for bigqueryOutputDataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 2) { outputLocation_ = b; } @@ -1015,32 +1169,37 @@ public 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; + * * @param value The bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDataset( - java.lang.String value) { + public Builder setBigqueryOutputDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 2; + 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; + * * @return This builder for chaining. */ public Builder clearBigqueryOutputDataset() { @@ -1052,26 +1211,29 @@ public Builder clearBigqueryOutputDataset() { 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; + * * @param value The bytes for bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { @@ -1084,30 +1246,36 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo(); } - public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo getDefaultInstance() { + 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); - } - }; + 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; @@ -1119,21 +1287,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo getDefaultInstanceForType() { + 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; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1141,19 +1312,26 @@ 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; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; + 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.
@@ -1162,18 +1340,25 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig()
    * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder() {
+  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_;
+  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; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -1181,30 +1366,46 @@ 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; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo getOutputInfo() { - return outputInfo_ == null ? com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance() : outputInfo_; + 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; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder getOutputInfoOrBuilder() { + 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; @@ -1216,8 +1417,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -1234,12 +1434,10 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1249,22 +1447,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getInputConfig().equals(other.getInputConfig())) return false; } if (hasOutputInfo() != other.hasOutputInfo()) return false; if (hasOutputInfo()) { - if (!getOutputInfo() - .equals(other.getOutputInfo())) return false; + if (!getOutputInfo().equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1291,117 +1488,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.class, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.newBuilder() @@ -1409,16 +1616,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1438,13 +1644,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); } @@ -1459,7 +1666,8 @@ public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata result = + new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata(this); if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; } else { @@ -1478,38 +1686,39 @@ public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1517,7 +1726,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance()) + return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -1543,7 +1754,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1555,36 +1768,49 @@ public Builder mergeFrom( 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_; + 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; + * * @return Whether the inputConfig field is set. */ 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; + * * @return The inputConfig. */ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; + 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.
@@ -1606,6 +1832,8 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInputC
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1625,6 +1853,8 @@ public Builder setInputConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1636,7 +1866,9 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInpu
       if (inputConfigBuilder_ == null) {
         if (inputConfig_ != null) {
           inputConfig_ =
-            com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder(inputConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           inputConfig_ = value;
         }
@@ -1648,6 +1880,8 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInpu
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1667,6 +1901,8 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The input config that was given upon starting this
      * batch predict operation.
@@ -1675,11 +1911,13 @@ public Builder clearInputConfig() {
      * .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.
@@ -1687,15 +1925,19 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder getInputC
      *
      * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1;
      */
-    public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder() {
+    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_;
+        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.
@@ -1704,56 +1946,85 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder getInput
      * .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> 
+            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());
+        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.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_;
+            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; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ 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; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return The outputInfo. */ - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo getOutputInfo() { + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null ? com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.getDefaultInstance() : outputInfo_; + 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; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ - public Builder setOutputInfo(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1767,14 +2038,19 @@ public Builder setOutputInfo(com.google.cloud.automl.v1beta1.BatchPredictOperati return this; } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder builderForValue) { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder + builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1785,17 +2061,26 @@ public Builder setOutputInfo( return this; } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ - public Builder mergeOutputInfo(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo value) { + 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(); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); } else { outputInfo_ = value; } @@ -1807,11 +2092,15 @@ public Builder mergeOutputInfo(com.google.cloud.automl.v1beta1.BatchPredictOpera return this; } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1825,55 +2114,81 @@ public Builder clearOutputInfo() { return this; } /** + * + * *
      * Output only. Information further describing this batch predict's output.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder getOutputInfoBuilder() { - + 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; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder getOutputInfoOrBuilder() { + 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_; + 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; + * + * .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> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1883,12 +2198,13 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata(); } @@ -1897,16 +2213,16 @@ public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getD 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); - } - }; + 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; @@ -1921,6 +2237,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java index a1977cde6..659f54779 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
    * 
* * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig(); /** + * + * *
    * Output only. The input config that was given upon starting this
    * batch predict operation.
@@ -38,29 +62,45 @@ public interface BatchPredictOperationMetadataOrBuilder extends
   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; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ boolean hasOutputInfo(); /** + * + * *
    * Output only. Information further describing this batch predict's output.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + * * @return The outputInfo. */ - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo getOutputInfo(); + 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; + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * */ - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder getOutputInfoOrBuilder(); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder + getOutputInfoOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java similarity index 83% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java index ebc63879a..2d5b98c02 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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
@@ -250,30 +267,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOutputConfig}
  */
-public final class BatchPredictOutputConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  private static final long serialVersionUID = 0L;
   // Use BatchPredictOutputConfig.newBuilder() to construct.
   private BatchPredictOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchPredictOutputConfig() {
-  }
+
+  private BatchPredictOutputConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchPredictOutputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchPredictOutputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -292,75 +308,89 @@ private BatchPredictOutputConfig(
           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();
+          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;
             }
-            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();
+          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;
             }
-            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();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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;
+
+  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
+    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);
+            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,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_DESTINATION(1),
     BIGQUERY_DESTINATION(2),
     DESTINATION_NOT_SET(0);
     private final int value;
+
     private DestinationCase(int value) {
       this.value = value;
     }
@@ -376,31 +406,37 @@ public static DestinationCase valueOf(int 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;
+        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 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; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -408,22 +444,27 @@ 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; + * * @return The gcsDestination. */ @java.lang.Override 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) 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.
@@ -434,18 +475,21 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   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) 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; + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -453,21 +497,26 @@ 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; + * * @return The bigqueryDestination. */ @java.lang.Override 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } /** + * + * *
    * The BigQuery location where the output is to be written to.
    * 
@@ -475,14 +524,16 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -494,8 +545,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -512,12 +562,14 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -527,22 +579,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 2: - if (!getBigqueryDestination() - .equals(other.getBigqueryDestination())) return false; + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; break; case 0: default: @@ -576,96 +627,104 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.BatchPredictOutputConfig prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Output configuration for BatchPredict Action.
    * As destination the
@@ -912,21 +971,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOutputConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.class,
+              com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.newBuilder()
@@ -934,16 +995,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -953,9 +1013,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -974,7 +1034,8 @@ public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.BatchPredictOutputConfig result =
+          new com.google.cloud.automl.v1beta1.BatchPredictOutputConfig(this);
       if (destinationCase_ == 1) {
         if (gcsDestinationBuilder_ == null) {
           result.destination_ = destination_;
@@ -998,38 +1059,39 @@ public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictOutputConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1037,19 +1099,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictOutputConfig other) {
-      if (other == com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance()) return this;
+      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;
-        }
+        case GCS_DESTINATION:
+          {
+            mergeGcsDestination(other.getGcsDestination());
+            break;
+          }
+        case BIGQUERY_DESTINATION:
+          {
+            mergeBigqueryDestination(other.getBigqueryDestination());
+            break;
+          }
+        case DESTINATION_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1070,7 +1136,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictOutputConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1beta1.BatchPredictOutputConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1079,12 +1146,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-    public DestinationCase
-        getDestinationCase() {
-      return DestinationCase.forNumber(
-          destinationCase_);
+
+    public DestinationCase getDestinationCase() {
+      return DestinationCase.forNumber(destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -1094,16 +1161,21 @@ public Builder clearDestination() {
       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_;
+            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; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -1111,12 +1183,15 @@ 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; + * * @return The gcsDestination. */ @java.lang.Override @@ -1134,6 +1209,8 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { } } /** + * + * *
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1155,6 +1232,8 @@ public Builder setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1174,6 +1253,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1183,10 +1264,14 @@ public Builder setGcsDestination(
      */
     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();
+        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;
         }
@@ -1201,6 +1286,8 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestinatio
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1225,6 +1312,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1236,6 +1325,8 @@ public com.google.cloud.automl.v1beta1.GcsDestination.Builder getGcsDestinationB
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1255,6 +1346,8 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the directory where the output is to
      * be written to.
@@ -1263,32 +1356,44 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
      * .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> 
+            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>(
+        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();;
+      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_;
+            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; + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -1296,11 +1401,14 @@ 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; + * * @return The bigqueryDestination. */ @java.lang.Override @@ -1318,13 +1426,16 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio } } /** + * + * *
      * 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) { + public Builder setBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1338,6 +1449,8 @@ public Builder setBigqueryDestination(com.google.cloud.automl.v1beta1.BigQueryDe return this; } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1356,18 +1469,25 @@ public Builder setBigqueryDestination( 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) { + 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(); + 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; } @@ -1382,6 +1502,8 @@ public Builder mergeBigqueryDestination(com.google.cloud.automl.v1beta1.BigQuery return this; } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1405,16 +1527,21 @@ public Builder clearBigqueryDestination() { 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() { + public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { return getBigqueryDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1422,7 +1549,8 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder getBigqueryDe * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { return bigqueryDestinationBuilder_.getMessageOrBuilder(); } else { @@ -1433,6 +1561,8 @@ public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryD } } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1440,26 +1570,32 @@ public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryD * .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> + 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>( + 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();; + onChanged(); + ; return bigqueryDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1469,12 +1605,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1483,16 +1619,16 @@ public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getDefaul 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); - } - }; + 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; @@ -1507,6 +1643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java index 0b995a15f..5d0e5537a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return Whether the gcsDestination field is set. */ 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; + * * @return The gcsDestination. */ com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination(); /** + * + * *
    * The Google Cloud Storage location of the directory where the output is to
    * be written to.
@@ -38,24 +62,32 @@ public interface BatchPredictOutputConfigOrBuilder extends
   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; + * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** + * + * *
    * The BigQuery location where the output is to be written to.
    * 
* * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + * * @return The bigqueryDestination. */ com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination(); /** + * + * *
    * The BigQuery location where the output is to be written to.
    * 
@@ -64,5 +96,6 @@ public interface BatchPredictOutputConfigOrBuilder extends */ com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); - public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.DestinationCase getDestinationCase(); + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.DestinationCase + getDestinationCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java similarity index 78% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java index 986800673..ccf1fdefd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchPredictRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchPredictRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,103 +71,118 @@ private BatchPredictRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + 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(); + name_ = s; + break; } - inputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.BatchPredictInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + 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; } - - break; - } - case 34: { - com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + 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; } - outputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.BatchPredictRequest.class, + com.google.cloud.automl.v1beta1.BatchPredictRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -159,29 +191,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -192,11 +226,16 @@ public java.lang.String getName() { 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -204,38 +243,55 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. The input configuration for batch prediction.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder() { + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -243,50 +299,61 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance() : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder() { + 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< - java.lang.String, java.lang.String> 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, - ""); + 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< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -295,6 +362,8 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -358,22 +427,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
-
   @java.lang.Override
-  public boolean containsParams(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsParams(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetParams().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getParams() {
     return getParamsMap();
   }
   /**
+   *
+   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -438,11 +507,12 @@ public java.util.Map getParams() {
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
   @java.lang.Override
-
   public java.util.Map getParamsMap() {
     return internalGetParams().getMap();
   }
   /**
+   *
+   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -507,16 +577,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
   @java.lang.Override
-
-  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();
+  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;
   }
   /**
+   *
+   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -581,12 +651,11 @@ public java.lang.String getParamsOrDefault(
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
   @java.lang.Override
-
-  public java.lang.String getParamsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetParams().getMap();
+  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();
     }
@@ -594,6 +663,7 @@ public java.lang.String getParamsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -605,8 +675,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -616,12 +685,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (outputConfig_ != null) {
       output.writeMessage(4, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetParams(),
-        ParamsDefaultEntryHolder.defaultEntry,
-        5);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 5);
     unknownFields.writeTo(output);
   }
 
@@ -635,22 +700,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (inputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getInputConfig());
+      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 += 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;
@@ -660,27 +723,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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;
+    com.google.cloud.automl.v1beta1.BatchPredictRequest other =
+        (com.google.cloud.automl.v1beta1.BatchPredictRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasInputConfig() != other.hasInputConfig()) return false;
     if (hasInputConfig()) {
-      if (!getInputConfig()
-          .equals(other.getInputConfig())) return false;
+      if (!getInputConfig().equals(other.getInputConfig())) return false;
     }
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig()
-          .equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetParams().equals(
-        other.internalGetParams())) return false;
+    if (!internalGetParams().equals(other.internalGetParams())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -712,139 +772,146 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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)
+      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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.BatchPredictRequest.class, + com.google.cloud.automl.v1beta1.BatchPredictRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.BatchPredictRequest.newBuilder() @@ -852,16 +919,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -884,9 +950,9 @@ public Builder clear() { } @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; + 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 @@ -905,7 +971,8 @@ public com.google.cloud.automl.v1beta1.BatchPredictRequest build() { @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); + com.google.cloud.automl.v1beta1.BatchPredictRequest result = + new com.google.cloud.automl.v1beta1.BatchPredictRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (inputConfigBuilder_ == null) { @@ -928,38 +995,39 @@ public com.google.cloud.automl.v1beta1.BatchPredictRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictRequest) other); } else { super.mergeFrom(other); return this; @@ -967,7 +1035,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictRequest other) { - if (other == com.google.cloud.automl.v1beta1.BatchPredictRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.BatchPredictRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -978,8 +1047,7 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictRequest oth if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableParams().mergeFrom( - other.internalGetParams()); + internalGetMutableParams().mergeFrom(other.internalGetParams()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -999,7 +1067,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.BatchPredictRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1008,22 +1077,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1032,20 +1106,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1053,54 +1130,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the model requested to serve the batch prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1108,39 +1198,58 @@ public Builder setNameBytes( 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() : inputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInputConfig value) { if (inputConfigBuilder_ == null) { @@ -1156,11 +1265,15 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInputC return this; } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder builderForValue) { @@ -1174,17 +1287,23 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ 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(); + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -1196,11 +1315,15 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInpu return this; } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -1214,48 +1337,65 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. The input configuration for batch prediction.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder() { + 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.BatchPredictInputConfig, com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder, com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder> + 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()); + 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_; @@ -1263,42 +1403,61 @@ public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder getInput 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance() : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.BatchPredictOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1314,12 +1473,16 @@ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.BatchPredictOutpu return this; } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder builderForValue) { @@ -1333,18 +1496,25 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOutputConfig(com.google.cloud.automl.v1beta1.BatchPredictOutputConfig value) { + 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(); + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1356,12 +1526,16 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1beta1.BatchPredictOut return this; } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1375,72 +1549,89 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The Configuration specifying where output predictions should
      * be written.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder getOutputConfigBuilder() { - + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder() { + 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.BatchPredictOutputConfig, com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder, com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder> + 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()); + 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< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } + private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged();; + internalGetMutableParams() { + onChanged(); + ; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1452,6 +1643,8 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1515,22 +1708,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
-
     @java.lang.Override
-    public boolean containsParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsParams(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetParams().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getParamsMap()} instead.
-     */
+    /** Use {@link #getParamsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getParams() {
       return getParamsMap();
     }
     /**
+     *
+     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1595,11 +1788,12 @@ public java.util.Map getParams() {
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
     @java.lang.Override
-
     public java.util.Map getParamsMap() {
       return internalGetParams().getMap();
     }
     /**
+     *
+     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1664,16 +1858,17 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
     @java.lang.Override
-
     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();
+        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;
     }
     /**
+     *
+     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1738,12 +1933,11 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
     @java.lang.Override
-
-    public java.lang.String getParamsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetParams().getMap();
+    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();
       }
@@ -1751,11 +1945,12 @@ public java.lang.String getParamsOrThrow(
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap()
-          .clear();
+      internalGetMutableParams().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1819,23 +2014,21 @@ public Builder clearParams() {
      *
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
-
-    public Builder removeParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableParams().getMutableMap()
-          .remove(key);
+    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.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableParams() {
+    public java.util.Map getMutableParams() {
       return internalGetMutableParams().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1899,16 +2092,19 @@ public Builder removeParams(
      *
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
-    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);
+    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;
     }
     /**
+     *
+     *
      * 
      * Required. Additional domain-specific parameters for the predictions, any string must
      * be up to 25000 characters long.
@@ -1972,16 +2168,13 @@ public Builder putParams(
      *
      * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
      */
-
-    public Builder putAllParams(
-        java.util.Map values) {
-      internalGetMutableParams().getMutableMap()
-          .putAll(values);
+    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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1991,12 +2184,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -2005,16 +2198,16 @@ public static com.google.cloud.automl.v1beta1.BatchPredictRequest getDefaultInst
     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);
-    }
-  };
+  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;
@@ -2029,6 +2222,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.BatchPredictRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java
similarity index 90%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java
index adfcde34b..360898b56 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java
@@ -1,90 +1,145 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+public interface BatchPredictRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BatchPredictRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the model requested to serve the batch prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The input configuration for batch prediction.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. The input configuration for batch prediction.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig(); /** + * + * *
    * Required. The input configuration for batch prediction.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. The Configuration specifying where output predictions should
    * be written.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -150,6 +205,8 @@ public interface BatchPredictRequestOrBuilder extends
    */
   int getParamsCount();
   /**
+   *
+   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -213,15 +270,13 @@ public interface BatchPredictRequestOrBuilder extends
    *
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
-  boolean containsParams(
-      java.lang.String key);
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  boolean containsParams(java.lang.String key);
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getParams();
+  java.util.Map getParams();
   /**
+   *
+   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -285,9 +340,10 @@ boolean containsParams(
    *
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
-  java.util.Map
-  getParamsMap();
+  java.util.Map getParamsMap();
   /**
+   *
+   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -351,11 +407,10 @@ boolean containsParams(
    *
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
-
-  java.lang.String getParamsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Required. Additional domain-specific parameters for the predictions, any string must
    * be up to 25000 characters long.
@@ -419,7 +474,5 @@ java.lang.String getParamsOrDefault(
    *
    * map<string, string> params = 5 [(.google.api.field_behavior) = REQUIRED];
    */
-
-  java.lang.String getParamsOrThrow(
-      java.lang.String key);
+  java.lang.String getParamsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java
similarity index 65%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java
index 69fd83c0e..d8deb83a9 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1beta1/prediction_service.proto
 
 package com.google.cloud.automl.v1beta1;
 
 /**
+ *
+ *
  * 
  * Result of the Batch Predict. This message is returned in
  * [response][google.longrunning.Operation.response] of the operation returned
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictResult}
  */
-public final class BatchPredictResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  private static final long serialVersionUID = 0L;
   // Use BatchPredictResult.newBuilder() to construct.
   private BatchPredictResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchPredictResult() {
-  }
+
+  private BatchPredictResult() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchPredictResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchPredictResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,82 +71,84 @@ private BatchPredictResult(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              metadata_ = com.google.protobuf.MapField.newMapField(
-                  MetadataDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                metadata_ =
+                    com.google.protobuf.MapField.newMapField(
+                        MetadataDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry metadata__ =
+                  input.readMessage(
+                      MetadataDefaultEntryHolder.defaultEntry.getParserForType(),
+                      extensionRegistry);
+              metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue());
+              break;
             }
-            com.google.protobuf.MapEntry
-            metadata__ = input.readMessage(
-                MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            metadata_.getMutableMap().put(
-                metadata__.getKey(), metadata__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1beta1.PredictionServiceProto
+        .internal_static_google_cloud_automl_v1beta1_BatchPredictResult_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 1:
         return internalGetMetadata();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        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_BatchPredictResult_fieldAccessorTable
+    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);
+            com.google.cloud.automl.v1beta1.BatchPredictResult.class,
+            com.google.cloud.automl.v1beta1.BatchPredictResult.Builder.class);
   }
 
   public static final int METADATA_FIELD_NUMBER = 1;
+
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
-  }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> metadata_;
-  private com.google.protobuf.MapField
-  internalGetMetadata() {
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.automl.v1beta1.PredictionServiceProto
+                .internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
+  }
+
+  private com.google.protobuf.MapField metadata_;
+
+  private com.google.protobuf.MapField internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
@@ -139,6 +157,8 @@ public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -151,22 +171,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 1;
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -180,11 +200,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -198,16 +219,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -221,12 +243,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 1;
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -234,6 +255,7 @@ public java.lang.String getMetadataOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -245,14 +267,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetMetadata(),
-        MetadataDefaultEntryHolder.defaultEntry,
-        1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 1);
     unknownFields.writeTo(output);
   }
 
@@ -262,15 +279,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, metadata__);
+    for (java.util.Map.Entry entry :
+        internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry metadata__ =
+          MetadataDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metadata__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -280,15 +297,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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;
+    com.google.cloud.automl.v1beta1.BatchPredictResult other =
+        (com.google.cloud.automl.v1beta1.BatchPredictResult) obj;
 
-    if (!internalGetMetadata().equals(
-        other.internalGetMetadata())) return false;
+    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -310,96 +327,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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)
+      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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Result of the Batch Predict. This message is returned in
    * [response][google.longrunning.Operation.response] of the operation returned
@@ -408,43 +432,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictResult}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1beta1.PredictionServiceProto
+          .internal_static_google_cloud_automl_v1beta1_BatchPredictResult_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetMetadata();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 1:
           return internalGetMutableMetadata();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          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_BatchPredictResult_fieldAccessorTable
+      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);
+              com.google.cloud.automl.v1beta1.BatchPredictResult.class,
+              com.google.cloud.automl.v1beta1.BatchPredictResult.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.BatchPredictResult.newBuilder()
@@ -452,16 +476,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -470,9 +493,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -491,7 +514,8 @@ public com.google.cloud.automl.v1beta1.BatchPredictResult build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.BatchPredictResult result =
+          new com.google.cloud.automl.v1beta1.BatchPredictResult(this);
       int from_bitField0_ = bitField0_;
       result.metadata_ = internalGetMetadata();
       result.metadata_.makeImmutable();
@@ -503,38 +527,39 @@ public com.google.cloud.automl.v1beta1.BatchPredictResult buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -542,9 +567,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictResult other) {
-      if (other == com.google.cloud.automl.v1beta1.BatchPredictResult.getDefaultInstance()) return this;
-      internalGetMutableMetadata().mergeFrom(
-          other.internalGetMetadata());
+      if (other == com.google.cloud.automl.v1beta1.BatchPredictResult.getDefaultInstance())
+        return this;
+      internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -564,7 +589,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1beta1.BatchPredictResult) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1beta1.BatchPredictResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -573,24 +599,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> metadata_;
-    private com.google.protobuf.MapField
-    internalGetMetadata() {
+    private com.google.protobuf.MapField metadata_;
+
+    private com.google.protobuf.MapField internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableMetadata() {
-      onChanged();;
+        internalGetMutableMetadata() {
+      onChanged();
+      ;
       if (metadata_ == null) {
-        metadata_ = com.google.protobuf.MapField.newMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ =
+            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -602,6 +629,8 @@ public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -614,22 +643,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 1;
      */
-
     @java.lang.Override
-    public boolean containsMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetadataMap()} instead.
-     */
+    /** Use {@link #getMetadataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -643,11 +672,12 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
-
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -661,16 +691,17 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
-
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -684,12 +715,11 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 1;
      */
     @java.lang.Override
-
-    public java.lang.String getMetadataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+    public java.lang.String getMetadataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -697,11 +727,12 @@ public java.lang.String getMetadataOrThrow(
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap()
-          .clear();
+      internalGetMutableMetadata().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -714,23 +745,21 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 1;
      */
-
-    public Builder removeMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableMetadata().getMutableMap()
-          .remove(key);
+    public Builder removeMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMetadata() {
+    public java.util.Map getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -743,16 +772,19 @@ public Builder removeMetadata(
      *
      * map<string, string> metadata = 1;
      */
-    public Builder putMetadata(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableMetadata().getMutableMap()
-          .put(key, value);
+    public Builder putMetadata(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * *  For Image Object Detection:
@@ -765,16 +797,13 @@ public Builder putMetadata(
      *
      * map<string, string> metadata = 1;
      */
-
-    public Builder putAllMetadata(
-        java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetadata(java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -784,12 +813,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -798,16 +827,16 @@ public static com.google.cloud.automl.v1beta1.BatchPredictResult getDefaultInsta
     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);
-    }
-  };
+  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;
@@ -822,6 +851,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.BatchPredictResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java
index 3e8d23ee9..1ff326dbf 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+public interface BatchPredictResultOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BatchPredictResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -22,6 +40,8 @@ public interface BatchPredictResultOrBuilder extends
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -34,15 +54,13 @@ public interface BatchPredictResultOrBuilder extends
    *
    * map<string, string> metadata = 1;
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -55,9 +73,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 1;
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -70,11 +89,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 1;
    */
-
-  java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * *  For Image Object Detection:
@@ -87,7 +105,5 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 1;
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java
similarity index 69%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java
index 65877eb1d..351b03578 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BigQueryDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private BigQueryDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - outputUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + outputUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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:
@@ -101,6 +123,7 @@ private BigQueryDestination(
    * 
* * string output_uri = 1; + * * @return The outputUri. */ @java.lang.Override @@ -109,14 +132,15 @@ public java.lang.String getOutputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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:
@@ -124,16 +148,15 @@ public java.lang.String getOutputUri() {
    * 
* * string output_uri = 1; + * * @return The bytes for outputUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getOutputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.BigQueryDestination other = + (com.google.cloud.automl.v1beta1.BigQueryDestination) obj; - if (!getOutputUri() - .equals(other.getOutputUri())) return false; + if (!getOutputUri().equals(other.getOutputUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.BigQueryDestination.class, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.BigQueryDestination.newBuilder() @@ -324,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +374,9 @@ public Builder clear() { } @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; + 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 @@ -364,7 +395,8 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination build() { @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); + com.google.cloud.automl.v1beta1.BigQueryDestination result = + new com.google.cloud.automl.v1beta1.BigQueryDestination(this); result.outputUri_ = outputUri_; onBuilt(); return result; @@ -374,38 +406,39 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.BigQueryDestination) other); } else { super.mergeFrom(other); return this; @@ -413,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.BigQueryDestination other) { - if (other == com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance()) + return this; if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; onChanged(); @@ -437,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.BigQueryDestination) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.BigQueryDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,6 +484,8 @@ public Builder mergeFrom( private java.lang.Object outputUri_ = ""; /** + * + * *
      * Required. BigQuery URI to a project, up to 2000 characters long.
      * Accepted forms:
@@ -456,13 +493,13 @@ public Builder mergeFrom(
      * 
* * string output_uri = 1; + * * @return The outputUri. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; @@ -471,6 +508,8 @@ public java.lang.String getOutputUri() { } } /** + * + * *
      * Required. BigQuery URI to a project, up to 2000 characters long.
      * Accepted forms:
@@ -478,15 +517,14 @@ public java.lang.String getOutputUri() {
      * 
* * string output_uri = 1; + * * @return The bytes for outputUri. */ - public com.google.protobuf.ByteString - getOutputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { @@ -494,6 +532,8 @@ public java.lang.String getOutputUri() { } } /** + * + * *
      * Required. BigQuery URI to a project, up to 2000 characters long.
      * Accepted forms:
@@ -501,20 +541,22 @@ public java.lang.String getOutputUri() {
      * 
* * string output_uri = 1; + * * @param value The outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUri( - java.lang.String value) { + public Builder setOutputUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. BigQuery URI to a project, up to 2000 characters long.
      * Accepted forms:
@@ -522,15 +564,18 @@ public Builder setOutputUri(
      * 
* * string output_uri = 1; + * * @return This builder for chaining. */ public Builder clearOutputUri() { - + outputUri_ = getDefaultInstance().getOutputUri(); onChanged(); return this; } /** + * + * *
      * Required. BigQuery URI to a project, up to 2000 characters long.
      * Accepted forms:
@@ -538,23 +583,23 @@ public Builder clearOutputUri() {
      * 
* * string output_uri = 1; + * * @param value The bytes for outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -564,12 +609,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -578,16 +623,16 @@ public static com.google.cloud.automl.v1beta1.BigQueryDestination getDefaultInst 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); - } - }; + 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; @@ -602,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BigQueryDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java similarity index 52% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java index ab5817a60..9f8aadcbe 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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:
@@ -15,10 +33,13 @@ public interface BigQueryDestinationOrBuilder extends
    * 
* * string output_uri = 1; + * * @return The outputUri. */ java.lang.String getOutputUri(); /** + * + * *
    * Required. BigQuery URI to a project, up to 2000 characters long.
    * Accepted forms:
@@ -26,8 +47,8 @@ public interface BigQueryDestinationOrBuilder extends
    * 
* * string output_uri = 1; + * * @return The bytes for outputUri. */ - com.google.protobuf.ByteString - getOutputUriBytes(); + com.google.protobuf.ByteString getOutputUriBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java index e9f821fca..d77a29ffe 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQuerySource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BigQuerySource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private BigQuerySource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - inputUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + inputUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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:
@@ -101,6 +123,7 @@ private BigQuerySource(
    * 
* * string input_uri = 1; + * * @return The inputUri. */ @java.lang.Override @@ -109,14 +132,15 @@ public java.lang.String getInputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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:
@@ -124,16 +148,15 @@ public java.lang.String getInputUri() {
    * 
* * string input_uri = 1; + * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUri_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getInputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.BigQuerySource other = + (com.google.cloud.automl.v1beta1.BigQuerySource) obj; - if (!getInputUri() - .equals(other.getInputUri())) return false; + if (!getInputUri().equals(other.getInputUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.BigQuerySource.class, + com.google.cloud.automl.v1beta1.BigQuerySource.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.BigQuerySource.newBuilder() @@ -324,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +374,9 @@ public Builder clear() { } @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; + 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 @@ -364,7 +395,8 @@ public com.google.cloud.automl.v1beta1.BigQuerySource build() { @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); + com.google.cloud.automl.v1beta1.BigQuerySource result = + new com.google.cloud.automl.v1beta1.BigQuerySource(this); result.inputUri_ = inputUri_; onBuilt(); return result; @@ -374,38 +406,39 @@ public com.google.cloud.automl.v1beta1.BigQuerySource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.BigQuerySource) other); } else { super.mergeFrom(other); return this; @@ -449,6 +482,8 @@ public Builder mergeFrom( private java.lang.Object inputUri_ = ""; /** + * + * *
      * Required. BigQuery URI to a table, up to 2000 characters long.
      * Accepted forms:
@@ -456,13 +491,13 @@ public Builder mergeFrom(
      * 
* * string input_uri = 1; + * * @return The inputUri. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; @@ -471,6 +506,8 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. BigQuery URI to a table, up to 2000 characters long.
      * Accepted forms:
@@ -478,15 +515,14 @@ public java.lang.String getInputUri() {
      * 
* * string input_uri = 1; + * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString - getInputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUri_ = b; return b; } else { @@ -494,6 +530,8 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. BigQuery URI to a table, up to 2000 characters long.
      * Accepted forms:
@@ -501,20 +539,22 @@ public java.lang.String getInputUri() {
      * 
* * string input_uri = 1; + * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri( - java.lang.String value) { + public Builder setInputUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. BigQuery URI to a table, up to 2000 characters long.
      * Accepted forms:
@@ -522,15 +562,18 @@ public Builder setInputUri(
      * 
* * string input_uri = 1; + * * @return This builder for chaining. */ public Builder clearInputUri() { - + inputUri_ = getDefaultInstance().getInputUri(); onChanged(); return this; } /** + * + * *
      * Required. BigQuery URI to a table, up to 2000 characters long.
      * Accepted forms:
@@ -538,23 +581,23 @@ public Builder clearInputUri() {
      * 
* * string input_uri = 1; + * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -564,12 +607,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -578,16 +621,16 @@ 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); - } - }; + 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; @@ -602,6 +645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BigQuerySource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java similarity index 53% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java index 309a1bffc..e8c336291 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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:
@@ -15,10 +33,13 @@ public interface BigQuerySourceOrBuilder extends
    * 
* * string input_uri = 1; + * * @return The inputUri. */ java.lang.String getInputUri(); /** + * + * *
    * Required. BigQuery URI to a table, up to 2000 characters long.
    * Accepted forms:
@@ -26,8 +47,8 @@ public interface BigQuerySourceOrBuilder extends
    * 
* * string input_uri = 1; + * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString - getInputUriBytes(); + com.google.protobuf.ByteString getInputUriBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java index f4e65b728..8d74f7fe3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.BoundingBoxMetricsEntry}
  */
-public final class BoundingBoxMetricsEntry extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BoundingBoxMetricsEntry();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BoundingBoxMetricsEntry(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,135 +72,160 @@ private BoundingBoxMetricsEntry(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            iouThreshold_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            meanAveragePrecision_ = input.readFloat();
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              confidenceMetricsEntries_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 13:
+            {
+              iouThreshold_ = input.readFloat();
+              break;
             }
-            confidenceMetricsEntries_.add(
-                input.readMessage(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 21:
+            {
+              meanAveragePrecision_ = input.readFloat();
+              break;
+            }
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                confidenceMetricsEntries_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry
+                            .ConfidenceMetricsEntry>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              confidenceMetricsEntries_.add(
+                  input.readMessage(
+                      com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+                          .parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
+        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;
+
+  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
+    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);
+            com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.class,
+            com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder.class);
   }
 
-  public interface ConfidenceMetricsEntryOrBuilder extends
+  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; + * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** + * + * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 2; + * * @return The recall. */ float getRecall(); /** + * + * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 3; + * * @return The precision. */ float getPrecision(); /** + * + * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 4; + * * @return The f1Score. */ float getF1Score(); } /** + * + * *
    * Metrics for a single confidence threshold.
    * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} + * Protobuf type {@code + * google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends - com.google.protobuf.GeneratedMessageV3 implements + 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; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfidenceMetricsEntry() { - } + + private ConfidenceMetricsEntry() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -202,66 +244,72 @@ private ConfidenceMetricsEntry( 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; + 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; } - 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); + 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; + + 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 + 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); + 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; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -272,11 +320,14 @@ public float getConfidenceThreshold() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** + * + * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -287,11 +338,14 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** + * + * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 3; + * * @return The precision. */ @java.lang.Override @@ -302,11 +356,14 @@ public float getPrecision() { 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; + * * @return The f1Score. */ @java.lang.Override @@ -315,6 +372,7 @@ public float getF1Score() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,8 +384,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -350,20 +407,16 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, precision_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, f1Score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -373,25 +426,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)) { + 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; + 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; + != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits( - other.getRecall())) return false; + != java.lang.Float.floatToIntBits(other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits( - other.getPrecision())) return false; + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits( - other.getF1Score())) return false; + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -404,104 +456,113 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidenceThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1Score()); + 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 { + 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 { + + 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 { + + 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 { + + 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 { + + 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 { + + 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) 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 + 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) 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 + 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) 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); + + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -511,44 +572,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metrics for a single confidence threshold.
      * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} + * Protobuf type {@code + * google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,19 +633,23 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + build() { + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -584,8 +657,11 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetrics } @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); + 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_; @@ -598,46 +674,56 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetrics public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -665,11 +751,14 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -679,13 +768,16 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_ ; + private float confidenceThreshold_; /** + * + * *
        * Output only. The confidence threshold value used to compute the metrics.
        * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -693,42 +785,51 @@ public float getConfidenceThreshold() { return confidenceThreshold_; } /** + * + * *
        * Output only. The confidence threshold value used to compute the metrics.
        * 
* * float confidence_threshold = 1; + * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private float recall_ ; + private float recall_; /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -736,42 +837,51 @@ public float getRecall() { return recall_; } /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; + * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 2; + * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_ ; + private float precision_; /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; + * * @return The precision. */ @java.lang.Override @@ -779,42 +889,51 @@ public float getPrecision() { return precision_; } /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 3; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float f1Score_ ; + private float f1Score_; /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @return The f1Score. */ @java.lang.Override @@ -822,34 +941,41 @@ public float getF1Score() { return f1Score_; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -862,30 +988,34 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry + .ConfidenceMetricsEntry + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstance() { + 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); - } - }; + 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; @@ -897,21 +1027,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } 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; + * * @return The iouThreshold. */ @java.lang.Override @@ -922,11 +1055,14 @@ public float getIouThreshold() { 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; + * * @return The meanAveragePrecision. */ @java.lang.Override @@ -935,76 +1071,105 @@ public float getMeanAveragePrecision() { } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 3; - private java.util.List confidenceMetricsEntries_; + 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public java.util.List getConfidenceMetricsEntriesList() { + 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public java.util.List + 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { + 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index) { + 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; @@ -1016,8 +1181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (iouThreshold_ != 0F) { output.writeFloat(1, iouThreshold_); } @@ -1037,16 +1201,15 @@ public int getSerializedSize() { size = 0; if (iouThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, iouThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, iouThreshold_); } if (meanAveragePrecision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, meanAveragePrecision_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, confidenceMetricsEntries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1056,21 +1219,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != 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; + != java.lang.Float.floatToIntBits(other.getMeanAveragePrecision())) return false; + if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1083,11 +1245,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IOU_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getIouThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getIouThreshold()); hash = (37 * hash) + MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMeanAveragePrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAveragePrecision()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); @@ -1098,96 +1258,104 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -1195,21 +1363,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.BoundingBoxMetricsEntry}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.class,
+              com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.newBuilder()
@@ -1217,17 +1387,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getConfidenceMetricsEntriesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1245,9 +1415,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -1266,13 +1436,15 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry result =
+          new com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry(this);
       int from_bitField0_ = bitField0_;
       result.iouThreshold_ = iouThreshold_;
       result.meanAveragePrecision_ = meanAveragePrecision_;
       if (confidenceMetricsEntriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
+          confidenceMetricsEntries_ =
+              java.util.Collections.unmodifiableList(confidenceMetricsEntries_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.confidenceMetricsEntries_ = confidenceMetricsEntries_;
@@ -1287,38 +1459,39 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1326,7 +1499,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry other) {
-      if (other == com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance()) return this;
+      if (other == com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance())
+        return this;
       if (other.getIouThreshold() != 0F) {
         setIouThreshold(other.getIouThreshold());
       }
@@ -1351,9 +1525,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry
             confidenceMetricsEntriesBuilder_ = null;
             confidenceMetricsEntries_ = other.confidenceMetricsEntries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            confidenceMetricsEntriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConfidenceMetricsEntriesFieldBuilder() : null;
+            confidenceMetricsEntriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConfidenceMetricsEntriesFieldBuilder()
+                    : null;
           } else {
             confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_);
           }
@@ -1378,7 +1553,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1387,16 +1563,20 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private float iouThreshold_ ;
+    private float iouThreshold_;
     /**
+     *
+     *
      * 
      * Output only. The intersection-over-union threshold value used to compute
      * this metrics entry.
      * 
* * float iou_threshold = 1; + * * @return The iouThreshold. */ @java.lang.Override @@ -1404,44 +1584,53 @@ public float getIouThreshold() { return iouThreshold_; } /** + * + * *
      * Output only. The intersection-over-union threshold value used to compute
      * this metrics entry.
      * 
* * float iou_threshold = 1; + * * @param value The iouThreshold to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearIouThreshold() { - + iouThreshold_ = 0F; onChanged(); return this; } - private float meanAveragePrecision_ ; + private float meanAveragePrecision_; /** + * + * *
      * Output only. The mean average precision, most often close to au_prc.
      * 
* * float mean_average_precision = 2; + * * @return The meanAveragePrecision. */ @java.lang.Override @@ -1449,57 +1638,77 @@ public float getMeanAveragePrecision() { return meanAveragePrecision_; } /** + * + * *
      * Output only. The mean average precision, most often close to au_prc.
      * 
* * float mean_average_precision = 2; + * * @param value The meanAveragePrecision to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearMeanAveragePrecision() { - + meanAveragePrecision_ = 0F; onChanged(); return this; } - private java.util.List confidenceMetricsEntries_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + private void ensureConfidenceMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = new java.util.ArrayList(confidenceMetricsEntries_); + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>( + confidenceMetricsEntries_); bitField0_ |= 0x00000001; - } + } } 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_; + 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public java.util.List getConfidenceMetricsEntriesList() { + public java.util.List< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> + getConfidenceMetricsEntriesList() { if (confidenceMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } else { @@ -1507,13 +1716,17 @@ public java.util.List * 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1523,15 +1736,20 @@ public 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { @@ -1539,16 +1757,21 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetrics } } /** + * + * *
      * 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder setConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1562,16 +1785,22 @@ public Builder setConfidenceMetricsEntries( 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; + * + * 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) { + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); @@ -1582,15 +1811,20 @@ public Builder setConfidenceMetricsEntries( 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntries( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1604,16 +1838,21 @@ public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1beta1.Bound 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1627,16 +1866,21 @@ public Builder addConfidenceMetricsEntries( 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); @@ -1647,16 +1891,22 @@ public Builder addConfidenceMetricsEntries( 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; + * + * 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) { + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); @@ -1667,20 +1917,26 @@ public Builder addConfidenceMetricsEntries( 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addAllConfidenceMetricsEntries( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> + values) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, confidenceMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); onChanged(); } else { confidenceMetricsEntriesBuilder_.addAllMessages(values); @@ -1688,13 +1944,17 @@ public Builder addAllConfidenceMetricsEntries( 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1707,13 +1967,17 @@ public Builder clearConfidenceMetricsEntries() { 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1726,45 +1990,61 @@ public Builder removeConfidenceMetricsEntries(int 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder( - int index) { + 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { if (confidenceMetricsEntriesBuilder_ == null) { - return confidenceMetricsEntries_.get(index); } else { + 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public java.util.List - getConfidenceMetricsEntriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1772,51 +2052,78 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetrics } } /** + * + * *
      * 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; + * + * 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()); + 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; + * + * 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()); + 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public java.util.List - getConfidenceMetricsEntriesBuilderList() { + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -1825,9 +2132,9 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetrics } return confidenceMetricsEntriesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1837,12 +2144,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1851,16 +2158,16 @@ public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getDefault 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); - } - }; + 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; @@ -1875,6 +2182,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java similarity index 54% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java index 96eedd081..b075bb92e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java @@ -1,84 +1,130 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return The iouThreshold. */ float getIouThreshold(); /** + * + * *
    * Output only. The mean average precision, most often close to au_prc.
    * 
* * float mean_average_precision = 2; + * * @return The meanAveragePrecision. */ 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - java.util.List + 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index); + 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; + * + * 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - java.util.List + 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; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index); + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java index d466748ac..cea76b8af 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.BoundingPoly}
  */
-public final class BoundingPoly extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BoundingPoly();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BoundingPoly(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,29 +73,32 @@ private BoundingPoly(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              normalizedVertices_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          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;
             }
-            normalizedVertices_.add(
-                input.readMessage(com.google.cloud.automl.v1beta1.NormalizedVertex.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         normalizedVertices_ = java.util.Collections.unmodifiableList(normalizedVertices_);
@@ -87,22 +107,27 @@ private BoundingPoly(
       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;
+
+  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
+    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);
+            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.
    * 
@@ -110,10 +135,13 @@ private BoundingPoly( * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { return normalizedVertices_; } /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -121,11 +149,13 @@ public java.util.List getNorma * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -137,6 +167,8 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -148,6 +180,8 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex getNormalizedVertices(in return normalizedVertices_.get(index); } /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -161,6 +195,7 @@ public com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVe } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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)); } @@ -187,8 +221,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < normalizedVertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, normalizedVertices_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +232,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.BoundingPoly other = + (com.google.cloud.automl.v1beta1.BoundingPoly) obj; - if (!getNormalizedVerticesList() - .equals(other.getNormalizedVerticesList())) return false; + if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,97 +261,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -326,21 +367,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.BoundingPoly}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.BoundingPoly.class,
+              com.google.cloud.automl.v1beta1.BoundingPoly.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder()
@@ -348,17 +391,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getNormalizedVerticesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,9 +415,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -393,7 +436,8 @@ public com.google.cloud.automl.v1beta1.BoundingPoly build() {
 
     @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);
+      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)) {
@@ -412,38 +456,39 @@ public com.google.cloud.automl.v1beta1.BoundingPoly buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.BoundingPoly) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -470,9 +515,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.BoundingPoly other) {
             normalizedVerticesBuilder_ = null;
             normalizedVertices_ = other.normalizedVertices_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            normalizedVerticesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getNormalizedVerticesFieldBuilder() : null;
+            normalizedVerticesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getNormalizedVerticesFieldBuilder()
+                    : null;
           } else {
             normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_);
           }
@@ -506,28 +552,38 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List normalizedVertices_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureNormalizedVerticesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        normalizedVertices_ = new java.util.ArrayList(normalizedVertices_);
+        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_;
+            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() { + public java.util.List + getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -535,6 +591,8 @@ public java.util.List getNorma } } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -549,6 +607,8 @@ public int getNormalizedVerticesCount() { } } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -563,6 +623,8 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex getNormalizedVertices(in } } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -584,6 +646,8 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -602,6 +666,8 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -622,6 +688,8 @@ public Builder addNormalizedVertices(com.google.cloud.automl.v1beta1.NormalizedV return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -643,6 +711,8 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -661,6 +731,8 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -679,6 +751,8 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -689,8 +763,7 @@ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -698,6 +771,8 @@ public Builder addAllNormalizedVertices( return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -715,6 +790,8 @@ public Builder clearNormalizedVertices() { return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -732,6 +809,8 @@ public Builder removeNormalizedVertices(int index) { return this; } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -743,6 +822,8 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder getNormalizedVer return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -752,19 +833,22 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder getNormalizedVer public com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); } else { + 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() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -772,6 +856,8 @@ public com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVe } } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -779,10 +865,12 @@ public com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVe * 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()); + return getNormalizedVerticesFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * Output only . The bounding polygon normalized vertices.
      * 
@@ -791,26 +879,34 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder addNormalizedVer */ public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance()); + 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() { + 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> + 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>( + 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(), @@ -819,9 +915,9 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder addNormalizedVer } return normalizedVerticesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,12 +927,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -845,16 +941,16 @@ 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); - } - }; + 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; @@ -869,6 +965,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java index 1ec17ed60..d64022c29 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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(); + java.util.List getNormalizedVerticesList(); /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -25,6 +44,8 @@ public interface BoundingPolyOrBuilder extends */ com.google.cloud.automl.v1beta1.NormalizedVertex getNormalizedVertices(int index); /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
@@ -33,15 +54,19 @@ public interface BoundingPolyOrBuilder extends */ int getNormalizedVerticesCount(); /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** + * + * *
    * Output only . The bounding polygon normalized vertices.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java index 33f0e2231..5c9ce32da 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CategoryStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CategoryStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,33 @@ private CategoryStats( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - topCategoryStats_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - topCategoryStats_.add( - input.readMessage(com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { topCategoryStats_ = java.util.Collections.unmodifiableList(topCategoryStats_); @@ -85,85 +106,99 @@ private CategoryStats( 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.CategoryStats.class, + com.google.cloud.automl.v1beta1.CategoryStats.Builder.class); } - public interface SingleCategoryStatsOrBuilder extends + 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; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The CATEGORY value.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
      * The number of occurrences of this value in the series.
      * 
* * int64 count = 2; + * * @return The count. */ 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 + 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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SingleCategoryStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SingleCategoryStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -182,57 +217,63 @@ private SingleCategoryStats( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - count_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + case 16: + { + count_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; + * * @return The value. */ @java.lang.Override @@ -241,29 +282,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -274,11 +315,14 @@ public java.lang.String getValue() { public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** + * + * *
      * The number of occurrences of this value in the series.
      * 
* * int64 count = 2; + * * @return The count. */ @java.lang.Override @@ -287,6 +331,7 @@ public long getCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,8 +343,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -319,8 +363,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -330,17 +373,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getValue().equals(other.getValue())) return false; + if (getCount() != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -355,95 +397,102 @@ public int 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 = (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 { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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 + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -453,44 +502,49 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -502,14 +556,16 @@ public Builder clear() { } @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; + 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(); + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + .getDefaultInstance(); } @java.lang.Override @@ -523,7 +579,8 @@ public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats build() @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); + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats result = + new com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats(this); result.value_ = value_; result.count_ = count_; onBuilt(); @@ -534,46 +591,53 @@ public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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(); @@ -600,7 +664,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,18 +678,20 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** + * + * *
        * The CATEGORY value.
        * 
* * string value = 1; + * * @return The value. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -632,20 +700,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * The CATEGORY value.
        * 
* * string value = 1; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -653,66 +722,76 @@ public java.lang.String getValue() { } } /** + * + * *
        * The CATEGORY value.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The CATEGORY value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The CATEGORY value.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long count_ ; + private long count_; /** + * + * *
        * The number of occurrences of this value in the series.
        * 
* * int64 count = 2; + * * @return The count. */ @java.lang.Override @@ -720,34 +799,41 @@ public long getCount() { return count_; } /** + * + * *
        * The number of occurrences of this value in the series.
        * 
* * int64 count = 2; + * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** + * + * *
        * The number of occurrences of this value in the series.
        * 
* * int64 count = 2; + * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -760,30 +846,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -795,78 +883,103 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getDefaultInstanceForType() { + 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_; + 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ @java.lang.Override - public java.util.List getTopCategoryStatsList() { + 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ @java.lang.Override - public java.util.List + 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ @java.lang.Override 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopCategoryStats(int index) { + 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder getTopCategoryStatsOrBuilder( - int index) { + 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; @@ -878,8 +991,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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)); } @@ -893,8 +1005,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < topCategoryStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, topCategoryStats_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topCategoryStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -904,15 +1015,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.CategoryStats other = + (com.google.cloud.automl.v1beta1.CategoryStats) obj; - if (!getTopCategoryStatsList() - .equals(other.getTopCategoryStatsList())) return false; + if (!getTopCategoryStatsList().equals(other.getTopCategoryStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -933,118 +1044,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.CategoryStats.class, + com.google.cloud.automl.v1beta1.CategoryStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.CategoryStats.newBuilder() @@ -1052,17 +1172,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTopCategoryStatsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1076,9 +1196,9 @@ public Builder clear() { } @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; + 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 @@ -1097,7 +1217,8 @@ public com.google.cloud.automl.v1beta1.CategoryStats build() { @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); + 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)) { @@ -1116,38 +1237,39 @@ public com.google.cloud.automl.v1beta1.CategoryStats buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.CategoryStats) other); } else { super.mergeFrom(other); return this; @@ -1174,9 +1296,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.CategoryStats other) { topCategoryStatsBuilder_ = null; topCategoryStats_ = other.topCategoryStats_; bitField0_ = (bitField0_ & ~0x00000001); - topCategoryStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTopCategoryStatsFieldBuilder() : null; + topCategoryStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTopCategoryStatsFieldBuilder() + : null; } else { topCategoryStatsBuilder_.addAllMessages(other.topCategoryStats_); } @@ -1210,29 +1333,42 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List topCategoryStats_ = - java.util.Collections.emptyList(); + private java.util.List + topCategoryStats_ = java.util.Collections.emptyList(); + private void ensureTopCategoryStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - topCategoryStats_ = new java.util.ArrayList(topCategoryStats_); + 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_; + 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ - public java.util.List getTopCategoryStatsList() { + public java.util.List + getTopCategoryStatsList() { if (topCategoryStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(topCategoryStats_); } else { @@ -1240,12 +1376,16 @@ public java.util.List * 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ public int getTopCategoryStatsCount() { if (topCategoryStatsBuilder_ == null) { @@ -1255,14 +1395,19 @@ public 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopCategoryStats(int index) { + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopCategoryStats( + int index) { if (topCategoryStatsBuilder_ == null) { return topCategoryStats_.get(index); } else { @@ -1270,12 +1415,16 @@ public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopC } } /** + * + * *
      * 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ public Builder setTopCategoryStats( int index, com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { @@ -1292,15 +1441,20 @@ public Builder setTopCategoryStats( 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; + * + * 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) { + int index, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder builderForValue) { if (topCategoryStatsBuilder_ == null) { ensureTopCategoryStatsIsMutable(); topCategoryStats_.set(index, builderForValue.build()); @@ -1311,14 +1465,19 @@ public Builder setTopCategoryStats( 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ - public Builder addTopCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { + public Builder addTopCategoryStats( + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { if (topCategoryStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1332,12 +1491,16 @@ public Builder addTopCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ public Builder addTopCategoryStats( int index, com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { @@ -1354,12 +1517,16 @@ public Builder addTopCategoryStats( 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ public Builder addTopCategoryStats( com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder builderForValue) { @@ -1373,15 +1540,20 @@ public Builder addTopCategoryStats( 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; + * + * 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) { + int index, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder builderForValue) { if (topCategoryStatsBuilder_ == null) { ensureTopCategoryStatsIsMutable(); topCategoryStats_.add(index, builderForValue.build()); @@ -1392,19 +1564,24 @@ public Builder addTopCategoryStats( 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ public Builder addAllTopCategoryStats( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats> + values) { if (topCategoryStatsBuilder_ == null) { ensureTopCategoryStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topCategoryStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topCategoryStats_); onChanged(); } else { topCategoryStatsBuilder_.addAllMessages(values); @@ -1412,12 +1589,16 @@ public Builder addAllTopCategoryStats( 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ public Builder clearTopCategoryStats() { if (topCategoryStatsBuilder_ == null) { @@ -1430,12 +1611,16 @@ public Builder clearTopCategoryStats() { 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ public Builder removeTopCategoryStats(int index) { if (topCategoryStatsBuilder_ == null) { @@ -1448,42 +1633,56 @@ public Builder removeTopCategoryStats(int 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder getTopCategoryStatsBuilder( - int index) { + 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ - public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder getTopCategoryStatsOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder + getTopCategoryStatsOrBuilder(int index) { if (topCategoryStatsBuilder_ == null) { - return topCategoryStats_.get(index); } else { + 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ - public java.util.List - getTopCategoryStatsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder> + getTopCategoryStatsOrBuilderList() { if (topCategoryStatsBuilder_ != null) { return topCategoryStatsBuilder_.getMessageOrBuilderList(); } else { @@ -1491,48 +1690,72 @@ public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilde } } /** + * + * *
      * 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; + * + * 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()); + 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; + * + * 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()); + 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ - public java.util.List - getTopCategoryStatsBuilderList() { + 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> + 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>( + 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(), @@ -1541,9 +1764,9 @@ public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder } return topCategoryStatsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1553,12 +1776,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1567,16 +1790,16 @@ 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); - } - }; + 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; @@ -1591,6 +1814,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.CategoryStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java similarity index 50% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java index 230d16cfd..debb61e75 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java @@ -1,58 +1,95 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ - java.util.List + 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; + * + * 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; + * + * 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ - java.util.List + 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; + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * */ - com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder getTopCategoryStatsOrBuilder( - int index); + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder + getTopCategoryStatsOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java index 870914e59..94244378c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/classification.proto @@ -5,25 +20,25 @@ public final class ClassificationProto { private ClassificationProto() {} - 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 static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } /** + * + * *
    * Type of the classification problem.
    * 
* * Protobuf enum {@code google.cloud.automl.v1beta1.ClassificationType} */ - public enum ClassificationType - implements com.google.protobuf.ProtocolMessageEnum { + public enum ClassificationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * An un-set value of this enum.
      * 
@@ -32,6 +47,8 @@ public enum ClassificationType */ CLASSIFICATION_TYPE_UNSPECIFIED(0), /** + * + * *
      * At most one label is allowed per example.
      * 
@@ -40,6 +57,8 @@ public enum ClassificationType */ MULTICLASS(1), /** + * + * *
      * Multiple labels are allowed for one example.
      * 
@@ -51,6 +70,8 @@ public enum ClassificationType ; /** + * + * *
      * An un-set value of this enum.
      * 
@@ -59,6 +80,8 @@ public enum ClassificationType */ public static final int CLASSIFICATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * At most one label is allowed per example.
      * 
@@ -67,6 +90,8 @@ public enum ClassificationType */ public static final int MULTICLASS_VALUE = 1; /** + * + * *
      * Multiple labels are allowed for one example.
      * 
@@ -75,7 +100,6 @@ public enum ClassificationType */ public static final int MULTILABEL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -100,10 +124,14 @@ public static ClassificationType valueOf(int value) { */ public static ClassificationType forNumber(int value) { switch (value) { - case 0: return CLASSIFICATION_TYPE_UNSPECIFIED; - case 1: return MULTICLASS; - case 2: return MULTILABEL; - default: return null; + case 0: + return CLASSIFICATION_TYPE_UNSPECIFIED; + case 1: + return MULTICLASS; + case 2: + return MULTILABEL; + default: + return null; } } @@ -111,29 +139,31 @@ public static ClassificationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ClassificationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ClassificationType findValueByNumber(int number) { - return ClassificationType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClassificationType findValueByNumber(int number) { + return ClassificationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + 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.ClassificationProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final ClassificationType[] VALUES = values(); @@ -141,8 +171,7 @@ public ClassificationType findValueByNumber(int number) { public static ClassificationType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -159,11 +188,14 @@ private ClassificationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.automl.v1beta1.ClassificationType) } - public interface ClassificationAnnotationOrBuilder extends + public interface ClassificationAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. A confidence estimate between 0.0 and 1.0. A higher value
      * means greater confidence that the annotation is positive. If a user
@@ -173,41 +205,43 @@ public interface ClassificationAnnotationOrBuilder extends
      * 
* * float score = 1; + * * @return The score. */ float getScore(); } /** + * + * *
    * Contains annotation details specific to classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationAnnotation} */ - public static final class ClassificationAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ClassificationAnnotation) ClassificationAnnotationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassificationAnnotation.newBuilder() to construct. private ClassificationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClassificationAnnotation() { - } + + private ClassificationAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClassificationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -226,46 +260,51 @@ private ClassificationAnnotation( case 0: done = true; break; - case 13: { - - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 13: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.class, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.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 that the annotation is positive. If a user
@@ -275,6 +314,7 @@ private ClassificationAnnotation(
      * 
* * float score = 1; + * * @return The score. */ @java.lang.Override @@ -283,6 +323,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (score_ != 0F) { output.writeFloat(1, score_); } @@ -309,8 +349,7 @@ public int getSerializedSize() { size = 0; if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -320,16 +359,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation)) { + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation other = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) obj; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation other = + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) obj; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,95 +383,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + 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.ClassificationAnnotation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + 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.ClassificationAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + 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.ClassificationAnnotation 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.ClassificationAnnotation + 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.ClassificationAnnotation 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.ClassificationAnnotation + 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.ClassificationAnnotation 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.ClassificationAnnotation + 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.ClassificationAnnotation 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.ClassificationAnnotation + 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.ClassificationAnnotation 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.ClassificationAnnotation + 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.ClassificationAnnotation parseFrom( - com.google.protobuf.CodedInputStream 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.ClassificationAnnotation + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -440,44 +493,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Contains annotation details specific to classification.
      * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ClassificationAnnotation) com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.class, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder + .class); } - // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,19 +546,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation build() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation result = buildPartial(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -507,8 +569,10 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotat } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation buildPartial() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation(this); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + buildPartial() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation result = + new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation(this); result.score_ = score_; onBuilt(); return result; @@ -518,46 +582,55 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ClassificationAnnotation) { - return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation)other); + if (other + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation other) { - if (other == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation other) { + if (other + == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance()) return this; if (other.getScore() != 0F) { setScore(other.getScore()); } @@ -576,11 +649,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parsedMessage = null; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -590,8 +666,10 @@ public Builder mergeFrom( return this; } - private float score_ ; + private float score_; /** + * + * *
        * Output only. A confidence estimate between 0.0 and 1.0. A higher value
        * means greater confidence that the annotation is positive. If a user
@@ -601,6 +679,7 @@ public Builder mergeFrom(
        * 
* * float score = 1; + * * @return The score. */ @java.lang.Override @@ -608,6 +687,8 @@ public float getScore() { return score_; } /** + * + * *
        * Output only. A confidence estimate between 0.0 and 1.0. A higher value
        * means greater confidence that the annotation is positive. If a user
@@ -617,16 +698,19 @@ public float getScore() {
        * 
* * float score = 1; + * * @param value The score to set. * @return This builder for chaining. */ 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 that the annotation is positive. If a user
@@ -636,14 +720,16 @@ public Builder setScore(float value) {
        * 
* * float score = 1; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -656,30 +742,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ClassificationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationAnnotation) - private static final com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationAnnotation + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation(); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -691,17 +781,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface VideoClassificationAnnotationOrBuilder extends + public interface VideoClassificationAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. Expresses the type of video classification. Possible values:
      * *  `segment` - Classification done on a specified by user
@@ -726,10 +819,13 @@ public interface VideoClassificationAnnotationOrBuilder extends
      * 
* * string type = 1; + * * @return The type. */ java.lang.String getType(); /** + * + * *
      * Output only. Expresses the type of video classification. Possible values:
      * *  `segment` - Classification done on a specified by user
@@ -754,59 +850,80 @@ public interface VideoClassificationAnnotationOrBuilder extends
      * 
* * string type = 1; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
      * Output only . The classification details of this annotation.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + * * @return Whether the classificationAnnotation field is set. */ boolean hasClassificationAnnotation(); /** + * + * *
      * Output only . The classification details of this annotation.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + * * @return The classificationAnnotation. */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassificationAnnotation(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + getClassificationAnnotation(); /** + * + * *
      * Output only . The classification details of this annotation.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationAnnotationOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder + getClassificationAnnotationOrBuilder(); /** + * + * *
      * Output only . The time segment of the video to which the
      * annotation applies.
      * 
* * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + * * @return Whether the timeSegment field is set. */ boolean hasTimeSegment(); /** + * + * *
      * Output only . The time segment of the video to which the
      * annotation applies.
      * 
* * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + * * @return The timeSegment. */ com.google.cloud.automl.v1beta1.TimeSegment getTimeSegment(); /** + * + * *
      * Output only . The time segment of the video to which the
      * annotation applies.
@@ -817,37 +934,41 @@ public interface VideoClassificationAnnotationOrBuilder extends
     com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Contains annotation details specific to video classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationAnnotation} */ - public static final class VideoClassificationAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class VideoClassificationAnnotation + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoClassificationAnnotation) VideoClassificationAnnotationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VideoClassificationAnnotation.newBuilder() to construct. - private VideoClassificationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private VideoClassificationAnnotation( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VideoClassificationAnnotation() { type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VideoClassificationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VideoClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -866,73 +987,89 @@ private VideoClassificationAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 18: { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder subBuilder = null; - if (classificationAnnotation_ != null) { - subBuilder = classificationAnnotation_.toBuilder(); - } - classificationAnnotation_ = input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(classificationAnnotation_); - classificationAnnotation_ = subBuilder.buildPartial(); + type_ = s; + break; } + case 18: + { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder + subBuilder = null; + if (classificationAnnotation_ != null) { + subBuilder = classificationAnnotation_.toBuilder(); + } + classificationAnnotation_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(classificationAnnotation_); + classificationAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.automl.v1beta1.TimeSegment.Builder subBuilder = null; - if (timeSegment_ != null) { - subBuilder = timeSegment_.toBuilder(); - } - timeSegment_ = input.readMessage(com.google.cloud.automl.v1beta1.TimeSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeSegment_); - timeSegment_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.automl.v1beta1.TimeSegment.Builder subBuilder = null; + if (timeSegment_ != null) { + subBuilder = timeSegment_.toBuilder(); + } + timeSegment_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TimeSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSegment_); + timeSegment_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.ClassificationProto.internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_descriptor; + + 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 + 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); + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .class, + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .Builder.class); } 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
@@ -957,6 +1094,7 @@ private VideoClassificationAnnotation(
      * 
* * string type = 1; + * * @return The type. */ @java.lang.Override @@ -965,14 +1103,15 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -997,16 +1136,15 @@ public java.lang.String getType() {
      * 
* * string type = 1; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1015,13 +1153,18 @@ public java.lang.String getType() { } public static final int CLASSIFICATION_ANNOTATION_FIELD_NUMBER = 2; - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation classificationAnnotation_; + 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; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + * * @return Whether the classificationAnnotation field is set. */ @java.lang.Override @@ -1029,38 +1172,53 @@ public boolean hasClassificationAnnotation() { return classificationAnnotation_ != null; } /** + * + * *
      * Output only . The classification details of this annotation.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + * * @return The classificationAnnotation. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassificationAnnotation() { - return classificationAnnotation_ == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance() : classificationAnnotation_; + 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; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationAnnotationOrBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder + getClassificationAnnotationOrBuilder() { return getClassificationAnnotation(); } 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; + * * @return Whether the timeSegment field is set. */ @java.lang.Override @@ -1068,19 +1226,26 @@ 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; + * * @return The timeSegment. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TimeSegment getTimeSegment() { - return timeSegment_ == null ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + return timeSegment_ == null + ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; } /** + * + * *
      * Output only . The time segment of the video to which the
      * annotation applies.
@@ -1094,6 +1259,7 @@ public com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuil
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1105,8 +1271,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
       }
@@ -1129,12 +1294,12 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
       }
       if (classificationAnnotation_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getClassificationAnnotation());
+        size +=
+            com.google.protobuf.CodedOutputStream.computeMessageSize(
+                2, getClassificationAnnotation());
       }
       if (timeSegment_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, getTimeSegment());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTimeSegment());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -1144,24 +1309,25 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
-      if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation)) {
+      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;
+      com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation other =
+          (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) obj;
 
-      if (!getType()
-          .equals(other.getType())) return false;
+      if (!getType().equals(other.getType())) return false;
       if (hasClassificationAnnotation() != other.hasClassificationAnnotation()) return false;
       if (hasClassificationAnnotation()) {
-        if (!getClassificationAnnotation()
-            .equals(other.getClassificationAnnotation())) return false;
+        if (!getClassificationAnnotation().equals(other.getClassificationAnnotation()))
+          return false;
       }
       if (hasTimeSegment() != other.hasTimeSegment()) return false;
       if (hasTimeSegment()) {
-        if (!getTimeSegment()
-            .equals(other.getTimeSegment())) return false;
+        if (!getTimeSegment().equals(other.getTimeSegment())) return false;
       }
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -1189,88 +1355,102 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    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 {
+
+    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 {
+
+    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 {
+
+    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 {
+
+    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 {
+
+    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) 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
+        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) 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
+        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) 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);
+
+    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 Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation prototype) {
+
+    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);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1280,44 +1460,51 @@ protected Builder newBuilderForType(
       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 + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1339,19 +1526,23 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + build() { + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1359,8 +1550,11 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAn } @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); + 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_; @@ -1380,46 +1574,56 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAn public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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(); @@ -1445,11 +1649,14 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1461,6 +1668,8 @@ public Builder mergeFrom( private java.lang.Object type_ = ""; /** + * + * *
        * Output only. Expresses the type of video classification. Possible values:
        * *  `segment` - Classification done on a specified by user
@@ -1485,13 +1694,13 @@ public Builder mergeFrom(
        * 
* * string type = 1; + * * @return The type. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1500,6 +1709,8 @@ public java.lang.String getType() { } } /** + * + * *
        * Output only. Expresses the type of video classification. Possible values:
        * *  `segment` - Classification done on a specified by user
@@ -1524,15 +1735,14 @@ public java.lang.String getType() {
        * 
* * string type = 1; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1540,6 +1750,8 @@ public java.lang.String getType() { } } /** + * + * *
        * Output only. Expresses the type of video classification. Possible values:
        * *  `segment` - Classification done on a specified by user
@@ -1564,20 +1776,22 @@ public java.lang.String getType() {
        * 
* * string type = 1; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -1602,15 +1816,18 @@ public Builder setType(
        * 
* * string type = 1; + * * @return This builder for chaining. */ 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
@@ -1635,58 +1852,78 @@ public Builder clearType() {
        * 
* * string type = 1; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation classificationAnnotation_; + 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_; + 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; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + * * @return Whether the classificationAnnotation field is set. */ public boolean hasClassificationAnnotation() { return classificationAnnotationBuilder_ != null || classificationAnnotation_ != null; } /** + * + * *
        * Output only . The classification details of this annotation.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + * * @return The classificationAnnotation. */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getClassificationAnnotation() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + getClassificationAnnotation() { if (classificationAnnotationBuilder_ == null) { - return classificationAnnotation_ == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance() : classificationAnnotation_; + 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; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * */ - public Builder setClassificationAnnotation(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { + public Builder setClassificationAnnotation( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { if (classificationAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1700,14 +1937,18 @@ public Builder setClassificationAnnotation(com.google.cloud.automl.v1beta1.Class return this; } /** + * + * *
        * Output only . The classification details of this annotation.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * */ public Builder setClassificationAnnotation( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder + builderForValue) { if (classificationAnnotationBuilder_ == null) { classificationAnnotation_ = builderForValue.build(); onChanged(); @@ -1718,17 +1959,24 @@ public Builder setClassificationAnnotation( return this; } /** + * + * *
        * Output only . The classification details of this annotation.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * */ - public Builder mergeClassificationAnnotation(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { + 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(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .newBuilder(classificationAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { classificationAnnotation_ = value; } @@ -1740,11 +1988,14 @@ public Builder mergeClassificationAnnotation(com.google.cloud.automl.v1beta1.Cla return this; } /** + * + * *
        * Output only . The classification details of this annotation.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * */ public Builder clearClassificationAnnotation() { if (classificationAnnotationBuilder_ == null) { @@ -1758,48 +2009,66 @@ public Builder clearClassificationAnnotation() { return this; } /** + * + * *
        * Output only . The classification details of this annotation.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder getClassificationAnnotationBuilder() { - + 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; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationAnnotationOrBuilder() { + 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_; + 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; + * .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> + 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()); + 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_; @@ -1807,36 +2076,49 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotat 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_; + 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; + * * @return Whether the timeSegment field is set. */ 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; + * * @return The timeSegment. */ public com.google.cloud.automl.v1beta1.TimeSegment getTimeSegment() { if (timeSegmentBuilder_ == null) { - return timeSegment_ == null ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + 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.
@@ -1858,6 +2140,8 @@ public Builder setTimeSegment(com.google.cloud.automl.v1beta1.TimeSegment value)
         return this;
       }
       /**
+       *
+       *
        * 
        * Output only . The time segment of the video to which the
        * annotation applies.
@@ -1877,6 +2161,8 @@ public Builder setTimeSegment(
         return this;
       }
       /**
+       *
+       *
        * 
        * Output only . The time segment of the video to which the
        * annotation applies.
@@ -1888,7 +2174,9 @@ public Builder mergeTimeSegment(com.google.cloud.automl.v1beta1.TimeSegment valu
         if (timeSegmentBuilder_ == null) {
           if (timeSegment_ != null) {
             timeSegment_ =
-              com.google.cloud.automl.v1beta1.TimeSegment.newBuilder(timeSegment_).mergeFrom(value).buildPartial();
+                com.google.cloud.automl.v1beta1.TimeSegment.newBuilder(timeSegment_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             timeSegment_ = value;
           }
@@ -1900,6 +2188,8 @@ public Builder mergeTimeSegment(com.google.cloud.automl.v1beta1.TimeSegment valu
         return this;
       }
       /**
+       *
+       *
        * 
        * Output only . The time segment of the video to which the
        * annotation applies.
@@ -1919,6 +2209,8 @@ public Builder clearTimeSegment() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Output only . The time segment of the video to which the
        * annotation applies.
@@ -1927,11 +2219,13 @@ public Builder clearTimeSegment() {
        * .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.
@@ -1943,11 +2237,14 @@ public com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuil
         if (timeSegmentBuilder_ != null) {
           return timeSegmentBuilder_.getMessageOrBuilder();
         } else {
-          return timeSegment_ == null ?
-              com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_;
+          return timeSegment_ == null
+              ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance()
+              : timeSegment_;
         }
       }
       /**
+       *
+       *
        * 
        * Output only . The time segment of the video to which the
        * annotation applies.
@@ -1956,18 +2253,22 @@ public com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuil
        * .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> 
+              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());
+          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) {
@@ -1980,30 +2281,34 @@ public final Builder mergeUnknownFields(
         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;
+    private static final com.google.cloud.automl.v1beta1.ClassificationProto
+            .VideoClassificationAnnotation
+        DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation();
+      DEFAULT_INSTANCE =
+          new com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation();
     }
 
-    public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation getDefaultInstance() {
+    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);
-      }
-    };
+    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;
@@ -2015,28 +2320,34 @@ public com.google.protobuf.Parser getParserForTyp
     }
 
     @java.lang.Override
-    public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation getDefaultInstanceForType() {
+    public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface ClassificationEvaluationMetricsOrBuilder extends
+  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; + * * @return The auPrc. */ float getAuPrc(); /** + * + * *
      * Output only. The Area Under Precision-Recall Curve metric based on priors.
      * Micro-averaged for the overall evaluation.
@@ -2044,32 +2355,42 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
      * 
* * float base_au_prc = 2 [deprecated = true]; + * * @return The baseAuPrc. */ - @java.lang.Deprecated float getBaseAuPrc(); + @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; + * * @return The auRoc. */ float getAuRoc(); /** + * + * *
      * Output only. The Log Loss metric.
      * 
* * float log_loss = 7; + * * @return The logLoss. */ 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
@@ -2080,11 +2401,17 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - java.util.List + 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
@@ -2095,10 +2422,16 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index); + 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
@@ -2109,10 +2442,14 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * 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
@@ -2123,11 +2460,18 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - java.util.List + 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
@@ -2138,12 +2482,17 @@ public interface ClassificationEvaluationMetricsOrBuilder extends
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( - int index); + 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
@@ -2151,11 +2500,16 @@ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetr
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return Whether the confusionMatrix field is set. */ boolean hasConfusionMatrix(); /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -2163,11 +2517,18 @@ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetr
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return The confusionMatrix. */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + getConfusionMatrix(); /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -2175,52 +2536,68 @@ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetr
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder(); + 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; + * * @return A list containing the annotationSpecId. */ - java.util.List - getAnnotationSpecIdList(); + java.util.List getAnnotationSpecIdList(); /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @return The count of annotationSpecId. */ int getAnnotationSpecIdCount(); /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ java.lang.String getAnnotationSpecId(int index); /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index); + com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); } /** + * + * *
    * Model evaluation metrics for classification problems.
    * Note: For Video Classification this metrics only describe quality of the
@@ -2229,15 +2606,18 @@ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetr
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics}
    */
-  public static final class ClassificationEvaluationMetrics extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  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;
+    private static final long serialVersionUID = 0L;
     // Use ClassificationEvaluationMetrics.newBuilder() to construct.
-    private ClassificationEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private ClassificationEvaluationMetrics(
+        com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private ClassificationEvaluationMetrics() {
       confidenceMetricsEntry_ = java.util.Collections.emptyList();
       annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -2245,16 +2625,15 @@ private ClassificationEvaluationMetrics() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ClassificationEvaluationMetrics();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private ClassificationEvaluationMetrics(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2274,71 +2653,85 @@ private ClassificationEvaluationMetrics(
             case 0:
               done = true;
               break;
-            case 13: {
-
-              auPrc_ = input.readFloat();
-              break;
-            }
-            case 21: {
-
-              baseAuPrc_ = input.readFloat();
-              break;
-            }
-            case 26: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                confidenceMetricsEntry_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
+            case 13:
+              {
+                auPrc_ = input.readFloat();
+                break;
               }
-              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();
+            case 21:
+              {
+                baseAuPrc_ = input.readFloat();
+                break;
               }
-              confusionMatrix_ = input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(confusionMatrix_);
-                confusionMatrix_ = subBuilder.buildPartial();
+            case 26:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  confidenceMetricsEntry_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.automl.v1beta1.ClassificationProto
+                              .ClassificationEvaluationMetrics.ConfidenceMetricsEntry>();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                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_ & 0x00000002) != 0)) {
-                annotationSpecId_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
+                break;
               }
-              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;
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                  annotationSpecId_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000002;
+                }
+                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;
               }
-              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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           confidenceMetricsEntry_ = java.util.Collections.unmodifiableList(confidenceMetricsEntry_);
@@ -2350,35 +2743,46 @@ private ClassificationEvaluationMetrics(
         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;
+
+    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
+      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);
+              com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+                  .class,
+              com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+                  .Builder.class);
     }
 
-    public interface ConfidenceMetricsEntryOrBuilder extends
+    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; + * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** + * + * *
        * Output only. Metrics are computed with an assumption that the model
        * always returns at most this many predictions (ordered by their score,
@@ -2386,52 +2790,67 @@ public interface ConfidenceMetricsEntryOrBuilder extends
        * 
* * int32 position_threshold = 14; + * * @return The positionThreshold. */ int getPositionThreshold(); /** + * + * *
        * Output only. Recall (True Positive Rate) for the given confidence
        * threshold.
        * 
* * float recall = 2; + * * @return The recall. */ float getRecall(); /** + * + * *
        * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; + * * @return The precision. */ float getPrecision(); /** + * + * *
        * Output only. False Positive Rate for the given confidence threshold.
        * 
* * float false_positive_rate = 8; + * * @return The falsePositiveRate. */ float getFalsePositiveRate(); /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @return The f1Score. */ float getF1Score(); /** + * + * *
        * Output only. The Recall (True Positive Rate) when only considering the
        * label that has the highest prediction score and not below the confidence
@@ -2439,11 +2858,14 @@ public interface ConfidenceMetricsEntryOrBuilder extends
        * 
* * float recall_at1 = 5; + * * @return The recallAt1. */ float getRecallAt1(); /** + * + * *
        * Output only. The precision when only considering the label that has the
        * highest prediction score and not below the confidence threshold for each
@@ -2451,11 +2873,14 @@ public interface ConfidenceMetricsEntryOrBuilder extends
        * 
* * float precision_at1 = 6; + * * @return The precisionAt1. */ float getPrecisionAt1(); /** + * + * *
        * Output only. The False Positive Rate when only considering the label that
        * has the highest prediction score and not below the confidence threshold
@@ -2463,224 +2888,250 @@ public interface ConfidenceMetricsEntryOrBuilder extends
        * 
* * float false_positive_rate_at1 = 9; + * * @return The falsePositiveRateAt1. */ 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; + * * @return The f1ScoreAt1. */ float getF1ScoreAt1(); /** + * + * *
        * Output only. The number of model created labels that match a ground truth
        * label.
        * 
* * int64 true_positive_count = 10; + * * @return The truePositiveCount. */ long getTruePositiveCount(); /** + * + * *
        * Output only. The number of model created labels that do not match a
        * ground truth label.
        * 
* * int64 false_positive_count = 11; + * * @return The falsePositiveCount. */ long getFalsePositiveCount(); /** + * + * *
        * Output only. The number of ground truth labels that are not matched
        * by a model created label.
        * 
* * int64 false_negative_count = 12; + * * @return The falseNegativeCount. */ 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; + * * @return The trueNegativeCount. */ long getTrueNegativeCount(); } /** + * + * *
      * Metrics for a single confidence threshold.
      * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) ConfidenceMetricsEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfidenceMetricsEntry() { - } + + private ConfidenceMetricsEntry() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + 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(); - } - 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; - } - case 45: { - - recallAt1_ = input.readFloat(); - break; - } - case 53: { - - precisionAt1_ = input.readFloat(); - break; - } - case 61: { - - 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(); + 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; + case 13: + { + confidenceThreshold_ = input.readFloat(); + break; + } + case 21: + { + recall_ = input.readFloat(); + break; + } + case 29: + { + precision_ = input.readFloat(); + break; + } + case 37: + { + f1Score_ = input.readFloat(); + break; + } + case 45: + { + recallAt1_ = input.readFloat(); + break; + } + case 53: + { + precisionAt1_ = input.readFloat(); + break; + } + case 61: + { + 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)) { + done = true; + } + break; } - 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); + 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.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_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_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.class, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.Builder.class); } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; 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; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -2691,6 +3142,8 @@ public float getConfidenceThreshold() { 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,
@@ -2698,6 +3151,7 @@ public float getConfidenceThreshold() {
        * 
* * int32 position_threshold = 14; + * * @return The positionThreshold. */ @java.lang.Override @@ -2708,12 +3162,15 @@ public int getPositionThreshold() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** + * + * *
        * Output only. Recall (True Positive Rate) for the given confidence
        * threshold.
        * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -2724,11 +3181,14 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** + * + * *
        * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; + * * @return The precision. */ @java.lang.Override @@ -2739,11 +3199,14 @@ public float getPrecision() { 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; + * * @return The falsePositiveRate. */ @java.lang.Override @@ -2754,11 +3217,14 @@ public float getFalsePositiveRate() { 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; + * * @return The f1Score. */ @java.lang.Override @@ -2769,6 +3235,8 @@ public float getF1Score() { public static final int RECALL_AT1_FIELD_NUMBER = 5; 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
@@ -2776,6 +3244,7 @@ public float getF1Score() {
        * 
* * float recall_at1 = 5; + * * @return The recallAt1. */ @java.lang.Override @@ -2786,6 +3255,8 @@ public float getRecallAt1() { public static final int PRECISION_AT1_FIELD_NUMBER = 6; private float precisionAt1_; /** + * + * *
        * Output only. The precision when only considering the label that has the
        * highest prediction score and not below the confidence threshold for each
@@ -2793,6 +3264,7 @@ public float getRecallAt1() {
        * 
* * float precision_at1 = 6; + * * @return The precisionAt1. */ @java.lang.Override @@ -2803,6 +3275,8 @@ public float getPrecisionAt1() { 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
@@ -2810,6 +3284,7 @@ public float getPrecisionAt1() {
        * 
* * float false_positive_rate_at1 = 9; + * * @return The falsePositiveRateAt1. */ @java.lang.Override @@ -2820,11 +3295,14 @@ public float getFalsePositiveRateAt1() { 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].
        * 
* * float f1_score_at1 = 7; + * * @return The f1ScoreAt1. */ @java.lang.Override @@ -2835,12 +3313,15 @@ public float getF1ScoreAt1() { 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; + * * @return The truePositiveCount. */ @java.lang.Override @@ -2851,12 +3332,15 @@ public long getTruePositiveCount() { 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; + * * @return The falsePositiveCount. */ @java.lang.Override @@ -2867,12 +3351,15 @@ public long getFalsePositiveCount() { 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; + * * @return The falseNegativeCount. */ @java.lang.Override @@ -2883,12 +3370,15 @@ public long getFalseNegativeCount() { 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; + * * @return The trueNegativeCount. */ @java.lang.Override @@ -2897,6 +3387,7 @@ public long getTrueNegativeCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2908,8 +3399,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -2962,60 +3452,46 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, precision_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, f1Score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); } if (recallAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, recallAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, recallAt1_); } if (precisionAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, precisionAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, precisionAt1_); } if (f1ScoreAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, f1ScoreAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, f1ScoreAt1_); } if (falsePositiveRate_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(8, falsePositiveRate_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, falsePositiveRate_); } if (falsePositiveRateAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(9, falsePositiveRateAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, falsePositiveRateAt1_); } if (truePositiveCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, truePositiveCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, truePositiveCount_); } if (falsePositiveCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, falsePositiveCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, falsePositiveCount_); } if (falseNegativeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, falseNegativeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, falseNegativeCount_); } if (trueNegativeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(13, trueNegativeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, trueNegativeCount_); } if (positionThreshold_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, positionThreshold_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, positionThreshold_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3025,50 +3501,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry)) { + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry other = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) obj; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + other = + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry) + obj; if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) - != java.lang.Float.floatToIntBits( - other.getConfidenceThreshold())) return false; - if (getPositionThreshold() - != other.getPositionThreshold()) return false; + != 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; + != java.lang.Float.floatToIntBits(other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits( - other.getPrecision())) return false; + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getFalsePositiveRate()) - != java.lang.Float.floatToIntBits( - other.getFalsePositiveRate())) return false; + != java.lang.Float.floatToIntBits(other.getFalsePositiveRate())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits( - other.getF1Score())) return false; + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; if (java.lang.Float.floatToIntBits(getRecallAt1()) - != java.lang.Float.floatToIntBits( - other.getRecallAt1())) return false; + != java.lang.Float.floatToIntBits(other.getRecallAt1())) return false; if (java.lang.Float.floatToIntBits(getPrecisionAt1()) - != java.lang.Float.floatToIntBits( - other.getPrecisionAt1())) return false; + != java.lang.Float.floatToIntBits(other.getPrecisionAt1())) return false; if (java.lang.Float.floatToIntBits(getFalsePositiveRateAt1()) - != java.lang.Float.floatToIntBits( - other.getFalsePositiveRateAt1())) return false; + != 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; + != 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; } @@ -3081,133 +3551,149 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidenceThreshold()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecision()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits(getFalsePositiveRate()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1Score()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); hash = (37 * hash) + RECALL_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRecallAt1()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecallAt1()); hash = (37 * hash) + PRECISION_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecisionAt1()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits(getFalsePositiveRateAt1()); hash = (37 * hash) + F1_SCORE_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1ScoreAt1()); + 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 = (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 = (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 = (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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrueNegativeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto + .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto + .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto + .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto + .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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.ClassificationProto + .ClassificationEvaluationMetrics.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.ClassificationProto.ClassificationEvaluationMetrics.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); + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3217,44 +3703,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Metrics for a single confidence threshold.
        * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_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_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry.class, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder.class); } - // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3290,19 +3785,26 @@ public Builder clear() { } @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; + 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(); + 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(); + 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); } @@ -3310,8 +3812,14 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat } @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); + 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_; @@ -3334,46 +3842,60 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -3431,11 +3953,16 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3445,14 +3972,17 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_ ; + 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; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -3460,39 +3990,47 @@ 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; + * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private int positionThreshold_ ; + 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,
@@ -3500,6 +4038,7 @@ public Builder clearConfidenceThreshold() {
          * 
* * int32 position_threshold = 14; + * * @return The positionThreshold. */ @java.lang.Override @@ -3507,6 +4046,8 @@ 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,
@@ -3514,16 +4055,19 @@ public int getPositionThreshold() {
          * 
* * int32 position_threshold = 14; + * * @param value The positionThreshold to set. * @return This builder for chaining. */ 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,
@@ -3531,23 +4075,27 @@ public Builder setPositionThreshold(int value) {
          * 
* * int32 position_threshold = 14; + * * @return This builder for chaining. */ public Builder clearPositionThreshold() { - + positionThreshold_ = 0; onChanged(); return this; } - private float recall_ ; + private float recall_; /** + * + * *
          * Output only. Recall (True Positive Rate) for the given confidence
          * threshold.
          * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -3555,44 +4103,53 @@ public float getRecall() { return recall_; } /** + * + * *
          * Output only. Recall (True Positive Rate) for the given confidence
          * threshold.
          * 
* * float recall = 2; + * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** + * + * *
          * Output only. Recall (True Positive Rate) for the given confidence
          * threshold.
          * 
* * float recall = 2; + * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_ ; + private float precision_; /** + * + * *
          * Output only. Precision for the given confidence threshold.
          * 
* * float precision = 3; + * * @return The precision. */ @java.lang.Override @@ -3600,42 +4157,51 @@ public float getPrecision() { return precision_; } /** + * + * *
          * Output only. Precision for the given confidence threshold.
          * 
* * float precision = 3; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** + * + * *
          * Output only. Precision for the given confidence threshold.
          * 
* * float precision = 3; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float falsePositiveRate_ ; + private float falsePositiveRate_; /** + * + * *
          * Output only. False Positive Rate for the given confidence threshold.
          * 
* * float false_positive_rate = 8; + * * @return The falsePositiveRate. */ @java.lang.Override @@ -3643,42 +4209,51 @@ public float getFalsePositiveRate() { return falsePositiveRate_; } /** + * + * *
          * Output only. False Positive Rate for the given confidence threshold.
          * 
* * float false_positive_rate = 8; + * * @param value The falsePositiveRate to set. * @return This builder for chaining. */ public Builder setFalsePositiveRate(float value) { - + falsePositiveRate_ = value; onChanged(); return this; } /** + * + * *
          * Output only. False Positive Rate for the given confidence threshold.
          * 
* * float false_positive_rate = 8; + * * @return This builder for chaining. */ public Builder clearFalsePositiveRate() { - + falsePositiveRate_ = 0F; onChanged(); return this; } - private float f1Score_ ; + private float f1Score_; /** + * + * *
          * Output only. The harmonic mean of recall and precision.
          * 
* * float f1_score = 4; + * * @return The f1Score. */ @java.lang.Override @@ -3686,37 +4261,45 @@ public float getF1Score() { return f1Score_; } /** + * + * *
          * Output only. The harmonic mean of recall and precision.
          * 
* * float f1_score = 4; + * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** + * + * *
          * Output only. The harmonic mean of recall and precision.
          * 
* * float f1_score = 4; + * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - private float recallAt1_ ; + 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
@@ -3724,6 +4307,7 @@ public Builder clearF1Score() {
          * 
* * float recall_at1 = 5; + * * @return The recallAt1. */ @java.lang.Override @@ -3731,6 +4315,8 @@ 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
@@ -3738,16 +4324,19 @@ public float getRecallAt1() {
          * 
* * float recall_at1 = 5; + * * @param value The recallAt1 to set. * @return This builder for chaining. */ public Builder setRecallAt1(float value) { - + 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
@@ -3755,17 +4344,20 @@ public Builder setRecallAt1(float value) {
          * 
* * float recall_at1 = 5; + * * @return This builder for chaining. */ public Builder clearRecallAt1() { - + recallAt1_ = 0F; onChanged(); return this; } - private float precisionAt1_ ; + private float precisionAt1_; /** + * + * *
          * Output only. The precision when only considering the label that has the
          * highest prediction score and not below the confidence threshold for each
@@ -3773,6 +4365,7 @@ public Builder clearRecallAt1() {
          * 
* * float precision_at1 = 6; + * * @return The precisionAt1. */ @java.lang.Override @@ -3780,6 +4373,8 @@ public float getPrecisionAt1() { return precisionAt1_; } /** + * + * *
          * Output only. The precision when only considering the label that has the
          * highest prediction score and not below the confidence threshold for each
@@ -3787,16 +4382,19 @@ public float getPrecisionAt1() {
          * 
* * float precision_at1 = 6; + * * @param value The precisionAt1 to set. * @return This builder for chaining. */ public Builder setPrecisionAt1(float value) { - + precisionAt1_ = value; onChanged(); return this; } /** + * + * *
          * Output only. The precision when only considering the label that has the
          * highest prediction score and not below the confidence threshold for each
@@ -3804,17 +4402,20 @@ public Builder setPrecisionAt1(float value) {
          * 
* * float precision_at1 = 6; + * * @return This builder for chaining. */ public Builder clearPrecisionAt1() { - + precisionAt1_ = 0F; onChanged(); return this; } - private float falsePositiveRateAt1_ ; + 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
@@ -3822,6 +4423,7 @@ public Builder clearPrecisionAt1() {
          * 
* * float false_positive_rate_at1 = 9; + * * @return The falsePositiveRateAt1. */ @java.lang.Override @@ -3829,6 +4431,8 @@ public float getFalsePositiveRateAt1() { return falsePositiveRateAt1_; } /** + * + * *
          * Output only. The False Positive Rate when only considering the label that
          * has the highest prediction score and not below the confidence threshold
@@ -3836,16 +4440,19 @@ public float getFalsePositiveRateAt1() {
          * 
* * float false_positive_rate_at1 = 9; + * * @param value The falsePositiveRateAt1 to set. * @return This builder for chaining. */ public Builder setFalsePositiveRateAt1(float value) { - + falsePositiveRateAt1_ = value; onChanged(); return this; } /** + * + * *
          * Output only. The False Positive Rate when only considering the label that
          * has the highest prediction score and not below the confidence threshold
@@ -3853,22 +4460,26 @@ public Builder setFalsePositiveRateAt1(float value) {
          * 
* * float false_positive_rate_at1 = 9; + * * @return This builder for chaining. */ public Builder clearFalsePositiveRateAt1() { - + falsePositiveRateAt1_ = 0F; onChanged(); return this; } - private float f1ScoreAt1_ ; + 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].
          * 
* * float f1_score_at1 = 7; + * * @return The f1ScoreAt1. */ @java.lang.Override @@ -3876,43 +4487,52 @@ public float getF1ScoreAt1() { return 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].
          * 
* * float f1_score_at1 = 7; + * * @param value The f1ScoreAt1 to set. * @return This builder for chaining. */ public Builder setF1ScoreAt1(float value) { - + f1ScoreAt1_ = value; onChanged(); return this; } /** + * + * *
          * 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; + * * @return This builder for chaining. */ public Builder clearF1ScoreAt1() { - + f1ScoreAt1_ = 0F; onChanged(); return this; } - private long truePositiveCount_ ; + private long truePositiveCount_; /** + * + * *
          * Output only. The number of model created labels that match a ground truth
          * label.
          * 
* * int64 true_positive_count = 10; + * * @return The truePositiveCount. */ @java.lang.Override @@ -3920,45 +4540,54 @@ public long getTruePositiveCount() { return truePositiveCount_; } /** + * + * *
          * Output only. The number of model created labels that match a ground truth
          * label.
          * 
* * int64 true_positive_count = 10; + * * @param value The truePositiveCount to set. * @return This builder for chaining. */ public Builder setTruePositiveCount(long value) { - + truePositiveCount_ = value; onChanged(); return this; } /** + * + * *
          * Output only. The number of model created labels that match a ground truth
          * label.
          * 
* * int64 true_positive_count = 10; + * * @return This builder for chaining. */ public Builder clearTruePositiveCount() { - + truePositiveCount_ = 0L; onChanged(); return this; } - private long falsePositiveCount_ ; + private long falsePositiveCount_; /** + * + * *
          * Output only. The number of model created labels that do not match a
          * ground truth label.
          * 
* * int64 false_positive_count = 11; + * * @return The falsePositiveCount. */ @java.lang.Override @@ -3966,45 +4595,54 @@ public long getFalsePositiveCount() { return falsePositiveCount_; } /** + * + * *
          * Output only. The number of model created labels that do not match a
          * ground truth label.
          * 
* * int64 false_positive_count = 11; + * * @param value The falsePositiveCount to set. * @return This builder for chaining. */ public Builder setFalsePositiveCount(long value) { - + falsePositiveCount_ = value; onChanged(); return this; } /** + * + * *
          * Output only. The number of model created labels that do not match a
          * ground truth label.
          * 
* * int64 false_positive_count = 11; + * * @return This builder for chaining. */ public Builder clearFalsePositiveCount() { - + falsePositiveCount_ = 0L; onChanged(); return this; } - private long falseNegativeCount_ ; + 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; + * * @return The falseNegativeCount. */ @java.lang.Override @@ -4012,45 +4650,54 @@ public long getFalseNegativeCount() { return falseNegativeCount_; } /** + * + * *
          * Output only. The number of ground truth labels that are not matched
          * by a model created label.
          * 
* * int64 false_negative_count = 12; + * * @param value The falseNegativeCount to set. * @return This builder for chaining. */ public Builder setFalseNegativeCount(long value) { - + falseNegativeCount_ = value; onChanged(); return this; } /** + * + * *
          * Output only. The number of ground truth labels that are not matched
          * by a model created label.
          * 
* * int64 false_negative_count = 12; + * * @return This builder for chaining. */ public Builder clearFalseNegativeCount() { - + falseNegativeCount_ = 0L; onChanged(); return this; } - private long trueNegativeCount_ ; + 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; + * * @return The trueNegativeCount. */ @java.lang.Override @@ -4058,36 +4705,43 @@ public long getTrueNegativeCount() { return 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; + * * @param value The trueNegativeCount to set. * @return This builder for chaining. */ public Builder setTrueNegativeCount(long value) { - + trueNegativeCount_ = value; onChanged(); return this; } /** + * + * *
          * 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; + * * @return This builder for chaining. */ public Builder clearTrueNegativeCount() { - + trueNegativeCount_ = 0L; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4100,30 +4754,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) - private static final com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.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); - } - }; + 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; @@ -4135,17 +4795,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ConfusionMatrixOrBuilder extends + public interface ConfusionMatrixOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4154,11 +4818,13 @@ public interface ConfusionMatrixOrBuilder extends
        * 
* * repeated string annotation_spec_id = 1; + * * @return A list containing the annotationSpecId. */ - java.util.List - getAnnotationSpecIdList(); + java.util.List getAnnotationSpecIdList(); /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4167,10 +4833,13 @@ public interface ConfusionMatrixOrBuilder extends
        * 
* * repeated string annotation_spec_id = 1; + * * @return The count of annotationSpecId. */ int getAnnotationSpecIdCount(); /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4179,11 +4848,14 @@ public interface ConfusionMatrixOrBuilder extends
        * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ java.lang.String getAnnotationSpecId(int index); /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -4192,13 +4864,15 @@ public interface ConfusionMatrixOrBuilder extends
        * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index); + com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4209,11 +4883,13 @@ public interface ConfusionMatrixOrBuilder extends
        * 
* * repeated string display_name = 3; + * * @return A list containing the displayName. */ - java.util.List - getDisplayNameList(); + java.util.List getDisplayNameList(); /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4224,10 +4900,13 @@ public interface ConfusionMatrixOrBuilder extends
        * 
* * repeated string display_name = 3; + * * @return The count of displayName. */ int getDisplayNameCount(); /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4238,11 +4917,14 @@ public interface ConfusionMatrixOrBuilder extends
        * 
* * repeated string display_name = 3; + * * @param index The index of the element to return. * @return The displayName at the given index. */ java.lang.String getDisplayName(int index); /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -4253,13 +4935,15 @@ public interface ConfusionMatrixOrBuilder extends
        * 
* * repeated string display_name = 3; + * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - com.google.protobuf.ByteString - getDisplayNameBytes(int index); + com.google.protobuf.ByteString getDisplayNameBytes(int index); /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4268,11 +4952,17 @@ public interface ConfusionMatrixOrBuilder extends
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - java.util.List + java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row> getRowList(); /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4281,10 +4971,16 @@ public interface ConfusionMatrixOrBuilder extends
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + getRow(int index); /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4293,10 +4989,14 @@ public interface ConfusionMatrixOrBuilder extends
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ int getRowCount(); /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4305,11 +5005,18 @@ public interface ConfusionMatrixOrBuilder extends
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> getRowOrBuilderList(); /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -4318,27 +5025,34 @@ public interface ConfusionMatrixOrBuilder extends
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( - int index); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.RowOrBuilder + getRowOrBuilder(int index); } /** + * + * *
      * Confusion matrix of the model running the classification.
      * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix} */ - public static final class ConfusionMatrix extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ConfusionMatrix extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) ConfusionMatrixOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfusionMatrix.newBuilder() to construct. private ConfusionMatrix(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfusionMatrix() { annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; displayName_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -4347,16 +5061,15 @@ private ConfusionMatrix() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfusionMatrix(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfusionMatrix( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4376,47 +5089,56 @@ private ConfusionMatrix( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + annotationSpecId_.add(s); + break; } - annotationSpecId_.add(s); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - row_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 18: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + row_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row>(); + mutable_bitField0_ |= 0x00000004; + } + row_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row.parser(), + extensionRegistry)); + break; } - row_.add( - input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.parser(), extensionRegistry)); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - displayName_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + displayName_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + displayName_.add(s); + break; } - displayName_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); @@ -4431,24 +5153,32 @@ private ConfusionMatrix( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_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_ConfusionMatrix_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.class, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Builder.class); } - public interface RowOrBuilder extends + public interface RowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -4457,10 +5187,13 @@ public interface RowOrBuilder extends
          * 
* * repeated int32 example_count = 1; + * * @return A list containing the exampleCount. */ java.util.List getExampleCountList(); /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -4469,10 +5202,13 @@ public interface RowOrBuilder extends
          * 
* * repeated int32 example_count = 1; + * * @return The count of exampleCount. */ int getExampleCountCount(); /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -4481,43 +5217,47 @@ public interface RowOrBuilder extends
          * 
* * repeated int32 example_count = 1; + * * @param index The index of the element to return. * @return The exampleCount at the given index. */ int getExampleCount(int index); } /** + * + * *
        * Output only. A row in the confusion matrix.
        * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} */ - public static final class Row extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Row extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) RowOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Row() { exampleCount_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Row(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Row( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4537,41 +5277,44 @@ private Row( case 0: done = true; break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exampleCount_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - exampleCount_.addInt(input.readInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - exampleCount_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { + case 8: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exampleCount_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } exampleCount_.addInt(input.readInt32()); + break; } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) + && input.getBytesUntilLimit() > 0) { + exampleCount_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + exampleCount_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { exampleCount_.makeImmutable(); // C @@ -4580,22 +5323,29 @@ private Row( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_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_ConfusionMatrix_Row_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); } public static final int EXAMPLE_COUNT_FIELD_NUMBER = 1; private com.google.protobuf.Internal.IntList exampleCount_; /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -4604,14 +5354,16 @@ private Row(
          * 
* * repeated int32 example_count = 1; + * * @return A list containing the exampleCount. */ @java.lang.Override - public java.util.List - getExampleCountList() { + public java.util.List getExampleCountList() { return exampleCount_; } /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -4620,12 +5372,15 @@ private Row(
          * 
* * repeated int32 example_count = 1; + * * @return The count of exampleCount. */ public int getExampleCountCount() { return exampleCount_.size(); } /** + * + * *
          * Output only. Value of the specific cell in the confusion matrix.
          * The number of values each row has (i.e. the length of the row) is equal
@@ -4634,15 +5389,18 @@ public int getExampleCountCount() {
          * 
* * repeated int32 example_count = 1; + * * @param index The index of the element to return. * @return The exampleCount at the given index. */ public int getExampleCount(int index) { return exampleCount_.getInt(index); } + private int exampleCountMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4655,7 +5413,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (getExampleCountList().size() > 0) { output.writeUInt32NoTag(10); @@ -4676,14 +5434,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < exampleCount_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(exampleCount_.getInt(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + exampleCount_.getInt(i)); } size += dataSize; if (!getExampleCountList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } exampleCountMemoizedSerializedSize = dataSize; } @@ -4695,15 +5453,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row)) { + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row other = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row) obj; - - if (!getExampleCountList() - .equals(other.getExampleCountList())) return false; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + other = + (com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row) + obj; + + if (!getExampleCountList().equals(other.getExampleCountList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4724,88 +5489,119 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.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.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.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); + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4815,44 +5611,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Output only. A row in the confusion matrix.
          * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.RowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_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_ConfusionMatrix_Row_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row.class, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder.class); } - // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4862,19 +5667,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance(); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row build() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = buildPartial(); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + build() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4882,8 +5694,14 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row buildPartial() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row(this); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + buildPartial() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + result = + new com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { exampleCount_.makeImmutable(); @@ -4898,46 +5716,61 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ConfusionMatrix.Row) { - return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row)other); + if (other + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row other) { - if (other == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + other) { + if (other + == com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()) + return this; if (!other.exampleCount_.isEmpty()) { if (exampleCount_.isEmpty()) { exampleCount_ = other.exampleCount_; @@ -4963,11 +5796,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row parsedMessage = null; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4976,16 +5814,20 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Internal.IntList exampleCount_ = emptyIntList(); + private void ensureExampleCountIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { exampleCount_ = mutableCopy(exampleCount_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -4994,14 +5836,17 @@ private void ensureExampleCountIsMutable() {
            * 
* * repeated int32 example_count = 1; + * * @return A list containing the exampleCount. */ - public java.util.List - getExampleCountList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(exampleCount_) : exampleCount_; + public java.util.List getExampleCountList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(exampleCount_) + : exampleCount_; } /** + * + * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5010,12 +5855,15 @@ private void ensureExampleCountIsMutable() {
            * 
* * repeated int32 example_count = 1; + * * @return The count of exampleCount. */ public int getExampleCountCount() { return exampleCount_.size(); } /** + * + * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5024,6 +5872,7 @@ public int getExampleCountCount() {
            * 
* * repeated int32 example_count = 1; + * * @param index The index of the element to return. * @return The exampleCount at the given index. */ @@ -5031,6 +5880,8 @@ public int getExampleCount(int index) { return exampleCount_.getInt(index); } /** + * + * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5039,18 +5890,20 @@ public int getExampleCount(int index) {
            * 
* * repeated int32 example_count = 1; + * * @param index The index to set the value at. * @param value The exampleCount to set. * @return This builder for chaining. */ - public Builder setExampleCount( - int index, int value) { + public Builder setExampleCount(int index, int value) { ensureExampleCountIsMutable(); exampleCount_.setInt(index, value); onChanged(); return this; } /** + * + * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5059,6 +5912,7 @@ public Builder setExampleCount(
            * 
* * repeated int32 example_count = 1; + * * @param value The exampleCount to add. * @return This builder for chaining. */ @@ -5069,6 +5923,8 @@ public Builder addExampleCount(int value) { return this; } /** + * + * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5077,18 +5933,20 @@ public Builder addExampleCount(int value) {
            * 
* * repeated int32 example_count = 1; + * * @param values The exampleCount to add. * @return This builder for chaining. */ public Builder addAllExampleCount( java.lang.Iterable values) { ensureExampleCountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exampleCount_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exampleCount_); onChanged(); return this; } /** + * + * *
            * Output only. Value of the specific cell in the confusion matrix.
            * The number of values each row has (i.e. the length of the row) is equal
@@ -5097,6 +5955,7 @@ public Builder addAllExampleCount(
            * 
* * repeated int32 example_count = 1; + * * @return This builder for chaining. */ public Builder clearExampleCount() { @@ -5105,6 +5964,7 @@ public Builder clearExampleCount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5117,30 +5977,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) - private static final com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row(); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.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); - } - }; + 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; @@ -5152,15 +6018,18 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList annotationSpecId_; /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -5169,13 +6038,15 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * 
* * repeated string annotation_spec_id = 1; + * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList - getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { return annotationSpecId_; } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -5184,12 +6055,15 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * 
* * repeated string annotation_spec_id = 1; + * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -5198,6 +6072,7 @@ public int getAnnotationSpecIdCount() {
        * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -5205,6 +6080,8 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** + * + * *
        * Output only. IDs of the annotation specs used in the confusion matrix.
        * For Tables CLASSIFICATION
@@ -5213,17 +6090,19 @@ public java.lang.String getAnnotationSpecId(int index) {
        * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList displayName_; /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -5234,13 +6113,15 @@ public java.lang.String getAnnotationSpecId(int index) {
        * 
* * repeated string display_name = 3; + * * @return A list containing the displayName. */ - public com.google.protobuf.ProtocolStringList - getDisplayNameList() { + public com.google.protobuf.ProtocolStringList getDisplayNameList() { return displayName_; } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -5251,12 +6132,15 @@ public java.lang.String getAnnotationSpecId(int index) {
        * 
* * repeated string display_name = 3; + * * @return The count of displayName. */ public int getDisplayNameCount() { return displayName_.size(); } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -5267,6 +6151,7 @@ public int getDisplayNameCount() {
        * 
* * repeated string display_name = 3; + * * @param index The index of the element to return. * @return The displayName at the given index. */ @@ -5274,6 +6159,8 @@ public java.lang.String getDisplayName(int index) { return displayName_.get(index); } /** + * + * *
        * Output only. Display name of the annotation specs used in the confusion
        * matrix, as they were at the moment of the evaluation. For Tables
@@ -5284,17 +6171,22 @@ public java.lang.String getDisplayName(int index) {
        * 
* * repeated string display_name = 3; + * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - public com.google.protobuf.ByteString - getDisplayNameBytes(int index) { + public com.google.protobuf.ByteString getDisplayNameBytes(int index) { return displayName_.getByteString(index); } public static final int ROW_FIELD_NUMBER = 2; - private java.util.List row_; + private java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row> + row_; /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -5303,13 +6195,20 @@ public java.lang.String getDisplayName(int index) {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ @java.lang.Override - public java.util.List getRowList() { + public java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row> + getRowList() { return row_; } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -5318,14 +6217,21 @@ public java.util.List
        *
-       * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
+       * 
+       * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
+       * 
        */
       @java.lang.Override
-      public java.util.List 
+      public java.util.List<
+              ? extends
+                  com.google.cloud.automl.v1beta1.ClassificationProto
+                      .ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder>
           getRowOrBuilderList() {
         return row_;
       }
       /**
+       *
+       *
        * 
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -5334,13 +6240,17 @@ public java.util.List
        *
-       * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
+       * 
+       * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
+       * 
        */
       @java.lang.Override
       public int getRowCount() {
         return row_.size();
       }
       /**
+       *
+       *
        * 
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -5349,13 +6259,19 @@ public int getRowCount() {
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + getRow(int index) { return row_.get(index); } /** + * + * *
        * Output only. Rows in the confusion matrix. The number of rows is equal to
        * the size of `annotation_spec_id`.
@@ -5364,15 +6280,19 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * `annotation_spec_id[j]` by the model being evaluated.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.RowOrBuilder + getRowOrBuilder(int index) { return row_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5384,10 +6304,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < annotationSpecId_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecId_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, annotationSpecId_.getRaw(i)); } for (int i = 0; i < row_.size(); i++) { output.writeMessage(2, row_.get(i)); @@ -5413,8 +6333,7 @@ public int getSerializedSize() { size += 1 * getAnnotationSpecIdList().size(); } for (int i = 0; i < row_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, row_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, row_.get(i)); } { int dataSize = 0; @@ -5432,19 +6351,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix)) { + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix other = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix) obj; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + other = + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix) + obj; - if (!getAnnotationSpecIdList() - .equals(other.getAnnotationSpecIdList())) return false; - if (!getDisplayNameList() - .equals(other.getDisplayNameList())) return false; - if (!getRowList() - .equals(other.getRowList())) return false; + if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; + if (!getDisplayNameList().equals(other.getDisplayNameList())) return false; + if (!getRowList().equals(other.getRowList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5473,88 +6397,117 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix + 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.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix + 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.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix + 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 + .ClassificationEvaluationMetrics.ConfusionMatrix + 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 + .ClassificationEvaluationMetrics.ConfusionMatrix + 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 + .ClassificationEvaluationMetrics.ConfusionMatrix + 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 + .ClassificationEvaluationMetrics.ConfusionMatrix + 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.ClassificationEvaluationMetrics.ConfusionMatrix 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 + .ClassificationEvaluationMetrics.ConfusionMatrix + 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.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom( - com.google.protobuf.CodedInputStream 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 + .ClassificationEvaluationMetrics.ConfusionMatrix + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5564,45 +6517,55 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Confusion matrix of the model running the classification.
        * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_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_ConfusionMatrix_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.class, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder.class); + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.class, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Builder.class); } - // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRowFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -5620,19 +6583,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance(); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix build() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix result = buildPartial(); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + build() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5640,8 +6610,14 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix buildPartial() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix(this); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + buildPartial() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + result = + new com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); @@ -5670,46 +6646,60 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ConfusionMatrix) { - return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix)other); + if (other + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix other) { - if (other == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + other) { + if (other + == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.getDefaultInstance()) return this; if (!other.annotationSpecId_.isEmpty()) { if (annotationSpecId_.isEmpty()) { annotationSpecId_ = other.annotationSpecId_; @@ -5748,9 +6738,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.Cla rowBuilder_ = null; row_ = other.row_; bitField0_ = (bitField0_ & ~0x00000004); - rowBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRowFieldBuilder() : null; + rowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRowFieldBuilder() + : null; } else { rowBuilder_.addAllMessages(other.row_); } @@ -5771,11 +6762,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parsedMessage = null; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5784,16 +6780,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList annotationSpecId_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAnnotationSpecIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -5802,13 +6803,15 @@ private void ensureAnnotationSpecIdIsMutable() {
          * 
* * repeated string annotation_spec_id = 1; + * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList - getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { return annotationSpecId_.getUnmodifiableView(); } /** + * + * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -5817,12 +6820,15 @@ private void ensureAnnotationSpecIdIsMutable() {
          * 
* * repeated string annotation_spec_id = 1; + * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** + * + * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -5831,6 +6837,7 @@ public int getAnnotationSpecIdCount() {
          * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -5838,6 +6845,8 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** + * + * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -5846,14 +6855,16 @@ public java.lang.String getAnnotationSpecId(int index) {
          * 
* * repeated string annotation_spec_id = 1; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } /** + * + * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -5862,21 +6873,23 @@ public java.lang.String getAnnotationSpecId(int index) {
          * 
* * repeated string annotation_spec_id = 1; + * * @param index The index to set the value at. * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId( - int index, java.lang.String value) { + public Builder setAnnotationSpecId(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.set(index, value); onChanged(); return this; } /** + * + * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -5885,20 +6898,22 @@ public Builder setAnnotationSpecId(
          * 
* * repeated string annotation_spec_id = 1; + * * @param value The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecId( - java.lang.String value) { + public Builder addAnnotationSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } /** + * + * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -5907,18 +6922,19 @@ public Builder addAnnotationSpecId(
          * 
* * repeated string annotation_spec_id = 1; + * * @param values The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAllAnnotationSpecId( - java.lang.Iterable values) { + public Builder addAllAnnotationSpecId(java.lang.Iterable values) { ensureAnnotationSpecIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, annotationSpecId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); onChanged(); return this; } /** + * + * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -5927,6 +6943,7 @@ public Builder addAllAnnotationSpecId(
          * 
* * repeated string annotation_spec_id = 1; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { @@ -5936,6 +6953,8 @@ public Builder clearAnnotationSpecId() { return this; } /** + * + * *
          * Output only. IDs of the annotation specs used in the confusion matrix.
          * For Tables CLASSIFICATION
@@ -5944,29 +6963,33 @@ public Builder clearAnnotationSpecId() {
          * 
* * repeated string annotation_spec_id = 1; + * * @param value The bytes of the annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList displayName_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList displayName_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDisplayNameIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { displayName_ = new com.google.protobuf.LazyStringArrayList(displayName_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -5977,13 +7000,15 @@ private void ensureDisplayNameIsMutable() {
          * 
* * repeated string display_name = 3; + * * @return A list containing the displayName. */ - public com.google.protobuf.ProtocolStringList - getDisplayNameList() { + public com.google.protobuf.ProtocolStringList getDisplayNameList() { return displayName_.getUnmodifiableView(); } /** + * + * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -5994,12 +7019,15 @@ private void ensureDisplayNameIsMutable() {
          * 
* * repeated string display_name = 3; + * * @return The count of displayName. */ public int getDisplayNameCount() { return displayName_.size(); } /** + * + * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -6010,6 +7038,7 @@ public int getDisplayNameCount() {
          * 
* * repeated string display_name = 3; + * * @param index The index of the element to return. * @return The displayName at the given index. */ @@ -6017,6 +7046,8 @@ public java.lang.String getDisplayName(int index) { return displayName_.get(index); } /** + * + * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -6027,14 +7058,16 @@ public java.lang.String getDisplayName(int index) {
          * 
* * repeated string display_name = 3; + * * @param index The index of the value to return. * @return The bytes of the displayName at the given index. */ - public com.google.protobuf.ByteString - getDisplayNameBytes(int index) { + public com.google.protobuf.ByteString getDisplayNameBytes(int index) { return displayName_.getByteString(index); } /** + * + * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -6045,21 +7078,23 @@ public java.lang.String getDisplayName(int index) {
          * 
* * repeated string display_name = 3; + * * @param index The index to set the value at. * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - int index, java.lang.String value) { + public Builder setDisplayName(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDisplayNameIsMutable(); + throw new NullPointerException(); + } + ensureDisplayNameIsMutable(); displayName_.set(index, value); onChanged(); return this; } /** + * + * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -6070,20 +7105,22 @@ public Builder setDisplayName(
          * 
* * repeated string display_name = 3; + * * @param value The displayName to add. * @return This builder for chaining. */ - public Builder addDisplayName( - java.lang.String value) { + public Builder addDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDisplayNameIsMutable(); + throw new NullPointerException(); + } + ensureDisplayNameIsMutable(); displayName_.add(value); onChanged(); return this; } /** + * + * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -6094,18 +7131,19 @@ public Builder addDisplayName(
          * 
* * repeated string display_name = 3; + * * @param values The displayName to add. * @return This builder for chaining. */ - public Builder addAllDisplayName( - java.lang.Iterable values) { + public Builder addAllDisplayName(java.lang.Iterable values) { ensureDisplayNameIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, displayName_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, displayName_); onChanged(); return this; } /** + * + * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -6116,6 +7154,7 @@ public Builder addAllDisplayName(
          * 
* * repeated string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -6125,6 +7164,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
          * Output only. Display name of the annotation specs used in the confusion
          * matrix, as they were at the moment of the evaluation. For Tables
@@ -6135,34 +7176,48 @@ public Builder clearDisplayName() {
          * 
* * repeated string display_name = 3; + * * @param value The bytes of the displayName to add. * @return This builder for chaining. */ - public Builder addDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder addDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDisplayNameIsMutable(); displayName_.add(value); onChanged(); return this; } - private java.util.List row_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row> + row_ = java.util.Collections.emptyList(); + private void ensureRowIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - row_ = new java.util.ArrayList(row_); + row_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row>(row_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> rowBuilder_; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.RowOrBuilder> + rowBuilder_; /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6171,9 +7226,14 @@ private void ensureRowIsMutable() {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public java.util.List getRowList() { + public java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row> + getRowList() { if (rowBuilder_ == null) { return java.util.Collections.unmodifiableList(row_); } else { @@ -6181,6 +7241,8 @@ public java.util.List * Output only. Rows in the confusion matrix. The number of rows is equal to * the size of `annotation_spec_id`. @@ -6189,7 +7251,9 @@ public java.util.List * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public int getRowCount() { if (rowBuilder_ == null) { @@ -6199,6 +7263,8 @@ public int getRowCount() { } } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6207,9 +7273,13 @@ public int getRowCount() {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + getRow(int index) { if (rowBuilder_ == null) { return row_.get(index); } else { @@ -6217,6 +7287,8 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat } } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6225,10 +7297,15 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder setRow( - int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { + int index, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6242,6 +7319,8 @@ public Builder setRow( return this; } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6250,10 +7329,15 @@ public Builder setRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder setRow( - int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { + int index, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row.Builder + builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.set(index, builderForValue.build()); @@ -6264,6 +7348,8 @@ public Builder setRow( return this; } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6272,9 +7358,14 @@ public Builder setRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public Builder addRow(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { + public Builder addRow( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6288,6 +7379,8 @@ public Builder addRow(com.google.cloud.automl.v1beta1.ClassificationProto.Classi return this; } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6296,10 +7389,15 @@ public Builder addRow(com.google.cloud.automl.v1beta1.ClassificationProto.Classi
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder addRow( - int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row value) { + int index, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row + value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6313,6 +7411,8 @@ public Builder addRow( return this; } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6321,10 +7421,14 @@ public Builder addRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder addRow( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row.Builder + builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.add(builderForValue.build()); @@ -6335,6 +7439,8 @@ public Builder addRow( return this; } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6343,10 +7449,15 @@ public Builder addRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder addRow( - int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder builderForValue) { + int index, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row.Builder + builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.add(index, builderForValue.build()); @@ -6357,6 +7468,8 @@ public Builder addRow( return this; } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6365,14 +7478,19 @@ public Builder addRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder addAllRow( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row> + values) { if (rowBuilder_ == null) { ensureRowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, row_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, row_); onChanged(); } else { rowBuilder_.addAllMessages(values); @@ -6380,6 +7498,8 @@ public Builder addAllRow( return this; } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6388,7 +7508,9 @@ public Builder addAllRow(
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder clearRow() { if (rowBuilder_ == null) { @@ -6401,6 +7523,8 @@ public Builder clearRow() { return this; } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6409,7 +7533,9 @@ public Builder clearRow() {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ public Builder removeRow(int index) { if (rowBuilder_ == null) { @@ -6422,6 +7548,8 @@ public Builder removeRow(int index) { return this; } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6430,13 +7558,18 @@ public Builder removeRow(int index) {
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder getRowBuilder( - int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row.Builder + getRowBuilder(int index) { return getRowFieldBuilder().getBuilder(index); } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6445,16 +7578,22 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.RowOrBuilder + getRowOrBuilder(int index) { if (rowBuilder_ == null) { - return row_.get(index); } else { + return row_.get(index); + } else { return rowBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6463,10 +7602,15 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public java.util.List - getRowOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> + getRowOrBuilderList() { if (rowBuilder_ != null) { return rowBuilder_.getMessageOrBuilderList(); } else { @@ -6474,6 +7618,8 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat } } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6482,13 +7628,21 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addRowBuilder() { - return getRowFieldBuilder().addBuilder( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row.Builder + addRowBuilder() { + return getRowFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6497,14 +7651,22 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addRowBuilder( - int index) { - return getRowFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row.Builder + addRowBuilder(int index) { + return getRowFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance()); } /** + * + * *
          * Output only. Rows in the confusion matrix. The number of rows is equal to
          * the size of `annotation_spec_id`.
@@ -6513,26 +7675,40 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
          * `annotation_spec_id[j]` by the model being evaluated.
          * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; + * */ - public java.util.List - getRowBuilderList() { + public java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row.Builder> + getRowBuilderList() { return getRowFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Row.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.RowOrBuilder> getRowFieldBuilder() { if (rowBuilder_ == null) { - rowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder>( - row_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + rowBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder>( + row_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); row_ = null; } return rowBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6545,30 +7721,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) - private static final com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix(); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfusionMatrix parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfusionMatrix(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfusionMatrix parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfusionMatrix(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6580,21 +7762,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int AU_PRC_FIELD_NUMBER = 1; private float auPrc_; /** + * + * *
      * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
      * for the overall evaluation.
      * 
* * float au_prc = 1; + * * @return The auPrc. */ @java.lang.Override @@ -6605,6 +7791,8 @@ public float getAuPrc() { public static final int BASE_AU_PRC_FIELD_NUMBER = 2; private float baseAuPrc_; /** + * + * *
      * Output only. The Area Under Precision-Recall Curve metric based on priors.
      * Micro-averaged for the overall evaluation.
@@ -6612,22 +7800,27 @@ public float getAuPrc() {
      * 
* * float base_au_prc = 2 [deprecated = true]; + * * @return The baseAuPrc. */ @java.lang.Override - @java.lang.Deprecated public float getBaseAuPrc() { + @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; + * * @return The auRoc. */ @java.lang.Override @@ -6638,11 +7831,14 @@ public float getAuRoc() { public static final int LOG_LOSS_FIELD_NUMBER = 7; private float logLoss_; /** + * + * *
      * Output only. The Log Loss metric.
      * 
* * float log_loss = 7; + * * @return The logLoss. */ @java.lang.Override @@ -6651,8 +7847,13 @@ public float getLogLoss() { } public static final int CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER = 3; - private java.util.List confidenceMetricsEntry_; + private java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry> + confidenceMetricsEntry_; /** + * + * *
      * 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
@@ -6663,13 +7864,20 @@ public float getLogLoss() {
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ @java.lang.Override - public java.util.List getConfidenceMetricsEntryList() { + public java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry> + getConfidenceMetricsEntryList() { return confidenceMetricsEntry_; } /** + * + * *
      * 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
@@ -6680,14 +7888,21 @@ public java.util.List
      *
-     * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
+     * 
+     * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
+     * 
      */
     @java.lang.Override
-    public java.util.List 
+    public java.util.List<
+            ? extends
+                com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+                    .ConfidenceMetricsEntryOrBuilder>
         getConfidenceMetricsEntryOrBuilderList() {
       return confidenceMetricsEntry_;
     }
     /**
+     *
+     *
      * 
      * 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
@@ -6698,13 +7913,17 @@ public java.util.List
      *
-     * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
+     * 
+     * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
+     * 
      */
     @java.lang.Override
     public int getConfidenceMetricsEntryCount() {
       return confidenceMetricsEntry_.size();
     }
     /**
+     *
+     *
      * 
      * 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
@@ -6715,13 +7934,19 @@ public int getConfidenceMetricsEntryCount() {
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + getConfidenceMetricsEntry(int index) { return confidenceMetricsEntry_.get(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
@@ -6732,17 +7957,24 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
      * metrics are computed.
      * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntryOrBuilder(int index) { return confidenceMetricsEntry_.get(index); } public static final int CONFUSION_MATRIX_FIELD_NUMBER = 4; - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; + private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + confusionMatrix_; /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6750,7 +7982,10 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return Whether the confusionMatrix field is set. */ @java.lang.Override @@ -6758,6 +7993,8 @@ public boolean hasConfusionMatrix() { return confusionMatrix_ != null; } /** + * + * *
      * Output only. Confusion matrix of the evaluation.
      * Only set for MULTICLASS classification problems where number
@@ -6765,14 +8002,24 @@ public boolean hasConfusionMatrix() {
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return The confusionMatrix. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { - return confusionMatrix_ == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + 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 MULTICLASS classification problems where number
@@ -6780,44 +8027,56 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
      * Only set for model level evaluation, not for evaluation per label.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder() { return getConfusionMatrix(); } public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList annotationSpecId_; /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList - getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { return annotationSpecId_; } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -6825,20 +8084,23 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index) { + 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; @@ -6850,8 +8112,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (auPrc_ != 0F) { output.writeFloat(1, auPrc_); } @@ -6883,20 +8144,18 @@ public int getSerializedSize() { size = 0; if (auPrc_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, auPrc_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, auPrc_); } if (baseAuPrc_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, baseAuPrc_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, baseAuPrc_); } for (int i = 0; i < confidenceMetricsEntry_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, confidenceMetricsEntry_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, confidenceMetricsEntry_.get(i)); } if (confusionMatrix_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getConfusionMatrix()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfusionMatrix()); } { int dataSize = 0; @@ -6907,12 +8166,10 @@ public int getSerializedSize() { size += 1 * getAnnotationSpecIdList().size(); } if (auRoc_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, auRoc_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, auRoc_); } if (logLoss_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, logLoss_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, logLoss_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6922,34 +8179,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)) { + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics other = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) obj; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics other = + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) obj; if (java.lang.Float.floatToIntBits(getAuPrc()) - != java.lang.Float.floatToIntBits( - other.getAuPrc())) return false; + != java.lang.Float.floatToIntBits(other.getAuPrc())) return false; if (java.lang.Float.floatToIntBits(getBaseAuPrc()) - != java.lang.Float.floatToIntBits( - other.getBaseAuPrc())) return false; + != java.lang.Float.floatToIntBits(other.getBaseAuPrc())) return false; if (java.lang.Float.floatToIntBits(getAuRoc()) - != java.lang.Float.floatToIntBits( - other.getAuRoc())) return false; + != 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; + != java.lang.Float.floatToIntBits(other.getLogLoss())) return false; + if (!getConfidenceMetricsEntryList().equals(other.getConfidenceMetricsEntryList())) + return false; if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; if (hasConfusionMatrix()) { - if (!getConfusionMatrix() - .equals(other.getConfusionMatrix())) return false; + if (!getConfusionMatrix().equals(other.getConfusionMatrix())) return false; } - if (!getAnnotationSpecIdList() - .equals(other.getAnnotationSpecIdList())) return false; + if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6962,17 +8216,13 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AU_PRC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAuPrc()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits(getBaseAuPrc()); hash = (37 * hash) + AU_ROC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAuRoc()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuRoc()); hash = (37 * hash) + LOG_LOSS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLogLoss()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLogLoss()); if (getConfidenceMetricsEntryCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntryList().hashCode(); @@ -6990,88 +8240,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics + 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.ClassificationEvaluationMetrics parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics + 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.ClassificationEvaluationMetrics parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics + 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.ClassificationEvaluationMetrics 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 + .ClassificationEvaluationMetrics + 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.ClassificationEvaluationMetrics 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 + .ClassificationEvaluationMetrics + 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.ClassificationEvaluationMetrics 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 + .ClassificationEvaluationMetrics + 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.ClassificationEvaluationMetrics 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 + .ClassificationEvaluationMetrics + 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.ClassificationEvaluationMetrics 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 + .ClassificationEvaluationMetrics + 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.ClassificationEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream 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 + .ClassificationEvaluationMetrics + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7081,6 +8357,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Model evaluation metrics for classification problems.
      * Note: For Video Classification this metrics only describe quality of the
@@ -7089,39 +8367,46 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics)
-        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetricsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor;
+        com.google.cloud.automl.v1beta1.ClassificationProto
+            .ClassificationEvaluationMetricsOrBuilder {
+      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
+        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);
+                com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+                    .class,
+                com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+                    .Builder.class);
       }
 
-      // Construct using com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.newBuilder()
+      // Construct using
+      // com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getConfidenceMetricsEntryFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -7151,19 +8436,23 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.automl.v1beta1.ClassificationProto
+            .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getDefaultInstanceForType() {
-        return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance();
+      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+          getDefaultInstanceForType() {
+        return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+            .getDefaultInstance();
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics build() {
-        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics result = buildPartial();
+      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+          build() {
+        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -7171,8 +8460,11 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
       }
 
       @java.lang.Override
-      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics buildPartial() {
-        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics(this);
+      public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+          buildPartial() {
+        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics result =
+            new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics(
+                this);
         int from_bitField0_ = bitField0_;
         result.auPrc_ = auPrc_;
         result.baseAuPrc_ = baseAuPrc_;
@@ -7180,7 +8472,8 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
         result.logLoss_ = logLoss_;
         if (confidenceMetricsEntryBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
-            confidenceMetricsEntry_ = java.util.Collections.unmodifiableList(confidenceMetricsEntry_);
+            confidenceMetricsEntry_ =
+                java.util.Collections.unmodifiableList(confidenceMetricsEntry_);
             bitField0_ = (bitField0_ & ~0x00000001);
           }
           result.confidenceMetricsEntry_ = confidenceMetricsEntry_;
@@ -7205,46 +8498,57 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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) {
-          return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)other);
+        if (other
+            instanceof
+            com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) {
+          return mergeFrom(
+              (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)
+                  other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics other) {
-        if (other == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+              other) {
+        if (other
+            == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+                .getDefaultInstance()) return this;
         if (other.getAuPrc() != 0F) {
           setAuPrc(other.getAuPrc());
         }
@@ -7275,9 +8579,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.Cla
               confidenceMetricsEntryBuilder_ = null;
               confidenceMetricsEntry_ = other.confidenceMetricsEntry_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              confidenceMetricsEntryBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getConfidenceMetricsEntryFieldBuilder() : null;
+              confidenceMetricsEntryBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getConfidenceMetricsEntryFieldBuilder()
+                      : null;
             } else {
               confidenceMetricsEntryBuilder_.addAllMessages(other.confidenceMetricsEntry_);
             }
@@ -7311,11 +8616,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics parsedMessage = null;
+        com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
+            parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -7324,16 +8632,20 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
-      private float auPrc_ ;
+      private float auPrc_;
       /**
+       *
+       *
        * 
        * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
        * for the overall evaluation.
        * 
* * float au_prc = 1; + * * @return The auPrc. */ @java.lang.Override @@ -7341,39 +8653,47 @@ public float getAuPrc() { return auPrc_; } /** + * + * *
        * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
        * for the overall evaluation.
        * 
* * float au_prc = 1; + * * @param value The auPrc to set. * @return This builder for chaining. */ public Builder setAuPrc(float value) { - + auPrc_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
        * for the overall evaluation.
        * 
* * float au_prc = 1; + * * @return This builder for chaining. */ public Builder clearAuPrc() { - + auPrc_ = 0F; onChanged(); return this; } - private float baseAuPrc_ ; + private float baseAuPrc_; /** + * + * *
        * Output only. The Area Under Precision-Recall Curve metric based on priors.
        * Micro-averaged for the overall evaluation.
@@ -7381,13 +8701,17 @@ public Builder clearAuPrc() {
        * 
* * float base_au_prc = 2 [deprecated = true]; + * * @return The baseAuPrc. */ @java.lang.Override - @java.lang.Deprecated public float getBaseAuPrc() { + @java.lang.Deprecated + public float getBaseAuPrc() { return baseAuPrc_; } /** + * + * *
        * Output only. The Area Under Precision-Recall Curve metric based on priors.
        * Micro-averaged for the overall evaluation.
@@ -7395,16 +8719,20 @@ public Builder clearAuPrc() {
        * 
* * float base_au_prc = 2 [deprecated = true]; + * * @param value The baseAuPrc to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setBaseAuPrc(float value) { - + @java.lang.Deprecated + public Builder setBaseAuPrc(float value) { + baseAuPrc_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The Area Under Precision-Recall Curve metric based on priors.
        * Micro-averaged for the overall evaluation.
@@ -7412,23 +8740,28 @@ public Builder clearAuPrc() {
        * 
* * float base_au_prc = 2 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearBaseAuPrc() { - + @java.lang.Deprecated + public Builder clearBaseAuPrc() { + baseAuPrc_ = 0F; onChanged(); return this; } - private float auRoc_ ; + private float auRoc_; /** + * + * *
        * Output only. The Area Under Receiver Operating Characteristic curve metric.
        * Micro-averaged for the overall evaluation.
        * 
* * float au_roc = 6; + * * @return The auRoc. */ @java.lang.Override @@ -7436,44 +8769,53 @@ 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; + * * @param value The auRoc to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearAuRoc() { - + auRoc_ = 0F; onChanged(); return this; } - private float logLoss_ ; + private float logLoss_; /** + * + * *
        * Output only. The Log Loss metric.
        * 
* * float log_loss = 7; + * * @return The logLoss. */ @java.lang.Override @@ -7481,48 +8823,69 @@ public float getLogLoss() { return logLoss_; } /** + * + * *
        * Output only. The Log Loss metric.
        * 
* * float log_loss = 7; + * * @param value The logLoss to set. * @return This builder for chaining. */ public Builder setLogLoss(float value) { - + logLoss_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The Log Loss metric.
        * 
* * float log_loss = 7; + * * @return This builder for chaining. */ public Builder clearLogLoss() { - + logLoss_ = 0F; onChanged(); return this; } - private java.util.List confidenceMetricsEntry_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry> + confidenceMetricsEntry_ = java.util.Collections.emptyList(); + private void ensureConfidenceMetricsEntryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntry_ = new java.util.ArrayList(confidenceMetricsEntry_); + confidenceMetricsEntry_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry>( + confidenceMetricsEntry_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> confidenceMetricsEntryBuilder_; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + confidenceMetricsEntryBuilder_; /** + * + * *
        * 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
@@ -7533,9 +8896,14 @@ private void ensureConfidenceMetricsEntryIsMutable() {
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public java.util.List getConfidenceMetricsEntryList() { + public java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry> + getConfidenceMetricsEntryList() { if (confidenceMetricsEntryBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntry_); } else { @@ -7543,6 +8911,8 @@ public java.util.List * 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 @@ -7553,7 +8923,9 @@ public java.util.List * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public int getConfidenceMetricsEntryCount() { if (confidenceMetricsEntryBuilder_ == null) { @@ -7563,6 +8935,8 @@ public 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
@@ -7573,9 +8947,13 @@ public int getConfidenceMetricsEntryCount() {
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + getConfidenceMetricsEntry(int index) { if (confidenceMetricsEntryBuilder_ == null) { return confidenceMetricsEntry_.get(index); } else { @@ -7583,6 +8961,8 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat } } /** + * + * *
        * 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
@@ -7593,10 +8973,15 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder setConfidenceMetricsEntry( - int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7610,6 +8995,8 @@ public Builder setConfidenceMetricsEntry( return this; } /** + * + * *
        * 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
@@ -7620,10 +9007,15 @@ public Builder setConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder setConfidenceMetricsEntry( - int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.set(index, builderForValue.build()); @@ -7634,6 +9026,8 @@ public Builder setConfidenceMetricsEntry( return this; } /** + * + * *
        * 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
@@ -7644,9 +9038,14 @@ public Builder setConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public Builder addConfidenceMetricsEntry(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntry( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7660,6 +9059,8 @@ public Builder addConfidenceMetricsEntry(com.google.cloud.automl.v1beta1.Classif return this; } /** + * + * *
        * 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
@@ -7670,10 +9071,15 @@ public Builder addConfidenceMetricsEntry(com.google.cloud.automl.v1beta1.Classif
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder addConfidenceMetricsEntry( - int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + value) { if (confidenceMetricsEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7687,6 +9093,8 @@ public Builder addConfidenceMetricsEntry( return this; } /** + * + * *
        * 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
@@ -7697,10 +9105,14 @@ public Builder addConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder addConfidenceMetricsEntry( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.add(builderForValue.build()); @@ -7711,6 +9123,8 @@ public Builder addConfidenceMetricsEntry( return this; } /** + * + * *
        * 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
@@ -7721,10 +9135,15 @@ public Builder addConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder addConfidenceMetricsEntry( - int index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.add(index, builderForValue.build()); @@ -7735,6 +9154,8 @@ public Builder addConfidenceMetricsEntry( return this; } /** + * + * *
        * 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
@@ -7745,14 +9166,19 @@ public Builder addConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder addAllConfidenceMetricsEntry( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry> + values) { if (confidenceMetricsEntryBuilder_ == null) { ensureConfidenceMetricsEntryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, confidenceMetricsEntry_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntry_); onChanged(); } else { confidenceMetricsEntryBuilder_.addAllMessages(values); @@ -7760,6 +9186,8 @@ public Builder addAllConfidenceMetricsEntry( return this; } /** + * + * *
        * 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
@@ -7770,7 +9198,9 @@ public Builder addAllConfidenceMetricsEntry(
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder clearConfidenceMetricsEntry() { if (confidenceMetricsEntryBuilder_ == null) { @@ -7783,6 +9213,8 @@ public Builder clearConfidenceMetricsEntry() { return this; } /** + * + * *
        * 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
@@ -7793,7 +9225,9 @@ public Builder clearConfidenceMetricsEntry() {
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ public Builder removeConfidenceMetricsEntry(int index) { if (confidenceMetricsEntryBuilder_ == null) { @@ -7806,6 +9240,8 @@ public Builder removeConfidenceMetricsEntry(int index) { return this; } /** + * + * *
        * 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
@@ -7816,13 +9252,18 @@ public Builder removeConfidenceMetricsEntry(int index) {
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntryBuilder( - int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.Builder + getConfidenceMetricsEntryBuilder(int index) { return getConfidenceMetricsEntryFieldBuilder().getBuilder(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
@@ -7833,16 +9274,22 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntryOrBuilder(int index) { if (confidenceMetricsEntryBuilder_ == null) { - return confidenceMetricsEntry_.get(index); } else { + return confidenceMetricsEntry_.get(index); + } else { return confidenceMetricsEntryBuilder_.getMessageOrBuilder(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
@@ -7853,10 +9300,15 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public java.util.List - getConfidenceMetricsEntryOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntryOrBuilderList() { if (confidenceMetricsEntryBuilder_ != null) { return confidenceMetricsEntryBuilder_.getMessageOrBuilderList(); } else { @@ -7864,6 +9316,8 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat } } /** + * + * *
        * 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
@@ -7874,13 +9328,21 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntryBuilder() { - return getConfidenceMetricsEntryFieldBuilder().addBuilder( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntryBuilder() { + return getConfidenceMetricsEntryFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.getDefaultInstance()); } /** + * + * *
        * 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
@@ -7891,14 +9353,22 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntryBuilder( - int index) { - return getConfidenceMetricsEntryFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntryBuilder(int index) { + return getConfidenceMetricsEntryFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.getDefaultInstance()); } /** + * + * *
        * 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
@@ -7909,18 +9379,34 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * metrics are computed.
        * 
* - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * */ - public java.util.List - getConfidenceMetricsEntryBuilderList() { + public java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.Builder> + getConfidenceMetricsEntryBuilderList() { return getConfidenceMetricsEntryFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntryFieldBuilder() { if (confidenceMetricsEntryBuilder_ == null) { - confidenceMetricsEntryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntry_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -7930,10 +9416,20 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat return confidenceMetricsEntryBuilder_; } - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; + 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_; + 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 MULTICLASS classification problems where number
@@ -7941,13 +9437,18 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return Whether the confusionMatrix field is set. */ public boolean hasConfusionMatrix() { return confusionMatrixBuilder_ != null || confusionMatrix_ != null; } /** + * + * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -7955,17 +9456,27 @@ public boolean hasConfusionMatrix() {
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * * @return The confusionMatrix. */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { + 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_; + 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 MULTICLASS classification problems where number
@@ -7973,9 +9484,14 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ - public Builder setConfusionMatrix(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix value) { + public Builder setConfusionMatrix( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + value) { if (confusionMatrixBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7989,6 +9505,8 @@ public Builder setConfusionMatrix(com.google.cloud.automl.v1beta1.Classification return this; } /** + * + * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -7996,10 +9514,14 @@ public Builder setConfusionMatrix(com.google.cloud.automl.v1beta1.Classification
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ public Builder setConfusionMatrix( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Builder + builderForValue) { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = builderForValue.build(); onChanged(); @@ -8010,6 +9532,8 @@ public Builder setConfusionMatrix( return this; } /** + * + * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -8017,13 +9541,21 @@ public Builder setConfusionMatrix(
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ - public Builder mergeConfusionMatrix(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix value) { + 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(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.newBuilder(confusionMatrix_) + .mergeFrom(value) + .buildPartial(); } else { confusionMatrix_ = value; } @@ -8035,6 +9567,8 @@ public Builder mergeConfusionMatrix(com.google.cloud.automl.v1beta1.Classificati return this; } /** + * + * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -8042,7 +9576,9 @@ public Builder mergeConfusionMatrix(com.google.cloud.automl.v1beta1.Classificati
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ public Builder clearConfusionMatrix() { if (confusionMatrixBuilder_ == null) { @@ -8056,6 +9592,8 @@ public Builder clearConfusionMatrix() { return this; } /** + * + * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -8063,14 +9601,20 @@ public Builder clearConfusionMatrix() {
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder getConfusionMatrixBuilder() { - + 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 MULTICLASS classification problems where number
@@ -8078,17 +9622,25 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { + 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_; + return confusionMatrix_ == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.getDefaultInstance() + : confusionMatrix_; } } /** + * + * *
        * Output only. Confusion matrix of the evaluation.
        * Only set for MULTICLASS classification problems where number
@@ -8096,58 +9648,79 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
        * Only set for model level evaluation, not for evaluation per label.
        * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * */ 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> + 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()); + 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 com.google.protobuf.LazyStringList annotationSpecId_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAnnotationSpecIdIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; + * * @return A list containing the annotationSpecId. */ - public com.google.protobuf.ProtocolStringList - getAnnotationSpecIdList() { + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { return annotationSpecId_.getUnmodifiableView(); } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; + * * @return The count of annotationSpecId. */ public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ @@ -8155,80 +9728,90 @@ public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index) { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; + * * @param index The index to set the value at. * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId( - int index, java.lang.String value) { + public Builder setAnnotationSpecId(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.set(index, value); onChanged(); return this; } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; + * * @param value The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecId( - java.lang.String value) { + public Builder addAnnotationSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; + * * @param values The annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAllAnnotationSpecId( - java.lang.Iterable values) { + public Builder addAllAnnotationSpecId(java.lang.Iterable values) { ensureAnnotationSpecIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, annotationSpecId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); onChanged(); return this; } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { @@ -8238,25 +9821,28 @@ public Builder clearAnnotationSpecId() { return this; } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * 
* * repeated string annotation_spec_id = 5; + * * @param value The bytes of the annotationSpecId to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { @@ -8269,30 +9855,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics) - private static final com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics(); } - public static com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationEvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationEvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationEvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8304,135 +9895,167 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_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 + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { java.lang.String[] descriptorData = { - "\n0google/cloud/automl/v1beta1/classifica" + - "tion.proto\022\033google.cloud.automl.v1beta1\032" + - "*google/cloud/automl/v1beta1/temporal.pr" + - "oto\032\034google/api/annotations.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\"\251" + - "\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\300\001\n\017ConfusionMat" + - "rix\022\032\n\022annotation_spec_id\030\001 \003(\t\022\024\n\014displ" + - "ay_name\030\003 \003(\t\022]\n\003row\030\002 \003(\0132P.google.clou" + - "d.automl.v1beta1.ClassificationEvaluatio" + - "nMetrics.ConfusionMatrix.Row\032\034\n\003Row\022\025\n\re" + - "xample_count\030\001 \003(\005*Y\n\022ClassificationType" + - "\022#\n\037CLASSIFICATION_TYPE_UNSPECIFIED\020\000\022\016\n" + - "\nMULTICLASS\020\001\022\016\n\nMULTILABEL\020\002B\270\001\n\037com.go" + - "ogle.cloud.automl.v1beta1B\023Classificatio" + - "nProtoZAgoogle.golang.org/genproto/googl" + - "eapis/cloud/automl/v1beta1;automl\312\002\033Goog" + - "le\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud:" + - ":AutoML::V1beta1b\006proto3" + "\n0google/cloud/automl/v1beta1/classifica" + + "tion.proto\022\033google.cloud.automl.v1beta1\032" + + "*google/cloud/automl/v1beta1/temporal.pr" + + "oto\032\034google/api/annotations.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\"\251" + + "\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\300\001\n\017ConfusionMat" + + "rix\022\032\n\022annotation_spec_id\030\001 \003(\t\022\024\n\014displ" + + "ay_name\030\003 \003(\t\022]\n\003row\030\002 \003(\0132P.google.clou" + + "d.automl.v1beta1.ClassificationEvaluatio" + + "nMetrics.ConfusionMatrix.Row\032\034\n\003Row\022\025\n\re" + + "xample_count\030\001 \003(\005*Y\n\022ClassificationType" + + "\022#\n\037CLASSIFICATION_TYPE_UNSPECIFIED\020\000\022\016\n" + + "\nMULTICLASS\020\001\022\016\n\nMULTILABEL\020\002B\270\001\n\037com.go" + + "ogle.cloud.automl.v1beta1B\023Classificatio" + + "nProtoZAgoogle.golang.org/genproto/googl" + + "eapis/cloud/automl/v1beta1;automl\312\002\033Goog" + + "le\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud:" + + ":AutoML::V1beta1b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor, - new java.lang.String[] { "Score", }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor, + new java.lang.String[] { + "Score", + }); 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", }); + 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", "AuRoc", "LogLoss", "ConfidenceMetricsEntry", "ConfusionMatrix", "AnnotationSpecId", }); + 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", + "AuRoc", + "LogLoss", + "ConfidenceMetricsEntry", + "ConfusionMatrix", + "AnnotationSpecId", + }); internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor = - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - 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_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.getNestedTypes().get(1); - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor, - new java.lang.String[] { "AnnotationSpecId", "DisplayName", "Row", }); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor, + new java.lang.String[] { + "AnnotationSpecId", "DisplayName", "Row", + }); internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor = - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor, - new java.lang.String[] { "ExampleCount", }); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor, + new java.lang.String[] { + "ExampleCount", + }); com.google.cloud.automl.v1beta1.Temporal.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java index 10d8cf661..205daa7c2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 .
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec}
  */
-public final class ColumnSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  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_ = "";
@@ -31,16 +49,15 @@ private ColumnSpec() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ColumnSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ColumnSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,73 +77,86 @@ private ColumnSpec(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          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();
+              name_ = s;
+              break;
             }
-            dataType_ = input.readMessage(com.google.cloud.automl.v1beta1.DataType.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(dataType_);
-              dataType_ = subBuilder.buildPartial();
+          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();
 
-            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();
+              }
 
-            displayName_ = s;
-            break;
-          }
-          case 34: {
-            com.google.cloud.automl.v1beta1.DataStats.Builder subBuilder = null;
-            if (dataStats_ != null) {
-              subBuilder = dataStats_.toBuilder();
+              break;
             }
-            dataStats_ = input.readMessage(com.google.cloud.automl.v1beta1.DataStats.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(dataStats_);
-              dataStats_ = subBuilder.buildPartial();
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                topCorrelatedColumns_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              topCorrelatedColumns_.add(
+                  input.readMessage(
+                      com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              topCorrelatedColumns_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              etag_ = s;
+              break;
             }
-            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;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         topCorrelatedColumns_ = java.util.Collections.unmodifiableList(topCorrelatedColumns_);
@@ -135,64 +165,81 @@ private ColumnSpec(
       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;
+
+  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
+    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);
+            com.google.cloud.automl.v1beta1.ColumnSpec.class,
+            com.google.cloud.automl.v1beta1.ColumnSpec.Builder.class);
   }
 
-  public interface CorrelatedColumnOrBuilder extends
+  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; + * * @return The columnSpecId. */ 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; + * * @return The bytes for columnSpecId. */ - com.google.protobuf.ByteString - getColumnSpecIdBytes(); + com.google.protobuf.ByteString getColumnSpecIdBytes(); /** + * + * *
      * Correlation between this and the in-context column.
      * 
* * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + * * @return Whether the correlationStats field is set. */ boolean hasCorrelationStats(); /** + * + * *
      * Correlation between this and the in-context column.
      * 
* * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + * * @return The correlationStats. */ com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats(); /** + * + * *
      * Correlation between this and the in-context column.
      * 
@@ -202,6 +249,8 @@ public interface CorrelatedColumnOrBuilder extends com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder getCorrelationStatsOrBuilder(); } /** + * + * *
    * Identifies the table's column, and its correlation with the column this
    * ColumnSpec describes.
@@ -209,31 +258,31 @@ public interface CorrelatedColumnOrBuilder extends
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn}
    */
-  public static final class CorrelatedColumn extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  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;
+    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
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new CorrelatedColumn();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private CorrelatedColumn(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -252,66 +301,76 @@ private CorrelatedColumn(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            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();
+                columnSpecId_ = s;
+                break;
               }
-              correlationStats_ = input.readMessage(com.google.cloud.automl.v1beta1.CorrelationStats.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(correlationStats_);
-                correlationStats_ = subBuilder.buildPartial();
+            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;
               }
-
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              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);
+        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;
+
+    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
+      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);
+              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; + * * @return The columnSpecId. */ @java.lang.Override @@ -320,30 +379,30 @@ public java.lang.String getColumnSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for columnSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString - getColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnSpecId_ = b; return b; } else { @@ -354,11 +413,14 @@ public java.lang.String getColumnSpecId() { 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; + * * @return Whether the correlationStats field is set. */ @java.lang.Override @@ -366,18 +428,25 @@ public boolean hasCorrelationStats() { return correlationStats_ != null; } /** + * + * *
      * Correlation between this and the in-context column.
      * 
* * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + * * @return The correlationStats. */ @java.lang.Override public com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats() { - return correlationStats_ == null ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() : correlationStats_; + return correlationStats_ == null + ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() + : correlationStats_; } /** + * + * *
      * Correlation between this and the in-context column.
      * 
@@ -385,11 +454,13 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats() { * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder getCorrelationStatsOrBuilder() { + public com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder + getCorrelationStatsOrBuilder() { return getCorrelationStats(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -401,8 +472,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnSpecId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnSpecId_); } @@ -422,8 +492,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnSpecId_); } if (correlationStats_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCorrelationStats()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCorrelationStats()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -433,19 +502,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn other = + (com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) obj; - if (!getColumnSpecId() - .equals(other.getColumnSpecId())) return false; + if (!getColumnSpecId().equals(other.getColumnSpecId())) return false; if (hasCorrelationStats() != other.hasCorrelationStats()) return false; if (hasCorrelationStats()) { - if (!getCorrelationStats() - .equals(other.getCorrelationStats())) return false; + if (!getCorrelationStats().equals(other.getCorrelationStats())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -470,87 +538,94 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -560,6 +635,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Identifies the table's column, and its correlation with the column this
      * ColumnSpec describes.
@@ -567,21 +644,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    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;
+      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
+        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);
+                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()
@@ -589,16 +669,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -614,13 +693,14 @@ public Builder clear() {
       }
 
       @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;
+      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() {
+      public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn
+          getDefaultInstanceForType() {
         return com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance();
       }
 
@@ -635,7 +715,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn build() {
 
       @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);
+        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_;
@@ -650,38 +731,41 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn buildPartial(
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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);
+          return mergeFrom((com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -689,7 +773,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       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
+            == com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance())
+          return this;
         if (!other.getColumnSpecId().isEmpty()) {
           columnSpecId_ = other.columnSpecId_;
           onChanged();
@@ -716,7 +802,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -728,19 +816,21 @@ public Builder mergeFrom(
 
       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; + * * @return The columnSpecId. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnSpecId_ = s; return s; @@ -749,21 +839,22 @@ public 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; + * * @return The bytes for columnSpecId. */ - public com.google.protobuf.ByteString - getColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnSpecId_ = b; return b; } else { @@ -771,57 +862,64 @@ public 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; + * * @param value The columnSpecId to set. * @return This builder for chaining. */ - public Builder setColumnSpecId( - java.lang.String value) { + public Builder setColumnSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for columnSpecId to set. * @return This builder for chaining. */ - public Builder setColumnSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder setColumnSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + columnSpecId_ = value; onChanged(); return this; @@ -829,34 +927,47 @@ public Builder setColumnSpecIdBytes( 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_; + 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; + * * @return Whether the correlationStats field is set. */ public boolean hasCorrelationStats() { return correlationStatsBuilder_ != null || correlationStats_ != null; } /** + * + * *
        * Correlation between this and the in-context column.
        * 
* * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + * * @return The correlationStats. */ public com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats() { if (correlationStatsBuilder_ == null) { - return correlationStats_ == null ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() : correlationStats_; + return correlationStats_ == null + ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() + : correlationStats_; } else { return correlationStatsBuilder_.getMessage(); } } /** + * + * *
        * Correlation between this and the in-context column.
        * 
@@ -877,6 +988,8 @@ public Builder setCorrelationStats(com.google.cloud.automl.v1beta1.CorrelationSt return this; } /** + * + * *
        * Correlation between this and the in-context column.
        * 
@@ -895,6 +1008,8 @@ public Builder setCorrelationStats( return this; } /** + * + * *
        * Correlation between this and the in-context column.
        * 
@@ -905,7 +1020,9 @@ public Builder mergeCorrelationStats(com.google.cloud.automl.v1beta1.Correlation if (correlationStatsBuilder_ == null) { if (correlationStats_ != null) { correlationStats_ = - com.google.cloud.automl.v1beta1.CorrelationStats.newBuilder(correlationStats_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1beta1.CorrelationStats.newBuilder(correlationStats_) + .mergeFrom(value) + .buildPartial(); } else { correlationStats_ = value; } @@ -917,6 +1034,8 @@ public Builder mergeCorrelationStats(com.google.cloud.automl.v1beta1.Correlation return this; } /** + * + * *
        * Correlation between this and the in-context column.
        * 
@@ -935,6 +1054,8 @@ public Builder clearCorrelationStats() { return this; } /** + * + * *
        * Correlation between this and the in-context column.
        * 
@@ -942,26 +1063,32 @@ public Builder clearCorrelationStats() { * .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() { + 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_; + return correlationStats_ == null + ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() + : correlationStats_; } } /** + * + * *
        * Correlation between this and the in-context column.
        * 
@@ -969,18 +1096,22 @@ public com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder getCorrelationS * .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> + 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()); + 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) { @@ -993,12 +1124,13 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn(); } @@ -1007,16 +1139,16 @@ public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getDef 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); - } - }; + 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; @@ -1031,12 +1163,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the column specs.
    * Form:
@@ -1044,6 +1177,7 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getDefaultIns
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1052,14 +1186,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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:
@@ -1067,16 +1202,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1087,11 +1221,14 @@ public java.lang.String getName() { 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; + * * @return Whether the dataType field is set. */ @java.lang.Override @@ -1099,18 +1236,25 @@ public boolean hasDataType() { return dataType_ != null; } /** + * + * *
    * The data type of elements stored in the column.
    * 
* * .google.cloud.automl.v1beta1.DataType data_type = 2; + * * @return The dataType. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DataType getDataType() { - return dataType_ == null ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() : dataType_; + return dataType_ == null + ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() + : dataType_; } /** + * + * *
    * The data type of elements stored in the column.
    * 
@@ -1125,6 +1269,8 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder() 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
@@ -1133,6 +1279,7 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder()
    * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -1141,14 +1288,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -1157,16 +1305,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1177,6 +1324,8 @@ public java.lang.String getDisplayName() { 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
@@ -1185,6 +1334,7 @@ public java.lang.String getDisplayName() {
    * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + * * @return Whether the dataStats field is set. */ @java.lang.Override @@ -1192,6 +1342,8 @@ 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
@@ -1200,13 +1352,18 @@ public boolean hasDataStats() {
    * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + * * @return The dataStats. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DataStats getDataStats() { - return dataStats_ == null ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() : dataStats_; + 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
@@ -1222,74 +1379,101 @@ public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getDataStatsOrBuilder(
   }
 
   public static final int TOP_CORRELATED_COLUMNS_FIELD_NUMBER = 5;
-  private java.util.List topCorrelatedColumns_;
+  private java.util.List
+      topCorrelatedColumns_;
   /**
+   *
+   *
    * 
    * Deprecated.
    * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ @java.lang.Override - public java.util.List getTopCorrelatedColumnsList() { + public java.util.List + getTopCorrelatedColumnsList() { return topCorrelatedColumns_; } /** + * + * *
    * Deprecated.
    * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder> getTopCorrelatedColumnsOrBuilderList() { return topCorrelatedColumns_; } /** + * + * *
    * Deprecated.
    * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ @java.lang.Override public int getTopCorrelatedColumnsCount() { return topCorrelatedColumns_.size(); } /** + * + * *
    * Deprecated.
    * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns(int index) { + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns( + int index) { return topCorrelatedColumns_.get(index); } /** + * + * *
    * Deprecated.
    * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder getTopCorrelatedColumnsOrBuilder( - int index) { + 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; + * * @return The etag. */ @java.lang.Override @@ -1298,30 +1482,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1330,6 +1514,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1341,8 +1526,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1374,19 +1558,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (dataType_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDataType()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataType()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (dataStats_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDataStats()); + 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)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, topCorrelatedColumns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); @@ -1399,31 +1581,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ColumnSpec other = + (com.google.cloud.automl.v1beta1.ColumnSpec) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasDataType() != other.hasDataType()) return false; if (hasDataType()) { - if (!getDataType() - .equals(other.getDataType())) return false; + if (!getDataType().equals(other.getDataType())) return false; } - if (!getDisplayName() - .equals(other.getDisplayName())) 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 (!getDataStats().equals(other.getDataStats())) return false; } - if (!getTopCorrelatedColumnsList() - .equals(other.getTopCorrelatedColumnsList())) return false; - if (!getEtag() - .equals(other.getEtag())) 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; } @@ -1458,97 +1635,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 .
@@ -1558,21 +1742,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.ColumnSpec.class,
+              com.google.cloud.automl.v1beta1.ColumnSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder()
@@ -1580,17 +1766,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getTopCorrelatedColumnsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1622,9 +1808,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -1643,7 +1829,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpec build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.ColumnSpec result =
+          new com.google.cloud.automl.v1beta1.ColumnSpec(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (dataTypeBuilder_ == null) {
@@ -1675,38 +1862,39 @@ public com.google.cloud.automl.v1beta1.ColumnSpec buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.ColumnSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1747,9 +1935,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ColumnSpec other) {
             topCorrelatedColumnsBuilder_ = null;
             topCorrelatedColumns_ = other.topCorrelatedColumns_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            topCorrelatedColumnsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTopCorrelatedColumnsFieldBuilder() : null;
+            topCorrelatedColumnsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTopCorrelatedColumnsFieldBuilder()
+                    : null;
           } else {
             topCorrelatedColumnsBuilder_.addAllMessages(other.topCorrelatedColumns_);
           }
@@ -1787,10 +1976,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the column specs.
      * Form:
@@ -1798,13 +1990,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1813,6 +2005,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the column specs.
      * Form:
@@ -1820,15 +2014,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1836,6 +2029,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the column specs.
      * Form:
@@ -1843,20 +2038,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the column specs.
      * Form:
@@ -1864,15 +2061,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the column specs.
      * Form:
@@ -1880,16 +2080,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1897,34 +2097,47 @@ public Builder setNameBytes( 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_; + 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; + * * @return Whether the dataType field is set. */ 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; + * * @return The dataType. */ public com.google.cloud.automl.v1beta1.DataType getDataType() { if (dataTypeBuilder_ == null) { - return dataType_ == null ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() : dataType_; + return dataType_ == null + ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() + : dataType_; } else { return dataTypeBuilder_.getMessage(); } } /** + * + * *
      * The data type of elements stored in the column.
      * 
@@ -1945,14 +2158,15 @@ public Builder setDataType(com.google.cloud.automl.v1beta1.DataType 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) { + public Builder setDataType(com.google.cloud.automl.v1beta1.DataType.Builder builderForValue) { if (dataTypeBuilder_ == null) { dataType_ = builderForValue.build(); onChanged(); @@ -1963,6 +2177,8 @@ public Builder setDataType( return this; } /** + * + * *
      * The data type of elements stored in the column.
      * 
@@ -1973,7 +2189,9 @@ 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(); + com.google.cloud.automl.v1beta1.DataType.newBuilder(dataType_) + .mergeFrom(value) + .buildPartial(); } else { dataType_ = value; } @@ -1985,6 +2203,8 @@ public Builder mergeDataType(com.google.cloud.automl.v1beta1.DataType value) { return this; } /** + * + * *
      * The data type of elements stored in the column.
      * 
@@ -2003,6 +2223,8 @@ public Builder clearDataType() { return this; } /** + * + * *
      * The data type of elements stored in the column.
      * 
@@ -2010,11 +2232,13 @@ public Builder clearDataType() { * .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.
      * 
@@ -2025,11 +2249,14 @@ 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_; + return dataType_ == null + ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() + : dataType_; } } /** + * + * *
      * The data type of elements stored in the column.
      * 
@@ -2037,14 +2264,17 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder() * .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> + 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()); + 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_; @@ -2052,6 +2282,8 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder() 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
@@ -2060,13 +2292,13 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder()
      * 
* * string display_name = 3; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2075,6 +2307,8 @@ public 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
@@ -2083,15 +2317,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2099,6 +2332,8 @@ public 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
@@ -2107,20 +2342,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -2129,15 +2366,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 3; + * * @return This builder for chaining. */ 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
@@ -2146,16 +2386,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 3; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2163,8 +2403,13 @@ public Builder setDisplayNameBytes( 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_; + 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
@@ -2173,12 +2418,15 @@ public Builder setDisplayNameBytes(
      * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + * * @return Whether the dataStats field is set. */ 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
@@ -2187,16 +2435,21 @@ public boolean hasDataStats() {
      * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + * * @return The dataStats. */ public com.google.cloud.automl.v1beta1.DataStats getDataStats() { if (dataStatsBuilder_ == null) { - return dataStats_ == null ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() : dataStats_; + 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
@@ -2220,6 +2473,8 @@ public Builder setDataStats(com.google.cloud.automl.v1beta1.DataStats value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Stats of the series of values in the column.
      * This field may be stale, see the ancestor's
@@ -2229,8 +2484,7 @@ public Builder setDataStats(com.google.cloud.automl.v1beta1.DataStats value) {
      *
      * .google.cloud.automl.v1beta1.DataStats data_stats = 4;
      */
-    public Builder setDataStats(
-        com.google.cloud.automl.v1beta1.DataStats.Builder builderForValue) {
+    public Builder setDataStats(com.google.cloud.automl.v1beta1.DataStats.Builder builderForValue) {
       if (dataStatsBuilder_ == null) {
         dataStats_ = builderForValue.build();
         onChanged();
@@ -2241,6 +2495,8 @@ public Builder setDataStats(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Stats of the series of values in the column.
      * This field may be stale, see the ancestor's
@@ -2254,7 +2510,9 @@ 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();
+              com.google.cloud.automl.v1beta1.DataStats.newBuilder(dataStats_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           dataStats_ = value;
         }
@@ -2266,6 +2524,8 @@ public Builder mergeDataStats(com.google.cloud.automl.v1beta1.DataStats value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Stats of the series of values in the column.
      * This field may be stale, see the ancestor's
@@ -2287,6 +2547,8 @@ public Builder clearDataStats() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Stats of the series of values in the column.
      * This field may be stale, see the ancestor's
@@ -2297,11 +2559,13 @@ public Builder clearDataStats() {
      * .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
@@ -2315,11 +2579,14 @@ 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_;
+        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
@@ -2330,39 +2597,53 @@ public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getDataStatsOrBuilder(
      * .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> 
+            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());
+        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 java.util.List
+        topCorrelatedColumns_ = java.util.Collections.emptyList();
+
     private void ensureTopCorrelatedColumnsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        topCorrelatedColumns_ = new java.util.ArrayList(topCorrelatedColumns_);
+        topCorrelatedColumns_ =
+            new java.util.ArrayList(
+                topCorrelatedColumns_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     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_;
+            com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn,
+            com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder,
+            com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder>
+        topCorrelatedColumnsBuilder_;
 
     /**
+     *
+     *
      * 
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ - public java.util.List getTopCorrelatedColumnsList() { + public java.util.List + getTopCorrelatedColumnsList() { if (topCorrelatedColumnsBuilder_ == null) { return java.util.Collections.unmodifiableList(topCorrelatedColumns_); } else { @@ -2370,11 +2651,15 @@ public java.util.List * Deprecated. *
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ public int getTopCorrelatedColumnsCount() { if (topCorrelatedColumnsBuilder_ == null) { @@ -2384,13 +2669,18 @@ public int getTopCorrelatedColumnsCount() { } } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ - public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns(int index) { + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns( + int index) { if (topCorrelatedColumnsBuilder_ == null) { return topCorrelatedColumns_.get(index); } else { @@ -2398,11 +2688,15 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrela } } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ public Builder setTopCorrelatedColumns( int index, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { @@ -2419,14 +2713,19 @@ public Builder setTopCorrelatedColumns( return this; } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * 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) { + int index, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder builderForValue) { if (topCorrelatedColumnsBuilder_ == null) { ensureTopCorrelatedColumnsIsMutable(); topCorrelatedColumns_.set(index, builderForValue.build()); @@ -2437,13 +2736,18 @@ public Builder setTopCorrelatedColumns( return this; } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ - public Builder addTopCorrelatedColumns(com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { + public Builder addTopCorrelatedColumns( + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { if (topCorrelatedColumnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2457,11 +2761,15 @@ public Builder addTopCorrelatedColumns(com.google.cloud.automl.v1beta1.ColumnSpe return this; } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ public Builder addTopCorrelatedColumns( int index, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { @@ -2478,11 +2786,15 @@ public Builder addTopCorrelatedColumns( return this; } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ public Builder addTopCorrelatedColumns( com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder builderForValue) { @@ -2496,14 +2808,19 @@ public Builder addTopCorrelatedColumns( return this; } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * 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) { + int index, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder builderForValue) { if (topCorrelatedColumnsBuilder_ == null) { ensureTopCorrelatedColumnsIsMutable(); topCorrelatedColumns_.add(index, builderForValue.build()); @@ -2514,18 +2831,22 @@ public Builder addTopCorrelatedColumns( return this; } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ public Builder addAllTopCorrelatedColumns( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (topCorrelatedColumnsBuilder_ == null) { ensureTopCorrelatedColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topCorrelatedColumns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topCorrelatedColumns_); onChanged(); } else { topCorrelatedColumnsBuilder_.addAllMessages(values); @@ -2533,11 +2854,15 @@ public Builder addAllTopCorrelatedColumns( return this; } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ public Builder clearTopCorrelatedColumns() { if (topCorrelatedColumnsBuilder_ == null) { @@ -2550,11 +2875,15 @@ public Builder clearTopCorrelatedColumns() { return this; } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ public Builder removeTopCorrelatedColumns(int index) { if (topCorrelatedColumnsBuilder_ == null) { @@ -2567,39 +2896,53 @@ public Builder removeTopCorrelatedColumns(int index) { return this; } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ - public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder getTopCorrelatedColumnsBuilder( - int index) { + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder + getTopCorrelatedColumnsBuilder(int index) { return getTopCorrelatedColumnsFieldBuilder().getBuilder(index); } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ - public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder getTopCorrelatedColumnsOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder + getTopCorrelatedColumnsOrBuilder(int index) { if (topCorrelatedColumnsBuilder_ == null) { - return topCorrelatedColumns_.get(index); } else { + return topCorrelatedColumns_.get(index); + } else { return topCorrelatedColumnsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ - public java.util.List - getTopCorrelatedColumnsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder> + getTopCorrelatedColumnsOrBuilderList() { if (topCorrelatedColumnsBuilder_ != null) { return topCorrelatedColumnsBuilder_.getMessageOrBuilderList(); } else { @@ -2607,45 +2950,67 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder getT } } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * 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()); + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder + addTopCorrelatedColumnsBuilder() { + return getTopCorrelatedColumnsFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance()); } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * 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()); + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder + addTopCorrelatedColumnsBuilder(int index) { + return getTopCorrelatedColumnsFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance()); } /** + * + * *
      * Deprecated.
      * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ - public java.util.List - getTopCorrelatedColumnsBuilderList() { + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -2657,19 +3022,21 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder addTo private java.lang.Object etag_ = ""; /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; + * * @return The etag. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -2678,21 +3045,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -2700,64 +3068,71 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2767,12 +3142,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -2781,16 +3156,16 @@ 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); - } - }; + 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; @@ -2805,6 +3180,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ColumnSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java index b094b6c44..52cfc1cc2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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:
@@ -15,10 +33,13 @@ public interface ColumnSpecOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the column specs.
    * Form:
@@ -26,30 +47,38 @@ public interface ColumnSpecOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The data type of elements stored in the column.
    * 
* * .google.cloud.automl.v1beta1.DataType data_type = 2; + * * @return Whether the dataType field is set. */ boolean hasDataType(); /** + * + * *
    * The data type of elements stored in the column.
    * 
* * .google.cloud.automl.v1beta1.DataType data_type = 2; + * * @return The dataType. */ com.google.cloud.automl.v1beta1.DataType getDataType(); /** + * + * *
    * The data type of elements stored in the column.
    * 
@@ -59,6 +88,8 @@ public interface ColumnSpecOrBuilder extends 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
@@ -67,10 +98,13 @@ public interface ColumnSpecOrBuilder extends
    * 
* * string display_name = 3; + * * @return The displayName. */ 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
@@ -79,12 +113,14 @@ public interface ColumnSpecOrBuilder extends
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + 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
@@ -93,10 +129,13 @@ public interface ColumnSpecOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + * * @return Whether the dataStats field is set. */ boolean hasDataStats(); /** + * + * *
    * Output only. Stats of the series of values in the column.
    * This field may be stale, see the ancestor's
@@ -105,10 +144,13 @@ public interface ColumnSpecOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + * * @return The dataStats. */ 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
@@ -121,68 +163,93 @@ public interface ColumnSpecOrBuilder extends
   com.google.cloud.automl.v1beta1.DataStatsOrBuilder getDataStatsOrBuilder();
 
   /**
+   *
+   *
    * 
    * Deprecated.
    * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ - java.util.List + java.util.List getTopCorrelatedColumnsList(); /** + * + * *
    * Deprecated.
    * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns(int index); /** + * + * *
    * Deprecated.
    * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ int getTopCorrelatedColumnsCount(); /** + * + * *
    * Deprecated.
    * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ - java.util.List + java.util.List getTopCorrelatedColumnsOrBuilderList(); /** + * + * *
    * Deprecated.
    * 
* - * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * */ - com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder getTopCorrelatedColumnsOrBuilder( - int index); + 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; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 6; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java new file mode 100644 index 000000000..a8bac9cf2 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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\031go" + + "ogle/api/resource.proto\032,google/cloud/au" + + "toml/v1beta1/data_stats.proto\032,google/cl" + + "oud/automl/v1beta1/data_types.proto\032\034goo" + + "gle/api/annotations.proto\"\233\004\n\nColumnSpec" + + "\022\014\n\004name\030\001 \001(\t\0228\n\tdata_type\030\002 \001(\0132%.goog" + + "le.cloud.automl.v1beta1.DataType\022\024\n\014disp" + + "lay_name\030\003 \001(\t\022:\n\ndata_stats\030\004 \001(\0132&.goo" + + "gle.cloud.automl.v1beta1.DataStats\022X\n\026to" + + "p_correlated_columns\030\005 \003(\01328.google.clou" + + "d.automl.v1beta1.ColumnSpec.CorrelatedCo" + + "lumn\022\014\n\004etag\030\006 \001(\t\032t\n\020CorrelatedColumn\022\026" + + "\n\016column_spec_id\030\001 \001(\t\022H\n\021correlation_st" + + "ats\030\002 \001(\0132-.google.cloud.automl.v1beta1." + + "CorrelationStats:\224\001\352A\220\001\n automl.googleap" + + "is.com/ColumnSpec\022lprojects/{project}/lo" + + "cations/{location}/datasets/{dataset}/ta" + + "bleSpecs/{table_spec}/columnSpecs/{colum" + + "n_spec}B\245\001\n\037com.google.cloud.automl.v1be" + + "ta1P\001ZAgoogle.golang.org/genproto/google" + + "apis/cloud/automl/v1beta1;automl\312\002\033Googl" + + "e\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::" + + "AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.DataTypes.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.DataTypes.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java index 1cf6a2dca..06434c3e4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.CorrelationStats}
  */
-public final class CorrelationStats extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  private static final long serialVersionUID = 0L;
   // Use CorrelationStats.newBuilder() to construct.
   private CorrelationStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private CorrelationStats() {
-  }
+
+  private CorrelationStats() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CorrelationStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CorrelationStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,51 +70,56 @@ private CorrelationStats(
           case 0:
             done = true;
             break;
-          case 9: {
-
-            cramersV_ = input.readDouble();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 9:
+            {
+              cramersV_ = input.readDouble();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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;
+
+  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
+    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);
+            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; + * * @return The cramersV. */ @java.lang.Override @@ -107,6 +128,7 @@ public double getCramersV() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (cramersV_ != 0D) { output.writeDouble(1, cramersV_); } @@ -133,8 +154,7 @@ public int getSerializedSize() { size = 0; if (cramersV_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, cramersV_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, cramersV_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -144,16 +164,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != java.lang.Double.doubleToLongBits(other.getCramersV())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -166,104 +186,113 @@ public int hashCode() { 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 = + (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) + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -272,21 +301,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.CorrelationStats}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.CorrelationStats.class,
+              com.google.cloud.automl.v1beta1.CorrelationStats.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.CorrelationStats.newBuilder()
@@ -294,16 +325,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -313,9 +343,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -334,7 +364,8 @@ public com.google.cloud.automl.v1beta1.CorrelationStats build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.CorrelationStats result =
+          new com.google.cloud.automl.v1beta1.CorrelationStats(this);
       result.cramersV_ = cramersV_;
       onBuilt();
       return result;
@@ -344,38 +375,39 @@ public com.google.cloud.automl.v1beta1.CorrelationStats buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.CorrelationStats) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -383,7 +415,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.CorrelationStats other) {
-      if (other == com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance()) return this;
+      if (other == com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance())
+        return this;
       if (other.getCramersV() != 0D) {
         setCramersV(other.getCramersV());
       }
@@ -416,13 +449,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private double cramersV_ ;
+    private double cramersV_;
     /**
+     *
+     *
      * 
      * The correlation value using the Cramer's V measure.
      * 
* * double cramers_v = 1; + * * @return The cramersV. */ @java.lang.Override @@ -430,37 +466,43 @@ public double getCramersV() { return cramersV_; } /** + * + * *
      * The correlation value using the Cramer's V measure.
      * 
* * double cramers_v = 1; + * * @param value The cramersV to set. * @return This builder for chaining. */ public Builder setCramersV(double value) { - + cramersV_ = value; onChanged(); return this; } /** + * + * *
      * The correlation value using the Cramer's V measure.
      * 
* * double cramers_v = 1; + * * @return This builder for chaining. */ public Builder clearCramersV() { - + cramersV_ = 0D; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -470,12 +512,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -484,16 +526,16 @@ public static com.google.cloud.automl.v1beta1.CorrelationStats getDefaultInstanc 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); - } - }; + 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; @@ -508,6 +550,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.CorrelationStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java new file mode 100644 index 000000000..edca46515 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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; + * + * @return The cramersV. + */ + double getCramersV(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java index 0e3f962b5..df74cca86 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateDatasetRequest} */ -public final class CreateDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.CreateDatasetRequest) CreateDatasetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDatasetRequest.newBuilder() to construct. private CreateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateDatasetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,76 @@ private CreateDatasetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.automl.v1beta1.Dataset.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); + parent_ = s; + break; } - dataset_ = input.readMessage(com.google.cloud.automl.v1beta1.Dataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); + case 18: + { + 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; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_CreateDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, com.google.cloud.automl.v1beta1.CreateDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, + com.google.cloud.automl.v1beta1.CreateDatasetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -120,29 +148,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the project to create the dataset for.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -153,11 +183,16 @@ public java.lang.String getParent() { public static final int DATASET_FIELD_NUMBER = 2; private com.google.cloud.automl.v1beta1.Dataset dataset_; /** + * + * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ @java.lang.Override @@ -165,23 +200,34 @@ public boolean hasDataset() { return dataset_ != null; } /** + * + * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ @java.lang.Override public com.google.cloud.automl.v1beta1.Dataset getDataset() { - return dataset_ == null ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() + : dataset_; } /** + * + * *
    * Required. The dataset to create.
    * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { @@ -189,6 +235,7 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +247,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -221,8 +267,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDataset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataset()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,19 +277,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.CreateDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.CreateDatasetRequest other = (com.google.cloud.automl.v1beta1.CreateDatasetRequest) obj; + com.google.cloud.automl.v1beta1.CreateDatasetRequest other = + (com.google.cloud.automl.v1beta1.CreateDatasetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasDataset() != other.hasDataset()) return false; if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) return false; + if (!getDataset().equals(other.getDataset())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -269,117 +313,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest 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.CreateDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.CreateDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateDatasetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.CreateDatasetRequest) com.google.cloud.automl.v1beta1.CreateDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, com.google.cloud.automl.v1beta1.CreateDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, + com.google.cloud.automl.v1beta1.CreateDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.CreateDatasetRequest.newBuilder() @@ -387,16 +440,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override @@ -433,7 +485,8 @@ public com.google.cloud.automl.v1beta1.CreateDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.CreateDatasetRequest buildPartial() { - com.google.cloud.automl.v1beta1.CreateDatasetRequest result = new com.google.cloud.automl.v1beta1.CreateDatasetRequest(this); + com.google.cloud.automl.v1beta1.CreateDatasetRequest result = + new com.google.cloud.automl.v1beta1.CreateDatasetRequest(this); result.parent_ = parent_; if (datasetBuilder_ == null) { result.dataset_ = dataset_; @@ -448,38 +501,39 @@ public com.google.cloud.automl.v1beta1.CreateDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CreateDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.CreateDatasetRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.CreateDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -487,7 +541,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.CreateDatasetRequest other) { - if (other == com.google.cloud.automl.v1beta1.CreateDatasetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.CreateDatasetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -514,7 +569,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.CreateDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.CreateDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,18 +582,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -546,20 +606,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -567,54 +630,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project to create the dataset for.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -622,39 +698,58 @@ public Builder setParentBytes( 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_; + com.google.cloud.automl.v1beta1.Dataset, + com.google.cloud.automl.v1beta1.Dataset.Builder, + com.google.cloud.automl.v1beta1.DatasetOrBuilder> + datasetBuilder_; /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ public boolean hasDataset() { return datasetBuilder_ != null || dataset_ != null; } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ public com.google.cloud.automl.v1beta1.Dataset getDataset() { if (datasetBuilder_ == null) { - return dataset_ == null ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() + : dataset_; } else { return datasetBuilder_.getMessage(); } } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset value) { if (datasetBuilder_ == null) { @@ -670,14 +765,17 @@ public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset value) { return this; } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDataset( - com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { + public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); onChanged(); @@ -688,17 +786,23 @@ public Builder setDataset( return this; } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ 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(); + com.google.cloud.automl.v1beta1.Dataset.newBuilder(dataset_) + .mergeFrom(value) + .buildPartial(); } else { dataset_ = value; } @@ -710,11 +814,15 @@ public Builder mergeDataset(com.google.cloud.automl.v1beta1.Dataset value) { return this; } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -728,55 +836,71 @@ public Builder clearDataset() { return this; } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.Dataset.Builder getDatasetBuilder() { - + onChanged(); return getDatasetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; + return dataset_ == null + ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() + : dataset_; } } /** + * + * *
      * Required. The dataset to create.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Dataset, com.google.cloud.automl.v1beta1.Dataset.Builder, com.google.cloud.automl.v1beta1.DatasetOrBuilder> + 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()); + 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -786,12 +910,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.CreateDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateDatasetRequest) private static final com.google.cloud.automl.v1beta1.CreateDatasetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.CreateDatasetRequest(); } @@ -800,16 +924,16 @@ public static com.google.cloud.automl.v1beta1.CreateDatasetRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,6 +948,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.CreateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java new file mode 100644 index 000000000..bad2a23f5 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface CreateDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CreateDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the project to create the dataset for.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the project to create the dataset for.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The dataset to create.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataset field is set. + */ + boolean hasDataset(); + /** + * + * + *
+   * Required. The dataset to create.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataset. + */ + com.google.cloud.automl.v1beta1.Dataset getDataset(); + /** + * + * + *
+   * Required. The dataset to create.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java index 6661c191e..35d5be3d2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/operations.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Details of CreateModel operation.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateModelOperationMetadata} */ -public final class CreateModelOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.CreateModelOperationMetadata) CreateModelOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateModelOperationMetadata.newBuilder() to construct. private CreateModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateModelOperationMetadata() { - } + + private CreateModelOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private CreateModelOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_CreateModelOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.class, com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.CreateModelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata other = (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) obj; + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata other = + (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateModelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata 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.CreateModelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.CreateModelOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Details of CreateModel operation.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateModelOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.CreateModelOperationMetadata) com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.class, com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder.class); + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,13 +302,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); } @@ -295,7 +324,8 @@ public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata build() { @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata buildPartial() { - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata result = new com.google.cloud.automl.v1beta1.CreateModelOperationMetadata(this); + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata result = + new com.google.cloud.automl.v1beta1.CreateModelOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +334,39 @@ public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CreateModelOperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata)other); + return mergeFrom((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +374,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.CreateModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +406,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +418,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.CreateModelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateModelOperationMetadata) - private static final com.google.cloud.automl.v1beta1.CreateModelOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.CreateModelOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.CreateModelOperationMetadata(); } @@ -398,16 +433,16 @@ public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateModelOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateModelOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateModelOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateModelOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -422,6 +457,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..6887f797e --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public interface CreateModelOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CreateModelOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java index 2ff4bb454..ba8170cb1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateModelRequest} */ -public final class CreateModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.CreateModelRequest) CreateModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateModelRequest.newBuilder() to construct. private CreateModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateModelRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,76 @@ private CreateModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 34: { - com.google.cloud.automl.v1beta1.Model.Builder subBuilder = null; - if (model_ != null) { - subBuilder = model_.toBuilder(); + parent_ = s; + break; } - model_ = input.readMessage(com.google.cloud.automl.v1beta1.Model.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(model_); - model_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.automl.v1beta1.Model.Builder subBuilder = null; + if (model_ != null) { + subBuilder = model_.toBuilder(); + } + model_ = + input.readMessage( + com.google.cloud.automl.v1beta1.Model.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(model_); + model_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_CreateModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateModelRequest.class, com.google.cloud.automl.v1beta1.CreateModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.CreateModelRequest.class, + com.google.cloud.automl.v1beta1.CreateModelRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -120,29 +148,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -153,11 +183,15 @@ public java.lang.String getParent() { public static final int MODEL_FIELD_NUMBER = 4; private com.google.cloud.automl.v1beta1.Model model_; /** + * + * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the model field is set. */ @java.lang.Override @@ -165,11 +199,15 @@ public boolean hasModel() { return model_ != null; } /** + * + * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The model. */ @java.lang.Override @@ -177,11 +215,14 @@ public com.google.cloud.automl.v1beta1.Model getModel() { return model_ == null ? com.google.cloud.automl.v1beta1.Model.getDefaultInstance() : model_; } /** + * + * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder() { @@ -189,6 +230,7 @@ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -221,8 +262,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (model_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getModel()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getModel()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,19 +272,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.CreateModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.CreateModelRequest other = (com.google.cloud.automl.v1beta1.CreateModelRequest) obj; + com.google.cloud.automl.v1beta1.CreateModelRequest other = + (com.google.cloud.automl.v1beta1.CreateModelRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasModel() != other.hasModel()) return false; if (hasModel()) { - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -269,117 +308,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.CreateModelRequest 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.CreateModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.CreateModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.CreateModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.CreateModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.CreateModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.CreateModelRequest) com.google.cloud.automl.v1beta1.CreateModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.CreateModelRequest.class, com.google.cloud.automl.v1beta1.CreateModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.CreateModelRequest.class, + com.google.cloud.automl.v1beta1.CreateModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.CreateModelRequest.newBuilder() @@ -387,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +459,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; } @java.lang.Override @@ -433,7 +480,8 @@ public com.google.cloud.automl.v1beta1.CreateModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelRequest buildPartial() { - com.google.cloud.automl.v1beta1.CreateModelRequest result = new com.google.cloud.automl.v1beta1.CreateModelRequest(this); + com.google.cloud.automl.v1beta1.CreateModelRequest result = + new com.google.cloud.automl.v1beta1.CreateModelRequest(this); result.parent_ = parent_; if (modelBuilder_ == null) { result.model_ = model_; @@ -448,38 +496,39 @@ public com.google.cloud.automl.v1beta1.CreateModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CreateModelRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.CreateModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.CreateModelRequest) other); } else { super.mergeFrom(other); return this; @@ -487,7 +536,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.CreateModelRequest other) { - if (other == com.google.cloud.automl.v1beta1.CreateModelRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.CreateModelRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -514,7 +564,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.CreateModelRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.CreateModelRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,18 +577,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -546,20 +601,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -567,54 +625,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent project where the model is being created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -622,24 +693,35 @@ public Builder setParentBytes( private com.google.cloud.automl.v1beta1.Model model_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder> modelBuilder_; + com.google.cloud.automl.v1beta1.Model, + com.google.cloud.automl.v1beta1.Model.Builder, + com.google.cloud.automl.v1beta1.ModelOrBuilder> + modelBuilder_; /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The model. */ public com.google.cloud.automl.v1beta1.Model getModel() { @@ -650,11 +732,14 @@ public com.google.cloud.automl.v1beta1.Model getModel() { } } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setModel(com.google.cloud.automl.v1beta1.Model value) { if (modelBuilder_ == null) { @@ -670,14 +755,16 @@ public Builder setModel(com.google.cloud.automl.v1beta1.Model value) { return this; } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setModel( - com.google.cloud.automl.v1beta1.Model.Builder builderForValue) { + public Builder setModel(com.google.cloud.automl.v1beta1.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); @@ -688,17 +775,22 @@ public Builder setModel( return this; } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeModel(com.google.cloud.automl.v1beta1.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = - com.google.cloud.automl.v1beta1.Model.newBuilder(model_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1beta1.Model.newBuilder(model_) + .mergeFrom(value) + .buildPartial(); } else { model_ = value; } @@ -710,11 +802,14 @@ public Builder mergeModel(com.google.cloud.automl.v1beta1.Model value) { return this; } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearModel() { if (modelBuilder_ == null) { @@ -728,55 +823,66 @@ public Builder clearModel() { return this; } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.Model.Builder getModelBuilder() { - + onChanged(); return getModelFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { - return model_ == null ? - com.google.cloud.automl.v1beta1.Model.getDefaultInstance() : model_; + return model_ == null ? com.google.cloud.automl.v1beta1.Model.getDefaultInstance() : model_; } } /** + * + * *
      * Required. The model to create.
      * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder> + com.google.cloud.automl.v1beta1.Model, + com.google.cloud.automl.v1beta1.Model.Builder, + com.google.cloud.automl.v1beta1.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder>( - getModel(), - getParentForChildren(), - isClean()); + modelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Model, + com.google.cloud.automl.v1beta1.Model.Builder, + com.google.cloud.automl.v1beta1.ModelOrBuilder>( + getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -786,12 +892,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.CreateModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateModelRequest) private static final com.google.cloud.automl.v1beta1.CreateModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.CreateModelRequest(); } @@ -800,16 +906,16 @@ public static com.google.cloud.automl.v1beta1.CreateModelRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,6 +930,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.CreateModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java index f2e5a8f3c..ac81a5dc9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequestOrBuilder.java @@ -1,56 +1,92 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface CreateModelRequestOrBuilder extends +public interface CreateModelRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CreateModelRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the parent project where the model is being created.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the model field is set. */ boolean hasModel(); /** + * + * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The model. */ com.google.cloud.automl.v1beta1.Model getModel(); /** + * + * *
    * Required. The model to create.
    * 
* - * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.automl.v1beta1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java new file mode 100644 index 000000000..6a543997e --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java @@ -0,0 +1,200 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_items.proto + +package com.google.cloud.automl.v1beta1; + +public final class DataItems { + private DataItems() {} + + 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_Image_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_DocumentDimensions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_DocumentDimensions_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_Document_Layout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Document_Layout_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 + internal_static_google_cloud_automl_v1beta1_ExamplePayload_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_items" + + ".proto\022\033google.cloud.automl.v1beta1\032*goo" + + "gle/cloud/automl/v1beta1/geometry.proto\032" + + "$google/cloud/automl/v1beta1/io.proto\032*g" + + "oogle/cloud/automl/v1beta1/temporal.prot" + + "o\032.google/cloud/automl/v1beta1/text_segm" + + "ent.proto\032\031google/protobuf/any.proto\032\036go" + + "ogle/protobuf/duration.proto\032\034google/pro" + + "tobuf/struct.proto\032\034google/api/annotatio" + + "ns.proto\"\177\n\005Image\022\025\n\013image_bytes\030\001 \001(\014H\000" + + "\022@\n\014input_config\030\006 \001(\0132(.google.cloud.au" + + "toml.v1beta1.InputConfigH\000\022\025\n\rthumbnail_" + + "uri\030\004 \001(\tB\006\n\004data\"F\n\013TextSnippet\022\017\n\007cont" + + "ent\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\022\023\n\013content_" + + "uri\030\004 \001(\t\"\357\001\n\022DocumentDimensions\022S\n\004unit" + + "\030\001 \001(\0162E.google.cloud.automl.v1beta1.Doc" + + "umentDimensions.DocumentDimensionUnit\022\r\n" + + "\005width\030\002 \001(\002\022\016\n\006height\030\003 \001(\002\"e\n\025Document" + + "DimensionUnit\022\'\n#DOCUMENT_DIMENSION_UNIT" + + "_UNSPECIFIED\020\000\022\010\n\004INCH\020\001\022\016\n\nCENTIMETER\020\002" + + "\022\t\n\005POINT\020\003\"\371\005\n\010Document\022F\n\014input_config" + + "\030\001 \001(\01320.google.cloud.automl.v1beta1.Doc" + + "umentInputConfig\022?\n\rdocument_text\030\002 \001(\0132" + + "(.google.cloud.automl.v1beta1.TextSnippe" + + "t\022<\n\006layout\030\003 \003(\0132,.google.cloud.automl." + + "v1beta1.Document.Layout\022L\n\023document_dime" + + "nsions\030\004 \001(\0132/.google.cloud.automl.v1bet" + + "a1.DocumentDimensions\022\022\n\npage_count\030\005 \001(" + + "\005\032\303\003\n\006Layout\022>\n\014text_segment\030\001 \001(\0132(.goo" + + "gle.cloud.automl.v1beta1.TextSegment\022\023\n\013" + + "page_number\030\002 \001(\005\022@\n\rbounding_poly\030\003 \001(\013" + + "2).google.cloud.automl.v1beta1.BoundingP" + + "oly\022W\n\021text_segment_type\030\004 \001(\0162<.google." + + "cloud.automl.v1beta1.Document.Layout.Tex" + + "tSegmentType\"\310\001\n\017TextSegmentType\022!\n\035TEXT" + + "_SEGMENT_TYPE_UNSPECIFIED\020\000\022\t\n\005TOKEN\020\001\022\r" + + "\n\tPARAGRAPH\020\002\022\016\n\nFORM_FIELD\020\003\022\023\n\017FORM_FI" + + "ELD_NAME\020\004\022\027\n\023FORM_FIELD_CONTENTS\020\005\022\t\n\005T" + + "ABLE\020\006\022\020\n\014TABLE_HEADER\020\007\022\r\n\tTABLE_ROW\020\010\022" + + "\016\n\nTABLE_CELL\020\t\"F\n\003Row\022\027\n\017column_spec_id" + + "s\030\002 \003(\t\022&\n\006values\030\003 \003(\0132\026.google.protobu" + + "f.Value\"\376\001\n\016ExamplePayload\0223\n\005image\030\001 \001(" + + "\0132\".google.cloud.automl.v1beta1.ImageH\000\022" + + "@\n\014text_snippet\030\002 \001(\0132(.google.cloud.aut" + + "oml.v1beta1.TextSnippetH\000\0229\n\010document\030\004 " + + "\001(\0132%.google.cloud.automl.v1beta1.Docume" + + "ntH\000\022/\n\003row\030\003 \001(\0132 .google.cloud.automl." + + "v1beta1.RowH\000B\t\n\007payloadB\245\001\n\037com.google." + + "cloud.automl.v1beta1P\001ZAgoogle.golang.or" + + "g/genproto/googleapis/cloud/automl/v1bet" + + "a1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352" + + "\002\036Google::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.Geometry.getDescriptor(), + com.google.cloud.automl.v1beta1.Io.getDescriptor(), + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), + com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_Image_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Image_descriptor, + new java.lang.String[] { + "ImageBytes", "InputConfig", "ThumbnailUri", "Data", + }); + internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor, + new java.lang.String[] { + "Content", "MimeType", "ContentUri", + }); + internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor, + new java.lang.String[] { + "Unit", "Width", "Height", + }); + internal_static_google_cloud_automl_v1beta1_Document_descriptor = + getDescriptor().getMessageTypes().get(3); + 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", "DocumentText", "Layout", "DocumentDimensions", "PageCount", + }); + internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor = + internal_static_google_cloud_automl_v1beta1_Document_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_automl_v1beta1_Document_Layout_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor, + new java.lang.String[] { + "TextSegment", "PageNumber", "BoundingPoly", "TextSegmentType", + }); + internal_static_google_cloud_automl_v1beta1_Row_descriptor = + getDescriptor().getMessageTypes().get(4); + 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(5); + 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", "Document", "Row", "Payload", + }); + com.google.cloud.automl.v1beta1.Geometry.getDescriptor(); + com.google.cloud.automl.v1beta1.Io.getDescriptor(); + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(); + com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java index 2bf4f9d4c..8cd03c574 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use DataStats.newBuilder() to construct. private DataStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DataStats() { - } + + private DataStats() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DataStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,141 +68,157 @@ private DataStats( 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(); + case 8: + { + distinctValueCount_ = input.readInt64(); + break; } - 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(); + case 16: + { + nullValueCount_ = input.readInt64(); + break; } - 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(); + 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; } - 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(); + 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; } - 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(); + 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; } - 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(); + 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; } - 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(); + 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; } - 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(); + 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; } - 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(); + case 72: + { + validValueCount_ = input.readInt64(); + break; } - statsCase_ = 8; - break; - } - case 72: { - - validValueCount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FLOAT64_STATS(3), STRING_STATS(4), @@ -196,6 +228,7 @@ public enum StatsCase CATEGORY_STATS(8), STATS_NOT_SET(0); private final int value; + private StatsCase(int value) { this.value = value; } @@ -211,34 +244,44 @@ public static StatsCase valueOf(int 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; + 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 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; + * * @return Whether the float64Stats field is set. */ @java.lang.Override @@ -246,21 +289,26 @@ public boolean hasFloat64Stats() { return statsCase_ == 3; } /** + * + * *
    * The statistics for FLOAT64 DataType.
    * 
* * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + * * @return The float64Stats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance(); } /** + * + * *
    * The statistics for FLOAT64 DataType.
    * 
@@ -270,18 +318,21 @@ public com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats() { @java.lang.Override 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) 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; + * * @return Whether the stringStats field is set. */ @java.lang.Override @@ -289,21 +340,26 @@ public boolean hasStringStats() { return statsCase_ == 4; } /** + * + * *
    * The statistics for STRING DataType.
    * 
* * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + * * @return The stringStats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance(); } /** + * + * *
    * The statistics for STRING DataType.
    * 
@@ -313,18 +369,21 @@ public com.google.cloud.automl.v1beta1.StringStats getStringStats() { @java.lang.Override 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) 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; + * * @return Whether the timestampStats field is set. */ @java.lang.Override @@ -332,21 +391,26 @@ public boolean hasTimestampStats() { return statsCase_ == 5; } /** + * + * *
    * The statistics for TIMESTAMP DataType.
    * 
* * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + * * @return The timestampStats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance(); } /** + * + * *
    * The statistics for TIMESTAMP DataType.
    * 
@@ -356,18 +420,21 @@ public com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats() { @java.lang.Override 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) 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; + * * @return Whether the arrayStats field is set. */ @java.lang.Override @@ -375,21 +442,26 @@ public boolean hasArrayStats() { return statsCase_ == 6; } /** + * + * *
    * The statistics for ARRAY DataType.
    * 
* * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + * * @return The arrayStats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance(); } /** + * + * *
    * The statistics for ARRAY DataType.
    * 
@@ -399,18 +471,21 @@ public com.google.cloud.automl.v1beta1.ArrayStats getArrayStats() { @java.lang.Override 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) 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; + * * @return Whether the structStats field is set. */ @java.lang.Override @@ -418,21 +493,26 @@ public boolean hasStructStats() { return statsCase_ == 7; } /** + * + * *
    * The statistics for STRUCT DataType.
    * 
* * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + * * @return The structStats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance(); } /** + * + * *
    * The statistics for STRUCT DataType.
    * 
@@ -442,18 +522,21 @@ public com.google.cloud.automl.v1beta1.StructStats getStructStats() { @java.lang.Override 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) 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; + * * @return Whether the categoryStats field is set. */ @java.lang.Override @@ -461,21 +544,26 @@ public boolean hasCategoryStats() { return statsCase_ == 8; } /** + * + * *
    * The statistics for CATEGORY DataType.
    * 
* * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + * * @return The categoryStats. */ @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); } /** + * + * *
    * The statistics for CATEGORY DataType.
    * 
@@ -485,7 +573,7 @@ public com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats() { @java.lang.Override 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) stats_; } return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); } @@ -493,11 +581,14 @@ public com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOr public static final int DISTINCT_VALUE_COUNT_FIELD_NUMBER = 1; private long distinctValueCount_; /** + * + * *
    * The number of distinct values.
    * 
* * int64 distinct_value_count = 1; + * * @return The distinctValueCount. */ @java.lang.Override @@ -508,11 +599,14 @@ public long getDistinctValueCount() { 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; + * * @return The nullValueCount. */ @java.lang.Override @@ -523,11 +617,14 @@ public long getNullValueCount() { public static final int VALID_VALUE_COUNT_FIELD_NUMBER = 9; private long validValueCount_; /** + * + * *
    * The number of values that are valid.
    * 
* * int64 valid_value_count = 9; + * * @return The validValueCount. */ @java.lang.Override @@ -536,6 +633,7 @@ public long getValidValueCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -547,8 +645,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (distinctValueCount_ != 0L) { output.writeInt64(1, distinctValueCount_); } @@ -586,40 +683,43 @@ public int getSerializedSize() { size = 0; if (distinctValueCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, distinctValueCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, distinctValueCount_); } if (nullValueCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, nullValueCount_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.automl.v1beta1.CategoryStats) stats_); } if (validValueCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, validValueCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, validValueCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -629,44 +729,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (getValidValueCount() - != other.getValidValueCount()) return false; + if (getDistinctValueCount() != other.getDistinctValueCount()) return false; + if (getNullValueCount() != other.getNullValueCount()) return false; + if (getValidValueCount() != other.getValidValueCount()) return false; if (!getStatsCase().equals(other.getStatsCase())) return false; switch (statsCase_) { case 3: - if (!getFloat64Stats() - .equals(other.getFloat64Stats())) return false; + if (!getFloat64Stats().equals(other.getFloat64Stats())) return false; break; case 4: - if (!getStringStats() - .equals(other.getStringStats())) return false; + if (!getStringStats().equals(other.getStringStats())) return false; break; case 5: - if (!getTimestampStats() - .equals(other.getTimestampStats())) return false; + if (!getTimestampStats().equals(other.getTimestampStats())) return false; break; case 6: - if (!getArrayStats() - .equals(other.getArrayStats())) return false; + if (!getArrayStats().equals(other.getArrayStats())) return false; break; case 7: - if (!getStructStats() - .equals(other.getStructStats())) return false; + if (!getStructStats().equals(other.getStructStats())) return false; break; case 8: - if (!getCategoryStats() - .equals(other.getCategoryStats())) return false; + if (!getCategoryStats().equals(other.getCategoryStats())) return false; break; case 0: default: @@ -683,14 +775,11 @@ public int hashCode() { 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 = (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()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNullValueCount()); hash = (37 * hash) + VALID_VALUE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValidValueCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValidValueCount()); switch (statsCase_) { case 3: hash = (37 * hash) + FLOAT64_STATS_FIELD_NUMBER; @@ -724,118 +813,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.DataStats parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.DataStats.class, + com.google.cloud.automl.v1beta1.DataStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DataStats.newBuilder() @@ -843,16 +941,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -868,9 +965,9 @@ public Builder clear() { } @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; + 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 @@ -889,7 +986,8 @@ public com.google.cloud.automl.v1beta1.DataStats build() { @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); + com.google.cloud.automl.v1beta1.DataStats result = + new com.google.cloud.automl.v1beta1.DataStats(this); if (statsCase_ == 3) { if (float64StatsBuilder_ == null) { result.stats_ = stats_; @@ -944,38 +1042,39 @@ public com.google.cloud.automl.v1beta1.DataStats buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.DataStats) other); } else { super.mergeFrom(other); return this; @@ -994,33 +1093,40 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.DataStats other) { setValidValueCount(other.getValidValueCount()); } 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; - } + 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(); @@ -1050,12 +1156,12 @@ public Builder mergeFrom( } return this; } + private int statsCase_ = 0; private java.lang.Object stats_; - public StatsCase - getStatsCase() { - return StatsCase.forNumber( - statsCase_); + + public StatsCase getStatsCase() { + return StatsCase.forNumber(statsCase_); } public Builder clearStats() { @@ -1065,15 +1171,20 @@ public Builder clearStats() { 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_; + 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; + * * @return Whether the float64Stats field is set. */ @java.lang.Override @@ -1081,11 +1192,14 @@ public boolean hasFloat64Stats() { return statsCase_ == 3; } /** + * + * *
      * The statistics for FLOAT64 DataType.
      * 
* * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + * * @return The float64Stats. */ @java.lang.Override @@ -1103,6 +1217,8 @@ public com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats() { } } /** + * + * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1123,6 +1239,8 @@ public Builder setFloat64Stats(com.google.cloud.automl.v1beta1.Float64Stats valu return this; } /** + * + * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1141,6 +1259,8 @@ public Builder setFloat64Stats( return this; } /** + * + * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1149,10 +1269,13 @@ public Builder setFloat64Stats( */ 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(); + 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; } @@ -1167,6 +1290,8 @@ public Builder mergeFloat64Stats(com.google.cloud.automl.v1beta1.Float64Stats va return this; } /** + * + * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1190,6 +1315,8 @@ public Builder clearFloat64Stats() { return this; } /** + * + * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1200,6 +1327,8 @@ public com.google.cloud.automl.v1beta1.Float64Stats.Builder getFloat64StatsBuild return getFloat64StatsFieldBuilder().getBuilder(); } /** + * + * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1218,6 +1347,8 @@ public com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBu } } /** + * + * *
      * The statistics for FLOAT64 DataType.
      * 
@@ -1225,32 +1356,44 @@ public com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBu * .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> + 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>( + 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();; + 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_; + 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; + * * @return Whether the stringStats field is set. */ @java.lang.Override @@ -1258,11 +1401,14 @@ public boolean hasStringStats() { return statsCase_ == 4; } /** + * + * *
      * The statistics for STRING DataType.
      * 
* * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + * * @return The stringStats. */ @java.lang.Override @@ -1280,6 +1426,8 @@ public com.google.cloud.automl.v1beta1.StringStats getStringStats() { } } /** + * + * *
      * The statistics for STRING DataType.
      * 
@@ -1300,6 +1448,8 @@ public Builder setStringStats(com.google.cloud.automl.v1beta1.StringStats value) return this; } /** + * + * *
      * The statistics for STRING DataType.
      * 
@@ -1318,6 +1468,8 @@ public Builder setStringStats( return this; } /** + * + * *
      * The statistics for STRING DataType.
      * 
@@ -1326,10 +1478,13 @@ public Builder setStringStats( */ 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(); + 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; } @@ -1344,6 +1499,8 @@ public Builder mergeStringStats(com.google.cloud.automl.v1beta1.StringStats valu return this; } /** + * + * *
      * The statistics for STRING DataType.
      * 
@@ -1367,6 +1524,8 @@ public Builder clearStringStats() { return this; } /** + * + * *
      * The statistics for STRING DataType.
      * 
@@ -1377,6 +1536,8 @@ public com.google.cloud.automl.v1beta1.StringStats.Builder getStringStatsBuilder return getStringStatsFieldBuilder().getBuilder(); } /** + * + * *
      * The statistics for STRING DataType.
      * 
@@ -1395,6 +1556,8 @@ public com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuil } } /** + * + * *
      * The statistics for STRING DataType.
      * 
@@ -1402,32 +1565,44 @@ public com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuil * .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> + 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>( + 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();; + 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_; + 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; + * * @return Whether the timestampStats field is set. */ @java.lang.Override @@ -1435,11 +1610,14 @@ public boolean hasTimestampStats() { return statsCase_ == 5; } /** + * + * *
      * The statistics for TIMESTAMP DataType.
      * 
* * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + * * @return The timestampStats. */ @java.lang.Override @@ -1457,6 +1635,8 @@ public com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats() { } } /** + * + * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1477,6 +1657,8 @@ public Builder setTimestampStats(com.google.cloud.automl.v1beta1.TimestampStats return this; } /** + * + * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1495,6 +1677,8 @@ public Builder setTimestampStats( return this; } /** + * + * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1503,10 +1687,13 @@ public Builder setTimestampStats( */ 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(); + 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; } @@ -1521,6 +1708,8 @@ public Builder mergeTimestampStats(com.google.cloud.automl.v1beta1.TimestampStat return this; } /** + * + * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1544,6 +1733,8 @@ public Builder clearTimestampStats() { return this; } /** + * + * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1554,6 +1745,8 @@ public com.google.cloud.automl.v1beta1.TimestampStats.Builder getTimestampStatsB return getTimestampStatsFieldBuilder().getBuilder(); } /** + * + * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1572,6 +1765,8 @@ public com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStats } } /** + * + * *
      * The statistics for TIMESTAMP DataType.
      * 
@@ -1579,32 +1774,44 @@ public com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStats * .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> + 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>( + 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();; + 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_; + 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; + * * @return Whether the arrayStats field is set. */ @java.lang.Override @@ -1612,11 +1819,14 @@ public boolean hasArrayStats() { return statsCase_ == 6; } /** + * + * *
      * The statistics for ARRAY DataType.
      * 
* * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + * * @return The arrayStats. */ @java.lang.Override @@ -1634,6 +1844,8 @@ public com.google.cloud.automl.v1beta1.ArrayStats getArrayStats() { } } /** + * + * *
      * The statistics for ARRAY DataType.
      * 
@@ -1654,6 +1866,8 @@ public Builder setArrayStats(com.google.cloud.automl.v1beta1.ArrayStats value) { return this; } /** + * + * *
      * The statistics for ARRAY DataType.
      * 
@@ -1672,6 +1886,8 @@ public Builder setArrayStats( return this; } /** + * + * *
      * The statistics for ARRAY DataType.
      * 
@@ -1680,10 +1896,13 @@ public Builder setArrayStats( */ 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(); + 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; } @@ -1698,6 +1917,8 @@ public Builder mergeArrayStats(com.google.cloud.automl.v1beta1.ArrayStats value) return this; } /** + * + * *
      * The statistics for ARRAY DataType.
      * 
@@ -1721,6 +1942,8 @@ public Builder clearArrayStats() { return this; } /** + * + * *
      * The statistics for ARRAY DataType.
      * 
@@ -1731,6 +1954,8 @@ public com.google.cloud.automl.v1beta1.ArrayStats.Builder getArrayStatsBuilder() return getArrayStatsFieldBuilder().getBuilder(); } /** + * + * *
      * The statistics for ARRAY DataType.
      * 
@@ -1749,6 +1974,8 @@ public com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilde } } /** + * + * *
      * The statistics for ARRAY DataType.
      * 
@@ -1756,32 +1983,44 @@ public com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilde * .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> + 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>( + 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();; + 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_; + 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; + * * @return Whether the structStats field is set. */ @java.lang.Override @@ -1789,11 +2028,14 @@ public boolean hasStructStats() { return statsCase_ == 7; } /** + * + * *
      * The statistics for STRUCT DataType.
      * 
* * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + * * @return The structStats. */ @java.lang.Override @@ -1811,6 +2053,8 @@ public com.google.cloud.automl.v1beta1.StructStats getStructStats() { } } /** + * + * *
      * The statistics for STRUCT DataType.
      * 
@@ -1831,6 +2075,8 @@ public Builder setStructStats(com.google.cloud.automl.v1beta1.StructStats value) return this; } /** + * + * *
      * The statistics for STRUCT DataType.
      * 
@@ -1849,6 +2095,8 @@ public Builder setStructStats( return this; } /** + * + * *
      * The statistics for STRUCT DataType.
      * 
@@ -1857,10 +2105,13 @@ public Builder setStructStats( */ 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(); + 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; } @@ -1875,6 +2126,8 @@ public Builder mergeStructStats(com.google.cloud.automl.v1beta1.StructStats valu return this; } /** + * + * *
      * The statistics for STRUCT DataType.
      * 
@@ -1898,6 +2151,8 @@ public Builder clearStructStats() { return this; } /** + * + * *
      * The statistics for STRUCT DataType.
      * 
@@ -1908,6 +2163,8 @@ public com.google.cloud.automl.v1beta1.StructStats.Builder getStructStatsBuilder return getStructStatsFieldBuilder().getBuilder(); } /** + * + * *
      * The statistics for STRUCT DataType.
      * 
@@ -1926,6 +2183,8 @@ public com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuil } } /** + * + * *
      * The statistics for STRUCT DataType.
      * 
@@ -1933,32 +2192,44 @@ public com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuil * .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> + 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>( + 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();; + 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_; + 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; + * * @return Whether the categoryStats field is set. */ @java.lang.Override @@ -1966,11 +2237,14 @@ public boolean hasCategoryStats() { return statsCase_ == 8; } /** + * + * *
      * The statistics for CATEGORY DataType.
      * 
* * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + * * @return The categoryStats. */ @java.lang.Override @@ -1988,6 +2262,8 @@ public com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats() { } } /** + * + * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2008,6 +2284,8 @@ public Builder setCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats va return this; } /** + * + * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2026,6 +2304,8 @@ public Builder setCategoryStats( return this; } /** + * + * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2034,10 +2314,13 @@ public Builder setCategoryStats( */ 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(); + 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; } @@ -2052,6 +2335,8 @@ public Builder mergeCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats return this; } /** + * + * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2075,6 +2360,8 @@ public Builder clearCategoryStats() { return this; } /** + * + * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2085,6 +2372,8 @@ public com.google.cloud.automl.v1beta1.CategoryStats.Builder getCategoryStatsBui return getCategoryStatsFieldBuilder().getBuilder(); } /** + * + * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2103,6 +2392,8 @@ public com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOr } } /** + * + * *
      * The statistics for CATEGORY DataType.
      * 
@@ -2110,31 +2401,40 @@ public com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOr * .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> + 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>( + 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();; + onChanged(); + ; return categoryStatsBuilder_; } - private long distinctValueCount_ ; + private long distinctValueCount_; /** + * + * *
      * The number of distinct values.
      * 
* * int64 distinct_value_count = 1; + * * @return The distinctValueCount. */ @java.lang.Override @@ -2142,42 +2442,51 @@ public long getDistinctValueCount() { return distinctValueCount_; } /** + * + * *
      * The number of distinct values.
      * 
* * int64 distinct_value_count = 1; + * * @param value The distinctValueCount to set. * @return This builder for chaining. */ public Builder setDistinctValueCount(long value) { - + distinctValueCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of distinct values.
      * 
* * int64 distinct_value_count = 1; + * * @return This builder for chaining. */ public Builder clearDistinctValueCount() { - + distinctValueCount_ = 0L; onChanged(); return this; } - private long nullValueCount_ ; + private long nullValueCount_; /** + * + * *
      * The number of values that are null.
      * 
* * int64 null_value_count = 2; + * * @return The nullValueCount. */ @java.lang.Override @@ -2185,42 +2494,51 @@ public long getNullValueCount() { return nullValueCount_; } /** + * + * *
      * The number of values that are null.
      * 
* * int64 null_value_count = 2; + * * @param value The nullValueCount to set. * @return This builder for chaining. */ public Builder setNullValueCount(long value) { - + nullValueCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of values that are null.
      * 
* * int64 null_value_count = 2; + * * @return This builder for chaining. */ public Builder clearNullValueCount() { - + nullValueCount_ = 0L; onChanged(); return this; } - private long validValueCount_ ; + private long validValueCount_; /** + * + * *
      * The number of values that are valid.
      * 
* * int64 valid_value_count = 9; + * * @return The validValueCount. */ @java.lang.Override @@ -2228,37 +2546,43 @@ public long getValidValueCount() { return validValueCount_; } /** + * + * *
      * The number of values that are valid.
      * 
* * int64 valid_value_count = 9; + * * @param value The validValueCount to set. * @return This builder for chaining. */ public Builder setValidValueCount(long value) { - + validValueCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of values that are valid.
      * 
* * int64 valid_value_count = 9; + * * @return This builder for chaining. */ public Builder clearValidValueCount() { - + validValueCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2268,12 +2592,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -2282,16 +2606,16 @@ 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); - } - }; + 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; @@ -2306,6 +2630,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DataStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java similarity index 85% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java index 815b02515..4543eea5b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return Whether the float64Stats field is set. */ boolean hasFloat64Stats(); /** + * + * *
    * The statistics for FLOAT64 DataType.
    * 
* * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + * * @return The float64Stats. */ com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats(); /** + * + * *
    * The statistics for FLOAT64 DataType.
    * 
@@ -35,24 +59,32 @@ public interface DataStatsOrBuilder extends com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBuilder(); /** + * + * *
    * The statistics for STRING DataType.
    * 
* * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + * * @return Whether the stringStats field is set. */ boolean hasStringStats(); /** + * + * *
    * The statistics for STRING DataType.
    * 
* * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + * * @return The stringStats. */ com.google.cloud.automl.v1beta1.StringStats getStringStats(); /** + * + * *
    * The statistics for STRING DataType.
    * 
@@ -62,24 +94,32 @@ public interface DataStatsOrBuilder extends com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuilder(); /** + * + * *
    * The statistics for TIMESTAMP DataType.
    * 
* * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + * * @return Whether the timestampStats field is set. */ boolean hasTimestampStats(); /** + * + * *
    * The statistics for TIMESTAMP DataType.
    * 
* * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + * * @return The timestampStats. */ com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats(); /** + * + * *
    * The statistics for TIMESTAMP DataType.
    * 
@@ -89,24 +129,32 @@ public interface DataStatsOrBuilder extends com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStatsOrBuilder(); /** + * + * *
    * The statistics for ARRAY DataType.
    * 
* * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + * * @return Whether the arrayStats field is set. */ boolean hasArrayStats(); /** + * + * *
    * The statistics for ARRAY DataType.
    * 
* * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + * * @return The arrayStats. */ com.google.cloud.automl.v1beta1.ArrayStats getArrayStats(); /** + * + * *
    * The statistics for ARRAY DataType.
    * 
@@ -116,24 +164,32 @@ public interface DataStatsOrBuilder extends com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilder(); /** + * + * *
    * The statistics for STRUCT DataType.
    * 
* * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + * * @return Whether the structStats field is set. */ boolean hasStructStats(); /** + * + * *
    * The statistics for STRUCT DataType.
    * 
* * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + * * @return The structStats. */ com.google.cloud.automl.v1beta1.StructStats getStructStats(); /** + * + * *
    * The statistics for STRUCT DataType.
    * 
@@ -143,24 +199,32 @@ public interface DataStatsOrBuilder extends com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuilder(); /** + * + * *
    * The statistics for CATEGORY DataType.
    * 
* * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + * * @return Whether the categoryStats field is set. */ boolean hasCategoryStats(); /** + * + * *
    * The statistics for CATEGORY DataType.
    * 
* * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + * * @return The categoryStats. */ com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats(); /** + * + * *
    * The statistics for CATEGORY DataType.
    * 
@@ -170,31 +234,40 @@ public interface DataStatsOrBuilder extends com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOrBuilder(); /** + * + * *
    * The number of distinct values.
    * 
* * int64 distinct_value_count = 1; + * * @return The distinctValueCount. */ long getDistinctValueCount(); /** + * + * *
    * The number of values that are null.
    * 
* * int64 null_value_count = 2; + * * @return The nullValueCount. */ long getNullValueCount(); /** + * + * *
    * The number of values that are valid.
    * 
* * int64 valid_value_count = 9; + * * @return The validValueCount. */ long getValidValueCount(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java new file mode 100644 index 000000000..c5c3fd490 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java @@ -0,0 +1,297 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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\"\375\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(\003\022\031\n\021valid_value_cou" + + "nt\030\t \001(\003B\007\n\005stats\"\335\001\n\014Float64Stats\022\014\n\004me" + + "an\030\001 \001(\001\022\032\n\022standard_deviation\030\002 \001(\001\022\021\n\t" + + "quantiles\030\003 \003(\001\022T\n\021histogram_buckets\030\004 \003" + + "(\01329.google.cloud.automl.v1beta1.Float64" + + "Stats.HistogramBucket\032:\n\017HistogramBucket" + + "\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_unigram_stats\030\001" + + " \003(\01325.google.cloud.automl.v1beta1.Strin" + + "gStats.UnigramStats\032,\n\014UnigramStats\022\r\n\005v" + + "alue\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"\364\002\n\016TimestampS" + + "tats\022V\n\016granular_stats\030\001 \003(\0132>.google.cl" + + "oud.automl.v1beta1.TimestampStats.Granul" + + "arStatsEntry\032\230\001\n\rGranularStats\022W\n\007bucket" + + "s\030\001 \003(\0132F.google.cloud.automl.v1beta1.Ti" + + "mestampStats.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\022GranularStatsEntry\022\013\n\003key\030\001 \001" + + "(\t\022H\n\005value\030\002 \001(\01329.google.cloud.automl." + + "v1beta1.TimestampStats.GranularStats:\0028\001" + + "\"J\n\nArrayStats\022<\n\014member_stats\030\002 \001(\0132&.g" + + "oogle.cloud.automl.v1beta1.DataStats\"\267\001\n" + + "\013StructStats\022M\n\013field_stats\030\001 \003(\01328.goog" + + "le.cloud.automl.v1beta1.StructStats.Fiel" + + "dStatsEntry\032Y\n\017FieldStatsEntry\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\rCategoryStats" + + "\022Z\n\022top_category_stats\030\001 \003(\0132>.google.cl" + + "oud.automl.v1beta1.CategoryStats.SingleC" + + "ategoryStats\0323\n\023SingleCategoryStats\022\r\n\005v" + + "alue\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"%\n\020Correlation" + + "Stats\022\021\n\tcramers_v\030\001 \001(\001B\245\001\n\037com.google." + + "cloud.automl.v1beta1P\001ZAgoogle.golang.or" + + "g/genproto/googleapis/cloud/automl/v1bet" + + "a1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352" + + "\002\036Google::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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", + "ValidValueCount", + "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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java index 162e08a89..26b43bdd0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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).
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.DataType}
  */
-public final class DataType extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DataType();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DataType(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,93 +71,104 @@ private DataType(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          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();
+              typeCode_ = rawValue;
+              break;
             }
-            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();
+          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;
             }
-            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();
+          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;
             }
-            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();
+          case 32:
+            {
+              nullable_ = input.readBool();
+              break;
             }
-            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;
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              detailsCase_ = 5;
+              details_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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;
+
+  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
+    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);
+            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,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     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;
     }
@@ -156,32 +184,39 @@ public static DetailsCase valueOf(int 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;
+        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 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; + * * @return Whether the listElementType field is set. */ @java.lang.Override @@ -189,22 +224,27 @@ 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; + * * @return The listElementType. */ @java.lang.Override 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) 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.
@@ -215,19 +255,22 @@ public com.google.cloud.automl.v1beta1.DataType getListElementType() {
   @java.lang.Override
   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) 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; + * * @return Whether the structType field is set. */ @java.lang.Override @@ -235,22 +278,27 @@ 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; + * * @return The structType. */ @java.lang.Override 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) 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.
@@ -261,13 +309,15 @@ public com.google.cloud.automl.v1beta1.StructType getStructType() {
   @java.lang.Override
   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) 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
@@ -283,12 +333,15 @@ public com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilde
    * 
* * string time_format = 5; + * * @return Whether the timeFormat field is set. */ public boolean hasTimeFormat() { return detailsCase_ == 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
@@ -304,6 +357,7 @@ public boolean hasTimeFormat() {
    * 
* * string time_format = 5; + * * @return The timeFormat. */ public java.lang.String getTimeFormat() { @@ -314,8 +368,7 @@ public java.lang.String getTimeFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (detailsCase_ == 5) { details_ = s; @@ -324,6 +377,8 @@ public 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
@@ -339,18 +394,17 @@ public java.lang.String getTimeFormat() {
    * 
* * string time_format = 5; + * * @return The bytes for timeFormat. */ - public com.google.protobuf.ByteString - getTimeFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (detailsCase_ == 5) { details_ = b; } @@ -363,39 +417,51 @@ public java.lang.String getTimeFormat() { 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; + * * @return The enum numeric value on the wire for typeCode. */ - @java.lang.Override public int getTypeCodeValue() { + @java.lang.Override + public int getTypeCodeValue() { return typeCode_; } /** + * + * *
    * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
    * 
* * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + * * @return The typeCode. */ - @java.lang.Override public com.google.cloud.automl.v1beta1.TypeCode getTypeCode() { + @java.lang.Override + 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_); + 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`. In .CSV files `NULL` value is
    * expressed as an empty string.
    * 
* * bool nullable = 4; + * * @return The nullable. */ @java.lang.Override @@ -404,6 +470,7 @@ public boolean getNullable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -415,8 +482,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -442,20 +508,20 @@ public int getSerializedSize() { size = 0; if (typeCode_ != com.google.cloud.automl.v1beta1.TypeCode.TYPE_CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, typeCode_); + 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_); + 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_); + 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_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, nullable_); } if (detailsCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, details_); @@ -468,7 +534,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.DataType)) { return super.equals(obj); @@ -476,21 +542,17 @@ public boolean equals(final java.lang.Object 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 (getNullable() != other.getNullable()) return false; if (!getDetailsCase().equals(other.getDetailsCase())) return false; switch (detailsCase_) { case 2: - if (!getListElementType() - .equals(other.getListElementType())) return false; + if (!getListElementType().equals(other.getListElementType())) return false; break; case 3: - if (!getStructType() - .equals(other.getStructType())) return false; + if (!getStructType().equals(other.getStructType())) return false; break; case 5: - if (!getTimeFormat() - .equals(other.getTimeFormat())) return false; + if (!getTimeFormat().equals(other.getTimeFormat())) return false; break; case 0: default: @@ -509,8 +571,7 @@ public int 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()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); switch (detailsCase_) { case 2: hash = (37 * hash) + LIST_ELEMENT_TYPE_FIELD_NUMBER; @@ -532,97 +593,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.DataType parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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).
@@ -630,21 +698,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.DataType}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.DataType.class,
+              com.google.cloud.automl.v1beta1.DataType.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.DataType.newBuilder()
@@ -652,16 +722,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -675,9 +744,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -696,7 +765,8 @@ public com.google.cloud.automl.v1beta1.DataType build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.DataType result =
+          new com.google.cloud.automl.v1beta1.DataType(this);
       if (detailsCase_ == 2) {
         if (listElementTypeBuilder_ == null) {
           result.details_ = details_;
@@ -725,38 +795,39 @@ public com.google.cloud.automl.v1beta1.DataType buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.DataType) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -772,23 +843,27 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.DataType other) {
         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;
-        }
+        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();
@@ -818,12 +893,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int detailsCase_ = 0;
     private java.lang.Object details_;
-    public DetailsCase
-        getDetailsCase() {
-      return DetailsCase.forNumber(
-          detailsCase_);
+
+    public DetailsCase getDetailsCase() {
+      return DetailsCase.forNumber(detailsCase_);
     }
 
     public Builder clearDetails() {
@@ -833,16 +908,21 @@ public Builder clearDetails() {
       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_;
+            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; + * * @return Whether the listElementType field is set. */ @java.lang.Override @@ -850,12 +930,15 @@ 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; + * * @return The listElementType. */ @java.lang.Override @@ -873,6 +956,8 @@ public 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.
@@ -894,6 +979,8 @@ public Builder setListElementType(com.google.cloud.automl.v1beta1.DataType value
       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.
@@ -913,6 +1000,8 @@ public Builder setListElementType(
       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.
@@ -922,10 +1011,13 @@ public Builder setListElementType(
      */
     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();
+        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;
         }
@@ -940,6 +1032,8 @@ public Builder mergeListElementType(com.google.cloud.automl.v1beta1.DataType val
       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.
@@ -964,6 +1058,8 @@ public Builder clearListElementType() {
       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.
@@ -975,6 +1071,8 @@ public com.google.cloud.automl.v1beta1.DataType.Builder getListElementTypeBuilde
       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.
@@ -994,6 +1092,8 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getListElementTypeOrBui
       }
     }
     /**
+     *
+     *
      * 
      * 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.
@@ -1002,33 +1102,45 @@ public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getListElementTypeOrBui
      * .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> 
+            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>(
+        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();;
+      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_;
+            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; + * * @return Whether the structType field is set. */ @java.lang.Override @@ -1036,12 +1148,15 @@ 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; + * * @return The structType. */ @java.lang.Override @@ -1059,6 +1174,8 @@ public 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.
@@ -1080,6 +1197,8 @@ public Builder setStructType(com.google.cloud.automl.v1beta1.StructType value) {
       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.
@@ -1099,6 +1218,8 @@ public Builder setStructType(
       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.
@@ -1108,10 +1229,13 @@ public Builder setStructType(
      */
     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();
+        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;
         }
@@ -1126,6 +1250,8 @@ public Builder mergeStructType(com.google.cloud.automl.v1beta1.StructType value)
       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.
@@ -1150,6 +1276,8 @@ public Builder clearStructType() {
       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.
@@ -1161,6 +1289,8 @@ 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.
@@ -1180,6 +1310,8 @@ public com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * 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.
@@ -1188,25 +1320,33 @@ public com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilde
      * .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> 
+            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>(
+        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();;
+      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
@@ -1222,6 +1362,7 @@ public com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilde
      * 
* * string time_format = 5; + * * @return Whether the timeFormat field is set. */ @java.lang.Override @@ -1229,6 +1370,8 @@ public boolean hasTimeFormat() { return detailsCase_ == 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
@@ -1244,6 +1387,7 @@ public boolean hasTimeFormat() {
      * 
* * string time_format = 5; + * * @return The timeFormat. */ @java.lang.Override @@ -1253,8 +1397,7 @@ public java.lang.String getTimeFormat() { ref = details_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (detailsCase_ == 5) { details_ = s; @@ -1265,6 +1408,8 @@ public 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
@@ -1280,19 +1425,18 @@ public java.lang.String getTimeFormat() {
      * 
* * string time_format = 5; + * * @return The bytes for timeFormat. */ @java.lang.Override - public com.google.protobuf.ByteString - getTimeFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (detailsCase_ == 5) { details_ = b; } @@ -1302,6 +1446,8 @@ public 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
@@ -1317,20 +1463,22 @@ public java.lang.String getTimeFormat() {
      * 
* * string time_format = 5; + * * @param value The timeFormat to set. * @return This builder for chaining. */ - public Builder setTimeFormat( - java.lang.String value) { + public Builder setTimeFormat(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - detailsCase_ = 5; + 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
@@ -1346,6 +1494,7 @@ public Builder setTimeFormat(
      * 
* * string time_format = 5; + * * @return This builder for chaining. */ public Builder clearTimeFormat() { @@ -1357,6 +1506,8 @@ public Builder clearTimeFormat() { 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
@@ -1372,15 +1523,15 @@ public Builder clearTimeFormat() {
      * 
* * string time_format = 5; + * * @param value The bytes for timeFormat to set. * @return This builder for chaining. */ - public Builder setTimeFormatBytes( - com.google.protobuf.ByteString value) { + public Builder setTimeFormatBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); detailsCase_ = 5; details_ = value; onChanged(); @@ -1389,51 +1540,65 @@ public Builder setTimeFormatBytes( private int typeCode_ = 0; /** + * + * *
      * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
      * 
* * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + * * @return The enum numeric value on the wire for typeCode. */ - @java.lang.Override public int getTypeCodeValue() { + @java.lang.Override + public int getTypeCodeValue() { return typeCode_; } /** + * + * *
      * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
      * 
* * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + * * @param value The enum numeric value on the wire for typeCode to set. * @return This builder for chaining. */ 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; + * * @return The typeCode. */ @java.lang.Override 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_); + 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; + * * @param value The typeCode to set. * @return This builder for chaining. */ @@ -1441,34 +1606,40 @@ 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; + * * @return This builder for chaining. */ public Builder clearTypeCode() { - + typeCode_ = 0; onChanged(); return this; } - private boolean nullable_ ; + private boolean nullable_; /** + * + * *
      * If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
      * expressed as an empty string.
      * 
* * bool nullable = 4; + * * @return The nullable. */ @java.lang.Override @@ -1476,39 +1647,45 @@ public boolean getNullable() { return nullable_; } /** + * + * *
      * If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
      * expressed as an empty string.
      * 
* * bool nullable = 4; + * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; onChanged(); return this; } /** + * + * *
      * If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
      * expressed as an empty string.
      * 
* * bool nullable = 4; + * * @return This builder for chaining. */ public Builder clearNullable() { - + nullable_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1518,12 +1695,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1532,16 +1709,16 @@ 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); - } - }; + 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; @@ -1556,6 +1733,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DataType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java similarity index 87% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java index b92f4752d..a99f46d73 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return Whether the listElementType field is set. */ 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; + * * @return The listElementType. */ 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.
@@ -38,26 +62,34 @@ public interface DataTypeOrBuilder extends
   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; + * * @return Whether the structType field is set. */ 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; + * * @return The structType. */ 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.
@@ -68,6 +100,8 @@ public interface DataTypeOrBuilder extends
   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
@@ -83,10 +117,13 @@ public interface DataTypeOrBuilder extends
    * 
* * string time_format = 5; + * * @return Whether the timeFormat field is set. */ boolean hasTimeFormat(); /** + * + * *
    * 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
@@ -102,10 +139,13 @@ public interface DataTypeOrBuilder extends
    * 
* * string time_format = 5; + * * @return The timeFormat. */ 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
@@ -121,37 +161,46 @@ public interface DataTypeOrBuilder extends
    * 
* * string time_format = 5; + * * @return The bytes for timeFormat. */ - com.google.protobuf.ByteString - getTimeFormatBytes(); + com.google.protobuf.ByteString getTimeFormatBytes(); /** + * + * *
    * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
    * 
* * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + * * @return The enum numeric value on the wire for typeCode. */ int getTypeCodeValue(); /** + * + * *
    * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
    * 
* * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + * * @return The typeCode. */ com.google.cloud.automl.v1beta1.TypeCode getTypeCode(); /** + * + * *
    * If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
    * expressed as an empty string.
    * 
* * bool nullable = 4; + * * @return The nullable. */ boolean getNullable(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java new file mode 100644 index 000000000..bccecd06e --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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\"\374\001\n\010DataType\022B" + + "\n\021list_element_type\030\002 \001(\0132%.google.cloud" + + ".automl.v1beta1.DataTypeH\000\022>\n\013struct_typ" + + "e\030\003 \001(\0132\'.google.cloud.automl.v1beta1.St" + + "ructTypeH\000\022\025\n\013time_format\030\005 \001(\tH\000\0228\n\ttyp" + + "e_code\030\001 \001(\0162%.google.cloud.automl.v1bet" + + "a1.TypeCode\022\020\n\010nullable\030\004 \001(\010B\t\n\007details" + + "\"\247\001\n\nStructType\022C\n\006fields\030\001 \003(\01323.google" + + ".cloud.automl.v1beta1.StructType.FieldsE" + + "ntry\032T\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0224\n\005valu" + + "e\030\002 \001(\0132%.google.cloud.automl.v1beta1.Da" + + "taType:\0028\001*r\n\010TypeCode\022\031\n\025TYPE_CODE_UNSP" + + "ECIFIED\020\000\022\013\n\007FLOAT64\020\003\022\r\n\tTIMESTAMP\020\004\022\n\n" + + "\006STRING\020\006\022\t\n\005ARRAY\020\010\022\n\n\006STRUCT\020\t\022\014\n\010CATE" + + "GORY\020\nB\245\001\n\037com.google.cloud.automl.v1bet" + + "a1P\001ZAgoogle.golang.org/genproto/googlea" + + "pis/cloud/automl/v1beta1;automl\312\002\033Google" + + "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" + + "utoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java index 50555e2ec..131e0c877 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/dataset.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * A workspace for solving a single, particular machine learning (ML) problem.
  * A workspace contains examples that may be annotated.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.Dataset}
  */
-public final class Dataset extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Dataset extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Dataset)
     DatasetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Dataset.newBuilder() to construct.
   private Dataset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Dataset() {
     name_ = "";
     displayName_ = "";
@@ -29,16 +47,15 @@ private Dataset() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Dataset();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Dataset(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,210 +74,295 @@ private Dataset(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 114: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
-            }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 138: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            etag_ = s;
-            break;
-          }
-          case 168: {
+              displayName_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            exampleCount_ = input.readInt32();
-            break;
-          }
-          case 186: {
-            com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder subBuilder = null;
-            if (datasetMetadataCase_ == 23) {
-              subBuilder = ((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_).toBuilder();
+              description_ = s;
+              break;
             }
-            datasetMetadata_ =
-                input.readMessage(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_);
-              datasetMetadata_ = subBuilder.buildPartial();
+          case 114:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            datasetMetadataCase_ = 23;
-            break;
-          }
-          case 194: {
-            com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder subBuilder = null;
-            if (datasetMetadataCase_ == 24) {
-              subBuilder = ((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_).toBuilder();
+          case 138:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              etag_ = s;
+              break;
             }
-            datasetMetadata_ =
-                input.readMessage(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_);
-              datasetMetadata_ = subBuilder.buildPartial();
+          case 168:
+            {
+              exampleCount_ = input.readInt32();
+              break;
             }
-            datasetMetadataCase_ = 24;
-            break;
-          }
-          case 202: {
-            com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder subBuilder = null;
-            if (datasetMetadataCase_ == 25) {
-              subBuilder = ((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_).toBuilder();
+          case 186:
+            {
+              com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder subBuilder = null;
+              if (datasetMetadataCase_ == 23) {
+                subBuilder =
+                    ((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_)
+                        .toBuilder();
+              }
+              datasetMetadata_ =
+                  input.readMessage(
+                      com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_);
+                datasetMetadata_ = subBuilder.buildPartial();
+              }
+              datasetMetadataCase_ = 23;
+              break;
             }
-            datasetMetadata_ =
-                input.readMessage(com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_);
-              datasetMetadata_ = subBuilder.buildPartial();
+          case 194:
+            {
+              com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder
+                  subBuilder = null;
+              if (datasetMetadataCase_ == 24) {
+                subBuilder =
+                    ((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata)
+                            datasetMetadata_)
+                        .toBuilder();
+              }
+              datasetMetadata_ =
+                  input.readMessage(
+                      com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata)
+                        datasetMetadata_);
+                datasetMetadata_ = subBuilder.buildPartial();
+              }
+              datasetMetadataCase_ = 24;
+              break;
             }
-            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();
+          case 202:
+            {
+              com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder subBuilder =
+                  null;
+              if (datasetMetadataCase_ == 25) {
+                subBuilder =
+                    ((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata)
+                            datasetMetadata_)
+                        .toBuilder();
+              }
+              datasetMetadata_ =
+                  input.readMessage(
+                      com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata)
+                        datasetMetadata_);
+                datasetMetadata_ = subBuilder.buildPartial();
+              }
+              datasetMetadataCase_ = 25;
+              break;
             }
-            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();
+          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;
             }
-            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();
+          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;
             }
-            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();
+          case 234:
+            {
+              com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder
+                  subBuilder = null;
+              if (datasetMetadataCase_ == 29) {
+                subBuilder =
+                    ((com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata)
+                            datasetMetadata_)
+                        .toBuilder();
+              }
+              datasetMetadata_ =
+                  input.readMessage(
+                      com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata)
+                        datasetMetadata_);
+                datasetMetadata_ = subBuilder.buildPartial();
+              }
+              datasetMetadataCase_ = 29;
+              break;
             }
-            datasetMetadataCase_ = 28;
-            break;
-          }
-          case 234: {
-            com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder subBuilder = null;
-            if (datasetMetadataCase_ == 29) {
-              subBuilder = ((com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_).toBuilder();
+          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;
             }
-            datasetMetadata_ =
-                input.readMessage(com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_);
-              datasetMetadata_ = subBuilder.buildPartial();
+          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;
             }
-            datasetMetadataCase_ = 29;
-            break;
-          }
-          case 242: {
-            com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder subBuilder = null;
-            if (datasetMetadataCase_ == 30) {
-              subBuilder = ((com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_).toBuilder();
+          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;
             }
-            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();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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)) {
-              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);
+      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_Dataset_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_automl_v1beta1_Dataset_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable
+    return com.google.cloud.automl.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1beta1.Dataset.class, com.google.cloud.automl.v1beta1.Dataset.Builder.class);
+            com.google.cloud.automl.v1beta1.Dataset.class,
+            com.google.cloud.automl.v1beta1.Dataset.Builder.class);
   }
 
   private int datasetMetadataCase_ = 0;
   private java.lang.Object datasetMetadata_;
+
   public enum DatasetMetadataCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     TRANSLATION_DATASET_METADATA(23),
     IMAGE_CLASSIFICATION_DATASET_METADATA(24),
@@ -273,6 +375,7 @@ public enum DatasetMetadataCase
     TABLES_DATASET_METADATA(33),
     DATASETMETADATA_NOT_SET(0);
     private final int value;
+
     private DatasetMetadataCase(int value) {
       this.value = value;
     }
@@ -288,37 +391,52 @@ public static DatasetMetadataCase valueOf(int value) {
 
     public static DatasetMetadataCase forNumber(int value) {
       switch (value) {
-        case 23: return TRANSLATION_DATASET_METADATA;
-        case 24: 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 29: return VIDEO_OBJECT_TRACKING_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: return null;
+        case 23:
+          return TRANSLATION_DATASET_METADATA;
+        case 24:
+          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 29:
+          return VIDEO_OBJECT_TRACKING_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:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DatasetMetadataCase
-  getDatasetMetadataCase() {
-    return DatasetMetadataCase.forNumber(
-        datasetMetadataCase_);
+  public DatasetMetadataCase getDatasetMetadataCase() {
+    return DatasetMetadataCase.forNumber(datasetMetadataCase_);
   }
 
   public static final int TRANSLATION_DATASET_METADATA_FIELD_NUMBER = 23;
   /**
+   *
+   *
    * 
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return Whether the translationDatasetMetadata field is set. */ @java.lang.Override @@ -326,42 +444,58 @@ public boolean hasTranslationDatasetMetadata() { return datasetMetadataCase_ == 23; } /** + * + * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return The translationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getTranslationDatasetMetadata() { + public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata + getTranslationDatasetMetadata() { if (datasetMetadataCase_ == 23) { - return (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder + getTranslationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 23) { - return (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER = 24; /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return Whether the imageClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -369,42 +503,58 @@ public boolean hasImageClassificationDatasetMetadata() { return datasetMetadataCase_ == 24; } /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return The imageClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + getImageClassificationDatasetMetadata() { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder + getImageClassificationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER = 25; /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return Whether the textClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -412,42 +562,58 @@ public boolean hasTextClassificationDatasetMetadata() { return datasetMetadataCase_ == 25; } /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return The textClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata() { + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + getTextClassificationDatasetMetadata() { if (datasetMetadataCase_ == 25) { - return (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_; + 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; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder + getTextClassificationDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 25) { - return (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_; } 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ @java.lang.Override @@ -455,42 +621,58 @@ 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return The imageObjectDetectionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata() { + 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) 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder() { + 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) 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; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * * @return Whether the videoClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -498,42 +680,58 @@ public boolean hasVideoClassificationDatasetMetadata() { return datasetMetadataCase_ == 31; } /** + * + * *
    * Metadata for a dataset used for video classification.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * * @return The videoClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata getVideoClassificationDatasetMetadata() { + 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) 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; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder getVideoClassificationDatasetMetadataOrBuilder() { + 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) datasetMetadata_; } return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_DATASET_METADATA_FIELD_NUMBER = 29; /** + * + * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * * @return Whether the videoObjectTrackingDatasetMetadata field is set. */ @java.lang.Override @@ -541,42 +739,58 @@ public boolean hasVideoObjectTrackingDatasetMetadata() { return datasetMetadataCase_ == 29; } /** + * + * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * * @return The videoObjectTrackingDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getVideoObjectTrackingDatasetMetadata() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + getVideoObjectTrackingDatasetMetadata() { if (datasetMetadataCase_ == 29) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder getVideoObjectTrackingDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder + getVideoObjectTrackingDatasetMetadataOrBuilder() { if (datasetMetadataCase_ == 29) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.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; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return Whether the textExtractionDatasetMetadata field is set. */ @java.lang.Override @@ -584,42 +798,58 @@ public boolean hasTextExtractionDatasetMetadata() { return datasetMetadataCase_ == 28; } /** + * + * *
    * Metadata for a dataset used for text extraction.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return The textExtractionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getTextExtractionDatasetMetadata() { + 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) 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; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder() { + 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) 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; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return Whether the textSentimentDatasetMetadata field is set. */ @java.lang.Override @@ -627,42 +857,56 @@ public boolean hasTextSentimentDatasetMetadata() { return datasetMetadataCase_ == 30; } /** + * + * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return The textSentimentDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getTextSentimentDatasetMetadata() { + 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) 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; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder() { + 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) 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; + * * @return Whether the tablesDatasetMetadata field is set. */ @java.lang.Override @@ -670,21 +914,26 @@ public boolean hasTablesDatasetMetadata() { return datasetMetadataCase_ == 33; } /** + * + * *
    * Metadata for a dataset used for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + * * @return The tablesDatasetMetadata. */ @java.lang.Override 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) datasetMetadata_; } return com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for a dataset used for Tables.
    * 
@@ -692,9 +941,10 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getTablesDatasetMet * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder getTablesDatasetMetadataOrBuilder() { + 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) datasetMetadata_; } return com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); } @@ -702,12 +952,15 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder getTablesD public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -716,30 +969,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -750,6 +1003,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * 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
@@ -758,6 +1013,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -766,14 +1022,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 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
@@ -782,16 +1039,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -802,12 +1058,15 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -816,30 +1075,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -850,11 +1109,14 @@ public java.lang.String getDescription() { 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; + * * @return The exampleCount. */ @java.lang.Override @@ -865,11 +1127,14 @@ public int getExampleCount() { public static final int CREATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -877,11 +1142,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return The createTime. */ @java.lang.Override @@ -889,6 +1157,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
@@ -903,12 +1173,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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; + * * @return The etag. */ @java.lang.Override @@ -917,30 +1190,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -949,6 +1222,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -960,8 +1234,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -981,31 +1254,44 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt32(21, exampleCount_); } if (datasetMetadataCase_ == 23) { - output.writeMessage(23, (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_); + output.writeMessage( + 23, (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 24) { - output.writeMessage(24, (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_); + output.writeMessage( + 24, + (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 25) { - output.writeMessage(25, (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_); + output.writeMessage( + 25, (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 26) { - output.writeMessage(26, (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) datasetMetadata_); + output.writeMessage( + 26, + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 28) { - output.writeMessage(28, (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_); + output.writeMessage( + 28, (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 29) { - output.writeMessage(29, (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_); + output.writeMessage( + 29, + (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 30) { - output.writeMessage(30, (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_); + output.writeMessage( + 30, (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 31) { - output.writeMessage(31, (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) datasetMetadata_); + output.writeMessage( + 31, + (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 33) { - output.writeMessage(33, (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_); + output.writeMessage( + 33, (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_); } unknownFields.writeTo(output); } @@ -1026,51 +1312,67 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_); } if (exampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(21, exampleCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, exampleCount_); } if (datasetMetadataCase_ == 23) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 24) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, + (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) + datasetMetadata_); } if (datasetMetadataCase_ == 25) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 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_); + 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_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_); } if (datasetMetadataCase_ == 29) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 29, + (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) + datasetMetadata_); } if (datasetMetadataCase_ == 30) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_); + 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_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1080,33 +1382,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.Dataset)) { return super.equals(obj); } com.google.cloud.automl.v1beta1.Dataset other = (com.google.cloud.automl.v1beta1.Dataset) 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 (!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 (!getCreateTime().equals(other.getCreateTime())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getDatasetMetadataCase().equals(other.getDatasetMetadataCase())) return false; switch (datasetMetadataCase_) { case 23: - if (!getTranslationDatasetMetadata() - .equals(other.getTranslationDatasetMetadata())) return false; + if (!getTranslationDatasetMetadata().equals(other.getTranslationDatasetMetadata())) + return false; break; case 24: if (!getImageClassificationDatasetMetadata() @@ -1129,16 +1425,15 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getVideoObjectTrackingDatasetMetadata())) return false; break; case 28: - if (!getTextExtractionDatasetMetadata() - .equals(other.getTextExtractionDatasetMetadata())) return false; + if (!getTextExtractionDatasetMetadata().equals(other.getTextExtractionDatasetMetadata())) + return false; break; case 30: - if (!getTextSentimentDatasetMetadata() - .equals(other.getTextSentimentDatasetMetadata())) return false; + if (!getTextSentimentDatasetMetadata().equals(other.getTextSentimentDatasetMetadata())) + return false; break; case 33: - if (!getTablesDatasetMetadata() - .equals(other.getTablesDatasetMetadata())) return false; + if (!getTablesDatasetMetadata().equals(other.getTablesDatasetMetadata())) return false; break; case 0: default: @@ -1213,97 +1508,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.Dataset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.Dataset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Dataset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Dataset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Dataset 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.Dataset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Dataset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.Dataset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.Dataset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Dataset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.Dataset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.Dataset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.Dataset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.Dataset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.Dataset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A workspace for solving a single, particular machine learning (ML) problem.
    * A workspace contains examples that may be annotated.
@@ -1311,21 +1613,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.Dataset}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Dataset)
       com.google.cloud.automl.v1beta1.DatasetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_automl_v1beta1_Dataset_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable
+      return com.google.cloud.automl.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1beta1.Dataset.class, com.google.cloud.automl.v1beta1.Dataset.Builder.class);
+              com.google.cloud.automl.v1beta1.Dataset.class,
+              com.google.cloud.automl.v1beta1.Dataset.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.Dataset.newBuilder()
@@ -1333,16 +1637,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1368,9 +1671,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_automl_v1beta1_Dataset_descriptor;
     }
 
     @java.lang.Override
@@ -1389,7 +1692,8 @@ public com.google.cloud.automl.v1beta1.Dataset build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1beta1.Dataset buildPartial() {
-      com.google.cloud.automl.v1beta1.Dataset result = new com.google.cloud.automl.v1beta1.Dataset(this);
+      com.google.cloud.automl.v1beta1.Dataset result =
+          new com.google.cloud.automl.v1beta1.Dataset(this);
       if (datasetMetadataCase_ == 23) {
         if (translationDatasetMetadataBuilder_ == null) {
           result.datasetMetadata_ = datasetMetadata_;
@@ -1472,38 +1776,39 @@ public com.google.cloud.automl.v1beta1.Dataset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.Dataset) {
-        return mergeFrom((com.google.cloud.automl.v1beta1.Dataset)other);
+        return mergeFrom((com.google.cloud.automl.v1beta1.Dataset) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1535,45 +1840,56 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Dataset other) {
         onChanged();
       }
       switch (other.getDatasetMetadataCase()) {
-        case TRANSLATION_DATASET_METADATA: {
-          mergeTranslationDatasetMetadata(other.getTranslationDatasetMetadata());
-          break;
-        }
-        case IMAGE_CLASSIFICATION_DATASET_METADATA: {
-          mergeImageClassificationDatasetMetadata(other.getImageClassificationDatasetMetadata());
-          break;
-        }
-        case TEXT_CLASSIFICATION_DATASET_METADATA: {
-          mergeTextClassificationDatasetMetadata(other.getTextClassificationDatasetMetadata());
-          break;
-        }
-        case IMAGE_OBJECT_DETECTION_DATASET_METADATA: {
-          mergeImageObjectDetectionDatasetMetadata(other.getImageObjectDetectionDatasetMetadata());
-          break;
-        }
-        case VIDEO_CLASSIFICATION_DATASET_METADATA: {
-          mergeVideoClassificationDatasetMetadata(other.getVideoClassificationDatasetMetadata());
-          break;
-        }
-        case VIDEO_OBJECT_TRACKING_DATASET_METADATA: {
-          mergeVideoObjectTrackingDatasetMetadata(other.getVideoObjectTrackingDatasetMetadata());
-          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;
-        }
+        case TRANSLATION_DATASET_METADATA:
+          {
+            mergeTranslationDatasetMetadata(other.getTranslationDatasetMetadata());
+            break;
+          }
+        case IMAGE_CLASSIFICATION_DATASET_METADATA:
+          {
+            mergeImageClassificationDatasetMetadata(other.getImageClassificationDatasetMetadata());
+            break;
+          }
+        case TEXT_CLASSIFICATION_DATASET_METADATA:
+          {
+            mergeTextClassificationDatasetMetadata(other.getTextClassificationDatasetMetadata());
+            break;
+          }
+        case IMAGE_OBJECT_DETECTION_DATASET_METADATA:
+          {
+            mergeImageObjectDetectionDatasetMetadata(
+                other.getImageObjectDetectionDatasetMetadata());
+            break;
+          }
+        case VIDEO_CLASSIFICATION_DATASET_METADATA:
+          {
+            mergeVideoClassificationDatasetMetadata(other.getVideoClassificationDatasetMetadata());
+            break;
+          }
+        case VIDEO_OBJECT_TRACKING_DATASET_METADATA:
+          {
+            mergeVideoObjectTrackingDatasetMetadata(other.getVideoObjectTrackingDatasetMetadata());
+            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;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1603,12 +1919,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int datasetMetadataCase_ = 0;
     private java.lang.Object datasetMetadata_;
-    public DatasetMetadataCase
-        getDatasetMetadataCase() {
-      return DatasetMetadataCase.forNumber(
-          datasetMetadataCase_);
+
+    public DatasetMetadataCase getDatasetMetadataCase() {
+      return DatasetMetadataCase.forNumber(datasetMetadataCase_);
     }
 
     public Builder clearDatasetMetadata() {
@@ -1618,15 +1934,22 @@ public Builder clearDatasetMetadata() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1beta1.TranslationDatasetMetadata, com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder> translationDatasetMetadataBuilder_;
+            com.google.cloud.automl.v1beta1.TranslationDatasetMetadata,
+            com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder,
+            com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder>
+        translationDatasetMetadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return Whether the translationDatasetMetadata field is set. */ @java.lang.Override @@ -1634,15 +1957,21 @@ public boolean hasTranslationDatasetMetadata() { return datasetMetadataCase_ == 23; } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return The translationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getTranslationDatasetMetadata() { + public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata + getTranslationDatasetMetadata() { if (translationDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 23) { return (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_; @@ -1656,13 +1985,18 @@ public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getTranslation } } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ - public Builder setTranslationDatasetMetadata(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata value) { + public Builder setTranslationDatasetMetadata( + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata value) { if (translationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1676,11 +2010,15 @@ public Builder setTranslationDatasetMetadata(com.google.cloud.automl.v1beta1.Tra return this; } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ public Builder setTranslationDatasetMetadata( com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder builderForValue) { @@ -1694,18 +2032,28 @@ public Builder setTranslationDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ - public Builder mergeTranslationDatasetMetadata(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata value) { + public Builder mergeTranslationDatasetMetadata( + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata value) { if (translationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 23 && - datasetMetadata_ != com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.newBuilder((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_) - .mergeFrom(value).buildPartial(); + if (datasetMetadataCase_ == 23 + && datasetMetadata_ + != com.google.cloud.automl.v1beta1.TranslationDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_) + .mergeFrom(value) + .buildPartial(); } else { datasetMetadata_ = value; } @@ -1720,11 +2068,15 @@ public Builder mergeTranslationDatasetMetadata(com.google.cloud.automl.v1beta1.T return this; } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ public Builder clearTranslationDatasetMetadata() { if (translationDatasetMetadataBuilder_ == null) { @@ -1743,24 +2095,34 @@ public Builder clearTranslationDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ - public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder getTranslationDatasetMetadataBuilder() { + public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder + getTranslationDatasetMetadataBuilder() { return getTranslationDatasetMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder + getTranslationDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 23) && (translationDatasetMetadataBuilder_ != null)) { return translationDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -1771,39 +2133,58 @@ public com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder getTr } } /** + * + * *
      * Metadata for a dataset used for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata, com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder> + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata, + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder> getTranslationDatasetMetadataFieldBuilder() { if (translationDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 23)) { - datasetMetadata_ = com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance(); } - translationDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata, com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder>( + translationDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata, + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder>( (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 23; - onChanged();; + onChanged(); + ; return translationDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder> imageClassificationDatasetMetadataBuilder_; + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder> + imageClassificationDatasetMetadataBuilder_; /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return Whether the imageClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -1811,35 +2192,49 @@ public boolean hasImageClassificationDatasetMetadata() { return datasetMetadataCase_ == 24; } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return The imageClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + getImageClassificationDatasetMetadata() { if (imageClassificationDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) + datasetMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + .getDefaultInstance(); } else { if (datasetMetadataCase_ == 24) { return imageClassificationDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + .getDefaultInstance(); } } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ - public Builder setImageClassificationDatasetMetadata(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata value) { + public Builder setImageClassificationDatasetMetadata( + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata value) { if (imageClassificationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1853,14 +2248,19 @@ public Builder setImageClassificationDatasetMetadata(com.google.cloud.automl.v1b return this; } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ public Builder setImageClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder + builderForValue) { if (imageClassificationDatasetMetadataBuilder_ == null) { datasetMetadata_ = builderForValue.build(); onChanged(); @@ -1871,18 +2271,29 @@ public Builder setImageClassificationDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ - public Builder mergeImageClassificationDatasetMetadata(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata value) { + public Builder mergeImageClassificationDatasetMetadata( + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata value) { if (imageClassificationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 24 && - datasetMetadata_ != com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.newBuilder((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_) - .mergeFrom(value).buildPartial(); + if (datasetMetadataCase_ == 24 + && datasetMetadata_ + != com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) + datasetMetadata_) + .mergeFrom(value) + .buildPartial(); } else { datasetMetadata_ = value; } @@ -1897,11 +2308,15 @@ public Builder mergeImageClassificationDatasetMetadata(com.google.cloud.automl.v return this; } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ public Builder clearImageClassificationDatasetMetadata() { if (imageClassificationDatasetMetadataBuilder_ == null) { @@ -1920,67 +2335,100 @@ public Builder clearImageClassificationDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder getImageClassificationDatasetMetadataBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder + getImageClassificationDatasetMetadataBuilder() { return getImageClassificationDatasetMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder + getImageClassificationDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 24) && (imageClassificationDatasetMetadataBuilder_ != null)) { return imageClassificationDatasetMetadataBuilder_.getMessageOrBuilder(); } else { if (datasetMetadataCase_ == 24) { - return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) + datasetMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + .getDefaultInstance(); } } /** + * + * *
      * Metadata for a dataset used for image classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder> + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder> getImageClassificationDatasetMetadataFieldBuilder() { if (imageClassificationDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 24)) { - datasetMetadata_ = com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + .getDefaultInstance(); } - imageClassificationDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) datasetMetadata_, + imageClassificationDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) + datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 24; - onChanged();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return Whether the textClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -1988,35 +2436,49 @@ public boolean hasTextClassificationDatasetMetadata() { return datasetMetadataCase_ == 25; } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return The textClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata() { + 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) + datasetMetadata_; } - return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + .getDefaultInstance(); } else { if (datasetMetadataCase_ == 25) { return textClassificationDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ - public Builder setTextClassificationDatasetMetadata(com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata value) { + public Builder setTextClassificationDatasetMetadata( + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata value) { if (textClassificationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2030,11 +2492,15 @@ public Builder setTextClassificationDatasetMetadata(com.google.cloud.automl.v1be return this; } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ public Builder setTextClassificationDatasetMetadata( com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder builderForValue) { @@ -2048,18 +2514,29 @@ public Builder setTextClassificationDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ - public Builder mergeTextClassificationDatasetMetadata(com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata value) { + 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(); + 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; } @@ -2074,11 +2551,15 @@ public Builder mergeTextClassificationDatasetMetadata(com.google.cloud.automl.v1 return this; } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ public Builder clearTextClassificationDatasetMetadata() { if (textClassificationDatasetMetadataBuilder_ == null) { @@ -2097,67 +2578,100 @@ public Builder clearTextClassificationDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for text classification.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder getTextClassificationDatasetMetadataBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder() { + 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) + datasetMetadata_; } - return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance(); + 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; + * + * .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> + 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(); + 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_, + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ @java.lang.Override @@ -2165,35 +2679,49 @@ 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return The imageObjectDetectionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata() { + 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) + datasetMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + .getDefaultInstance(); } else { if (datasetMetadataCase_ == 26) { return imageObjectDetectionDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ - public Builder setImageObjectDetectionDatasetMetadata(com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata value) { + public Builder setImageObjectDetectionDatasetMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata value) { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2207,14 +2735,19 @@ public Builder setImageObjectDetectionDatasetMetadata(com.google.cloud.automl.v1 return this; } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ public Builder setImageObjectDetectionDatasetMetadata( - com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder + builderForValue) { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { datasetMetadata_ = builderForValue.build(); onChanged(); @@ -2225,18 +2758,29 @@ public Builder setImageObjectDetectionDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ - public Builder mergeImageObjectDetectionDatasetMetadata(com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata value) { + 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(); + 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; } @@ -2251,11 +2795,15 @@ public Builder mergeImageObjectDetectionDatasetMetadata(com.google.cloud.automl. return this; } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ public Builder clearImageObjectDetectionDatasetMetadata() { if (imageObjectDetectionDatasetMetadataBuilder_ == null) { @@ -2274,67 +2822,100 @@ public Builder clearImageObjectDetectionDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder getImageObjectDetectionDatasetMetadataBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder() { + 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) + datasetMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); + 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; + * + * .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> + 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(); + 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_, + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * * @return Whether the videoClassificationDatasetMetadata field is set. */ @java.lang.Override @@ -2342,35 +2923,49 @@ public boolean hasVideoClassificationDatasetMetadata() { return datasetMetadataCase_ == 31; } /** + * + * *
      * Metadata for a dataset used for video classification.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * * @return The videoClassificationDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata getVideoClassificationDatasetMetadata() { + 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) + datasetMetadata_; } - return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + .getDefaultInstance(); } else { if (datasetMetadataCase_ == 31) { return videoClassificationDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * */ - public Builder setVideoClassificationDatasetMetadata(com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata value) { + public Builder setVideoClassificationDatasetMetadata( + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata value) { if (videoClassificationDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2384,14 +2979,19 @@ public Builder setVideoClassificationDatasetMetadata(com.google.cloud.automl.v1b return this; } /** + * + * *
      * Metadata for a dataset used for video classification.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * */ public Builder setVideoClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder builderForValue) { + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder + builderForValue) { if (videoClassificationDatasetMetadataBuilder_ == null) { datasetMetadata_ = builderForValue.build(); onChanged(); @@ -2402,18 +3002,29 @@ public Builder setVideoClassificationDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for video classification.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * */ - public Builder mergeVideoClassificationDatasetMetadata(com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata value) { + 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(); + 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; } @@ -2428,11 +3039,15 @@ public Builder mergeVideoClassificationDatasetMetadata(com.google.cloud.automl.v return this; } /** + * + * *
      * Metadata for a dataset used for video classification.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * */ public Builder clearVideoClassificationDatasetMetadata() { if (videoClassificationDatasetMetadataBuilder_ == null) { @@ -2451,67 +3066,100 @@ public Builder clearVideoClassificationDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for video classification.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * */ - public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder getVideoClassificationDatasetMetadataBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder getVideoClassificationDatasetMetadataOrBuilder() { + 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) + datasetMetadata_; } - return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.getDefaultInstance(); + 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; + * + * .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> + 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(); + 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_, + 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();; + onChanged(); + ; return videoClassificationDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder> videoObjectTrackingDatasetMetadataBuilder_; + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder> + videoObjectTrackingDatasetMetadataBuilder_; /** + * + * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * * @return Whether the videoObjectTrackingDatasetMetadata field is set. */ @java.lang.Override @@ -2519,35 +3167,49 @@ public boolean hasVideoObjectTrackingDatasetMetadata() { return datasetMetadataCase_ == 29; } /** + * + * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * * @return The videoObjectTrackingDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getVideoObjectTrackingDatasetMetadata() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + getVideoObjectTrackingDatasetMetadata() { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 29) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) + datasetMetadata_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + .getDefaultInstance(); } else { if (datasetMetadataCase_ == 29) { return videoObjectTrackingDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + .getDefaultInstance(); } } /** + * + * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * */ - public Builder setVideoObjectTrackingDatasetMetadata(com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata value) { + public Builder setVideoObjectTrackingDatasetMetadata( + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata value) { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2561,14 +3223,19 @@ public Builder setVideoObjectTrackingDatasetMetadata(com.google.cloud.automl.v1b return this; } /** + * + * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * */ public Builder setVideoObjectTrackingDatasetMetadata( - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder builderForValue) { + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder + builderForValue) { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { datasetMetadata_ = builderForValue.build(); onChanged(); @@ -2579,18 +3246,29 @@ public Builder setVideoObjectTrackingDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * */ - public Builder mergeVideoObjectTrackingDatasetMetadata(com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata value) { + public Builder mergeVideoObjectTrackingDatasetMetadata( + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata value) { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 29 && - datasetMetadata_ != com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.newBuilder((com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_) - .mergeFrom(value).buildPartial(); + if (datasetMetadataCase_ == 29 + && datasetMetadata_ + != com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) + datasetMetadata_) + .mergeFrom(value) + .buildPartial(); } else { datasetMetadata_ = value; } @@ -2605,11 +3283,15 @@ public Builder mergeVideoObjectTrackingDatasetMetadata(com.google.cloud.automl.v return this; } /** + * + * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * */ public Builder clearVideoObjectTrackingDatasetMetadata() { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { @@ -2628,67 +3310,100 @@ public Builder clearVideoObjectTrackingDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * */ - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder getVideoObjectTrackingDatasetMetadataBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder + getVideoObjectTrackingDatasetMetadataBuilder() { return getVideoObjectTrackingDatasetMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder getVideoObjectTrackingDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder + getVideoObjectTrackingDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 29) && (videoObjectTrackingDatasetMetadataBuilder_ != null)) { return videoObjectTrackingDatasetMetadataBuilder_.getMessageOrBuilder(); } else { if (datasetMetadataCase_ == 29) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) + datasetMetadata_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + .getDefaultInstance(); } } /** + * + * *
      * Metadata for a dataset used for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder> + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder> getVideoObjectTrackingDatasetMetadataFieldBuilder() { if (videoObjectTrackingDatasetMetadataBuilder_ == null) { if (!(datasetMetadataCase_ == 29)) { - datasetMetadata_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + .getDefaultInstance(); } - videoObjectTrackingDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) datasetMetadata_, + videoObjectTrackingDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) + datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } datasetMetadataCase_ = 29; - onChanged();; + onChanged(); + ; return videoObjectTrackingDatasetMetadataBuilder_; } 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_; + 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; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return Whether the textExtractionDatasetMetadata field is set. */ @java.lang.Override @@ -2696,15 +3411,21 @@ public boolean hasTextExtractionDatasetMetadata() { return datasetMetadataCase_ == 28; } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return The textExtractionDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getTextExtractionDatasetMetadata() { + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata + getTextExtractionDatasetMetadata() { if (textExtractionDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 28) { return (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_; @@ -2718,13 +3439,18 @@ public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getTextExtr } } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ - public Builder setTextExtractionDatasetMetadata(com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata value) { + public Builder setTextExtractionDatasetMetadata( + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata value) { if (textExtractionDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2738,11 +3464,15 @@ public Builder setTextExtractionDatasetMetadata(com.google.cloud.automl.v1beta1. return this; } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ public Builder setTextExtractionDatasetMetadata( com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder builderForValue) { @@ -2756,18 +3486,29 @@ public Builder setTextExtractionDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ - public Builder mergeTextExtractionDatasetMetadata(com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata value) { + 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(); + 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; } @@ -2782,11 +3523,15 @@ public Builder mergeTextExtractionDatasetMetadata(com.google.cloud.automl.v1beta return this; } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ public Builder clearTextExtractionDatasetMetadata() { if (textExtractionDatasetMetadataBuilder_ == null) { @@ -2805,24 +3550,34 @@ public Builder clearTextExtractionDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ - public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder getTextExtractionDatasetMetadataBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder + getTextExtractionDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 28) && (textExtractionDatasetMetadataBuilder_ != null)) { return textExtractionDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2833,39 +3588,58 @@ public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder ge } } /** + * + * *
      * Metadata for a dataset used for text extraction.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .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> + 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(); + 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>( + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return Whether the textSentimentDatasetMetadata field is set. */ @java.lang.Override @@ -2873,15 +3647,21 @@ public boolean hasTextSentimentDatasetMetadata() { return datasetMetadataCase_ == 30; } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return The textSentimentDatasetMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getTextSentimentDatasetMetadata() { + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata + getTextSentimentDatasetMetadata() { if (textSentimentDatasetMetadataBuilder_ == null) { if (datasetMetadataCase_ == 30) { return (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_; @@ -2895,13 +3675,18 @@ public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getTextSenti } } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ - public Builder setTextSentimentDatasetMetadata(com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata value) { + public Builder setTextSentimentDatasetMetadata( + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata value) { if (textSentimentDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2915,11 +3700,15 @@ public Builder setTextSentimentDatasetMetadata(com.google.cloud.automl.v1beta1.T return this; } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ public Builder setTextSentimentDatasetMetadata( com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder builderForValue) { @@ -2933,18 +3722,29 @@ public Builder setTextSentimentDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ - public Builder mergeTextSentimentDatasetMetadata(com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata value) { + 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(); + 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; } @@ -2959,11 +3759,15 @@ public Builder mergeTextSentimentDatasetMetadata(com.google.cloud.automl.v1beta1 return this; } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ public Builder clearTextSentimentDatasetMetadata() { if (textSentimentDatasetMetadataBuilder_ == null) { @@ -2982,24 +3786,34 @@ public Builder clearTextSentimentDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ - public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder getTextSentimentDatasetMetadataBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder + getTextSentimentDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 30) && (textSentimentDatasetMetadataBuilder_ != null)) { return textSentimentDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3010,39 +3824,56 @@ public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder get } } /** + * + * *
      * Metadata for a dataset used for text sentiment.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .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> + 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(); + 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>( + 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();; + onChanged(); + ; return textSentimentDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TablesDatasetMetadata, com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder> tablesDatasetMetadataBuilder_; + 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 Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + * * @return Whether the tablesDatasetMetadata field is set. */ @java.lang.Override @@ -3050,11 +3881,14 @@ public boolean hasTablesDatasetMetadata() { return datasetMetadataCase_ == 33; } /** + * + * *
      * Metadata for a dataset used for Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + * * @return The tablesDatasetMetadata. */ @java.lang.Override @@ -3072,13 +3906,16 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getTablesDatasetMet } } /** + * + * *
      * Metadata for a dataset used for Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public Builder setTablesDatasetMetadata(com.google.cloud.automl.v1beta1.TablesDatasetMetadata value) { + public Builder setTablesDatasetMetadata( + com.google.cloud.automl.v1beta1.TablesDatasetMetadata value) { if (tablesDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3092,6 +3929,8 @@ public Builder setTablesDatasetMetadata(com.google.cloud.automl.v1beta1.TablesDa return this; } /** + * + * *
      * Metadata for a dataset used for Tables.
      * 
@@ -3110,18 +3949,25 @@ public Builder setTablesDatasetMetadata( return this; } /** + * + * *
      * Metadata for a dataset used for Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public Builder mergeTablesDatasetMetadata(com.google.cloud.automl.v1beta1.TablesDatasetMetadata value) { + public Builder mergeTablesDatasetMetadata( + com.google.cloud.automl.v1beta1.TablesDatasetMetadata value) { if (tablesDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 33 && - datasetMetadata_ != com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance()) { - datasetMetadata_ = com.google.cloud.automl.v1beta1.TablesDatasetMetadata.newBuilder((com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_) - .mergeFrom(value).buildPartial(); + if (datasetMetadataCase_ == 33 + && datasetMetadata_ + != com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_) + .mergeFrom(value) + .buildPartial(); } else { datasetMetadata_ = value; } @@ -3136,6 +3982,8 @@ public Builder mergeTablesDatasetMetadata(com.google.cloud.automl.v1beta1.Tables return this; } /** + * + * *
      * Metadata for a dataset used for Tables.
      * 
@@ -3159,16 +4007,21 @@ public Builder clearTablesDatasetMetadata() { return this; } /** + * + * *
      * Metadata for a dataset used for Tables.
      * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder getTablesDatasetMetadataBuilder() { + public com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder + getTablesDatasetMetadataBuilder() { return getTablesDatasetMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for a dataset used for Tables.
      * 
@@ -3176,7 +4029,8 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder getTablesDa * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder getTablesDatasetMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder + getTablesDatasetMetadataOrBuilder() { if ((datasetMetadataCase_ == 33) && (tablesDatasetMetadataBuilder_ != null)) { return tablesDatasetMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3187,6 +4041,8 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder getTablesD } } /** + * + * *
      * Metadata for a dataset used for Tables.
      * 
@@ -3194,39 +4050,48 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder getTablesD * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ private com.google.protobuf.SingleFieldBuilderV3< - 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, + 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.TablesDatasetMetadata.getDefaultInstance(); + datasetMetadata_ = + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); } - tablesDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TablesDatasetMetadata, com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder, com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder>( + tablesDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 33; - onChanged();; + onChanged(); + ; return tablesDatasetMetadataBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3235,21 +4100,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3257,57 +4123,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the dataset.
      * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3315,6 +4188,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * 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
@@ -3323,13 +4198,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3338,6 +4213,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
@@ -3346,15 +4223,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3362,6 +4238,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
@@ -3370,20 +4248,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * 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
@@ -3392,15 +4272,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * 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
@@ -3409,16 +4292,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3426,19 +4309,21 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; + * * @return The description. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -3447,21 +4332,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -3469,69 +4355,79 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided description of the dataset. The description can be up to
      * 25000 characters long.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private int exampleCount_ ; + private int exampleCount_; /** + * + * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; + * * @return The exampleCount. */ @java.lang.Override @@ -3539,30 +4435,36 @@ public int getExampleCount() { return exampleCount_; } /** + * + * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; + * * @param value The exampleCount to set. * @return This builder for chaining. */ public Builder setExampleCount(int value) { - + exampleCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of examples in the dataset.
      * 
* * int32 example_count = 21; + * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0; onChanged(); return this; @@ -3570,34 +4472,47 @@ public Builder clearExampleCount() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3618,14 +4533,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 14; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3636,6 +4552,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3646,7 +4564,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3658,6 +4576,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3676,6 +4596,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3683,11 +4605,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 14; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3698,11 +4622,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Timestamp when this dataset was created.
      * 
@@ -3710,14 +4637,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3725,19 +4655,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; + * * @return The etag. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3746,21 +4678,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -3768,64 +4701,71 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 17; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3835,12 +4775,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Dataset) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Dataset) private static final com.google.cloud.automl.v1beta1.Dataset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Dataset(); } @@ -3849,16 +4789,16 @@ public static com.google.cloud.automl.v1beta1.Dataset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Dataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Dataset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Dataset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3873,6 +4813,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Dataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java index e3fe6226c..ef0558043 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java @@ -1,278 +1,435 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/dataset.proto package com.google.cloud.automl.v1beta1; -public interface DatasetOrBuilder extends +public interface DatasetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Dataset) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return Whether the translationDatasetMetadata field is set. */ boolean hasTranslationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * * @return The translationDatasetMetadata. */ com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getTranslationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * + * .google.cloud.automl.v1beta1.TranslationDatasetMetadata translation_dataset_metadata = 23; + * */ - com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder + getTranslationDatasetMetadataOrBuilder(); /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return Whether the imageClassificationDatasetMetadata field is set. */ boolean hasImageClassificationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * * @return The imageClassificationDatasetMetadata. */ - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata(); + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + getImageClassificationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for image classification.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * + * .google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; + * */ - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder + getImageClassificationDatasetMetadataOrBuilder(); /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return Whether the textClassificationDatasetMetadata field is set. */ boolean hasTextClassificationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * * @return The textClassificationDatasetMetadata. */ - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getTextClassificationDatasetMetadata(); + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + getTextClassificationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for text classification.
    * 
* - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * */ - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder(); + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return Whether the imageObjectDetectionDatasetMetadata field is set. */ boolean hasImageObjectDetectionDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + * * @return The imageObjectDetectionDatasetMetadata. */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata(); + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder(); + 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; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * * @return Whether the videoClassificationDatasetMetadata field is set. */ boolean hasVideoClassificationDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for video classification.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + * * @return The videoClassificationDatasetMetadata. */ - com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata getVideoClassificationDatasetMetadata(); + 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; + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * */ - com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder getVideoClassificationDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder + getVideoClassificationDatasetMetadataOrBuilder(); /** + * + * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * * @return Whether the videoObjectTrackingDatasetMetadata field is set. */ boolean hasVideoObjectTrackingDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * * @return The videoObjectTrackingDatasetMetadata. */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getVideoObjectTrackingDatasetMetadata(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + getVideoObjectTrackingDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29; + * */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder getVideoObjectTrackingDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder + getVideoObjectTrackingDatasetMetadataOrBuilder(); /** + * + * *
    * Metadata for a dataset used for text extraction.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return Whether the textExtractionDatasetMetadata field is set. */ boolean hasTextExtractionDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for text extraction.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + * * @return The textExtractionDatasetMetadata. */ 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; + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * */ - com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder(); + 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; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return Whether the textSentimentDatasetMetadata field is set. */ boolean hasTextSentimentDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for text sentiment.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + * * @return The textSentimentDatasetMetadata. */ 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; + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * */ - com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder + getTextSentimentDatasetMetadataOrBuilder(); /** + * + * *
    * Metadata for a dataset used for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + * * @return Whether the tablesDatasetMetadata field is set. */ boolean hasTablesDatasetMetadata(); /** + * + * *
    * Metadata for a dataset used for Tables.
    * 
* * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + * * @return The tablesDatasetMetadata. */ 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(); + com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder + getTablesDatasetMetadataOrBuilder(); /** + * + * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the dataset.
    * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + 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
@@ -281,10 +438,13 @@ public interface DatasetOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ 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
@@ -293,62 +453,78 @@ public interface DatasetOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User-provided description of the dataset. The description can be up to
    * 25000 characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The number of examples in the dataset.
    * 
* * int32 example_count = 21; + * * @return The exampleCount. */ int getExampleCount(); /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 14; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp when this dataset was created.
    * 
@@ -358,26 +534,31 @@ public interface DatasetOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 17; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 17; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); public com.google.cloud.automl.v1beta1.Dataset.DatasetMetadataCase getDatasetMetadataCase(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java new file mode 100644 index 000000000..fa5f11186 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java @@ -0,0 +1,141 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/dataset.proto + +package com.google.cloud.automl.v1beta1; + +public final class DatasetOuterClass { + private DatasetOuterClass() {} + + 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_Dataset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Dataset_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/dataset.pr" + + "oto\022\033google.cloud.automl.v1beta1\032\031google" + + "/api/resource.proto\032\'google/cloud/automl" + + "/v1beta1/image.proto\032(google/cloud/autom" + + "l/v1beta1/tables.proto\032&google/cloud/aut" + + "oml/v1beta1/text.proto\032-google/cloud/aut" + + "oml/v1beta1/translation.proto\032\'google/cl" + + "oud/automl/v1beta1/video.proto\032\037google/p" + + "rotobuf/timestamp.proto\032\034google/api/anno" + + "tations.proto\"\316\t\n\007Dataset\022_\n\034translation" + + "_dataset_metadata\030\027 \001(\01327.google.cloud.a" + + "utoml.v1beta1.TranslationDatasetMetadata" + + "H\000\022p\n%image_classification_dataset_metad" + + "ata\030\030 \001(\0132?.google.cloud.automl.v1beta1." + + "ImageClassificationDatasetMetadataH\000\022n\n$" + + "text_classification_dataset_metadata\030\031 \001" + + "(\0132>.google.cloud.automl.v1beta1.TextCla" + + "ssificationDatasetMetadataH\000\022s\n\'image_ob" + + "ject_detection_dataset_metadata\030\032 \001(\0132@." + + "google.cloud.automl.v1beta1.ImageObjectD" + + "etectionDatasetMetadataH\000\022p\n%video_class" + + "ification_dataset_metadata\030\037 \001(\0132?.googl" + + "e.cloud.automl.v1beta1.VideoClassificati" + + "onDatasetMetadataH\000\022q\n&video_object_trac" + + "king_dataset_metadata\030\035 \001(\0132?.google.clo" + + "ud.automl.v1beta1.VideoObjectTrackingDat" + + "asetMetadataH\000\022f\n text_extraction_datase" + + "t_metadata\030\034 \001(\0132:.google.cloud.automl.v" + + "1beta1.TextExtractionDatasetMetadataH\000\022d" + + "\n\037text_sentiment_dataset_metadata\030\036 \001(\0132" + + "9.google.cloud.automl.v1beta1.TextSentim" + + "entDatasetMetadataH\000\022U\n\027tables_dataset_m" + + "etadata\030! \001(\01322.google.cloud.automl.v1be" + + "ta1.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_ti" + + "me\030\016 \001(\0132\032.google.protobuf.Timestamp\022\014\n\004" + + "etag\030\021 \001(\t:^\352A[\n\035automl.googleapis.com/D" + + "ataset\022:projects/{project}/locations/{lo" + + "cation}/datasets/{dataset}B\022\n\020dataset_me" + + "tadataB\245\001\n\037com.google.cloud.automl.v1bet" + + "a1P\001ZAgoogle.golang.org/genproto/googlea" + + "pis/cloud/automl/v1beta1;automl\312\002\033Google" + + "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" + + "utoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.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(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_Dataset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Dataset_descriptor, + new java.lang.String[] { + "TranslationDatasetMetadata", + "ImageClassificationDatasetMetadata", + "TextClassificationDatasetMetadata", + "ImageObjectDetectionDatasetMetadata", + "VideoClassificationDatasetMetadata", + "VideoObjectTrackingDatasetMetadata", + "TextExtractionDatasetMetadata", + "TextSentimentDatasetMetadata", + "TablesDatasetMetadata", + "Name", + "DisplayName", + "Description", + "ExampleCount", + "CreateTime", + "Etag", + "DatasetMetadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.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(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java index e8cddaaff..99d5c22e1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteDatasetRequest} */ -public final class DeleteDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DeleteDatasetRequest) DeleteDatasetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteDatasetRequest.newBuilder() to construct. private DeleteDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private DeleteDatasetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_DeleteDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, com.google.cloud.automl.v1beta1.DeleteDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, + com.google.cloud.automl.v1beta1.DeleteDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the dataset to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 dataset to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.DeleteDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.DeleteDatasetRequest other = (com.google.cloud.automl.v1beta1.DeleteDatasetRequest) obj; + com.google.cloud.automl.v1beta1.DeleteDatasetRequest other = + (com.google.cloud.automl.v1beta1.DeleteDatasetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest 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.DeleteDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeleteDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteDatasetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DeleteDatasetRequest) com.google.cloud.automl.v1beta1.DeleteDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, com.google.cloud.automl.v1beta1.DeleteDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, + com.google.cloud.automl.v1beta1.DeleteDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DeleteDatasetRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1beta1.DeleteDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteDatasetRequest buildPartial() { - com.google.cloud.automl.v1beta1.DeleteDatasetRequest result = new com.google.cloud.automl.v1beta1.DeleteDatasetRequest(this); + com.google.cloud.automl.v1beta1.DeleteDatasetRequest result = + new com.google.cloud.automl.v1beta1.DeleteDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1beta1.DeleteDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.DeleteDatasetRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.DeleteDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeleteDatasetRequest other) { - if (other == com.google.cloud.automl.v1beta1.DeleteDatasetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.DeleteDatasetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.DeleteDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.DeleteDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the dataset to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +508,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +532,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DeleteDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeleteDatasetRequest) private static final com.google.cloud.automl.v1beta1.DeleteDatasetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DeleteDatasetRequest(); } @@ -564,16 +623,16 @@ public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DeleteDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java new file mode 100644 index 000000000..ae1b89874 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface DeleteDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeleteDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the dataset to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the dataset to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java index ba54f071c..101244a3f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteModelRequest} */ -public final class DeleteModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DeleteModelRequest) DeleteModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteModelRequest.newBuilder() to construct. private DeleteModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private DeleteModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_DeleteModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeleteModelRequest.class, com.google.cloud.automl.v1beta1.DeleteModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeleteModelRequest.class, + com.google.cloud.automl.v1beta1.DeleteModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the model being deleted.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the model being deleted.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.DeleteModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.DeleteModelRequest other = (com.google.cloud.automl.v1beta1.DeleteModelRequest) obj; + com.google.cloud.automl.v1beta1.DeleteModelRequest other = + (com.google.cloud.automl.v1beta1.DeleteModelRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DeleteModelRequest 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.DeleteModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeleteModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DeleteModelRequest) com.google.cloud.automl.v1beta1.DeleteModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeleteModelRequest.class, com.google.cloud.automl.v1beta1.DeleteModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeleteModelRequest.class, + com.google.cloud.automl.v1beta1.DeleteModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DeleteModelRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1beta1.DeleteModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteModelRequest buildPartial() { - com.google.cloud.automl.v1beta1.DeleteModelRequest result = new com.google.cloud.automl.v1beta1.DeleteModelRequest(this); + com.google.cloud.automl.v1beta1.DeleteModelRequest result = + new com.google.cloud.automl.v1beta1.DeleteModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1beta1.DeleteModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteModelRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.DeleteModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.DeleteModelRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeleteModelRequest other) { - if (other == com.google.cloud.automl.v1beta1.DeleteModelRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.DeleteModelRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.DeleteModelRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.DeleteModelRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the model being deleted.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +508,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model being deleted.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +532,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model being deleted.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model being deleted.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model being deleted.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DeleteModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeleteModelRequest) private static final com.google.cloud.automl.v1beta1.DeleteModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DeleteModelRequest(); } @@ -564,16 +623,16 @@ public static com.google.cloud.automl.v1beta1.DeleteModelRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DeleteModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java new file mode 100644 index 000000000..3e0f039f4 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface DeleteModelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeleteModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the model being deleted.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the model being deleted.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java index 53efc883d..962bb5eb1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use DeleteOperationMetadata.newBuilder() to construct. private DeleteOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteOperationMetadata() { - } + + private DeleteOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private DeleteOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.DeleteOperationMetadata other = + (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeleteOperationMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.class, + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DeleteOperationMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +302,9 @@ public Builder clear() { } @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; + 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 @@ -295,7 +323,8 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.DeleteOperationMetadata result = + new com.google.cloud.automl.v1beta1.DeleteOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +333,39 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.DeleteOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +373,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeleteOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +404,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +416,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -398,16 +430,16 @@ public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDefault 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); - } - }; + 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; @@ -422,6 +454,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java new file mode 100644 index 000000000..ad727f290 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java index 031842ef1..0146d792d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use DeployModelOperationMetadata.newBuilder() to construct. private DeployModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeployModelOperationMetadata() { - } + + private DeployModelOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeployModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeployModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private DeployModelOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata other = + (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeployModelOperationMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,13 +302,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); } @@ -295,7 +324,8 @@ public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata result = + new com.google.cloud.automl.v1beta1.DeployModelOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +334,39 @@ public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +374,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeployModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +406,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +418,13 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.DeployModelOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DeployModelOperationMetadata(); } @@ -398,16 +433,16 @@ public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDe 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); - } - }; + 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; @@ -422,6 +457,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..b0d95bc95 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java index 41ae369ae..b8fabf76f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeployModelRequest} */ -public final class DeployModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeployModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DeployModelRequest) DeployModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeployModelRequest.newBuilder() to construct. private DeployModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeployModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeployModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeployModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,81 +70,107 @@ private DeployModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - 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(); + name_ = s; + break; } - modelDeploymentMetadataCase_ = 2; - break; - } - case 34: { - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder subBuilder = null; - if (modelDeploymentMetadataCase_ == 4) { - subBuilder = ((com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_).toBuilder(); + 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; } - modelDeploymentMetadata_ = - input.readMessage(com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); - modelDeploymentMetadata_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder + subBuilder = null; + if (modelDeploymentMetadataCase_ == 4) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_) + .toBuilder(); + } + modelDeploymentMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_); + modelDeploymentMetadata_ = subBuilder.buildPartial(); + } + modelDeploymentMetadataCase_ = 4; + break; } - modelDeploymentMetadataCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_DeployModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeployModelRequest.class, com.google.cloud.automl.v1beta1.DeployModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeployModelRequest.class, + 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, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA(2), IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA(4), MODELDEPLOYMENTMETADATA_NOT_SET(0); private final int value; + private ModelDeploymentMetadataCase(int value) { this.value = value; } @@ -143,30 +186,38 @@ public static ModelDeploymentMetadataCase valueOf(int value) { public static ModelDeploymentMetadataCase forNumber(int value) { switch (value) { - case 2: return IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA; - case 4: return IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA; - case 0: return MODELDEPLOYMENTMETADATA_NOT_SET; - default: return null; + case 2: + return IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA; + case 4: + return IMAGE_CLASSIFICATION_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 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. */ @java.lang.Override @@ -174,42 +225,62 @@ 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * * @return The imageObjectDetectionModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata getImageObjectDetectionModelDeploymentMetadata() { + 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) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataOrBuilder getImageObjectDetectionModelDeploymentMetadataOrBuilder() { + 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) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA_FIELD_NUMBER = 4; /** + * + * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * * @return Whether the imageClassificationModelDeploymentMetadata field is set. */ @java.lang.Override @@ -217,43 +288,63 @@ public boolean hasImageClassificationModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 4; } /** + * + * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * * @return The imageClassificationModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + getImageClassificationModelDeploymentMetadata() { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } /** + * + * *
    * Model deployment metadata specific to Image Classification.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder + getImageClassificationModelDeploymentMetadataOrBuilder() { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the model to deploy.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -262,29 +353,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the model to deploy.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -293,6 +386,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,16 +398,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (modelDeploymentMetadataCase_ == 2) { - output.writeMessage(2, (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) modelDeploymentMetadata_); + output.writeMessage( + 2, + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_); } if (modelDeploymentMetadataCase_ == 4) { - output.writeMessage(4, (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); + output.writeMessage( + 4, + (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_); } unknownFields.writeTo(output); } @@ -328,12 +427,18 @@ public int getSerializedSize() { 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_); } if (modelDeploymentMetadataCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -343,16 +448,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.DeployModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.DeployModelRequest other = (com.google.cloud.automl.v1beta1.DeployModelRequest) obj; + com.google.cloud.automl.v1beta1.DeployModelRequest other = + (com.google.cloud.automl.v1beta1.DeployModelRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getModelDeploymentMetadataCase().equals(other.getModelDeploymentMetadataCase())) return false; + if (!getName().equals(other.getName())) return false; + if (!getModelDeploymentMetadataCase().equals(other.getModelDeploymentMetadataCase())) + return false; switch (modelDeploymentMetadataCase_) { case 2: if (!getImageObjectDetectionModelDeploymentMetadata() @@ -396,117 +502,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeployModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DeployModelRequest 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.DeployModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DeployModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.DeployModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DeployModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeployModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeployModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DeployModelRequest) com.google.cloud.automl.v1beta1.DeployModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DeployModelRequest.class, com.google.cloud.automl.v1beta1.DeployModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.DeployModelRequest.class, + com.google.cloud.automl.v1beta1.DeployModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DeployModelRequest.newBuilder() @@ -514,16 +629,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +649,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; } @java.lang.Override @@ -556,19 +670,22 @@ public com.google.cloud.automl.v1beta1.DeployModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.DeployModelRequest buildPartial() { - com.google.cloud.automl.v1beta1.DeployModelRequest result = new com.google.cloud.automl.v1beta1.DeployModelRequest(this); + 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.modelDeploymentMetadata_ = + imageObjectDetectionModelDeploymentMetadataBuilder_.build(); } } if (modelDeploymentMetadataCase_ == 4) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { result.modelDeploymentMetadata_ = modelDeploymentMetadata_; } else { - result.modelDeploymentMetadata_ = imageClassificationModelDeploymentMetadataBuilder_.build(); + result.modelDeploymentMetadata_ = + imageClassificationModelDeploymentMetadataBuilder_.build(); } } result.name_ = name_; @@ -581,38 +698,39 @@ public com.google.cloud.automl.v1beta1.DeployModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeployModelRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.DeployModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.DeployModelRequest) other); } else { super.mergeFrom(other); return this; @@ -620,23 +738,29 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeployModelRequest other) { - if (other == com.google.cloud.automl.v1beta1.DeployModelRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.DeployModelRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } switch (other.getModelDeploymentMetadataCase()) { - case IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA: { - mergeImageObjectDetectionModelDeploymentMetadata(other.getImageObjectDetectionModelDeploymentMetadata()); - break; - } - case IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA: { - mergeImageClassificationModelDeploymentMetadata(other.getImageClassificationModelDeploymentMetadata()); - break; - } - case MODELDEPLOYMENTMETADATA_NOT_SET: { - break; - } + case IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA: + { + mergeImageObjectDetectionModelDeploymentMetadata( + other.getImageObjectDetectionModelDeploymentMetadata()); + break; + } + case IMAGE_CLASSIFICATION_MODEL_DEPLOYMENT_METADATA: + { + mergeImageClassificationModelDeploymentMetadata( + other.getImageClassificationModelDeploymentMetadata()); + break; + } + case MODELDEPLOYMENTMETADATA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -657,7 +781,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.DeployModelRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.DeployModelRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,12 +791,12 @@ public Builder mergeFrom( } return this; } + private int modelDeploymentMetadataCase_ = 0; private java.lang.Object modelDeploymentMetadata_; - public ModelDeploymentMetadataCase - getModelDeploymentMetadataCase() { - return ModelDeploymentMetadataCase.forNumber( - modelDeploymentMetadataCase_); + + public ModelDeploymentMetadataCase getModelDeploymentMetadataCase() { + return ModelDeploymentMetadataCase.forNumber(modelDeploymentMetadataCase_); } public Builder clearModelDeploymentMetadata() { @@ -681,15 +806,22 @@ public Builder clearModelDeploymentMetadata() { 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_; + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. */ @java.lang.Override @@ -697,35 +829,49 @@ 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * * @return The imageObjectDetectionModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata getImageObjectDetectionModelDeploymentMetadata() { + 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) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); } else { if (modelDeploymentMetadataCase_ == 2) { return imageObjectDetectionModelDeploymentMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ - public Builder setImageObjectDetectionModelDeploymentMetadata(com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata value) { + public Builder setImageObjectDetectionModelDeploymentMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata value) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -739,14 +885,19 @@ public Builder setImageObjectDetectionModelDeploymentMetadata(com.google.cloud.a return this; } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ public Builder setImageObjectDetectionModelDeploymentMetadata( - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder + builderForValue) { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { modelDeploymentMetadata_ = builderForValue.build(); onChanged(); @@ -757,18 +908,30 @@ public Builder setImageObjectDetectionModelDeploymentMetadata( return this; } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ - public Builder mergeImageObjectDetectionModelDeploymentMetadata(com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata value) { + 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(); + 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; } @@ -783,11 +946,15 @@ public Builder mergeImageObjectDetectionModelDeploymentMetadata(com.google.cloud return this; } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ public Builder clearImageObjectDetectionModelDeploymentMetadata() { if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { @@ -806,67 +973,102 @@ public Builder clearImageObjectDetectionModelDeploymentMetadata() { return this; } /** + * + * *
      * Model deployment metadata specific to Image Object Detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder getImageObjectDetectionModelDeploymentMetadataBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataOrBuilder getImageObjectDetectionModelDeploymentMetadataOrBuilder() { - if ((modelDeploymentMetadataCase_ == 2) && (imageObjectDetectionModelDeploymentMetadataBuilder_ != null)) { + 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) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.getDefaultInstance(); + 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; + * + * .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> + 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(); + 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_, + 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();; + onChanged(); + ; return imageObjectDetectionModelDeploymentMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder> imageClassificationModelDeploymentMetadataBuilder_; + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder> + imageClassificationModelDeploymentMetadataBuilder_; /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * * @return Whether the imageClassificationModelDeploymentMetadata field is set. */ @java.lang.Override @@ -874,35 +1076,49 @@ public boolean hasImageClassificationModelDeploymentMetadata() { return modelDeploymentMetadataCase_ == 4; } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * * @return The imageClassificationModelDeploymentMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getImageClassificationModelDeploymentMetadata() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + getImageClassificationModelDeploymentMetadata() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } else { if (modelDeploymentMetadataCase_ == 4) { return imageClassificationModelDeploymentMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ - public Builder setImageClassificationModelDeploymentMetadata(com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata value) { + public Builder setImageClassificationModelDeploymentMetadata( + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata value) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -916,14 +1132,19 @@ public Builder setImageClassificationModelDeploymentMetadata(com.google.cloud.au return this; } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ public Builder setImageClassificationModelDeploymentMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder + builderForValue) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { modelDeploymentMetadata_ = builderForValue.build(); onChanged(); @@ -934,18 +1155,29 @@ public Builder setImageClassificationModelDeploymentMetadata( return this; } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ - public Builder mergeImageClassificationModelDeploymentMetadata(com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata value) { + public Builder mergeImageClassificationModelDeploymentMetadata( + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata value) { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { - if (modelDeploymentMetadataCase_ == 4 && - modelDeploymentMetadata_ != com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance()) { - modelDeploymentMetadata_ = com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.newBuilder((com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_) - .mergeFrom(value).buildPartial(); + if (modelDeploymentMetadataCase_ == 4 + && modelDeploymentMetadata_ + != com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance()) { + modelDeploymentMetadata_ = + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelDeploymentMetadata_ = value; } @@ -960,11 +1192,15 @@ public Builder mergeImageClassificationModelDeploymentMetadata(com.google.cloud. return this; } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ public Builder clearImageClassificationModelDeploymentMetadata() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { @@ -983,73 +1219,104 @@ public Builder clearImageClassificationModelDeploymentMetadata() { return this; } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder getImageClassificationModelDeploymentMetadataBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder + getImageClassificationModelDeploymentMetadataBuilder() { return getImageClassificationModelDeploymentMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder getImageClassificationModelDeploymentMetadataOrBuilder() { - if ((modelDeploymentMetadataCase_ == 4) && (imageClassificationModelDeploymentMetadataBuilder_ != null)) { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder + getImageClassificationModelDeploymentMetadataOrBuilder() { + if ((modelDeploymentMetadataCase_ == 4) + && (imageClassificationModelDeploymentMetadataBuilder_ != null)) { return imageClassificationModelDeploymentMetadataBuilder_.getMessageOrBuilder(); } else { if (modelDeploymentMetadataCase_ == 4) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } } /** + * + * *
      * Model deployment metadata specific to Image Classification.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder> + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder> getImageClassificationModelDeploymentMetadataFieldBuilder() { if (imageClassificationModelDeploymentMetadataBuilder_ == null) { if (!(modelDeploymentMetadataCase_ == 4)) { - modelDeploymentMetadata_ = com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + modelDeploymentMetadata_ = + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } - imageClassificationModelDeploymentMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) modelDeploymentMetadata_, + imageClassificationModelDeploymentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1beta1 + .ImageClassificationModelDeploymentMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + modelDeploymentMetadata_, getParentForChildren(), isClean()); modelDeploymentMetadata_ = null; } modelDeploymentMetadataCase_ = 4; - onChanged();; + onChanged(); + ; return imageClassificationModelDeploymentMetadataBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the model to deploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1058,20 +1325,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model to deploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1079,61 +1349,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model to deploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to deploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to deploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1143,12 +1426,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DeployModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeployModelRequest) private static final com.google.cloud.automl.v1beta1.DeployModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DeployModelRequest(); } @@ -1157,16 +1440,16 @@ public static com.google.cloud.automl.v1beta1.DeployModelRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeployModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeployModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1181,6 +1464,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DeployModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java new file mode 100644 index 000000000..3394982ce --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface DeployModelRequestOrBuilder + extends + // @@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; + * + * + * @return Whether the imageObjectDetectionModelDeploymentMetadata field is set. + */ + boolean hasImageObjectDetectionModelDeploymentMetadata(); + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + * + * @return The imageObjectDetectionModelDeploymentMetadata. + */ + 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(); + + /** + * + * + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * + * @return Whether the imageClassificationModelDeploymentMetadata field is set. + */ + boolean hasImageClassificationModelDeploymentMetadata(); + /** + * + * + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + * + * @return The imageClassificationModelDeploymentMetadata. + */ + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + getImageClassificationModelDeploymentMetadata(); + /** + * + * + *
+   * Model deployment metadata specific to Image Classification.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; + * + */ + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder + getImageClassificationModelDeploymentMetadataOrBuilder(); + + /** + * + * + *
+   * Required. Resource name of the model to deploy.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the model to deploy.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + public com.google.cloud.automl.v1beta1.DeployModelRequest.ModelDeploymentMetadataCase + getModelDeploymentMetadataCase(); +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java new file mode 100644 index 000000000..eee627884 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java @@ -0,0 +1,169 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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_VideoObjectTrackingAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_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*goog" + + "le/cloud/automl/v1beta1/geometry.proto\032\036" + + "google/protobuf/duration.proto\032\034google/a" + + "pi/annotations.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\"\264\001\n\035VideoObjectTrackingAn" + + "notation\022\023\n\013instance_id\030\001 \001(\t\022.\n\013time_of" + + "fset\030\002 \001(\0132\031.google.protobuf.Duration\022?\n" + + "\014bounding_box\030\003 \001(\0132).google.cloud.autom" + + "l.v1beta1.BoundingPoly\022\r\n\005score\030\004 \001(\002\"\256\002" + + "\n\027BoundingBoxMetricsEntry\022\025\n\riou_thresho" + + "ld\030\001 \001(\002\022\036\n\026mean_average_precision\030\002 \001(\002" + + "\022o\n\032confidence_metrics_entries\030\003 \003(\0132K.g" + + "oogle.cloud.automl.v1beta1.BoundingBoxMe" + + "tricsEntry.ConfidenceMetricsEntry\032k\n\026Con" + + "fidenceMetricsEntry\022\034\n\024confidence_thresh" + + "old\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%ImageObjectDe" + + "tectionEvaluationMetrics\022$\n\034evaluated_bo" + + "unding_box_count\030\001 \001(\005\022Z\n\034bounding_box_m" + + "etrics_entries\030\002 \003(\01324.google.cloud.auto" + + "ml.v1beta1.BoundingBoxMetricsEntry\022+\n#bo" + + "unding_box_mean_average_precision\030\003 \001(\002\"" + + "\364\001\n$VideoObjectTrackingEvaluationMetrics" + + "\022\035\n\025evaluated_frame_count\030\001 \001(\005\022$\n\034evalu" + + "ated_bounding_box_count\030\002 \001(\005\022Z\n\034boundin" + + "g_box_metrics_entries\030\004 \003(\01324.google.clo" + + "ud.automl.v1beta1.BoundingBoxMetricsEntr" + + "y\022+\n#bounding_box_mean_average_precision" + + "\030\006 \001(\002B\245\001\n\037com.google.cloud.automl.v1bet" + + "a1P\001ZAgoogle.golang.org/genproto/googlea" + + "pis/cloud/automl/v1beta1;automl\312\002\033Google" + + "\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Cloud::A" + + "utoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.Geometry.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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_VideoObjectTrackingAnnotation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor, + new java.lang.String[] { + "InstanceId", "TimeOffset", "BoundingBox", "Score", + }); + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor = + getDescriptor().getMessageTypes().get(2); + 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(3); + 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", + }); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor, + new java.lang.String[] { + "EvaluatedFrameCount", + "EvaluatedBoundingBoxCount", + "BoundingBoxMetricsEntries", + "BoundingBoxMeanAveragePrecision", + }); + com.google.cloud.automl.v1beta1.Geometry.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java index c3cadd70f..2ea5fd4d2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use Document.newBuilder() to construct. private Document(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Document() { layout_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Document(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Document( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,73 +71,86 @@ private Document( 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(); + 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; } + case 18: + { + com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; + if (documentText_ != null) { + subBuilder = documentText_.toBuilder(); + } + documentText_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentText_); + documentText_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; - if (documentText_ != null) { - subBuilder = documentText_.toBuilder(); + break; } - documentText_ = input.readMessage(com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentText_); - documentText_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + layout_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + layout_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.Document.Layout.parser(), extensionRegistry)); + break; } + case 34: + { + com.google.cloud.automl.v1beta1.DocumentDimensions.Builder subBuilder = null; + if (documentDimensions_ != null) { + subBuilder = documentDimensions_.toBuilder(); + } + documentDimensions_ = + input.readMessage( + com.google.cloud.automl.v1beta1.DocumentDimensions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentDimensions_); + documentDimensions_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - layout_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - layout_.add( - input.readMessage(com.google.cloud.automl.v1beta1.Document.Layout.parser(), extensionRegistry)); - break; - } - case 34: { - com.google.cloud.automl.v1beta1.DocumentDimensions.Builder subBuilder = null; - if (documentDimensions_ != null) { - subBuilder = documentDimensions_.toBuilder(); + break; } - documentDimensions_ = input.readMessage(com.google.cloud.automl.v1beta1.DocumentDimensions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentDimensions_); - documentDimensions_ = subBuilder.buildPartial(); + case 40: + { + pageCount_ = input.readInt32(); + break; } - - break; - } - case 40: { - - pageCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { layout_ = java.util.Collections.unmodifiableList(layout_); @@ -129,44 +159,56 @@ private Document( 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.Document.class, + com.google.cloud.automl.v1beta1.Document.Builder.class); } - public interface LayoutOrBuilder extends + public interface LayoutOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Document.Layout) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; + * * @return Whether the textSegment field is set. */ boolean hasTextSegment(); /** + * + * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; + * * @return The textSegment. */ com.google.cloud.automl.v1beta1.TextSegment getTextSegment(); /** + * + * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -177,17 +219,22 @@ public interface LayoutOrBuilder extends
     com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuilder();
 
     /**
+     *
+     *
      * 
      * Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
      * from 1.
      * 
* * int32 page_number = 2; + * * @return The pageNumber. */ int getPageNumber(); /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -200,10 +247,13 @@ public interface LayoutOrBuilder extends
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -216,10 +266,13 @@ public interface LayoutOrBuilder extends
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; + * * @return The boundingPoly. */ com.google.cloud.automl.v1beta1.BoundingPoly getBoundingPoly(); /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -236,56 +289,66 @@ public interface LayoutOrBuilder extends
     com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
     /**
+     *
+     *
      * 
      * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
      * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * + * * @return The enum numeric value on the wire for textSegmentType. */ int getTextSegmentTypeValue(); /** + * + * *
      * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
      * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * + * * @return The textSegmentType. */ com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType getTextSegmentType(); } /** + * + * *
    * Describes the layout information of a [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the document.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.Document.Layout} */ - public static final class Layout extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Layout extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Document.Layout) LayoutOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Layout.newBuilder() to construct. private Layout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Layout() { textSegmentType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Layout(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Layout( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -304,85 +367,97 @@ private Layout( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1beta1.TextSegment.Builder subBuilder = null; - if (textSegment_ != null) { - subBuilder = textSegment_.toBuilder(); + case 10: + { + 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; } - textSegment_ = input.readMessage(com.google.cloud.automl.v1beta1.TextSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSegment_); - textSegment_ = subBuilder.buildPartial(); + case 16: + { + pageNumber_ = input.readInt32(); + break; } - - break; - } - case 16: { - - pageNumber_ = input.readInt32(); - break; - } - case 26: { - com.google.cloud.automl.v1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = input.readMessage(com.google.cloud.automl.v1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } + case 32: + { + int rawValue = input.readEnum(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - textSegmentType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + textSegmentType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_Layout_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Document_Layout_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_Layout_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Document_Layout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.Document.Layout.class, com.google.cloud.automl.v1beta1.Document.Layout.Builder.class); + com.google.cloud.automl.v1beta1.Document.Layout.class, + com.google.cloud.automl.v1beta1.Document.Layout.Builder.class); } /** + * + * *
      * The type of TextSegment in the context of the original document.
      * 
* * Protobuf enum {@code google.cloud.automl.v1beta1.Document.Layout.TextSegmentType} */ - public enum TextSegmentType - implements com.google.protobuf.ProtocolMessageEnum { + public enum TextSegmentType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Should not be used.
        * 
@@ -391,6 +466,8 @@ public enum TextSegmentType */ TEXT_SEGMENT_TYPE_UNSPECIFIED(0), /** + * + * *
        * The text segment is a token. e.g. word.
        * 
@@ -399,6 +476,8 @@ public enum TextSegmentType */ TOKEN(1), /** + * + * *
        * The text segment is a paragraph.
        * 
@@ -407,6 +486,8 @@ public enum TextSegmentType */ PARAGRAPH(2), /** + * + * *
        * The text segment is a form field.
        * 
@@ -415,6 +496,8 @@ public enum TextSegmentType */ FORM_FIELD(3), /** + * + * *
        * The text segment is the name part of a form field. It will be treated
        * as child of another FORM_FIELD TextSegment if its span is subspan of
@@ -425,6 +508,8 @@ public enum TextSegmentType
        */
       FORM_FIELD_NAME(4),
       /**
+       *
+       *
        * 
        * The text segment is the text content part of a form field. It will be
        * treated as child of another FORM_FIELD TextSegment if its span is
@@ -435,6 +520,8 @@ public enum TextSegmentType
        */
       FORM_FIELD_CONTENTS(5),
       /**
+       *
+       *
        * 
        * The text segment is a whole table, including headers, and all rows.
        * 
@@ -443,6 +530,8 @@ public enum TextSegmentType */ TABLE(6), /** + * + * *
        * The text segment is a table's headers. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -453,6 +542,8 @@ public enum TextSegmentType
        */
       TABLE_HEADER(7),
       /**
+       *
+       *
        * 
        * The text segment is a row in table. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -463,6 +554,8 @@ public enum TextSegmentType
        */
       TABLE_ROW(8),
       /**
+       *
+       *
        * 
        * The text segment is a cell in table. It will be treated as child of
        * another TABLE_ROW TextSegment if its span is subspan of another
@@ -476,6 +569,8 @@ public enum TextSegmentType
       ;
 
       /**
+       *
+       *
        * 
        * Should not be used.
        * 
@@ -484,6 +579,8 @@ public enum TextSegmentType */ public static final int TEXT_SEGMENT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The text segment is a token. e.g. word.
        * 
@@ -492,6 +589,8 @@ public enum TextSegmentType */ public static final int TOKEN_VALUE = 1; /** + * + * *
        * The text segment is a paragraph.
        * 
@@ -500,6 +599,8 @@ public enum TextSegmentType */ public static final int PARAGRAPH_VALUE = 2; /** + * + * *
        * The text segment is a form field.
        * 
@@ -508,6 +609,8 @@ public enum TextSegmentType */ public static final int FORM_FIELD_VALUE = 3; /** + * + * *
        * The text segment is the name part of a form field. It will be treated
        * as child of another FORM_FIELD TextSegment if its span is subspan of
@@ -518,6 +621,8 @@ public enum TextSegmentType
        */
       public static final int FORM_FIELD_NAME_VALUE = 4;
       /**
+       *
+       *
        * 
        * The text segment is the text content part of a form field. It will be
        * treated as child of another FORM_FIELD TextSegment if its span is
@@ -528,6 +633,8 @@ public enum TextSegmentType
        */
       public static final int FORM_FIELD_CONTENTS_VALUE = 5;
       /**
+       *
+       *
        * 
        * The text segment is a whole table, including headers, and all rows.
        * 
@@ -536,6 +643,8 @@ public enum TextSegmentType */ public static final int TABLE_VALUE = 6; /** + * + * *
        * The text segment is a table's headers. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -546,6 +655,8 @@ public enum TextSegmentType
        */
       public static final int TABLE_HEADER_VALUE = 7;
       /**
+       *
+       *
        * 
        * The text segment is a row in table. It will be treated as child of
        * another TABLE TextSegment if its span is subspan of another TextSegment
@@ -556,6 +667,8 @@ public enum TextSegmentType
        */
       public static final int TABLE_ROW_VALUE = 8;
       /**
+       *
+       *
        * 
        * The text segment is a cell in table. It will be treated as child of
        * another TABLE_ROW TextSegment if its span is subspan of another
@@ -566,7 +679,6 @@ public enum TextSegmentType
        */
       public static final int TABLE_CELL_VALUE = 9;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -591,17 +703,28 @@ public static TextSegmentType valueOf(int value) {
        */
       public static TextSegmentType forNumber(int value) {
         switch (value) {
-          case 0: return TEXT_SEGMENT_TYPE_UNSPECIFIED;
-          case 1: return TOKEN;
-          case 2: return PARAGRAPH;
-          case 3: return FORM_FIELD;
-          case 4: return FORM_FIELD_NAME;
-          case 5: return FORM_FIELD_CONTENTS;
-          case 6: return TABLE;
-          case 7: return TABLE_HEADER;
-          case 8: return TABLE_ROW;
-          case 9: return TABLE_CELL;
-          default: return null;
+          case 0:
+            return TEXT_SEGMENT_TYPE_UNSPECIFIED;
+          case 1:
+            return TOKEN;
+          case 2:
+            return PARAGRAPH;
+          case 3:
+            return FORM_FIELD;
+          case 4:
+            return FORM_FIELD_NAME;
+          case 5:
+            return FORM_FIELD_CONTENTS;
+          case 6:
+            return TABLE;
+          case 7:
+            return TABLE_HEADER;
+          case 8:
+            return TABLE_ROW;
+          case 9:
+            return TABLE_CELL;
+          default:
+            return null;
         }
       }
 
@@ -609,29 +732,31 @@ public static TextSegmentType forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          TextSegmentType> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public TextSegmentType findValueByNumber(int number) {
-                return TextSegmentType.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap
+          internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public TextSegmentType findValueByNumber(int number) {
+                  return TextSegmentType.forNumber(number);
+                }
+              };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      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.Document.Layout.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.automl.v1beta1.Document.Layout.getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final TextSegmentType[] VALUES = values();
@@ -639,8 +764,7 @@ public TextSegmentType findValueByNumber(int number) {
       public static TextSegmentType valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -660,12 +784,15 @@ private TextSegmentType(int value) {
     public static final int TEXT_SEGMENT_FIELD_NUMBER = 1;
     private com.google.cloud.automl.v1beta1.TextSegment textSegment_;
     /**
+     *
+     *
      * 
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; + * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -673,19 +800,26 @@ public boolean hasTextSegment() { return textSegment_ != null; } /** + * + * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; + * * @return The textSegment. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() { - return textSegment_ == null ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() : textSegment_; + return textSegment_ == null + ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() + : textSegment_; } /** + * + * *
      * Text Segment that represents a segment in
      * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -701,12 +835,15 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
     public static final int PAGE_NUMBER_FIELD_NUMBER = 2;
     private int pageNumber_;
     /**
+     *
+     *
      * 
      * Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
      * from 1.
      * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -717,6 +854,8 @@ public int getPageNumber() { public static final int BOUNDING_POLY_FIELD_NUMBER = 3; private com.google.cloud.automl.v1beta1.BoundingPoly boundingPoly_; /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -729,6 +868,7 @@ public int getPageNumber() {
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -736,6 +876,8 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -748,13 +890,18 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
      * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
      * Contains exactly 4
@@ -776,31 +923,45 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBu
     public static final int TEXT_SEGMENT_TYPE_FIELD_NUMBER = 4;
     private int textSegmentType_;
     /**
+     *
+     *
      * 
      * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
      * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * + * * @return The enum numeric value on the wire for textSegmentType. */ - @java.lang.Override public int getTextSegmentTypeValue() { + @java.lang.Override + public int getTextSegmentTypeValue() { return textSegmentType_; } /** + * + * *
      * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
      * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * + * * @return The textSegmentType. */ - @java.lang.Override public com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType getTextSegmentType() { + @java.lang.Override + public com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType getTextSegmentType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType result = com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); - return result == null ? com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType result = + com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); + return result == null + ? com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -812,8 +973,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (textSegment_ != null) { output.writeMessage(1, getTextSegment()); } @@ -823,7 +983,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (boundingPoly_ != null) { output.writeMessage(3, getBoundingPoly()); } - if (textSegmentType_ != com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.TEXT_SEGMENT_TYPE_UNSPECIFIED.getNumber()) { + if (textSegmentType_ + != com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType + .TEXT_SEGMENT_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, textSegmentType_); } unknownFields.writeTo(output); @@ -836,20 +999,19 @@ public int getSerializedSize() { size = 0; if (textSegment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTextSegment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTextSegment()); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoundingPoly()); } - if (textSegmentType_ != com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.TEXT_SEGMENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, textSegmentType_); + if (textSegmentType_ + != com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType + .TEXT_SEGMENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, textSegmentType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -859,24 +1021,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.Document.Layout)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.Document.Layout other = (com.google.cloud.automl.v1beta1.Document.Layout) obj; + com.google.cloud.automl.v1beta1.Document.Layout other = + (com.google.cloud.automl.v1beta1.Document.Layout) obj; if (hasTextSegment() != other.hasTextSegment()) return false; if (hasTextSegment()) { - if (!getTextSegment() - .equals(other.getTextSegment())) return false; + if (!getTextSegment().equals(other.getTextSegment())) return false; } - if (getPageNumber() - != other.getPageNumber()) return false; + if (getPageNumber() != other.getPageNumber()) return false; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (textSegmentType_ != other.textSegmentType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -908,87 +1068,93 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.Document.Layout parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Document.Layout parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Layout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Document.Layout 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.Layout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Document.Layout parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Layout 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.Layout 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.Layout parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.Document.Layout 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.Layout 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.Layout parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.Document.Layout parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + 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.Layout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.Document.Layout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -998,27 +1164,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes the layout information of a [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the document.
      * 
* * Protobuf type {@code google.cloud.automl.v1beta1.Document.Layout} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Document.Layout) com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Document_Layout_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_Layout_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Document_Layout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.Document.Layout.class, com.google.cloud.automl.v1beta1.Document.Layout.Builder.class); + com.google.cloud.automl.v1beta1.Document.Layout.class, + com.google.cloud.automl.v1beta1.Document.Layout.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.Document.Layout.newBuilder() @@ -1026,16 +1197,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1059,9 +1229,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Document_Layout_descriptor; } @java.lang.Override @@ -1080,7 +1250,8 @@ public com.google.cloud.automl.v1beta1.Document.Layout build() { @java.lang.Override public com.google.cloud.automl.v1beta1.Document.Layout buildPartial() { - com.google.cloud.automl.v1beta1.Document.Layout result = new com.google.cloud.automl.v1beta1.Document.Layout(this); + com.google.cloud.automl.v1beta1.Document.Layout result = + new com.google.cloud.automl.v1beta1.Document.Layout(this); if (textSegmentBuilder_ == null) { result.textSegment_ = textSegment_; } else { @@ -1101,38 +1272,41 @@ public com.google.cloud.automl.v1beta1.Document.Layout buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.Layout) { - return mergeFrom((com.google.cloud.automl.v1beta1.Document.Layout)other); + return mergeFrom((com.google.cloud.automl.v1beta1.Document.Layout) other); } else { super.mergeFrom(other); return this; @@ -1140,7 +1314,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.Document.Layout other) { - if (other == com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance()) + return this; if (other.hasTextSegment()) { mergeTextSegment(other.getTextSegment()); } @@ -1172,7 +1347,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.Document.Layout) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.Document.Layout) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1184,36 +1360,49 @@ public Builder mergeFrom( 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_; + com.google.cloud.automl.v1beta1.TextSegment, + com.google.cloud.automl.v1beta1.TextSegment.Builder, + com.google.cloud.automl.v1beta1.TextSegmentOrBuilder> + textSegmentBuilder_; /** + * + * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
        * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; + * * @return Whether the textSegment field is set. */ public boolean hasTextSegment() { return textSegmentBuilder_ != null || textSegment_ != null; } /** + * + * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
        * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 1; + * * @return The textSegment. */ public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() { if (textSegmentBuilder_ == null) { - return textSegment_ == null ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() : textSegment_; + return textSegment_ == null + ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() + : textSegment_; } else { return textSegmentBuilder_.getMessage(); } } /** + * + * *
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1235,6 +1424,8 @@ public Builder setTextSegment(com.google.cloud.automl.v1beta1.TextSegment value)
         return this;
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1254,6 +1445,8 @@ public Builder setTextSegment(
         return this;
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1265,7 +1458,9 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1beta1.TextSegment valu
         if (textSegmentBuilder_ == null) {
           if (textSegment_ != null) {
             textSegment_ =
-              com.google.cloud.automl.v1beta1.TextSegment.newBuilder(textSegment_).mergeFrom(value).buildPartial();
+                com.google.cloud.automl.v1beta1.TextSegment.newBuilder(textSegment_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             textSegment_ = value;
           }
@@ -1277,6 +1472,8 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1beta1.TextSegment valu
         return this;
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1296,6 +1493,8 @@ public Builder clearTextSegment() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1304,11 +1503,13 @@ public Builder clearTextSegment() {
        * .google.cloud.automl.v1beta1.TextSegment text_segment = 1;
        */
       public com.google.cloud.automl.v1beta1.TextSegment.Builder getTextSegmentBuilder() {
-        
+
         onChanged();
         return getTextSegmentFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1320,11 +1521,14 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
         if (textSegmentBuilder_ != null) {
           return textSegmentBuilder_.getMessageOrBuilder();
         } else {
-          return textSegment_ == null ?
-              com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() : textSegment_;
+          return textSegment_ == null
+              ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance()
+              : textSegment_;
         }
       }
       /**
+       *
+       *
        * 
        * Text Segment that represents a segment in
        * [document_text][google.cloud.automl.v1beta1.Document.document_text].
@@ -1333,27 +1537,33 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
        * .google.cloud.automl.v1beta1.TextSegment text_segment = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.automl.v1beta1.TextSegment, com.google.cloud.automl.v1beta1.TextSegment.Builder, com.google.cloud.automl.v1beta1.TextSegmentOrBuilder> 
+              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());
+          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_;
       }
 
-      private int pageNumber_ ;
+      private int pageNumber_;
       /**
+       *
+       *
        * 
        * Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -1361,32 +1571,38 @@ public int getPageNumber() { return pageNumber_; } /** + * + * *
        * Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; + * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** + * + * *
        * Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
        * from 1.
        * 
* * int32 page_number = 2; + * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; @@ -1394,8 +1610,13 @@ public Builder clearPageNumber() { private com.google.cloud.automl.v1beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.BoundingPoly, com.google.cloud.automl.v1beta1.BoundingPoly.Builder, com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.automl.v1beta1.BoundingPoly, + com.google.cloud.automl.v1beta1.BoundingPoly.Builder, + com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1408,12 +1629,15 @@ public Builder clearPageNumber() {
        * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1426,16 +1650,21 @@ public boolean hasBoundingPoly() {
        * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; + * * @return The boundingPoly. */ public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1463,6 +1692,8 @@ public Builder setBoundingPoly(com.google.cloud.automl.v1beta1.BoundingPoly valu
         return this;
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1488,6 +1719,8 @@ public Builder setBoundingPoly(
         return this;
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1505,7 +1738,9 @@ public Builder mergeBoundingPoly(com.google.cloud.automl.v1beta1.BoundingPoly va
         if (boundingPolyBuilder_ == null) {
           if (boundingPoly_ != null) {
             boundingPoly_ =
-              com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+                com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingPoly_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             boundingPoly_ = value;
           }
@@ -1517,6 +1752,8 @@ public Builder mergeBoundingPoly(com.google.cloud.automl.v1beta1.BoundingPoly va
         return this;
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1542,6 +1779,8 @@ public Builder clearBoundingPoly() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1556,11 +1795,13 @@ public Builder clearBoundingPoly() {
        * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3;
        */
       public com.google.cloud.automl.v1beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-        
+
         onChanged();
         return getBoundingPolyFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1578,11 +1819,14 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBu
         if (boundingPolyBuilder_ != null) {
           return boundingPolyBuilder_.getMessageOrBuilder();
         } else {
-          return boundingPoly_ == null ?
-              com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+          return boundingPoly_ == null
+              ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance()
+              : boundingPoly_;
         }
       }
       /**
+       *
+       *
        * 
        * The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
        * Contains exactly 4
@@ -1597,14 +1841,17 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBu
        * .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.automl.v1beta1.BoundingPoly, com.google.cloud.automl.v1beta1.BoundingPoly.Builder, com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder> 
+              com.google.cloud.automl.v1beta1.BoundingPoly,
+              com.google.cloud.automl.v1beta1.BoundingPoly.Builder,
+              com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder>
           getBoundingPolyFieldBuilder() {
         if (boundingPolyBuilder_ == null) {
-          boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.automl.v1beta1.BoundingPoly, com.google.cloud.automl.v1beta1.BoundingPoly.Builder, com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder>(
-                  getBoundingPoly(),
-                  getParentForChildren(),
-                  isClean());
+          boundingPolyBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.automl.v1beta1.BoundingPoly,
+                  com.google.cloud.automl.v1beta1.BoundingPoly.Builder,
+                  com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder>(
+                  getBoundingPoly(), getParentForChildren(), isClean());
           boundingPoly_ = null;
         }
         return boundingPolyBuilder_;
@@ -1612,77 +1859,104 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBu
 
       private int textSegmentType_ = 0;
       /**
+       *
+       *
        * 
        * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
        * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * + * * @return The enum numeric value on the wire for textSegmentType. */ - @java.lang.Override public int getTextSegmentTypeValue() { + @java.lang.Override + public int getTextSegmentTypeValue() { return textSegmentType_; } /** + * + * *
        * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
        * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * + * * @param value The enum numeric value on the wire for textSegmentType to set. * @return This builder for chaining. */ public Builder setTextSegmentTypeValue(int value) { - + textSegmentType_ = value; onChanged(); return this; } /** + * + * *
        * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
        * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * + * * @return The textSegmentType. */ @java.lang.Override public com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType getTextSegmentType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType result = com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.valueOf(textSegmentType_); - return result == null ? com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType result = + com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.valueOf( + textSegmentType_); + return result == null + ? com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType.UNRECOGNIZED + : result; } /** + * + * *
        * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
        * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * + * * @param value The textSegmentType to set. * @return This builder for chaining. */ - public Builder setTextSegmentType(com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType value) { + public Builder setTextSegmentType( + com.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType value) { if (value == null) { throw new NullPointerException(); } - + textSegmentType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
        * 
* - * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * + * * @return This builder for chaining. */ public Builder clearTextSegmentType() { - + textSegmentType_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1695,12 +1969,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Document.Layout) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Document.Layout) private static final com.google.cloud.automl.v1beta1.Document.Layout DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Document.Layout(); } @@ -1709,16 +1983,16 @@ public static com.google.cloud.automl.v1beta1.Document.Layout getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Layout parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Layout(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Layout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Layout(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1733,17 +2007,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Document.Layout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } 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; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1751,18 +2027,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DocumentInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * An input config specifying the content of the document.
    * 
@@ -1777,11 +2060,14 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConf public static final int DOCUMENT_TEXT_FIELD_NUMBER = 2; private com.google.cloud.automl.v1beta1.TextSnippet documentText_; /** + * + * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; + * * @return Whether the documentText field is set. */ @java.lang.Override @@ -1789,18 +2075,25 @@ public boolean hasDocumentText() { return documentText_ != null; } /** + * + * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; + * * @return The documentText. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet getDocumentText() { - return documentText_ == null ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : documentText_; + return documentText_ == null + ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() + : documentText_; } /** + * + * *
    * The plain text version of this document.
    * 
@@ -1815,6 +2108,8 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getDocumentTextOrBui public static final int LAYOUT_FIELD_NUMBER = 3; private java.util.List layout_; /** + * + * *
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -1827,6 +2122,8 @@ public java.util.List getLayout
     return layout_;
   }
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -1835,11 +2132,13 @@ public java.util.List getLayout
    * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLayoutOrBuilderList() {
     return layout_;
   }
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -1852,6 +2151,8 @@ public int getLayoutCount() {
     return layout_.size();
   }
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -1864,6 +2165,8 @@ public com.google.cloud.automl.v1beta1.Document.Layout getLayout(int index) {
     return layout_.get(index);
   }
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -1872,19 +2175,21 @@ public com.google.cloud.automl.v1beta1.Document.Layout getLayout(int index) {
    * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(
-      int index) {
+  public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(int index) {
     return layout_.get(index);
   }
 
   public static final int DOCUMENT_DIMENSIONS_FIELD_NUMBER = 4;
   private com.google.cloud.automl.v1beta1.DocumentDimensions documentDimensions_;
   /**
+   *
+   *
    * 
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; + * * @return Whether the documentDimensions field is set. */ @java.lang.Override @@ -1892,18 +2197,25 @@ public boolean hasDocumentDimensions() { return documentDimensions_ != null; } /** + * + * *
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; + * * @return The documentDimensions. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DocumentDimensions getDocumentDimensions() { - return documentDimensions_ == null ? com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() : documentDimensions_; + return documentDimensions_ == null + ? com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() + : documentDimensions_; } /** + * + * *
    * The dimensions of the page in the document.
    * 
@@ -1911,18 +2223,22 @@ public com.google.cloud.automl.v1beta1.DocumentDimensions getDocumentDimensions( * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder() { + public com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder + getDocumentDimensionsOrBuilder() { return getDocumentDimensions(); } public static final int PAGE_COUNT_FIELD_NUMBER = 5; private int pageCount_; /** + * + * *
    * Number of pages in the document.
    * 
* * int32 page_count = 5; + * * @return The pageCount. */ @java.lang.Override @@ -1931,6 +2247,7 @@ public int getPageCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1942,8 +2259,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -1969,24 +2285,19 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } if (documentText_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDocumentText()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentText()); } for (int i = 0; i < layout_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, layout_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, layout_.get(i)); } if (documentDimensions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDocumentDimensions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentDimensions()); } if (pageCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, pageCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1996,7 +2307,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.Document)) { return super.equals(obj); @@ -2005,23 +2316,18 @@ public boolean equals(final java.lang.Object obj) { if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (hasDocumentText() != other.hasDocumentText()) return false; if (hasDocumentText()) { - if (!getDocumentText() - .equals(other.getDocumentText())) return false; + if (!getDocumentText().equals(other.getDocumentText())) return false; } - if (!getLayoutList() - .equals(other.getLayoutList())) return false; + if (!getLayoutList().equals(other.getLayoutList())) return false; if (hasDocumentDimensions() != other.hasDocumentDimensions()) return false; if (hasDocumentDimensions()) { - if (!getDocumentDimensions() - .equals(other.getDocumentDimensions())) return false; + if (!getDocumentDimensions().equals(other.getDocumentDimensions())) return false; } - if (getPageCount() - != other.getPageCount()) return false; + if (getPageCount() != other.getPageCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2056,118 +2362,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.Document parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.Document.class, + com.google.cloud.automl.v1beta1.Document.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.Document.newBuilder() @@ -2175,17 +2490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLayoutFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2219,9 +2534,9 @@ public Builder clear() { } @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; + 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 @@ -2240,7 +2555,8 @@ public com.google.cloud.automl.v1beta1.Document build() { @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); + com.google.cloud.automl.v1beta1.Document result = + new com.google.cloud.automl.v1beta1.Document(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -2275,38 +2591,39 @@ public com.google.cloud.automl.v1beta1.Document buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.Document) other); } else { super.mergeFrom(other); return this; @@ -2339,9 +2656,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Document other) { layoutBuilder_ = null; layout_ = other.layout_; bitField0_ = (bitField0_ & ~0x00000001); - layoutBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLayoutFieldBuilder() : null; + layoutBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLayoutFieldBuilder() + : null; } else { layoutBuilder_.addAllMessages(other.layout_); } @@ -2381,38 +2699,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; 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_; + 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; + * * @return Whether the inputConfig field is set. */ 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; + * * @return The inputConfig. */ public com.google.cloud.automl.v1beta1.DocumentInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2433,6 +2765,8 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.DocumentInputConfi return this; } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2451,6 +2785,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2461,7 +2797,9 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.DocumentInputCon if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.automl.v1beta1.DocumentInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1beta1.DocumentInputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -2473,6 +2811,8 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.DocumentInputCon return this; } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2491,6 +2831,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2498,11 +2840,13 @@ public Builder clearInputConfig() { * .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.
      * 
@@ -2513,11 +2857,14 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConf if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * An input config specifying the content of the document.
      * 
@@ -2525,14 +2872,17 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConf * .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> + 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()); + 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_; @@ -2540,34 +2890,47 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConf private com.google.cloud.automl.v1beta1.TextSnippet documentText_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> documentTextBuilder_; + com.google.cloud.automl.v1beta1.TextSnippet, + com.google.cloud.automl.v1beta1.TextSnippet.Builder, + com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> + documentTextBuilder_; /** + * + * *
      * The plain text version of this document.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; + * * @return Whether the documentText field is set. */ public boolean hasDocumentText() { return documentTextBuilder_ != null || documentText_ != null; } /** + * + * *
      * The plain text version of this document.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; + * * @return The documentText. */ public com.google.cloud.automl.v1beta1.TextSnippet getDocumentText() { if (documentTextBuilder_ == null) { - return documentText_ == null ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : documentText_; + return documentText_ == null + ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() + : documentText_; } else { return documentTextBuilder_.getMessage(); } } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2588,6 +2951,8 @@ public Builder setDocumentText(com.google.cloud.automl.v1beta1.TextSnippet value return this; } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2606,6 +2971,8 @@ public Builder setDocumentText( return this; } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2616,7 +2983,9 @@ public Builder mergeDocumentText(com.google.cloud.automl.v1beta1.TextSnippet val if (documentTextBuilder_ == null) { if (documentText_ != null) { documentText_ = - com.google.cloud.automl.v1beta1.TextSnippet.newBuilder(documentText_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1beta1.TextSnippet.newBuilder(documentText_) + .mergeFrom(value) + .buildPartial(); } else { documentText_ = value; } @@ -2628,6 +2997,8 @@ public Builder mergeDocumentText(com.google.cloud.automl.v1beta1.TextSnippet val return this; } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2646,6 +3017,8 @@ public Builder clearDocumentText() { return this; } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2653,11 +3026,13 @@ public Builder clearDocumentText() { * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; */ public com.google.cloud.automl.v1beta1.TextSnippet.Builder getDocumentTextBuilder() { - + onChanged(); return getDocumentTextFieldBuilder().getBuilder(); } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2668,11 +3043,14 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getDocumentTextOrBui if (documentTextBuilder_ != null) { return documentTextBuilder_.getMessageOrBuilder(); } else { - return documentText_ == null ? - com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : documentText_; + return documentText_ == null + ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() + : documentText_; } } /** + * + * *
      * The plain text version of this document.
      * 
@@ -2680,32 +3058,41 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getDocumentTextOrBui * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> + com.google.cloud.automl.v1beta1.TextSnippet, + com.google.cloud.automl.v1beta1.TextSnippet.Builder, + com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> getDocumentTextFieldBuilder() { if (documentTextBuilder_ == null) { - documentTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( - getDocumentText(), - getParentForChildren(), - isClean()); + documentTextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSnippet, + com.google.cloud.automl.v1beta1.TextSnippet.Builder, + com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( + getDocumentText(), getParentForChildren(), isClean()); documentText_ = null; } return documentTextBuilder_; } private java.util.List layout_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLayoutIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { layout_ = new java.util.ArrayList(layout_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Document.Layout, com.google.cloud.automl.v1beta1.Document.Layout.Builder, com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder> layoutBuilder_; + com.google.cloud.automl.v1beta1.Document.Layout, + com.google.cloud.automl.v1beta1.Document.Layout.Builder, + com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder> + layoutBuilder_; /** + * + * *
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2721,6 +3108,8 @@ public java.util.List getLayout
       }
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2736,6 +3125,8 @@ public int getLayoutCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2751,6 +3142,8 @@ public com.google.cloud.automl.v1beta1.Document.Layout getLayout(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2758,8 +3151,7 @@ public com.google.cloud.automl.v1beta1.Document.Layout getLayout(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public Builder setLayout(
-        int index, com.google.cloud.automl.v1beta1.Document.Layout value) {
+    public Builder setLayout(int index, com.google.cloud.automl.v1beta1.Document.Layout value) {
       if (layoutBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2773,6 +3165,8 @@ public Builder setLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2792,6 +3186,8 @@ public Builder setLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2813,6 +3209,8 @@ public Builder addLayout(com.google.cloud.automl.v1beta1.Document.Layout value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2820,8 +3218,7 @@ public Builder addLayout(com.google.cloud.automl.v1beta1.Document.Layout value)
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public Builder addLayout(
-        int index, com.google.cloud.automl.v1beta1.Document.Layout value) {
+    public Builder addLayout(int index, com.google.cloud.automl.v1beta1.Document.Layout value) {
       if (layoutBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2835,6 +3232,8 @@ public Builder addLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2854,6 +3253,8 @@ public Builder addLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2873,6 +3274,8 @@ public Builder addLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2884,8 +3287,7 @@ public Builder addAllLayout(
         java.lang.Iterable values) {
       if (layoutBuilder_ == null) {
         ensureLayoutIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, layout_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, layout_);
         onChanged();
       } else {
         layoutBuilder_.addAllMessages(values);
@@ -2893,6 +3295,8 @@ public Builder addAllLayout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2911,6 +3315,8 @@ public Builder clearLayout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2929,6 +3335,8 @@ public Builder removeLayout(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2936,11 +3344,12 @@ public Builder removeLayout(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1beta1.Document.Layout.Builder getLayoutBuilder(
-        int index) {
+    public com.google.cloud.automl.v1beta1.Document.Layout.Builder getLayoutBuilder(int index) {
       return getLayoutFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2948,14 +3357,16 @@ public com.google.cloud.automl.v1beta1.Document.Layout.Builder getLayoutBuilder(
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(
-        int index) {
+    public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(int index) {
       if (layoutBuilder_ == null) {
-        return layout_.get(index);  } else {
+        return layout_.get(index);
+      } else {
         return layoutBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2963,8 +3374,8 @@ public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuild
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public java.util.List 
-         getLayoutOrBuilderList() {
+    public java.util.List
+        getLayoutOrBuilderList() {
       if (layoutBuilder_ != null) {
         return layoutBuilder_.getMessageOrBuilderList();
       } else {
@@ -2972,6 +3383,8 @@ public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2980,10 +3393,12 @@ public com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuild
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
     public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder() {
-      return getLayoutFieldBuilder().addBuilder(
-          com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance());
+      return getLayoutFieldBuilder()
+          .addBuilder(com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -2991,12 +3406,13 @@ public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder(
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder(
-        int index) {
-      return getLayoutFieldBuilder().addBuilder(
-          index, com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance());
+    public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder(int index) {
+      return getLayoutFieldBuilder()
+          .addBuilder(index, com.google.cloud.automl.v1beta1.Document.Layout.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Describes the layout of the document.
      * Sorted by [page_number][].
@@ -3004,20 +3420,23 @@ public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder(
      *
      * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
      */
-    public java.util.List 
-         getLayoutBuilderList() {
+    public java.util.List
+        getLayoutBuilderList() {
       return getLayoutFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.automl.v1beta1.Document.Layout, com.google.cloud.automl.v1beta1.Document.Layout.Builder, com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder> 
+            com.google.cloud.automl.v1beta1.Document.Layout,
+            com.google.cloud.automl.v1beta1.Document.Layout.Builder,
+            com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder>
         getLayoutFieldBuilder() {
       if (layoutBuilder_ == null) {
-        layoutBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.automl.v1beta1.Document.Layout, com.google.cloud.automl.v1beta1.Document.Layout.Builder, com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder>(
-                layout_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        layoutBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.automl.v1beta1.Document.Layout,
+                com.google.cloud.automl.v1beta1.Document.Layout.Builder,
+                com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder>(
+                layout_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         layout_ = null;
       }
       return layoutBuilder_;
@@ -3025,34 +3444,47 @@ public com.google.cloud.automl.v1beta1.Document.Layout.Builder addLayoutBuilder(
 
     private com.google.cloud.automl.v1beta1.DocumentDimensions documentDimensions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1beta1.DocumentDimensions, com.google.cloud.automl.v1beta1.DocumentDimensions.Builder, com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder> documentDimensionsBuilder_;
+            com.google.cloud.automl.v1beta1.DocumentDimensions,
+            com.google.cloud.automl.v1beta1.DocumentDimensions.Builder,
+            com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder>
+        documentDimensionsBuilder_;
     /**
+     *
+     *
      * 
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; + * * @return Whether the documentDimensions field is set. */ public boolean hasDocumentDimensions() { return documentDimensionsBuilder_ != null || documentDimensions_ != null; } /** + * + * *
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; + * * @return The documentDimensions. */ public com.google.cloud.automl.v1beta1.DocumentDimensions getDocumentDimensions() { if (documentDimensionsBuilder_ == null) { - return documentDimensions_ == null ? com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() : documentDimensions_; + return documentDimensions_ == null + ? com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() + : documentDimensions_; } else { return documentDimensionsBuilder_.getMessage(); } } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3073,6 +3505,8 @@ public Builder setDocumentDimensions(com.google.cloud.automl.v1beta1.DocumentDim return this; } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3091,17 +3525,22 @@ public Builder setDocumentDimensions( return this; } /** + * + * *
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; */ - public Builder mergeDocumentDimensions(com.google.cloud.automl.v1beta1.DocumentDimensions value) { + public Builder mergeDocumentDimensions( + com.google.cloud.automl.v1beta1.DocumentDimensions value) { if (documentDimensionsBuilder_ == null) { if (documentDimensions_ != null) { documentDimensions_ = - com.google.cloud.automl.v1beta1.DocumentDimensions.newBuilder(documentDimensions_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1beta1.DocumentDimensions.newBuilder(documentDimensions_) + .mergeFrom(value) + .buildPartial(); } else { documentDimensions_ = value; } @@ -3113,6 +3552,8 @@ public Builder mergeDocumentDimensions(com.google.cloud.automl.v1beta1.DocumentD return this; } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3131,33 +3572,42 @@ public Builder clearDocumentDimensions() { return this; } /** + * + * *
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; */ - public com.google.cloud.automl.v1beta1.DocumentDimensions.Builder getDocumentDimensionsBuilder() { - + public com.google.cloud.automl.v1beta1.DocumentDimensions.Builder + getDocumentDimensionsBuilder() { + onChanged(); return getDocumentDimensionsFieldBuilder().getBuilder(); } /** + * + * *
      * The dimensions of the page in the document.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; */ - public com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder() { + public com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder + getDocumentDimensionsOrBuilder() { if (documentDimensionsBuilder_ != null) { return documentDimensionsBuilder_.getMessageOrBuilder(); } else { - return documentDimensions_ == null ? - com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() : documentDimensions_; + return documentDimensions_ == null + ? com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance() + : documentDimensions_; } } /** + * + * *
      * The dimensions of the page in the document.
      * 
@@ -3165,26 +3615,32 @@ public com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder getDocumentDi * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.DocumentDimensions, com.google.cloud.automl.v1beta1.DocumentDimensions.Builder, com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder> + com.google.cloud.automl.v1beta1.DocumentDimensions, + com.google.cloud.automl.v1beta1.DocumentDimensions.Builder, + com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder> getDocumentDimensionsFieldBuilder() { if (documentDimensionsBuilder_ == null) { - documentDimensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.DocumentDimensions, com.google.cloud.automl.v1beta1.DocumentDimensions.Builder, com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder>( - getDocumentDimensions(), - getParentForChildren(), - isClean()); + documentDimensionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DocumentDimensions, + com.google.cloud.automl.v1beta1.DocumentDimensions.Builder, + com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder>( + getDocumentDimensions(), getParentForChildren(), isClean()); documentDimensions_ = null; } return documentDimensionsBuilder_; } - private int pageCount_ ; + private int pageCount_; /** + * + * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; + * * @return The pageCount. */ @java.lang.Override @@ -3192,37 +3648,43 @@ public int getPageCount() { return pageCount_; } /** + * + * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; + * * @param value The pageCount to set. * @return This builder for chaining. */ public Builder setPageCount(int value) { - + pageCount_ = value; onChanged(); return this; } /** + * + * *
      * Number of pages in the document.
      * 
* * int32 page_count = 5; + * * @return This builder for chaining. */ public Builder clearPageCount() { - + pageCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3232,12 +3694,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -3246,16 +3708,16 @@ 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); - } - }; + 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; @@ -3270,6 +3732,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Document getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java index 491d631f5..b29cde6af 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensions.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/data_items.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Message that describes dimension of a document.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DocumentDimensions} */ -public final class DocumentDimensions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentDimensions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DocumentDimensions) DocumentDimensionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentDimensions.newBuilder() to construct. private DocumentDimensions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentDimensions() { unit_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentDimensions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentDimensions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,64 +70,70 @@ private DocumentDimensions( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - unit_ = rawValue; - break; - } - case 21: { + case 8: + { + int rawValue = input.readEnum(); - width_ = input.readFloat(); - break; - } - case 29: { - - height_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + unit_ = rawValue; + break; + } + case 21: + { + width_ = input.readFloat(); + break; + } + case 29: + { + height_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_DocumentDimensions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DocumentDimensions.class, com.google.cloud.automl.v1beta1.DocumentDimensions.Builder.class); + com.google.cloud.automl.v1beta1.DocumentDimensions.class, + com.google.cloud.automl.v1beta1.DocumentDimensions.Builder.class); } /** + * + * *
    * Unit of the document dimension.
    * 
* * Protobuf enum {@code google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit} */ - public enum DocumentDimensionUnit - implements com.google.protobuf.ProtocolMessageEnum { + public enum DocumentDimensionUnit implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Should not be used.
      * 
@@ -119,6 +142,8 @@ public enum DocumentDimensionUnit */ DOCUMENT_DIMENSION_UNIT_UNSPECIFIED(0), /** + * + * *
      * Document dimension is measured in inches.
      * 
@@ -127,6 +152,8 @@ public enum DocumentDimensionUnit */ INCH(1), /** + * + * *
      * Document dimension is measured in centimeters.
      * 
@@ -135,6 +162,8 @@ public enum DocumentDimensionUnit */ CENTIMETER(2), /** + * + * *
      * Document dimension is measured in points. 72 points = 1 inch.
      * 
@@ -146,6 +175,8 @@ public enum DocumentDimensionUnit ; /** + * + * *
      * Should not be used.
      * 
@@ -154,6 +185,8 @@ public enum DocumentDimensionUnit */ public static final int DOCUMENT_DIMENSION_UNIT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Document dimension is measured in inches.
      * 
@@ -162,6 +195,8 @@ public enum DocumentDimensionUnit */ public static final int INCH_VALUE = 1; /** + * + * *
      * Document dimension is measured in centimeters.
      * 
@@ -170,6 +205,8 @@ public enum DocumentDimensionUnit */ public static final int CENTIMETER_VALUE = 2; /** + * + * *
      * Document dimension is measured in points. 72 points = 1 inch.
      * 
@@ -178,7 +215,6 @@ public enum DocumentDimensionUnit */ public static final int POINT_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -203,11 +239,16 @@ public static DocumentDimensionUnit valueOf(int value) { */ public static DocumentDimensionUnit forNumber(int value) { switch (value) { - case 0: return DOCUMENT_DIMENSION_UNIT_UNSPECIFIED; - case 1: return INCH; - case 2: return CENTIMETER; - case 3: return POINT; - default: return null; + case 0: + return DOCUMENT_DIMENSION_UNIT_UNSPECIFIED; + case 1: + return INCH; + case 2: + return CENTIMETER; + case 3: + return POINT; + default: + return null; } } @@ -215,29 +256,31 @@ public static DocumentDimensionUnit forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DocumentDimensionUnit> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DocumentDimensionUnit findValueByNumber(int number) { - return DocumentDimensionUnit.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DocumentDimensionUnit findValueByNumber(int number) { + return DocumentDimensionUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + 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.DocumentDimensions.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DocumentDimensions.getDescriptor() + .getEnumTypes() + .get(0); } private static final DocumentDimensionUnit[] VALUES = values(); @@ -245,8 +288,7 @@ public DocumentDimensionUnit findValueByNumber(int number) { public static DocumentDimensionUnit valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -266,38 +308,52 @@ private DocumentDimensionUnit(int value) { public static final int UNIT_FIELD_NUMBER = 1; private int unit_; /** + * + * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The enum numeric value on the wire for unit. */ - @java.lang.Override public int getUnitValue() { + @java.lang.Override + public int getUnitValue() { return unit_; } /** + * + * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The unit. */ - @java.lang.Override public com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit getUnit() { + @java.lang.Override + public com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit getUnit() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit result = com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); - return result == null ? com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit result = + com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); + return result == null + ? com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED + : result; } public static final int WIDTH_FIELD_NUMBER = 2; private float width_; /** + * + * *
    * Width value of the document, works together with the unit.
    * 
* * float width = 2; + * * @return The width. */ @java.lang.Override @@ -308,11 +364,14 @@ public float getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private float height_; /** + * + * *
    * Height value of the document, works together with the unit.
    * 
* * float height = 3; + * * @return The height. */ @java.lang.Override @@ -321,6 +380,7 @@ public float getHeight() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,9 +392,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (unit_ != com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.DOCUMENT_DIMENSION_UNIT_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (unit_ + != com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit + .DOCUMENT_DIMENSION_UNIT_UNSPECIFIED + .getNumber()) { output.writeEnum(1, unit_); } if (width_ != 0F) { @@ -352,17 +414,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (unit_ != com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.DOCUMENT_DIMENSION_UNIT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, unit_); + if (unit_ + != com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit + .DOCUMENT_DIMENSION_UNIT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, unit_); } if (width_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, width_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, width_); } if (height_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, height_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, height_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -372,20 +434,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.DocumentDimensions)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.DocumentDimensions other = (com.google.cloud.automl.v1beta1.DocumentDimensions) obj; + com.google.cloud.automl.v1beta1.DocumentDimensions other = + (com.google.cloud.automl.v1beta1.DocumentDimensions) obj; if (unit_ != other.unit_) return false; if (java.lang.Float.floatToIntBits(getWidth()) - != java.lang.Float.floatToIntBits( - other.getWidth())) return false; + != java.lang.Float.floatToIntBits(other.getWidth())) return false; if (java.lang.Float.floatToIntBits(getHeight()) - != java.lang.Float.floatToIntBits( - other.getHeight())) return false; + != java.lang.Float.floatToIntBits(other.getHeight())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -400,128 +461,135 @@ public int hashCode() { hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + unit_; hash = (37 * hash) + WIDTH_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getWidth()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getWidth()); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getHeight()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getHeight()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DocumentDimensions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DocumentDimensions 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.DocumentDimensions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.DocumentDimensions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.DocumentDimensions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DocumentDimensions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.DocumentDimensions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.DocumentDimensions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message that describes dimension of a document.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DocumentDimensions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DocumentDimensions) com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_DocumentDimensions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.DocumentDimensions.class, com.google.cloud.automl.v1beta1.DocumentDimensions.Builder.class); + com.google.cloud.automl.v1beta1.DocumentDimensions.class, + com.google.cloud.automl.v1beta1.DocumentDimensions.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DocumentDimensions.newBuilder() @@ -529,16 +597,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -552,9 +619,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_DocumentDimensions_descriptor; } @java.lang.Override @@ -573,7 +640,8 @@ public com.google.cloud.automl.v1beta1.DocumentDimensions build() { @java.lang.Override public com.google.cloud.automl.v1beta1.DocumentDimensions buildPartial() { - com.google.cloud.automl.v1beta1.DocumentDimensions result = new com.google.cloud.automl.v1beta1.DocumentDimensions(this); + com.google.cloud.automl.v1beta1.DocumentDimensions result = + new com.google.cloud.automl.v1beta1.DocumentDimensions(this); result.unit_ = unit_; result.width_ = width_; result.height_ = height_; @@ -585,38 +653,39 @@ public com.google.cloud.automl.v1beta1.DocumentDimensions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DocumentDimensions) { - return mergeFrom((com.google.cloud.automl.v1beta1.DocumentDimensions)other); + return mergeFrom((com.google.cloud.automl.v1beta1.DocumentDimensions) other); } else { super.mergeFrom(other); return this; @@ -624,7 +693,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DocumentDimensions other) { - if (other == com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.DocumentDimensions.getDefaultInstance()) + return this; if (other.unit_ != 0) { setUnitValue(other.getUnitValue()); } @@ -653,7 +723,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.DocumentDimensions) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.DocumentDimensions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -665,85 +736,108 @@ public Builder mergeFrom( private int unit_ = 0; /** + * + * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The enum numeric value on the wire for unit. */ - @java.lang.Override public int getUnitValue() { + @java.lang.Override + public int getUnitValue() { return unit_; } /** + * + * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @param value The enum numeric value on the wire for unit to set. * @return This builder for chaining. */ public Builder setUnitValue(int value) { - + unit_ = value; onChanged(); return this; } /** + * + * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The unit. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit getUnit() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit result = com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); - return result == null ? com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit result = + com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.valueOf(unit_); + return result == null + ? com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit.UNRECOGNIZED + : result; } /** + * + * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit(com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit value) { + public Builder setUnit( + com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit value) { if (value == null) { throw new NullPointerException(); } - + unit_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Unit of the dimension.
      * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return This builder for chaining. */ public Builder clearUnit() { - + unit_ = 0; onChanged(); return this; } - private float width_ ; + private float width_; /** + * + * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; + * * @return The width. */ @java.lang.Override @@ -751,42 +845,51 @@ public float getWidth() { return width_; } /** + * + * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; + * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(float value) { - + width_ = value; onChanged(); return this; } /** + * + * *
      * Width value of the document, works together with the unit.
      * 
* * float width = 2; + * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0F; onChanged(); return this; } - private float height_ ; + private float height_; /** + * + * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; + * * @return The height. */ @java.lang.Override @@ -794,37 +897,43 @@ public float getHeight() { return height_; } /** + * + * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; + * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(float value) { - + height_ = value; onChanged(); return this; } /** + * + * *
      * Height value of the document, works together with the unit.
      * 
* * float height = 3; + * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -834,12 +943,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DocumentDimensions) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DocumentDimensions) private static final com.google.cloud.automl.v1beta1.DocumentDimensions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DocumentDimensions(); } @@ -848,16 +957,16 @@ public static com.google.cloud.automl.v1beta1.DocumentDimensions getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentDimensions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentDimensions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentDimensions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentDimensions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -872,6 +981,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DocumentDimensions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java index 7b6a2a844..a243f1d18 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentDimensionsOrBuilder.java @@ -1,47 +1,75 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 DocumentDimensionsOrBuilder extends +public interface DocumentDimensionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DocumentDimensions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The enum numeric value on the wire for unit. */ int getUnitValue(); /** + * + * *
    * Unit of the dimension.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * * @return The unit. */ com.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit getUnit(); /** + * + * *
    * Width value of the document, works together with the unit.
    * 
* * float width = 2; + * * @return The width. */ float getWidth(); /** + * + * *
    * Height value of the document, works together with the unit.
    * 
* * float height = 3; + * * @return The height. */ float getHeight(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java index 83ede558e..2fb458249 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentInputConfig() { - } + + private DocumentInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,54 +68,61 @@ private DocumentInputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1beta1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); + 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; } - 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; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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.
@@ -108,6 +131,7 @@ private DocumentInputConfig(
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -115,6 +139,8 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** + * + * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -123,13 +149,18 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { - return gcsSource_ == null ? com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance() : gcsSource_; + 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.
@@ -145,6 +176,7 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -156,8 +188,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (gcsSource_ != null) {
       output.writeMessage(1, getGcsSource());
     }
@@ -171,8 +202,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (gcsSource_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getGcsSource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -182,17 +212,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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;
+    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 (!getGcsSource().equals(other.getGcsSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -215,117 +245,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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)
+      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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.DocumentInputConfig.class, + com.google.cloud.automl.v1beta1.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DocumentInputConfig.newBuilder() @@ -333,16 +372,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -356,9 +394,9 @@ public Builder clear() { } @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; + 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 @@ -377,7 +415,8 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfig build() { @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); + com.google.cloud.automl.v1beta1.DocumentInputConfig result = + new com.google.cloud.automl.v1beta1.DocumentInputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -391,38 +430,39 @@ public com.google.cloud.automl.v1beta1.DocumentInputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.DocumentInputConfig) other); } else { super.mergeFrom(other); return this; @@ -430,7 +470,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.DocumentInputConfig other) { - if (other == com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance()) + return this; if (other.hasGcsSource()) { mergeGcsSource(other.getGcsSource()); } @@ -453,7 +494,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.DocumentInputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.DocumentInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -465,8 +507,13 @@ public Builder mergeFrom( 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_; + 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.
@@ -475,12 +522,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** + * + * *
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -489,16 +539,21 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null ? com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance() : gcsSource_; + 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.
@@ -522,6 +577,8 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -531,8 +588,7 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
      *
      * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(
-        com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         gcsSource_ = builderForValue.build();
         onChanged();
@@ -543,6 +599,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -556,7 +614,9 @@ 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();
+              com.google.cloud.automl.v1beta1.GcsSource.newBuilder(gcsSource_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           gcsSource_ = value;
         }
@@ -568,6 +628,8 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -589,6 +651,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location of the document file. Only a single path
      * should be given.
@@ -599,11 +663,13 @@ public Builder clearGcsSource() {
      * .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.
@@ -617,11 +683,14 @@ 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_;
+        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.
@@ -632,21 +701,24 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(
      * .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> 
+            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());
+        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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -656,12 +728,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -670,16 +742,16 @@ public static com.google.cloud.automl.v1beta1.DocumentInputConfig getDefaultInst
     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);
-    }
-  };
+  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;
@@ -694,6 +766,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.DocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java
similarity index 66%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java
index b26762510..54506b2a7 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+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.
@@ -16,10 +34,13 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
@@ -28,10 +49,13 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.automl.v1beta1.GcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location of the document file. Only a single path
    * should be given.
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java
index e51fc86ef..db8d216e7 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+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; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * An input config specifying the content of the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.automl.v1beta1.DocumentInputConfig getInputConfig(); /** + * + * *
    * An input config specifying the content of the document.
    * 
@@ -35,24 +59,32 @@ public interface DocumentOrBuilder extends com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; + * * @return Whether the documentText field is set. */ boolean hasDocumentText(); /** + * + * *
    * The plain text version of this document.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet document_text = 2; + * * @return The documentText. */ com.google.cloud.automl.v1beta1.TextSnippet getDocumentText(); /** + * + * *
    * The plain text version of this document.
    * 
@@ -62,6 +94,8 @@ public interface DocumentOrBuilder extends com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getDocumentTextOrBuilder(); /** + * + * *
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -69,9 +103,10 @@ public interface DocumentOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
    */
-  java.util.List 
-      getLayoutList();
+  java.util.List getLayoutList();
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -81,6 +116,8 @@ public interface DocumentOrBuilder extends
    */
   com.google.cloud.automl.v1beta1.Document.Layout getLayout(int index);
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -90,6 +127,8 @@ public interface DocumentOrBuilder extends
    */
   int getLayoutCount();
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -97,9 +136,11 @@ public interface DocumentOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
    */
-  java.util.List 
+  java.util.List
       getLayoutOrBuilderList();
   /**
+   *
+   *
    * 
    * Describes the layout of the document.
    * Sorted by [page_number][].
@@ -107,28 +148,35 @@ public interface DocumentOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3;
    */
-  com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(
-      int index);
+  com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; + * * @return Whether the documentDimensions field is set. */ boolean hasDocumentDimensions(); /** + * + * *
    * The dimensions of the page in the document.
    * 
* * .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; + * * @return The documentDimensions. */ com.google.cloud.automl.v1beta1.DocumentDimensions getDocumentDimensions(); /** + * + * *
    * The dimensions of the page in the document.
    * 
@@ -138,11 +186,14 @@ com.google.cloud.automl.v1beta1.Document.LayoutOrBuilder getLayoutOrBuilder( com.google.cloud.automl.v1beta1.DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder(); /** + * + * *
    * Number of pages in the document.
    * 
* * int32 page_count = 5; + * * @return The pageCount. */ int getPageCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java index ad97bfe1c..eae77e586 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use DoubleRange.newBuilder() to construct. private DoubleRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DoubleRange() { - } + + private DoubleRange() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DoubleRange(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DoubleRange( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,56 +68,61 @@ private DoubleRange( 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; + case 9: + { + start_ = input.readDouble(); + break; + } + case 17: + { + end_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; + * * @return The start. */ @java.lang.Override @@ -112,11 +133,14 @@ public double getStart() { public static final int END_FIELD_NUMBER = 2; private double end_; /** + * + * *
    * End of the range, exclusive.
    * 
* * double end = 2; + * * @return The end. */ @java.lang.Override @@ -125,6 +149,7 @@ public double getEnd() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +161,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (start_ != 0D) { output.writeDouble(1, start_); } @@ -154,12 +178,10 @@ public int getSerializedSize() { size = 0; if (start_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, start_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, start_); } if (end_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, end_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, end_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -169,19 +191,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != java.lang.Double.doubleToLongBits(other.getStart())) return false; if (java.lang.Double.doubleToLongBits(getEnd()) - != java.lang.Double.doubleToLongBits( - other.getEnd())) return false; + != java.lang.Double.doubleToLongBits(other.getEnd())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -194,128 +215,139 @@ public int hashCode() { 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 = + (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 = + (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) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.DoubleRange.class, + com.google.cloud.automl.v1beta1.DoubleRange.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.DoubleRange.newBuilder() @@ -323,16 +355,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -344,9 +375,9 @@ public Builder clear() { } @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; + 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 @@ -365,7 +396,8 @@ public com.google.cloud.automl.v1beta1.DoubleRange build() { @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); + com.google.cloud.automl.v1beta1.DoubleRange result = + new com.google.cloud.automl.v1beta1.DoubleRange(this); result.start_ = start_; result.end_ = end_; onBuilt(); @@ -376,38 +408,39 @@ public com.google.cloud.automl.v1beta1.DoubleRange buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.DoubleRange) other); } else { super.mergeFrom(other); return this; @@ -451,13 +484,16 @@ public Builder mergeFrom( return this; } - private double start_ ; + private double start_; /** + * + * *
      * Start of the range, inclusive.
      * 
* * double start = 1; + * * @return The start. */ @java.lang.Override @@ -465,42 +501,51 @@ public double getStart() { return start_; } /** + * + * *
      * Start of the range, inclusive.
      * 
* * double start = 1; + * * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(double value) { - + start_ = value; onChanged(); return this; } /** + * + * *
      * Start of the range, inclusive.
      * 
* * double start = 1; + * * @return This builder for chaining. */ public Builder clearStart() { - + start_ = 0D; onChanged(); return this; } - private double end_ ; + private double end_; /** + * + * *
      * End of the range, exclusive.
      * 
* * double end = 2; + * * @return The end. */ @java.lang.Override @@ -508,37 +553,43 @@ public double getEnd() { return end_; } /** + * + * *
      * End of the range, exclusive.
      * 
* * double end = 2; + * * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(double value) { - + end_ = value; onChanged(); return this; } /** + * + * *
      * End of the range, exclusive.
      * 
* * double end = 2; + * * @return This builder for chaining. */ public Builder clearEnd() { - + end_ = 0D; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -548,12 +599,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -562,16 +613,16 @@ 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); - } - }; + 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; @@ -586,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.DoubleRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java new file mode 100644 index 000000000..ba891fc3e --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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; + * + * @return The start. + */ + double getStart(); + + /** + * + * + *
+   * End of the range, exclusive.
+   * 
+ * + * double end = 2; + * + * @return The end. + */ + double getEnd(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java index b7771ccfd..0edd62ea7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/data_items.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Example data used for training or prediction.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ExamplePayload} */ -public final class ExamplePayload extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExamplePayload extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExamplePayload) ExamplePayloadOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExamplePayload.newBuilder() to construct. private ExamplePayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExamplePayload() { - } + + private ExamplePayload() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExamplePayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExamplePayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,98 +68,110 @@ private ExamplePayload( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1beta1.Image.Builder subBuilder = null; - if (payloadCase_ == 1) { - subBuilder = ((com.google.cloud.automl.v1beta1.Image) payload_).toBuilder(); + case 10: + { + com.google.cloud.automl.v1beta1.Image.Builder subBuilder = null; + if (payloadCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1beta1.Image) payload_).toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.automl.v1beta1.Image.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.Image) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 1; + break; } - payload_ = - input.readMessage(com.google.cloud.automl.v1beta1.Image.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.Image) payload_); - payload_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; + if (payloadCase_ == 2) { + subBuilder = ((com.google.cloud.automl.v1beta1.TextSnippet) payload_).toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextSnippet) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 2; + break; } - payloadCase_ = 1; - break; - } - case 18: { - com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; - if (payloadCase_ == 2) { - subBuilder = ((com.google.cloud.automl.v1beta1.TextSnippet) payload_).toBuilder(); + 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; } - payload_ = - input.readMessage(com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextSnippet) payload_); - payload_ = subBuilder.buildPartial(); - } - 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(); + 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; } - 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(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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)) { - 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); + 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_ExamplePayload_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ExamplePayload.class, com.google.cloud.automl.v1beta1.ExamplePayload.Builder.class); + com.google.cloud.automl.v1beta1.ExamplePayload.class, + com.google.cloud.automl.v1beta1.ExamplePayload.Builder.class); } private int payloadCase_ = 0; private java.lang.Object payload_; + public enum PayloadCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE(1), TEXT_SNIPPET(2), @@ -151,6 +179,7 @@ public enum PayloadCase ROW(3), PAYLOAD_NOT_SET(0); private final int value; + private PayloadCase(int value) { this.value = value; } @@ -166,32 +195,40 @@ public static PayloadCase valueOf(int value) { public static PayloadCase forNumber(int value) { switch (value) { - case 1: return IMAGE; - case 2: return TEXT_SNIPPET; - case 4: return DOCUMENT; - case 3: return ROW; - case 0: return PAYLOAD_NOT_SET; - default: return null; + case 1: + return IMAGE; + case 2: + return TEXT_SNIPPET; + case 4: + return DOCUMENT; + case 3: + return ROW; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); } public static final int IMAGE_FIELD_NUMBER = 1; /** + * + * *
    * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; + * * @return Whether the image field is set. */ @java.lang.Override @@ -199,21 +236,26 @@ public boolean hasImage() { return payloadCase_ == 1; } /** + * + * *
    * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; + * * @return The image. */ @java.lang.Override public com.google.cloud.automl.v1beta1.Image getImage() { if (payloadCase_ == 1) { - return (com.google.cloud.automl.v1beta1.Image) payload_; + return (com.google.cloud.automl.v1beta1.Image) payload_; } return com.google.cloud.automl.v1beta1.Image.getDefaultInstance(); } /** + * + * *
    * Example image.
    * 
@@ -223,18 +265,21 @@ public com.google.cloud.automl.v1beta1.Image getImage() { @java.lang.Override public com.google.cloud.automl.v1beta1.ImageOrBuilder getImageOrBuilder() { if (payloadCase_ == 1) { - return (com.google.cloud.automl.v1beta1.Image) payload_; + return (com.google.cloud.automl.v1beta1.Image) payload_; } return com.google.cloud.automl.v1beta1.Image.getDefaultInstance(); } public static final int TEXT_SNIPPET_FIELD_NUMBER = 2; /** + * + * *
    * Example text.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; + * * @return Whether the textSnippet field is set. */ @java.lang.Override @@ -242,21 +287,26 @@ public boolean hasTextSnippet() { return payloadCase_ == 2; } /** + * + * *
    * Example text.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; + * * @return The textSnippet. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet getTextSnippet() { if (payloadCase_ == 2) { - return (com.google.cloud.automl.v1beta1.TextSnippet) payload_; + return (com.google.cloud.automl.v1beta1.TextSnippet) payload_; } return com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance(); } /** + * + * *
    * Example text.
    * 
@@ -266,18 +316,21 @@ public com.google.cloud.automl.v1beta1.TextSnippet getTextSnippet() { @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuilder() { if (payloadCase_ == 2) { - return (com.google.cloud.automl.v1beta1.TextSnippet) payload_; + return (com.google.cloud.automl.v1beta1.TextSnippet) payload_; } 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; + * * @return Whether the document field is set. */ @java.lang.Override @@ -285,21 +338,26 @@ public boolean hasDocument() { return payloadCase_ == 4; } /** + * + * *
    * Example document.
    * 
* * .google.cloud.automl.v1beta1.Document document = 4; + * * @return The document. */ @java.lang.Override 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) payload_; } return com.google.cloud.automl.v1beta1.Document.getDefaultInstance(); } /** + * + * *
    * Example document.
    * 
@@ -309,18 +367,21 @@ public com.google.cloud.automl.v1beta1.Document getDocument() { @java.lang.Override 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) 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; + * * @return Whether the row field is set. */ @java.lang.Override @@ -328,21 +389,26 @@ public boolean hasRow() { return payloadCase_ == 3; } /** + * + * *
    * Example relational table row.
    * 
* * .google.cloud.automl.v1beta1.Row row = 3; + * * @return The row. */ @java.lang.Override 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) payload_; } return com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); } /** + * + * *
    * Example relational table row.
    * 
@@ -352,12 +418,13 @@ public com.google.cloud.automl.v1beta1.Row getRow() { @java.lang.Override 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) payload_; } return com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,8 +436,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (payloadCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1beta1.Image) payload_); } @@ -393,20 +459,24 @@ public int getSerializedSize() { size = 0; if (payloadCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.automl.v1beta1.Image) payload_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.automl.v1beta1.Image) payload_); } if (payloadCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.automl.v1beta1.TextSnippet) payload_); + size += + 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_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.automl.v1beta1.Document) payload_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -416,30 +486,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ExamplePayload)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ExamplePayload other = (com.google.cloud.automl.v1beta1.ExamplePayload) obj; + com.google.cloud.automl.v1beta1.ExamplePayload other = + (com.google.cloud.automl.v1beta1.ExamplePayload) obj; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 1: - if (!getImage() - .equals(other.getImage())) return false; + if (!getImage().equals(other.getImage())) return false; break; case 2: - if (!getTextSnippet() - .equals(other.getTextSnippet())) return false; + if (!getTextSnippet().equals(other.getTextSnippet())) return false; break; case 4: - if (!getDocument() - .equals(other.getDocument())) return false; + if (!getDocument().equals(other.getDocument())) return false; break; case 3: - if (!getRow() - .equals(other.getRow())) return false; + if (!getRow().equals(other.getRow())) return false; break; case 0: default: @@ -480,118 +547,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ExamplePayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ExamplePayload 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.ExamplePayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ExamplePayload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ExamplePayload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ExamplePayload parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExamplePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Example data used for training or prediction.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ExamplePayload} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExamplePayload) com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ExamplePayload.class, com.google.cloud.automl.v1beta1.ExamplePayload.Builder.class); + com.google.cloud.automl.v1beta1.ExamplePayload.class, + com.google.cloud.automl.v1beta1.ExamplePayload.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ExamplePayload.newBuilder() @@ -599,16 +675,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +693,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; } @java.lang.Override @@ -639,7 +714,8 @@ public com.google.cloud.automl.v1beta1.ExamplePayload build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayload buildPartial() { - com.google.cloud.automl.v1beta1.ExamplePayload result = new com.google.cloud.automl.v1beta1.ExamplePayload(this); + com.google.cloud.automl.v1beta1.ExamplePayload result = + new com.google.cloud.automl.v1beta1.ExamplePayload(this); if (payloadCase_ == 1) { if (imageBuilder_ == null) { result.payload_ = payload_; @@ -677,38 +753,39 @@ public com.google.cloud.automl.v1beta1.ExamplePayload buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ExamplePayload) { - return mergeFrom((com.google.cloud.automl.v1beta1.ExamplePayload)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ExamplePayload) other); } else { super.mergeFrom(other); return this; @@ -718,25 +795,30 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExamplePayload other) { if (other == com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance()) return this; switch (other.getPayloadCase()) { - case IMAGE: { - mergeImage(other.getImage()); - break; - } - case TEXT_SNIPPET: { - mergeTextSnippet(other.getTextSnippet()); - break; - } - case DOCUMENT: { - mergeDocument(other.getDocument()); - break; - } - case ROW: { - mergeRow(other.getRow()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } + case IMAGE: + { + mergeImage(other.getImage()); + break; + } + case TEXT_SNIPPET: + { + mergeTextSnippet(other.getTextSnippet()); + break; + } + case DOCUMENT: + { + mergeDocument(other.getDocument()); + break; + } + case ROW: + { + mergeRow(other.getRow()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -766,12 +848,12 @@ public Builder mergeFrom( } return this; } + private int payloadCase_ = 0; private java.lang.Object payload_; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); } public Builder clearPayload() { @@ -781,15 +863,20 @@ public Builder clearPayload() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Image, com.google.cloud.automl.v1beta1.Image.Builder, com.google.cloud.automl.v1beta1.ImageOrBuilder> imageBuilder_; + com.google.cloud.automl.v1beta1.Image, + com.google.cloud.automl.v1beta1.Image.Builder, + com.google.cloud.automl.v1beta1.ImageOrBuilder> + imageBuilder_; /** + * + * *
      * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; + * * @return Whether the image field is set. */ @java.lang.Override @@ -797,11 +884,14 @@ public boolean hasImage() { return payloadCase_ == 1; } /** + * + * *
      * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; + * * @return The image. */ @java.lang.Override @@ -819,6 +909,8 @@ public com.google.cloud.automl.v1beta1.Image getImage() { } } /** + * + * *
      * Example image.
      * 
@@ -839,14 +931,15 @@ public Builder setImage(com.google.cloud.automl.v1beta1.Image value) { return this; } /** + * + * *
      * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; */ - public Builder setImage( - com.google.cloud.automl.v1beta1.Image.Builder builderForValue) { + public Builder setImage(com.google.cloud.automl.v1beta1.Image.Builder builderForValue) { if (imageBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -857,6 +950,8 @@ public Builder setImage( return this; } /** + * + * *
      * Example image.
      * 
@@ -865,10 +960,13 @@ public Builder setImage( */ public Builder mergeImage(com.google.cloud.automl.v1beta1.Image value) { if (imageBuilder_ == null) { - if (payloadCase_ == 1 && - payload_ != com.google.cloud.automl.v1beta1.Image.getDefaultInstance()) { - payload_ = com.google.cloud.automl.v1beta1.Image.newBuilder((com.google.cloud.automl.v1beta1.Image) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 1 + && payload_ != com.google.cloud.automl.v1beta1.Image.getDefaultInstance()) { + payload_ = + com.google.cloud.automl.v1beta1.Image.newBuilder( + (com.google.cloud.automl.v1beta1.Image) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -883,6 +981,8 @@ public Builder mergeImage(com.google.cloud.automl.v1beta1.Image value) { return this; } /** + * + * *
      * Example image.
      * 
@@ -906,6 +1006,8 @@ public Builder clearImage() { return this; } /** + * + * *
      * Example image.
      * 
@@ -916,6 +1018,8 @@ public com.google.cloud.automl.v1beta1.Image.Builder getImageBuilder() { return getImageFieldBuilder().getBuilder(); } /** + * + * *
      * Example image.
      * 
@@ -934,6 +1038,8 @@ public com.google.cloud.automl.v1beta1.ImageOrBuilder getImageOrBuilder() { } } /** + * + * *
      * Example image.
      * 
@@ -941,32 +1047,44 @@ public com.google.cloud.automl.v1beta1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.automl.v1beta1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Image, com.google.cloud.automl.v1beta1.Image.Builder, com.google.cloud.automl.v1beta1.ImageOrBuilder> + com.google.cloud.automl.v1beta1.Image, + com.google.cloud.automl.v1beta1.Image.Builder, + com.google.cloud.automl.v1beta1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { if (!(payloadCase_ == 1)) { payload_ = com.google.cloud.automl.v1beta1.Image.getDefaultInstance(); } - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Image, com.google.cloud.automl.v1beta1.Image.Builder, com.google.cloud.automl.v1beta1.ImageOrBuilder>( + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Image, + com.google.cloud.automl.v1beta1.Image.Builder, + com.google.cloud.automl.v1beta1.ImageOrBuilder>( (com.google.cloud.automl.v1beta1.Image) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 1; - onChanged();; + onChanged(); + ; return imageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> textSnippetBuilder_; + com.google.cloud.automl.v1beta1.TextSnippet, + com.google.cloud.automl.v1beta1.TextSnippet.Builder, + com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> + textSnippetBuilder_; /** + * + * *
      * Example text.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; + * * @return Whether the textSnippet field is set. */ @java.lang.Override @@ -974,11 +1092,14 @@ public boolean hasTextSnippet() { return payloadCase_ == 2; } /** + * + * *
      * Example text.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; + * * @return The textSnippet. */ @java.lang.Override @@ -996,6 +1117,8 @@ public com.google.cloud.automl.v1beta1.TextSnippet getTextSnippet() { } } /** + * + * *
      * Example text.
      * 
@@ -1016,6 +1139,8 @@ public Builder setTextSnippet(com.google.cloud.automl.v1beta1.TextSnippet value) return this; } /** + * + * *
      * Example text.
      * 
@@ -1034,6 +1159,8 @@ public Builder setTextSnippet( return this; } /** + * + * *
      * Example text.
      * 
@@ -1042,10 +1169,13 @@ public Builder setTextSnippet( */ public Builder mergeTextSnippet(com.google.cloud.automl.v1beta1.TextSnippet value) { if (textSnippetBuilder_ == null) { - if (payloadCase_ == 2 && - payload_ != com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance()) { - payload_ = com.google.cloud.automl.v1beta1.TextSnippet.newBuilder((com.google.cloud.automl.v1beta1.TextSnippet) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 2 + && payload_ != com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance()) { + payload_ = + com.google.cloud.automl.v1beta1.TextSnippet.newBuilder( + (com.google.cloud.automl.v1beta1.TextSnippet) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -1060,6 +1190,8 @@ public Builder mergeTextSnippet(com.google.cloud.automl.v1beta1.TextSnippet valu return this; } /** + * + * *
      * Example text.
      * 
@@ -1083,6 +1215,8 @@ public Builder clearTextSnippet() { return this; } /** + * + * *
      * Example text.
      * 
@@ -1093,6 +1227,8 @@ public com.google.cloud.automl.v1beta1.TextSnippet.Builder getTextSnippetBuilder return getTextSnippetFieldBuilder().getBuilder(); } /** + * + * *
      * Example text.
      * 
@@ -1111,6 +1247,8 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuil } } /** + * + * *
      * Example text.
      * 
@@ -1118,32 +1256,44 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuil * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> + com.google.cloud.automl.v1beta1.TextSnippet, + com.google.cloud.automl.v1beta1.TextSnippet.Builder, + com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> getTextSnippetFieldBuilder() { if (textSnippetBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance(); } - textSnippetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( + textSnippetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSnippet, + com.google.cloud.automl.v1beta1.TextSnippet.Builder, + com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( (com.google.cloud.automl.v1beta1.TextSnippet) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; - onChanged();; + onChanged(); + ; 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_; + 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; + * * @return Whether the document field is set. */ @java.lang.Override @@ -1151,11 +1301,14 @@ public boolean hasDocument() { return payloadCase_ == 4; } /** + * + * *
      * Example document.
      * 
* * .google.cloud.automl.v1beta1.Document document = 4; + * * @return The document. */ @java.lang.Override @@ -1173,6 +1326,8 @@ public com.google.cloud.automl.v1beta1.Document getDocument() { } } /** + * + * *
      * Example document.
      * 
@@ -1193,14 +1348,15 @@ public Builder setDocument(com.google.cloud.automl.v1beta1.Document value) { return this; } /** + * + * *
      * Example document.
      * 
* * .google.cloud.automl.v1beta1.Document document = 4; */ - public Builder setDocument( - com.google.cloud.automl.v1beta1.Document.Builder builderForValue) { + public Builder setDocument(com.google.cloud.automl.v1beta1.Document.Builder builderForValue) { if (documentBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -1211,6 +1367,8 @@ public Builder setDocument( return this; } /** + * + * *
      * Example document.
      * 
@@ -1219,10 +1377,13 @@ public Builder setDocument( */ 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(); + 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; } @@ -1237,6 +1398,8 @@ public Builder mergeDocument(com.google.cloud.automl.v1beta1.Document value) { return this; } /** + * + * *
      * Example document.
      * 
@@ -1260,6 +1423,8 @@ public Builder clearDocument() { return this; } /** + * + * *
      * Example document.
      * 
@@ -1270,6 +1435,8 @@ public com.google.cloud.automl.v1beta1.Document.Builder getDocumentBuilder() { return getDocumentFieldBuilder().getBuilder(); } /** + * + * *
      * Example document.
      * 
@@ -1288,6 +1455,8 @@ public com.google.cloud.automl.v1beta1.DocumentOrBuilder getDocumentOrBuilder() } } /** + * + * *
      * Example document.
      * 
@@ -1295,32 +1464,44 @@ public com.google.cloud.automl.v1beta1.DocumentOrBuilder getDocumentOrBuilder() * .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> + 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>( + 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();; + 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_; + 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; + * * @return Whether the row field is set. */ @java.lang.Override @@ -1328,11 +1509,14 @@ public boolean hasRow() { return payloadCase_ == 3; } /** + * + * *
      * Example relational table row.
      * 
* * .google.cloud.automl.v1beta1.Row row = 3; + * * @return The row. */ @java.lang.Override @@ -1350,6 +1534,8 @@ public com.google.cloud.automl.v1beta1.Row getRow() { } } /** + * + * *
      * Example relational table row.
      * 
@@ -1370,14 +1556,15 @@ public Builder setRow(com.google.cloud.automl.v1beta1.Row value) { return this; } /** + * + * *
      * Example relational table row.
      * 
* * .google.cloud.automl.v1beta1.Row row = 3; */ - public Builder setRow( - com.google.cloud.automl.v1beta1.Row.Builder builderForValue) { + public Builder setRow(com.google.cloud.automl.v1beta1.Row.Builder builderForValue) { if (rowBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -1388,6 +1575,8 @@ public Builder setRow( return this; } /** + * + * *
      * Example relational table row.
      * 
@@ -1396,10 +1585,13 @@ public Builder setRow( */ 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(); + 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; } @@ -1414,6 +1606,8 @@ public Builder mergeRow(com.google.cloud.automl.v1beta1.Row value) { return this; } /** + * + * *
      * Example relational table row.
      * 
@@ -1437,6 +1631,8 @@ public Builder clearRow() { return this; } /** + * + * *
      * Example relational table row.
      * 
@@ -1447,6 +1643,8 @@ public com.google.cloud.automl.v1beta1.Row.Builder getRowBuilder() { return getRowFieldBuilder().getBuilder(); } /** + * + * *
      * Example relational table row.
      * 
@@ -1465,6 +1663,8 @@ public com.google.cloud.automl.v1beta1.RowOrBuilder getRowOrBuilder() { } } /** + * + * *
      * Example relational table row.
      * 
@@ -1472,26 +1672,30 @@ public com.google.cloud.automl.v1beta1.RowOrBuilder getRowOrBuilder() { * .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> + 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()); + 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();; + onChanged(); + ; return rowBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1501,12 +1705,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExamplePayload) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExamplePayload) private static final com.google.cloud.automl.v1beta1.ExamplePayload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExamplePayload(); } @@ -1515,16 +1719,16 @@ public static com.google.cloud.automl.v1beta1.ExamplePayload getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExamplePayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExamplePayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExamplePayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExamplePayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1539,6 +1743,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ExamplePayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java similarity index 78% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java index 3d4949fad..98988792b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 ExamplePayloadOrBuilder extends +public interface ExamplePayloadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExamplePayload) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; + * * @return Whether the image field is set. */ boolean hasImage(); /** + * + * *
    * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; + * * @return The image. */ com.google.cloud.automl.v1beta1.Image getImage(); /** + * + * *
    * Example image.
    * 
@@ -35,24 +59,32 @@ public interface ExamplePayloadOrBuilder extends com.google.cloud.automl.v1beta1.ImageOrBuilder getImageOrBuilder(); /** + * + * *
    * Example text.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; + * * @return Whether the textSnippet field is set. */ boolean hasTextSnippet(); /** + * + * *
    * Example text.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet text_snippet = 2; + * * @return The textSnippet. */ com.google.cloud.automl.v1beta1.TextSnippet getTextSnippet(); /** + * + * *
    * Example text.
    * 
@@ -62,24 +94,32 @@ public interface ExamplePayloadOrBuilder extends com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuilder(); /** + * + * *
    * Example document.
    * 
* * .google.cloud.automl.v1beta1.Document document = 4; + * * @return Whether the document field is set. */ boolean hasDocument(); /** + * + * *
    * Example document.
    * 
* * .google.cloud.automl.v1beta1.Document document = 4; + * * @return The document. */ com.google.cloud.automl.v1beta1.Document getDocument(); /** + * + * *
    * Example document.
    * 
@@ -89,24 +129,32 @@ public interface ExamplePayloadOrBuilder extends com.google.cloud.automl.v1beta1.DocumentOrBuilder getDocumentOrBuilder(); /** + * + * *
    * Example relational table row.
    * 
* * .google.cloud.automl.v1beta1.Row row = 3; + * * @return Whether the row field is set. */ boolean hasRow(); /** + * + * *
    * Example relational table row.
    * 
* * .google.cloud.automl.v1beta1.Row row = 3; + * * @return The row. */ com.google.cloud.automl.v1beta1.Row getRow(); /** + * + * *
    * Example relational table row.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java index 10badf214..42632a85d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use ExportDataOperationMetadata.newBuilder() to construct. private ExportDataOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportDataOperationMetadata() { - } + + private ExportDataOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportDataOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportDataOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,154 +68,184 @@ private ExportDataOperationMetadata( 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(); - } + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder.class); } - public interface ExportDataOutputInfoOrBuilder extends + 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; + * * @return Whether the gcsOutputDirectory field is set. */ boolean hasGcsOutputDirectory(); /** + * + * *
      * The full path of the Google Cloud Storage directory created, into which
      * the exported data is written.
      * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ 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; + * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString - getGcsOutputDirectoryBytes(); + 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; + * * @return Whether the bigqueryOutputDataset field is set. */ boolean hasBigqueryOutputDataset(); /** + * + * *
      * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
      * format, into which the exported data is written.
      * 
* * string bigquery_output_dataset = 2; + * * @return The bigqueryOutputDataset. */ 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; + * * @return The bytes for bigqueryOutputDataset. */ - com.google.protobuf.ByteString - getBigqueryOutputDatasetBytes(); + com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.OutputLocationCase getOutputLocationCase(); + 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} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo} */ - public static final class ExportDataOutputInfo extends - com.google.protobuf.GeneratedMessageV3 implements + 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; + private static final long serialVersionUID = 0L; // Use ExportDataOutputInfo.newBuilder() to construct. private ExportDataOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportDataOutputInfo() { - } + + private ExportDataOutputInfo() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportDataOutputInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportDataOutputInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -218,59 +264,68 @@ private ExportDataOutputInfo( 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; + 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; } - 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); + 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; + + 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 + 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); + 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, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_OUTPUT_DIRECTORY(1), BIGQUERY_OUTPUT_DATASET(2), OUTPUTLOCATION_NOT_SET(0); private final int value; + private OutputLocationCase(int value) { this.value = value; } @@ -286,43 +341,52 @@ public static OutputLocationCase valueOf(int 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; + 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 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; + * * @return Whether the gcsOutputDirectory field is set. */ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** + * + * *
      * The full path of the Google Cloud Storage directory created, into which
      * the exported data is written.
      * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ public java.lang.String getGcsOutputDirectory() { @@ -333,8 +397,7 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -343,24 +406,25 @@ public 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; + * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -372,24 +436,30 @@ public java.lang.String getGcsOutputDirectory() { 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; + * * @return Whether the bigqueryOutputDataset field is set. */ public boolean hasBigqueryOutputDataset() { return outputLocationCase_ == 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; + * * @return The bigqueryOutputDataset. */ public java.lang.String getBigqueryOutputDataset() { @@ -400,8 +470,7 @@ public java.lang.String getBigqueryOutputDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 2) { outputLocation_ = s; @@ -410,24 +479,25 @@ public 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; + * * @return The bytes for bigqueryOutputDataset. */ - public com.google.protobuf.ByteString - getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 2) { outputLocation_ = b; } @@ -438,6 +508,7 @@ public java.lang.String getBigqueryOutputDataset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -449,8 +520,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputLocationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocation_); } @@ -480,22 +550,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo)) { + 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; + 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; + if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; break; case 2: - if (!getBigqueryOutputDataset() - .equals(other.getBigqueryOutputDataset())) return false; + if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false; break; case 0: default: @@ -528,88 +599,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + + 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 { + + 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 { + + 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 { + + 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 { + + 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) 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 + 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) 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 + 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) 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); + + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -619,46 +704,54 @@ protected Builder newBuilderForType( 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} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -668,19 +761,23 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + build() { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -688,8 +785,11 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOut } @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); + 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_; } @@ -705,62 +805,75 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOut public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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; - } + 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(); @@ -777,11 +890,14 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -790,12 +906,12 @@ public Builder mergeFrom( } return this; } + private int outputLocationCase_ = 0; private java.lang.Object outputLocation_; - public OutputLocationCase - getOutputLocationCase() { - return OutputLocationCase.forNumber( - outputLocationCase_); + + public OutputLocationCase getOutputLocationCase() { + return OutputLocationCase.forNumber(outputLocationCase_); } public Builder clearOutputLocation() { @@ -805,14 +921,16 @@ public Builder clearOutputLocation() { return this; } - /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; + * * @return Whether the gcsOutputDirectory field is set. */ @java.lang.Override @@ -820,12 +938,15 @@ public boolean hasGcsOutputDirectory() { return outputLocationCase_ == 1; } /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; + * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -835,8 +956,7 @@ public java.lang.String getGcsOutputDirectory() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 1) { outputLocation_ = s; @@ -847,25 +967,26 @@ public 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; + * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 1) { outputLocation_ = b; } @@ -875,32 +996,37 @@ public 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; + * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory( - java.lang.String value) { + public Builder setGcsOutputDirectory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 1; + 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; + * * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { @@ -912,21 +1038,23 @@ public Builder clearGcsOutputDirectory() { return this; } /** + * + * *
        * The full path of the Google Cloud Storage directory created, into which
        * the exported data is written.
        * 
* * string gcs_output_directory = 1; + * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputLocationCase_ = 1; outputLocation_ = value; onChanged(); @@ -934,12 +1062,15 @@ public Builder setGcsOutputDirectoryBytes( } /** + * + * *
        * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
        * format, into which the exported data is written.
        * 
* * string bigquery_output_dataset = 2; + * * @return Whether the bigqueryOutputDataset field is set. */ @java.lang.Override @@ -947,12 +1078,15 @@ public boolean hasBigqueryOutputDataset() { return outputLocationCase_ == 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; + * * @return The bigqueryOutputDataset. */ @java.lang.Override @@ -962,8 +1096,7 @@ public java.lang.String getBigqueryOutputDataset() { ref = outputLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputLocationCase_ == 2) { outputLocation_ = s; @@ -974,25 +1107,26 @@ public 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; + * * @return The bytes for bigqueryOutputDataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputLocationCase_ == 2) { outputLocation_ = b; } @@ -1002,32 +1136,37 @@ public 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; + * * @param value The bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDataset( - java.lang.String value) { + public Builder setBigqueryOutputDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputLocationCase_ = 2; + 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; + * * @return This builder for chaining. */ public Builder clearBigqueryOutputDataset() { @@ -1039,26 +1178,29 @@ public Builder clearBigqueryOutputDataset() { 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; + * * @param value The bytes for bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { @@ -1071,30 +1213,34 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.ExportDataOperationMetadata + .ExportDataOutputInfo + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo(); } - public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo getDefaultInstance() { + 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); - } - }; + 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; @@ -1106,20 +1252,26 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo getDefaultInstanceForType() { + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -1127,30 +1279,45 @@ 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; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo getOutputInfo() { - return outputInfo_ == null ? com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance() : outputInfo_; + 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; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder getOutputInfoOrBuilder() { + 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; @@ -1162,8 +1329,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputInfo_ != null) { output.writeMessage(1, getOutputInfo()); } @@ -1177,8 +1343,7 @@ public int getSerializedSize() { size = 0; if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1188,17 +1353,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getOutputInfo().equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1221,117 +1386,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.newBuilder() @@ -1339,16 +1514,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1362,9 +1536,9 @@ public Builder clear() { } @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; + 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 @@ -1383,7 +1557,8 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata result = + new com.google.cloud.automl.v1beta1.ExportDataOperationMetadata(this); if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { @@ -1397,38 +1572,39 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1436,7 +1612,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance()) + return this; if (other.hasOutputInfo()) { mergeOutputInfo(other.getOutputInfo()); } @@ -1459,7 +1636,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1469,43 +1647,68 @@ public Builder mergeFrom( return this; } - private com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo outputInfo_; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * * @return Whether the outputInfo field is set. */ 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; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * * @return The outputInfo. */ - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo getOutputInfo() { + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null ? com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.getDefaultInstance() : outputInfo_; + 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; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ - public Builder setOutputInfo(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo value) { + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1519,14 +1722,19 @@ public Builder setOutputInfo(com.google.cloud.automl.v1beta1.ExportDataOperation return this; } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder + builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1537,17 +1745,25 @@ public Builder setOutputInfo( return this; } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ - public Builder mergeOutputInfo(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo value) { + 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(); + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); } else { outputInfo_ = value; } @@ -1559,11 +1775,15 @@ public Builder mergeOutputInfo(com.google.cloud.automl.v1beta1.ExportDataOperati return this; } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1577,55 +1797,78 @@ public Builder clearOutputInfo() { return this; } /** + * + * *
      * Output only. Information further describing this export data's output.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder getOutputInfoBuilder() { - + 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; + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * */ - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder getOutputInfoOrBuilder() { + 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_; + 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; + * + * .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> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1635,12 +1878,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1649,16 +1892,16 @@ public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getDef 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); - } - }; + 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; @@ -1673,6 +1916,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java new file mode 100644 index 000000000..00325c144 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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; + * + * + * @return Whether the outputInfo field is set. + */ + boolean hasOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing this export data's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + * + * @return The outputInfo. + */ + 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java index 2b7428fe9..12f87fcee 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ExportDataRequest} */ -public final class ExportDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExportDataRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportDataRequest) ExportDataRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportDataRequest.newBuilder() to construct. private ExportDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportDataRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportDataRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,76 @@ private ExportDataRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: { - com.google.cloud.automl.v1beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + name_ = s; + break; } - outputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.automl.v1beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_ExportDataRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ExportDataRequest.class, com.google.cloud.automl.v1beta1.ExportDataRequest.Builder.class); + com.google.cloud.automl.v1beta1.ExportDataRequest.class, + com.google.cloud.automl.v1beta1.ExportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -120,29 +148,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,11 +183,16 @@ public java.lang.String getName() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1beta1.OutputConfig outputConfig_; /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -165,23 +200,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The desired output location.
    * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -189,6 +235,7 @@ public com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +247,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -221,8 +267,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,19 +277,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportDataRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ExportDataRequest other = (com.google.cloud.automl.v1beta1.ExportDataRequest) obj; + com.google.cloud.automl.v1beta1.ExportDataRequest other = + (com.google.cloud.automl.v1beta1.ExportDataRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -269,117 +313,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ExportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ExportDataRequest 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.ExportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ExportDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ExportDataRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ExportDataRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ExportDataRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportDataRequest) com.google.cloud.automl.v1beta1.ExportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ExportDataRequest.class, com.google.cloud.automl.v1beta1.ExportDataRequest.Builder.class); + com.google.cloud.automl.v1beta1.ExportDataRequest.class, + com.google.cloud.automl.v1beta1.ExportDataRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ExportDataRequest.newBuilder() @@ -387,16 +440,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override @@ -433,7 +485,8 @@ public com.google.cloud.automl.v1beta1.ExportDataRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ExportDataRequest buildPartial() { - com.google.cloud.automl.v1beta1.ExportDataRequest result = new com.google.cloud.automl.v1beta1.ExportDataRequest(this); + com.google.cloud.automl.v1beta1.ExportDataRequest result = + new com.google.cloud.automl.v1beta1.ExportDataRequest(this); result.name_ = name_; if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; @@ -448,38 +501,39 @@ public com.google.cloud.automl.v1beta1.ExportDataRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ExportDataRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.ExportDataRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ExportDataRequest) other); } else { super.mergeFrom(other); return this; @@ -487,7 +541,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportDataRequest other) { - if (other == com.google.cloud.automl.v1beta1.ExportDataRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ExportDataRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -514,7 +569,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ExportDataRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,18 +582,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -546,20 +606,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -567,54 +630,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -622,39 +698,58 @@ public Builder setNameBytes( private com.google.cloud.automl.v1beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.OutputConfig, com.google.cloud.automl.v1beta1.OutputConfig.Builder, com.google.cloud.automl.v1beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.automl.v1beta1.OutputConfig, + com.google.cloud.automl.v1beta1.OutputConfig.Builder, + com.google.cloud.automl.v1beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.automl.v1beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -670,11 +765,15 @@ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.OutputConfig valu return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.automl.v1beta1.OutputConfig.Builder builderForValue) { @@ -688,17 +787,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.automl.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.automl.v1beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -710,11 +815,15 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1beta1.OutputConfig va return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -728,55 +837,71 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The desired output location.
      * 
* - * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.OutputConfig, com.google.cloud.automl.v1beta1.OutputConfig.Builder, com.google.cloud.automl.v1beta1.OutputConfigOrBuilder> + com.google.cloud.automl.v1beta1.OutputConfig, + com.google.cloud.automl.v1beta1.OutputConfig.Builder, + com.google.cloud.automl.v1beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.OutputConfig, com.google.cloud.automl.v1beta1.OutputConfig.Builder, com.google.cloud.automl.v1beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.OutputConfig, + com.google.cloud.automl.v1beta1.OutputConfig.Builder, + com.google.cloud.automl.v1beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -786,12 +911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportDataRequest) private static final com.google.cloud.automl.v1beta1.ExportDataRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportDataRequest(); } @@ -800,16 +925,16 @@ public static com.google.cloud.automl.v1beta1.ExportDataRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportDataRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDataRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,6 +949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ExportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java new file mode 100644 index 000000000..2b3880ab4 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface ExportDataRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the dataset.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the dataset.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The desired output location.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + * + * + *
+   * Required. The desired output location.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputConfig. + */ + com.google.cloud.automl.v1beta1.OutputConfig getOutputConfig(); + /** + * + * + *
+   * Required. The desired output location.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java index 9df84ccdc..2dc361898 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java @@ -1,39 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use ExportEvaluatedExamplesOperationMetadata.newBuilder() to construct. - private ExportEvaluatedExamplesOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ExportEvaluatedExamplesOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportEvaluatedExamplesOperationMetadata() { - } + + private ExportEvaluatedExamplesOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportEvaluatedExamplesOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportEvaluatedExamplesOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,111 +70,131 @@ private ExportEvaluatedExamplesOperationMetadata( 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(); - } + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder.class); } - public interface ExportEvaluatedExamplesOutputInfoOrBuilder extends + 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; + * * @return The bigqueryOutputDataset. */ 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; + * * @return The bytes for bigqueryOutputDataset. */ - com.google.protobuf.ByteString - getBigqueryOutputDatasetBytes(); + 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} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo} */ - public static final class ExportEvaluatedExamplesOutputInfo extends - com.google.protobuf.GeneratedMessageV3 implements + 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; + private static final long serialVersionUID = 0L; // Use ExportEvaluatedExamplesOutputInfo.newBuilder() to construct. - private ExportEvaluatedExamplesOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ExportEvaluatedExamplesOutputInfo( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportEvaluatedExamplesOutputInfo() { bigqueryOutputDataset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportEvaluatedExamplesOutputInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportEvaluatedExamplesOutputInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -175,53 +213,61 @@ private ExportEvaluatedExamplesOutputInfo( case 0: done = true; break; - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - bigqueryOutputDataset_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + bigqueryOutputDataset_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; + * * @return The bigqueryOutputDataset. */ @java.lang.Override @@ -230,30 +276,30 @@ public java.lang.String getBigqueryOutputDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for bigqueryOutputDataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bigqueryOutputDataset_ = b; return b; } else { @@ -262,6 +308,7 @@ public java.lang.String getBigqueryOutputDataset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +320,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bigqueryOutputDataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bigqueryOutputDataset_); } @@ -298,15 +344,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo)) { + 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; + 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; } @@ -325,88 +378,115 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + + 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 { + + 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 { + + 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 { + + 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 { + + 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) 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 + 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) 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 + 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) 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); + + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -416,46 +496,55 @@ protected Builder newBuilderForType( 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} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -465,19 +554,26 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + build() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -485,8 +581,14 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata. } @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); + 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; @@ -496,46 +598,60 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata. public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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(); @@ -555,11 +671,16 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -571,19 +692,21 @@ public Builder mergeFrom( 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; + * * @return The bigqueryOutputDataset. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigqueryOutputDataset_ = s; return s; @@ -592,21 +715,22 @@ public 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; + * * @return The bytes for bigqueryOutputDataset. */ - public com.google.protobuf.ByteString - getBigqueryOutputDatasetBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bigqueryOutputDataset_ = b; return b; } else { @@ -614,61 +738,69 @@ public 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; + * * @param value The bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDataset( - java.lang.String value) { + public Builder setBigqueryOutputDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for bigqueryOutputDataset to set. * @return This builder for chaining. */ - public Builder setBigqueryOutputDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bigqueryOutputDataset_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -681,30 +813,36 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo(); } - public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo getDefaultInstance() { + 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); - } - }; + 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; @@ -716,21 +854,29 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo getDefaultInstanceForType() { + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -738,32 +884,49 @@ 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; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + * * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo getOutputInfo() { - return outputInfo_ == null ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.getDefaultInstance() : outputInfo_; + 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; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfoOrBuilder getOutputInfoOrBuilder() { + 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; @@ -775,8 +938,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputInfo_ != null) { output.writeMessage(2, getOutputInfo()); } @@ -790,8 +952,7 @@ public int getSerializedSize() { size = 0; if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -801,17 +962,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata)) { + 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; + 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 (!getOutputInfo().equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -834,134 +996,146 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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 + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder + .class); } - // Construct using com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -975,19 +1149,22 @@ public Builder clear() { } @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; + 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(); + 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(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -996,7 +1173,8 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata @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); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata result = + new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata(this); if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { @@ -1010,46 +1188,52 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -1072,7 +1256,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1082,46 +1268,76 @@ public Builder mergeFrom( return this; } - private com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo outputInfo_; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ 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; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + * * @return The outputInfo. */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo getOutputInfo() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.getDefaultInstance() : outputInfo_; + 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; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * */ - public Builder setOutputInfo(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo value) { + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1135,15 +1351,21 @@ public Builder setOutputInfo(com.google.cloud.automl.v1beta1.ExportEvaluatedExam return this; } /** + * + * *
      * Output only. Information further describing the output of this evaluated
      * examples export.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * */ public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.Builder + builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1154,18 +1376,28 @@ public Builder setOutputInfo( return this; } /** + * + * *
      * Output only. Information further describing the output of this evaluated
      * examples export.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * */ - public Builder mergeOutputInfo(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo value) { + 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(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); } else { outputInfo_ = value; } @@ -1177,12 +1409,16 @@ public Builder mergeOutputInfo(com.google.cloud.automl.v1beta1.ExportEvaluatedEx return this; } /** + * + * *
      * Output only. Information further describing the output of this evaluated
      * examples export.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1196,58 +1432,85 @@ public Builder clearOutputInfo() { return this; } /** + * + * *
      * Output only. Information further describing the output of this evaluated
      * examples export.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.Builder getOutputInfoBuilder() { - + 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; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfoOrBuilder getOutputInfoOrBuilder() { + 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_; + 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; + * + * .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> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1257,30 +1520,33 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata(); } - public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata getDefaultInstance() { + 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); - } - }; + 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; @@ -1292,9 +1558,8 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java new file mode 100644 index 000000000..6a666090e --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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; + * + * + * @return Whether the outputInfo field is set. + */ + boolean hasOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing the output of this evaluated
+   * examples export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + * + * @return The outputInfo. + */ + 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java index efceeb9fa..905a905e8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.
@@ -34,30 +51,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig}
  */
-public final class ExportEvaluatedExamplesOutputConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  private static final long serialVersionUID = 0L;
   // Use ExportEvaluatedExamplesOutputConfig.newBuilder() to construct.
-  private ExportEvaluatedExamplesOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ExportEvaluatedExamplesOutputConfig(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ExportEvaluatedExamplesOutputConfig() {
-  }
+
+  private ExportEvaluatedExamplesOutputConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExportEvaluatedExamplesOutputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ExportEvaluatedExamplesOutputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,60 +94,71 @@ private ExportEvaluatedExamplesOutputConfig(
           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();
+          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;
             }
-            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();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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;
+
+  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
+    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);
+            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,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     BIGQUERY_DESTINATION(2),
     DESTINATION_NOT_SET(0);
     private final int value;
+
     private DestinationCase(int value) {
       this.value = value;
     }
@@ -145,29 +174,34 @@ public static DestinationCase valueOf(int value) {
 
     public static DestinationCase forNumber(int value) {
       switch (value) {
-        case 2: return BIGQUERY_DESTINATION;
-        case 0: return DESTINATION_NOT_SET;
-        default: return null;
+        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 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; + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -175,21 +209,26 @@ 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; + * * @return The bigqueryDestination. */ @java.lang.Override 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } /** + * + * *
    * The BigQuery location where the output is to be written to.
    * 
@@ -197,14 +236,16 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +257,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -231,8 +271,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,18 +283,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; break; case 0: default: @@ -283,96 +324,105 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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 + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -403,38 +453,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.class,
+              com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder.class);
     }
 
-    // Construct using com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.newBuilder()
+    // Construct using
+    // com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,14 +496,16 @@ public Builder clear() {
     }
 
     @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;
+    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();
+    public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig
+        getDefaultInstanceForType() {
+      return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -465,7 +519,8 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig build
 
     @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);
+      com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig result =
+          new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig(this);
       if (destinationCase_ == 2) {
         if (bigqueryDestinationBuilder_ == null) {
           result.destination_ = destination_;
@@ -482,54 +537,61 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig build
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        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;
+    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;
-        }
+        case BIGQUERY_DESTINATION:
+          {
+            mergeBigqueryDestination(other.getBigqueryDestination());
+            break;
+          }
+        case DESTINATION_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -550,7 +612,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -559,12 +623,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-    public DestinationCase
-        getDestinationCase() {
-      return DestinationCase.forNumber(
-          destinationCase_);
+
+    public DestinationCase getDestinationCase() {
+      return DestinationCase.forNumber(destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -574,15 +638,20 @@ public Builder clearDestination() {
       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_;
+            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; + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -590,11 +659,14 @@ 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; + * * @return The bigqueryDestination. */ @java.lang.Override @@ -612,13 +684,16 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio } } /** + * + * *
      * 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) { + public Builder setBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -632,6 +707,8 @@ public Builder setBigqueryDestination(com.google.cloud.automl.v1beta1.BigQueryDe return this; } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -650,18 +727,25 @@ public Builder setBigqueryDestination( 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) { + 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(); + 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; } @@ -676,6 +760,8 @@ public Builder mergeBigqueryDestination(com.google.cloud.automl.v1beta1.BigQuery return this; } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -699,16 +785,21 @@ public Builder clearBigqueryDestination() { 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() { + public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { return getBigqueryDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -716,7 +807,8 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder getBigqueryDe * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { return bigqueryDestinationBuilder_.getMessageOrBuilder(); } else { @@ -727,6 +819,8 @@ public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryD } } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -734,26 +828,32 @@ public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryD * .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> + 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>( + 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();; + onChanged(); + ; return bigqueryDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -763,30 +863,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -798,9 +900,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java index 32ca341a9..0a514fbd4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** + * + * *
    * The BigQuery location where the output is to be written to.
    * 
* * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + * * @return The bigqueryDestination. */ com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination(); /** + * + * *
    * The BigQuery location where the output is to be written to.
    * 
@@ -34,5 +58,6 @@ public interface ExportEvaluatedExamplesOutputConfigOrBuilder extends */ com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.DestinationCase getDestinationCase(); + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.DestinationCase + getDestinationCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java index a54ee6198..9ba6fefdb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use ExportEvaluatedExamplesRequest.newBuilder() to construct. - private ExportEvaluatedExamplesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ExportEvaluatedExamplesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportEvaluatedExamplesRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportEvaluatedExamplesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportEvaluatedExamplesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,66 +71,79 @@ private ExportEvaluatedExamplesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + 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(); + name_ = s; + break; } - outputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + 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; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -121,30 +152,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -155,11 +188,16 @@ public java.lang.String getName() { 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -167,30 +205,43 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location and configuration.
    * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.getDefaultInstance() : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +253,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -223,8 +273,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,19 +283,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest other = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -271,117 +319,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.newBuilder() @@ -389,16 +447,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,13 +471,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.getDefaultInstance(); } @@ -435,7 +493,8 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest build() { @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); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest result = + new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest(this); result.name_ = name_; if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; @@ -450,38 +509,39 @@ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) other); } else { super.mergeFrom(other); return this; @@ -489,7 +549,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest other) { - if (other == com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -516,7 +578,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,19 +592,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the model whose evaluated examples are to
      * be exported.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -549,21 +617,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the model whose evaluated examples are to
      * be exported.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -571,57 +642,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the model whose evaluated examples are to
      * be exported.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -629,41 +713,62 @@ public Builder setNameBytes( 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.getDefaultInstance() : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOutputConfig(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig value) { + public Builder setOutputConfig( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig value) { if (outputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -677,14 +782,19 @@ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.ExportEvaluatedEx return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder + builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); onChanged(); @@ -695,17 +805,25 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOutputConfig(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig value) { + 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(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.newBuilder( + outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -717,11 +835,15 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1beta1.ExportEvaluated return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -735,55 +857,74 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder getOutputConfigBuilder() { - + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder getOutputConfigOrBuilder() { + 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -793,30 +934,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -828,9 +971,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java new file mode 100644 index 000000000..ad8a02cb8 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the model whose evaluated examples are to
+   * be exported.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputConfig. + */ + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder + getOutputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java index c82a5f74b..095c20e09 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use ExportModelOperationMetadata.newBuilder() to construct. private ExportModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportModelOperationMetadata() { - } + + private ExportModelOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,111 +68,129 @@ private ExportModelOperationMetadata( 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(); - } + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder.class); } - public interface ExportModelOutputInfoOrBuilder extends + 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; + * * @return The gcsOutputDirectory. */ 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; + * * @return The bytes for gcsOutputDirectory. */ - com.google.protobuf.ByteString - getGcsOutputDirectoryBytes(); + 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} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo} */ - public static final class ExportModelOutputInfo extends - com.google.protobuf.GeneratedMessageV3 implements + 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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportModelOutputInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportModelOutputInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -175,53 +209,61 @@ private ExportModelOutputInfo( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - gcsOutputDirectory_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + gcsOutputDirectory_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; + * * @return The gcsOutputDirectory. */ @java.lang.Override @@ -230,30 +272,30 @@ public java.lang.String getGcsOutputDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for gcsOutputDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsOutputDirectory_ = b; return b; } else { @@ -262,6 +304,7 @@ public java.lang.String getGcsOutputDirectory() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +316,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsOutputDirectory_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsOutputDirectory_); } @@ -298,15 +340,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo)) { + 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; + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo other = + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) obj; - if (!getGcsOutputDirectory() - .equals(other.getGcsOutputDirectory())) return false; + if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,88 +369,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + + 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 { + + 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 { + + 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 { + + 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 { + + 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) 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 + 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) 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 + 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) 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); + + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -416,46 +474,55 @@ protected Builder newBuilderForType( 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} + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -465,19 +532,23 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + build() { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -485,8 +556,11 @@ public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelO } @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); + 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; @@ -496,46 +570,57 @@ public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelO public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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(); @@ -555,11 +640,14 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -571,19 +659,21 @@ public Builder mergeFrom( 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; + * * @return The gcsOutputDirectory. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsOutputDirectory_ = s; return s; @@ -592,21 +682,22 @@ public 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; + * * @return The bytes for gcsOutputDirectory. */ - public com.google.protobuf.ByteString - getGcsOutputDirectoryBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsOutputDirectory_ = b; return b; } else { @@ -614,61 +705,69 @@ public 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; + * * @param value The gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectory( - java.lang.String value) { + public Builder setGcsOutputDirectory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for gcsOutputDirectory to set. * @return This builder for chaining. */ - public Builder setGcsOutputDirectoryBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsOutputDirectory_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -681,30 +780,34 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + .ExportModelOutputInfo + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo(); } - public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo getDefaultInstance() { + 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); - } - }; + 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; @@ -716,21 +819,27 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo getDefaultInstanceForType() { + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ @java.lang.Override @@ -738,32 +847,47 @@ 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; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * * @return The outputInfo. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo() { - return outputInfo_ == null ? com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance() : outputInfo_; + 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; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder getOutputInfoOrBuilder() { + 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; @@ -775,8 +899,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputInfo_ != null) { output.writeMessage(2, getOutputInfo()); } @@ -790,8 +913,7 @@ public int getSerializedSize() { size = 0; if (outputInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -801,17 +923,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getOutputInfo().equals(other.getOutputInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -834,117 +956,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.newBuilder() @@ -952,16 +1084,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -975,13 +1106,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); } @@ -996,7 +1128,8 @@ public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata result = + new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata(this); if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { @@ -1010,38 +1143,39 @@ public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1049,7 +1183,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance()) + return this; if (other.hasOutputInfo()) { mergeOutputInfo(other.getOutputInfo()); } @@ -1072,7 +1208,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1082,46 +1219,71 @@ public Builder mergeFrom( return this; } - private com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo outputInfo_; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * * @return Whether the outputInfo field is set. */ 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; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * * @return The outputInfo. */ - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo getOutputInfo() { + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + getOutputInfo() { if (outputInfoBuilder_ == null) { - return outputInfo_ == null ? com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.getDefaultInstance() : outputInfo_; + 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; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ - public Builder setOutputInfo(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo value) { + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1135,15 +1297,20 @@ public Builder setOutputInfo(com.google.cloud.automl.v1beta1.ExportModelOperatio return this; } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ public Builder setOutputInfo( - com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder + builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); @@ -1154,18 +1321,26 @@ public Builder setOutputInfo( return this; } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ - public Builder mergeOutputInfo(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo value) { + 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(); + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); } else { outputInfo_ = value; } @@ -1177,12 +1352,16 @@ public Builder mergeOutputInfo(com.google.cloud.automl.v1beta1.ExportModelOperat return this; } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { @@ -1196,58 +1375,83 @@ public Builder clearOutputInfo() { return this; } /** + * + * *
      * Output only. Information further describing the output of this model
      * export.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder getOutputInfoBuilder() { - + 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; + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * */ - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder getOutputInfoOrBuilder() { + 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_; + 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; + * + * .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> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1257,12 +1461,13 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata(); } @@ -1271,16 +1476,16 @@ public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getDe 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); - } - }; + 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; @@ -1295,6 +1500,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..1b0259539 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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; + * + * + * @return Whether the outputInfo field is set. + */ + boolean hasOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + * + * @return The outputInfo. + */ + 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java index 76ce80408..e1ae1721f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.ExportModelRequest}
  */
-public final class ExportModelRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  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
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExportModelRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ExportModelRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,65 +72,77 @@ private ExportModelRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          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();
+              name_ = s;
+              break;
             }
-            outputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.ModelExportOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+          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;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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;
+
+  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
+    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);
+            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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -122,29 +151,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -155,11 +186,16 @@ public java.lang.String getName() { 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -167,30 +203,43 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location and configuration.
    * 
* - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance() : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +251,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -223,8 +271,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,19 +281,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ExportModelRequest other = + (com.google.cloud.automl.v1beta1.ExportModelRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -271,96 +317,103 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -369,21 +422,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ExportModelRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.ExportModelRequest.class,
+              com.google.cloud.automl.v1beta1.ExportModelRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.ExportModelRequest.newBuilder()
@@ -391,16 +446,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -416,9 +470,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -437,7 +491,8 @@ public com.google.cloud.automl.v1beta1.ExportModelRequest build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.ExportModelRequest result =
+          new com.google.cloud.automl.v1beta1.ExportModelRequest(this);
       result.name_ = name_;
       if (outputConfigBuilder_ == null) {
         result.outputConfig_ = outputConfig_;
@@ -452,38 +507,39 @@ public com.google.cloud.automl.v1beta1.ExportModelRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.ExportModelRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -491,7 +547,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportModelRequest other) {
-      if (other == com.google.cloud.automl.v1beta1.ExportModelRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.automl.v1beta1.ExportModelRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -518,7 +575,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1beta1.ExportModelRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1beta1.ExportModelRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -530,18 +588,22 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the model to export.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -550,20 +612,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the model to export.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -571,54 +636,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the model to export.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the model to export.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the model to export.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -626,39 +704,58 @@ public Builder setNameBytes( 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance() : outputConfig_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.ModelExportOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -674,11 +771,15 @@ public Builder setOutputConfig(com.google.cloud.automl.v1beta1.ModelExportOutput return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder builderForValue) { @@ -692,17 +793,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOutputConfig(com.google.cloud.automl.v1beta1.ModelExportOutputConfig value) { + 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(); + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -714,11 +822,15 @@ public Builder mergeOutputConfig(com.google.cloud.automl.v1beta1.ModelExportOutp return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -732,55 +844,73 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location and configuration.
      * 
* - * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder getOutputConfigBuilder() { - + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder() { + 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_; + 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 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ModelExportOutputConfig, com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder, com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -790,12 +920,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -804,16 +934,16 @@ public static com.google.cloud.automl.v1beta1.ExportModelRequest getDefaultInsta 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); - } - }; + 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; @@ -828,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ExportModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java new file mode 100644 index 000000000..dfff31450 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the model to export.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputConfig. + */ + com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java index bf7ecfec9..c436fe1fc 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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(); @@ -26,16 +44,15 @@ private Float64Stats() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Float64Stats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Float64Stats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,60 +72,66 @@ private Float64Stats( case 0: done = true; break; - case 9: { - - mean_ = input.readDouble(); - break; - } - case 17: { - - standardDeviation_ = input.readDouble(); - break; - } - case 25: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - quantiles_ = newDoubleList(); - mutable_bitField0_ |= 0x00000001; + case 9: + { + mean_ = input.readDouble(); + break; } - quantiles_.addDouble(input.readDouble()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - quantiles_ = newDoubleList(); - mutable_bitField0_ |= 0x00000001; + case 17: + { + standardDeviation_ = input.readDouble(); + break; } - while (input.getBytesUntilLimit() > 0) { + case 25: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + quantiles_ = newDoubleList(); + mutable_bitField0_ |= 0x00000001; + } quantiles_.addDouble(input.readDouble()); + break; } - input.popLimit(limit); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - histogramBuckets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + quantiles_ = newDoubleList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + quantiles_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; } - histogramBuckets_.add( - input.readMessage(com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + histogramBuckets_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket>(); + mutable_bitField0_ |= 0x00000002; + } + histogramBuckets_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { quantiles_.makeImmutable(); // C @@ -120,86 +143,100 @@ private Float64Stats( 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.Float64Stats.class, + com.google.cloud.automl.v1beta1.Float64Stats.Builder.class); } - public interface HistogramBucketOrBuilder extends + 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; + * * @return The min. */ double getMin(); /** + * + * *
      * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
      * which case it's inclusive.
      * 
* * double max = 2; + * * @return The max. */ double getMax(); /** + * + * *
      * The number of data values that are in the bucket, i.e. are between
      * min and max values.
      * 
* * int64 count = 3; + * * @return The count. */ 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 + 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; + private static final long serialVersionUID = 0L; // Use HistogramBucket.newBuilder() to construct. private HistogramBucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HistogramBucket() { - } + + private HistogramBucket() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HistogramBucket(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HistogramBucket( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -218,61 +255,66 @@ private HistogramBucket( 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; + 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; } - 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); + 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; + + 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 + 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); + 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; + * * @return The min. */ @java.lang.Override @@ -283,12 +325,15 @@ public double getMin() { 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; + * * @return The max. */ @java.lang.Override @@ -299,12 +344,15 @@ public double getMax() { 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; + * * @return The count. */ @java.lang.Override @@ -313,6 +361,7 @@ public long getCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +373,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (min_ != 0D) { output.writeDouble(1, min_); } @@ -345,16 +393,13 @@ public int getSerializedSize() { size = 0; if (min_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, min_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, min_); } if (max_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, max_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, count_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -364,21 +409,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != 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; + != java.lang.Double.doubleToLongBits(other.getMax())) return false; + if (getCount() != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -391,101 +434,109 @@ public int hashCode() { 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 = + (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 = + (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 = (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 { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -495,27 +546,32 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() @@ -523,16 +579,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,13 +601,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.getDefaultInstance(); } @@ -567,7 +623,8 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket build() { @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); + 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_; @@ -579,38 +636,41 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) other); } else { super.mergeFrom(other); return this; @@ -618,7 +678,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } 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 + == com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.getDefaultInstance()) + return this; if (other.getMin() != 0D) { setMin(other.getMin()); } @@ -647,7 +709,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -657,13 +721,16 @@ public Builder mergeFrom( return this; } - private double min_ ; + private double min_; /** + * + * *
        * The minimum value of the bucket, inclusive.
        * 
* * double min = 1; + * * @return The min. */ @java.lang.Override @@ -671,43 +738,52 @@ public double getMin() { return min_; } /** + * + * *
        * The minimum value of the bucket, inclusive.
        * 
* * double min = 1; + * * @param value The min to set. * @return This builder for chaining. */ public Builder setMin(double value) { - + min_ = value; onChanged(); return this; } /** + * + * *
        * The minimum value of the bucket, inclusive.
        * 
* * double min = 1; + * * @return This builder for chaining. */ public Builder clearMin() { - + min_ = 0D; onChanged(); return this; } - private double max_ ; + private double max_; /** + * + * *
        * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
        * which case it's inclusive.
        * 
* * double max = 2; + * * @return The max. */ @java.lang.Override @@ -715,45 +791,54 @@ public double getMax() { return max_; } /** + * + * *
        * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
        * which case it's inclusive.
        * 
* * double max = 2; + * * @param value The max to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearMax() { - + max_ = 0D; onChanged(); return this; } - private long count_ ; + private long count_; /** + * + * *
        * The number of data values that are in the bucket, i.e. are between
        * min and max values.
        * 
* * int64 count = 3; + * * @return The count. */ @java.lang.Override @@ -761,36 +846,43 @@ 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; + * * @param value The count to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -803,30 +895,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -838,20 +932,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MEAN_FIELD_NUMBER = 1; private double mean_; /** + * + * *
    * The mean of the series.
    * 
* * double mean = 1; + * * @return The mean. */ @java.lang.Override @@ -862,11 +959,14 @@ public double getMean() { public static final int STANDARD_DEVIATION_FIELD_NUMBER = 2; private double standardDeviation_; /** + * + * *
    * The standard deviation of the series.
    * 
* * double standard_deviation = 2; + * * @return The standardDeviation. */ @java.lang.Override @@ -877,6 +977,8 @@ public double getStandardDeviation() { 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
@@ -885,14 +987,16 @@ public double getStandardDeviation() {
    * 
* * repeated double quantiles = 3; + * * @return A list containing the quantiles. */ @java.lang.Override - public java.util.List - getQuantilesList() { + 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
@@ -901,12 +1005,15 @@ public double getStandardDeviation() {
    * 
* * repeated double quantiles = 3; + * * @return The count of quantiles. */ 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
@@ -915,17 +1022,22 @@ public int getQuantilesCount() {
    * 
* * repeated double quantiles = 3; + * * @param index The index of the element to return. * @return The quantiles at the given index. */ 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_; + 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
@@ -934,13 +1046,17 @@ public double getQuantiles(int index) {
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ @java.lang.Override - public java.util.List getHistogramBucketsList() { + 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
@@ -949,14 +1065,18 @@ public java.util.List
    *
-   * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4;
+   * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  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
@@ -965,13 +1085,16 @@ public java.util.List
    *
-   * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4;
+   * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4;
+   * 
    */
   @java.lang.Override
   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
@@ -980,13 +1103,17 @@ public int getHistogramBucketsCount() {
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogramBuckets(int index) { + 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
@@ -995,15 +1122,17 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogram
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder getHistogramBucketsOrBuilder( - int index) { + 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; @@ -1015,8 +1144,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (mean_ != 0D) { output.writeDouble(1, mean_); @@ -1044,12 +1172,10 @@ public int getSerializedSize() { size = 0; if (mean_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, mean_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, mean_); } if (standardDeviation_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, standardDeviation_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, standardDeviation_); } { int dataSize = 0; @@ -1057,14 +1183,12 @@ public int getSerializedSize() { size += dataSize; if (!getQuantilesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + 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 += com.google.protobuf.CodedOutputStream.computeMessageSize(4, histogramBuckets_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1074,23 +1198,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != 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; + != 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; } @@ -1103,11 +1224,14 @@ public int hashCode() { 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 = + (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())); + 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(); @@ -1121,118 +1245,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.Float64Stats.class, + com.google.cloud.automl.v1beta1.Float64Stats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.Float64Stats.newBuilder() @@ -1240,17 +1373,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getHistogramBucketsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1270,9 +1403,9 @@ public Builder clear() { } @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; + 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 @@ -1291,7 +1424,8 @@ public com.google.cloud.automl.v1beta1.Float64Stats build() { @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); + com.google.cloud.automl.v1beta1.Float64Stats result = + new com.google.cloud.automl.v1beta1.Float64Stats(this); int from_bitField0_ = bitField0_; result.mean_ = mean_; result.standardDeviation_ = standardDeviation_; @@ -1317,38 +1451,39 @@ public com.google.cloud.automl.v1beta1.Float64Stats buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.Float64Stats) other); } else { super.mergeFrom(other); return this; @@ -1391,9 +1526,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Float64Stats other) { histogramBucketsBuilder_ = null; histogramBuckets_ = other.histogramBuckets_; bitField0_ = (bitField0_ & ~0x00000002); - histogramBucketsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHistogramBucketsFieldBuilder() : null; + histogramBucketsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramBucketsFieldBuilder() + : null; } else { histogramBucketsBuilder_.addAllMessages(other.histogramBuckets_); } @@ -1427,15 +1563,19 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private double mean_ ; + private double mean_; /** + * + * *
      * The mean of the series.
      * 
* * double mean = 1; + * * @return The mean. */ @java.lang.Override @@ -1443,42 +1583,51 @@ public double getMean() { return mean_; } /** + * + * *
      * The mean of the series.
      * 
* * double mean = 1; + * * @param value The mean to set. * @return This builder for chaining. */ public Builder setMean(double value) { - + mean_ = value; onChanged(); return this; } /** + * + * *
      * The mean of the series.
      * 
* * double mean = 1; + * * @return This builder for chaining. */ public Builder clearMean() { - + mean_ = 0D; onChanged(); return this; } - private double standardDeviation_ ; + private double standardDeviation_; /** + * + * *
      * The standard deviation of the series.
      * 
* * double standard_deviation = 2; + * * @return The standardDeviation. */ @java.lang.Override @@ -1486,43 +1635,52 @@ public double getStandardDeviation() { return standardDeviation_; } /** + * + * *
      * The standard deviation of the series.
      * 
* * double standard_deviation = 2; + * * @param value The standardDeviation to set. * @return This builder for chaining. */ public Builder setStandardDeviation(double value) { - + standardDeviation_ = value; onChanged(); return this; } /** + * + * *
      * The standard deviation of the series.
      * 
* * double standard_deviation = 2; + * * @return This builder for chaining. */ public Builder clearStandardDeviation() { - + standardDeviation_ = 0D; onChanged(); return this; } private com.google.protobuf.Internal.DoubleList quantiles_ = emptyDoubleList(); + private void ensureQuantilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { quantiles_ = mutableCopy(quantiles_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * 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
@@ -1531,14 +1689,17 @@ private void ensureQuantilesIsMutable() {
      * 
* * repeated double quantiles = 3; + * * @return A list containing the quantiles. */ - public java.util.List - getQuantilesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(quantiles_) : quantiles_; + public java.util.List getQuantilesList() { + return ((bitField0_ & 0x00000001) != 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
@@ -1547,12 +1708,15 @@ private void ensureQuantilesIsMutable() {
      * 
* * repeated double quantiles = 3; + * * @return The count of quantiles. */ 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
@@ -1561,6 +1725,7 @@ public int getQuantilesCount() {
      * 
* * repeated double quantiles = 3; + * * @param index The index of the element to return. * @return The quantiles at the given index. */ @@ -1568,6 +1733,8 @@ 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
@@ -1576,18 +1743,20 @@ public double getQuantiles(int index) {
      * 
* * repeated double quantiles = 3; + * * @param index The index to set the value at. * @param value The quantiles to set. * @return This builder for chaining. */ - public Builder setQuantiles( - int index, double value) { + 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
@@ -1596,6 +1765,7 @@ public Builder setQuantiles(
      * 
* * repeated double quantiles = 3; + * * @param value The quantiles to add. * @return This builder for chaining. */ @@ -1606,6 +1776,8 @@ public Builder addQuantiles(double value) { 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
@@ -1614,18 +1786,19 @@ public Builder addQuantiles(double value) {
      * 
* * repeated double quantiles = 3; + * * @param values The quantiles to add. * @return This builder for chaining. */ - public Builder addAllQuantiles( - java.lang.Iterable values) { + public Builder addAllQuantiles(java.lang.Iterable values) { ensureQuantilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, quantiles_); + 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
@@ -1634,6 +1807,7 @@ public Builder addAllQuantiles(
      * 
* * repeated double quantiles = 3; + * * @return This builder for chaining. */ public Builder clearQuantiles() { @@ -1643,19 +1817,27 @@ public Builder clearQuantiles() { return this; } - private java.util.List histogramBuckets_ = - java.util.Collections.emptyList(); + private java.util.List + histogramBuckets_ = java.util.Collections.emptyList(); + private void ensureHistogramBucketsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - histogramBuckets_ = new java.util.ArrayList(histogramBuckets_); + histogramBuckets_ = + new java.util.ArrayList( + histogramBuckets_); bitField0_ |= 0x00000002; - } + } } 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_; + 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
@@ -1664,9 +1846,12 @@ private void ensureHistogramBucketsIsMutable() {
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ - public java.util.List getHistogramBucketsList() { + public java.util.List + getHistogramBucketsList() { if (histogramBucketsBuilder_ == null) { return java.util.Collections.unmodifiableList(histogramBuckets_); } else { @@ -1674,6 +1859,8 @@ public java.util.List * Histogram buckets of the data series. Sorted by the min value of the * bucket, ascendingly, and the number of the buckets is dynamically @@ -1682,7 +1869,9 @@ public java.util.List * - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ public int getHistogramBucketsCount() { if (histogramBucketsBuilder_ == null) { @@ -1692,6 +1881,8 @@ public 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
@@ -1700,9 +1891,12 @@ public int getHistogramBucketsCount() {
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogramBuckets(int index) { + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogramBuckets( + int index) { if (histogramBucketsBuilder_ == null) { return histogramBuckets_.get(index); } else { @@ -1710,6 +1904,8 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogram } } /** + * + * *
      * Histogram buckets of the data series. Sorted by the min value of the
      * bucket, ascendingly, and the number of the buckets is dynamically
@@ -1718,7 +1914,9 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogram
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ public Builder setHistogramBuckets( int index, com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { @@ -1735,6 +1933,8 @@ public Builder setHistogramBuckets( 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
@@ -1743,10 +1943,13 @@ public Builder setHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ public Builder setHistogramBuckets( - int index, com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { + int index, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { if (histogramBucketsBuilder_ == null) { ensureHistogramBucketsIsMutable(); histogramBuckets_.set(index, builderForValue.build()); @@ -1757,6 +1960,8 @@ public Builder setHistogramBuckets( 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
@@ -1765,9 +1970,12 @@ public Builder setHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ - public Builder addHistogramBuckets(com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { + public Builder addHistogramBuckets( + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { if (histogramBucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1781,6 +1989,8 @@ public Builder addHistogramBuckets(com.google.cloud.automl.v1beta1.Float64Stats. 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
@@ -1789,7 +1999,9 @@ public Builder addHistogramBuckets(com.google.cloud.automl.v1beta1.Float64Stats.
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ public Builder addHistogramBuckets( int index, com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { @@ -1806,6 +2018,8 @@ public Builder addHistogramBuckets( 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
@@ -1814,7 +2028,9 @@ public Builder addHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ public Builder addHistogramBuckets( com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { @@ -1828,6 +2044,8 @@ public Builder addHistogramBuckets( 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
@@ -1836,10 +2054,13 @@ public Builder addHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ public Builder addHistogramBuckets( - int index, com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { + int index, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { if (histogramBucketsBuilder_ == null) { ensureHistogramBucketsIsMutable(); histogramBuckets_.add(index, builderForValue.build()); @@ -1850,6 +2071,8 @@ public Builder addHistogramBuckets( 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
@@ -1858,14 +2081,16 @@ public Builder addHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ public Builder addAllHistogramBuckets( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (histogramBucketsBuilder_ == null) { ensureHistogramBucketsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, histogramBuckets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramBuckets_); onChanged(); } else { histogramBucketsBuilder_.addAllMessages(values); @@ -1873,6 +2098,8 @@ public Builder addAllHistogramBuckets( 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
@@ -1881,7 +2108,9 @@ public Builder addAllHistogramBuckets(
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ public Builder clearHistogramBuckets() { if (histogramBucketsBuilder_ == null) { @@ -1894,6 +2123,8 @@ public Builder clearHistogramBuckets() { 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
@@ -1902,7 +2133,9 @@ public Builder clearHistogramBuckets() {
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ public Builder removeHistogramBuckets(int index) { if (histogramBucketsBuilder_ == null) { @@ -1915,6 +2148,8 @@ public Builder removeHistogramBuckets(int 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
@@ -1923,13 +2158,17 @@ public Builder removeHistogramBuckets(int index) {
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder getHistogramBucketsBuilder( - int index) { + 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
@@ -1938,16 +2177,21 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder getH
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ - public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder getHistogramBucketsOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder + getHistogramBucketsOrBuilder(int index) { if (histogramBucketsBuilder_ == null) { - return histogramBuckets_.get(index); } else { + 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
@@ -1956,10 +2200,13 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder get
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ - public java.util.List - getHistogramBucketsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder> + getHistogramBucketsOrBuilderList() { if (histogramBucketsBuilder_ != null) { return histogramBucketsBuilder_.getMessageOrBuilderList(); } else { @@ -1967,6 +2214,8 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder get } } /** + * + * *
      * Histogram buckets of the data series. Sorted by the min value of the
      * bucket, ascendingly, and the number of the buckets is dynamically
@@ -1975,13 +2224,19 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder get
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * 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()); + 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
@@ -1990,14 +2245,20 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder addH
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * 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()); + 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
@@ -2006,18 +2267,26 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder addH
      * the last one being `"Infinity"`.
      * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ - public java.util.List - getHistogramBucketsBuilderList() { + 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> + 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>( + 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_ & 0x00000002) != 0), getParentForChildren(), @@ -2026,9 +2295,9 @@ public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder addH } return histogramBucketsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2038,12 +2307,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -2052,16 +2321,16 @@ 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); - } - }; + 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; @@ -2076,6 +2345,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Float64Stats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java similarity index 80% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java index 5691dc134..d10104ccc 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return The mean. */ double getMean(); /** + * + * *
    * The standard deviation of the series.
    * 
* * double standard_deviation = 2; + * * @return The standardDeviation. */ 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
@@ -36,10 +60,13 @@ public interface Float64StatsOrBuilder extends
    * 
* * repeated double quantiles = 3; + * * @return A list containing the quantiles. */ 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
@@ -48,10 +75,13 @@ public interface Float64StatsOrBuilder extends
    * 
* * repeated double quantiles = 3; + * * @return The count of quantiles. */ 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
@@ -60,12 +90,15 @@ public interface Float64StatsOrBuilder extends
    * 
* * repeated double quantiles = 3; + * * @param index The index of the element to return. * @return The quantiles at the given index. */ 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
@@ -74,11 +107,14 @@ public interface Float64StatsOrBuilder extends
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ - java.util.List + 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
@@ -87,10 +123,13 @@ public interface Float64StatsOrBuilder extends
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * 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
@@ -99,10 +138,13 @@ public interface Float64StatsOrBuilder extends
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * 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
@@ -111,11 +153,14 @@ public interface Float64StatsOrBuilder extends
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ - java.util.List + 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
@@ -124,8 +169,9 @@ public interface Float64StatsOrBuilder extends
    * the last one being `"Infinity"`.
    * 
* - * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * */ - com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder getHistogramBucketsOrBuilder( - int index); + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder + getHistogramBucketsOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java index 3e01fddf0..c77032ad6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcrDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcrDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GcrDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - outputUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + outputUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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
@@ -107,6 +129,7 @@ private GcrDestination(
    * 
* * string output_uri = 1; + * * @return The outputUri. */ @java.lang.Override @@ -115,14 +138,15 @@ public java.lang.String getOutputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -136,16 +160,15 @@ public java.lang.String getOutputUri() {
    * 
* * string output_uri = 1; + * * @return The bytes for outputUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { @@ -154,6 +177,7 @@ public java.lang.String getOutputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); } @@ -190,15 +213,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.GcrDestination other = + (com.google.cloud.automl.v1beta1.GcrDestination) obj; - if (!getOutputUri() - .equals(other.getOutputUri())) return false; + if (!getOutputUri().equals(other.getOutputUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -217,118 +240,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.GcrDestination.class, + com.google.cloud.automl.v1beta1.GcrDestination.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GcrDestination.newBuilder() @@ -336,16 +368,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +386,9 @@ public Builder clear() { } @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; + 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 @@ -376,7 +407,8 @@ public com.google.cloud.automl.v1beta1.GcrDestination build() { @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); + com.google.cloud.automl.v1beta1.GcrDestination result = + new com.google.cloud.automl.v1beta1.GcrDestination(this); result.outputUri_ = outputUri_; onBuilt(); return result; @@ -386,38 +418,39 @@ public com.google.cloud.automl.v1beta1.GcrDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.GcrDestination) other); } else { super.mergeFrom(other); return this; @@ -461,6 +494,8 @@ public Builder mergeFrom( private java.lang.Object outputUri_ = ""; /** + * + * *
      * Required. Google Contained Registry URI of the new image, up to 2000
      * characters long. See
@@ -474,13 +509,13 @@ public Builder mergeFrom(
      * 
* * string output_uri = 1; + * * @return The outputUri. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; @@ -489,6 +524,8 @@ public java.lang.String getOutputUri() { } } /** + * + * *
      * Required. Google Contained Registry URI of the new image, up to 2000
      * characters long. See
@@ -502,15 +539,14 @@ public java.lang.String getOutputUri() {
      * 
* * string output_uri = 1; + * * @return The bytes for outputUri. */ - public com.google.protobuf.ByteString - getOutputUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { @@ -518,6 +554,8 @@ public java.lang.String getOutputUri() { } } /** + * + * *
      * Required. Google Contained Registry URI of the new image, up to 2000
      * characters long. See
@@ -531,20 +569,22 @@ public java.lang.String getOutputUri() {
      * 
* * string output_uri = 1; + * * @param value The outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUri( - java.lang.String value) { + public Builder setOutputUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. Google Contained Registry URI of the new image, up to 2000
      * characters long. See
@@ -558,15 +598,18 @@ public Builder setOutputUri(
      * 
* * string output_uri = 1; + * * @return This builder for chaining. */ public Builder clearOutputUri() { - + outputUri_ = getDefaultInstance().getOutputUri(); onChanged(); return this; } /** + * + * *
      * Required. Google Contained Registry URI of the new image, up to 2000
      * characters long. See
@@ -580,23 +623,23 @@ public Builder clearOutputUri() {
      * 
* * string output_uri = 1; + * * @param value The bytes for outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -606,12 +649,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -620,16 +663,16 @@ 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); - } - }; + 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; @@ -644,6 +687,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GcrDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java index 878efeea2..f5a9b28e2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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
@@ -21,10 +39,13 @@ public interface GcrDestinationOrBuilder extends
    * 
* * string output_uri = 1; + * * @return The outputUri. */ java.lang.String getOutputUri(); /** + * + * *
    * Required. Google Contained Registry URI of the new image, up to 2000
    * characters long. See
@@ -38,8 +59,8 @@ public interface GcrDestinationOrBuilder extends
    * 
* * string output_uri = 1; + * * @return The bytes for outputUri. */ - com.google.protobuf.ByteString - getOutputUriBytes(); + com.google.protobuf.ByteString getOutputUriBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java index 5a32d788d..f39b64527 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * The Google Cloud Storage location where the output is to be written to.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - outputUriPrefix_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + outputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GcsDestination.class, com.google.cloud.automl.v1beta1.GcsDestination.Builder.class); + com.google.cloud.automl.v1beta1.GcsDestination.class, + com.google.cloud.automl.v1beta1.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; private volatile java.lang.Object outputUriPrefix_; /** + * + * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -104,6 +126,7 @@ private GcsDestination(
    * 
* * string output_uri_prefix = 1; + * * @return The outputUriPrefix. */ @java.lang.Override @@ -112,14 +135,15 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** + * + * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -130,16 +154,15 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1; + * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -148,6 +171,7 @@ public java.lang.String getOutputUriPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -184,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.GcsDestination other = (com.google.cloud.automl.v1beta1.GcsDestination) obj; + com.google.cloud.automl.v1beta1.GcsDestination other = + (com.google.cloud.automl.v1beta1.GcsDestination) obj; - if (!getOutputUriPrefix() - .equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -211,118 +234,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GcsDestination 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.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the output is to be written to.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GcsDestination) com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GcsDestination.class, com.google.cloud.automl.v1beta1.GcsDestination.Builder.class); + com.google.cloud.automl.v1beta1.GcsDestination.class, + com.google.cloud.automl.v1beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GcsDestination.newBuilder() @@ -330,16 +362,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; } @java.lang.Override @@ -370,7 +401,8 @@ public com.google.cloud.automl.v1beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.automl.v1beta1.GcsDestination buildPartial() { - com.google.cloud.automl.v1beta1.GcsDestination result = new com.google.cloud.automl.v1beta1.GcsDestination(this); + com.google.cloud.automl.v1beta1.GcsDestination result = + new com.google.cloud.automl.v1beta1.GcsDestination(this); result.outputUriPrefix_ = outputUriPrefix_; onBuilt(); return result; @@ -380,38 +412,39 @@ public com.google.cloud.automl.v1beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GcsDestination) { - return mergeFrom((com.google.cloud.automl.v1beta1.GcsDestination)other); + return mergeFrom((com.google.cloud.automl.v1beta1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -455,6 +488,8 @@ public Builder mergeFrom( private java.lang.Object outputUriPrefix_ = ""; /** + * + * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -465,13 +500,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1; + * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -480,6 +515,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -490,15 +527,14 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1; + * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -506,6 +542,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -516,20 +554,22 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1; + * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix( - java.lang.String value) { + public Builder setOutputUriPrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUriPrefix_ = value; onChanged(); return this; } /** + * + * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -540,15 +580,18 @@ public Builder setOutputUriPrefix(
      * 
* * string output_uri_prefix = 1; + * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { - + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); onChanged(); return this; } /** + * + * *
      * Required. Google Cloud Storage URI to output directory, up to 2000
      * characters long.
@@ -559,23 +602,23 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1; + * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUriPrefix_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -585,12 +628,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GcsDestination) private static final com.google.cloud.automl.v1beta1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GcsDestination(); } @@ -599,16 +642,16 @@ public static com.google.cloud.automl.v1beta1.GcsDestination getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -623,6 +666,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java index c5f2c44d3..694f7419c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -18,10 +36,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1; + * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** + * + * *
    * Required. Google Cloud Storage URI to output directory, up to 2000
    * characters long.
@@ -32,8 +53,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1; + * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString - getOutputUriPrefixBytes(); + com.google.protobuf.ByteString getOutputUriPrefixBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java index 9b984196a..84f097c47 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,29 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - inputUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + inputUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + inputUris_.add(s); + break; } - inputUris_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { inputUris_ = inputUris_.getUnmodifiableView(); @@ -85,22 +102,27 @@ private GcsSource( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GcsSource.class, com.google.cloud.automl.v1beta1.GcsSource.Builder.class); + com.google.cloud.automl.v1beta1.GcsSource.class, + com.google.cloud.automl.v1beta1.GcsSource.Builder.class); } public static final int INPUT_URIS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList inputUris_; /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -108,13 +130,15 @@ private GcsSource(
    * 
* * repeated string input_uris = 1; + * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList - getInputUrisList() { + public com.google.protobuf.ProtocolStringList getInputUrisList() { return inputUris_; } /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -122,12 +146,15 @@ private GcsSource(
    * 
* * repeated string input_uris = 1; + * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -135,6 +162,7 @@ public int getInputUrisCount() {
    * 
* * repeated string input_uris = 1; + * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -142,6 +170,8 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -149,15 +179,16 @@ public java.lang.String getInputUris(int index) {
    * 
* * repeated string input_uris = 1; + * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString - getInputUrisBytes(int index) { + public com.google.protobuf.ByteString getInputUrisBytes(int index) { return inputUris_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < inputUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUris_.getRaw(i)); } @@ -199,15 +229,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.GcsSource other = (com.google.cloud.automl.v1beta1.GcsSource) obj; + com.google.cloud.automl.v1beta1.GcsSource other = + (com.google.cloud.automl.v1beta1.GcsSource) obj; - if (!getInputUrisList() - .equals(other.getInputUrisList())) return false; + if (!getInputUrisList().equals(other.getInputUrisList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,118 +258,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GcsSource 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.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GcsSource) com.google.cloud.automl.v1beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GcsSource.class, com.google.cloud.automl.v1beta1.GcsSource.Builder.class); + com.google.cloud.automl.v1beta1.GcsSource.class, + com.google.cloud.automl.v1beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GcsSource.newBuilder() @@ -347,16 +386,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,9 +404,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; } @java.lang.Override @@ -387,7 +425,8 @@ public com.google.cloud.automl.v1beta1.GcsSource build() { @java.lang.Override public com.google.cloud.automl.v1beta1.GcsSource buildPartial() { - com.google.cloud.automl.v1beta1.GcsSource result = new com.google.cloud.automl.v1beta1.GcsSource(this); + com.google.cloud.automl.v1beta1.GcsSource result = + new com.google.cloud.automl.v1beta1.GcsSource(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { inputUris_ = inputUris_.getUnmodifiableView(); @@ -402,38 +441,39 @@ public com.google.cloud.automl.v1beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GcsSource) { - return mergeFrom((com.google.cloud.automl.v1beta1.GcsSource)other); + return mergeFrom((com.google.cloud.automl.v1beta1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -480,16 +520,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList inputUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInputUrisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { inputUris_ = new com.google.protobuf.LazyStringArrayList(inputUris_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -497,13 +542,15 @@ private void ensureInputUrisIsMutable() {
      * 
* * repeated string input_uris = 1; + * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList - getInputUrisList() { + public com.google.protobuf.ProtocolStringList getInputUrisList() { return inputUris_.getUnmodifiableView(); } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -511,12 +558,15 @@ private void ensureInputUrisIsMutable() {
      * 
* * repeated string input_uris = 1; + * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -524,6 +574,7 @@ public int getInputUrisCount() {
      * 
* * repeated string input_uris = 1; + * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -531,6 +582,8 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -538,14 +591,16 @@ public java.lang.String getInputUris(int index) {
      * 
* * repeated string input_uris = 1; + * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString - getInputUrisBytes(int index) { + public com.google.protobuf.ByteString getInputUrisBytes(int index) { return inputUris_.getByteString(index); } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -553,21 +608,23 @@ public java.lang.String getInputUris(int index) {
      * 
* * repeated string input_uris = 1; + * * @param index The index to set the value at. * @param value The inputUris to set. * @return This builder for chaining. */ - public Builder setInputUris( - int index, java.lang.String value) { + public Builder setInputUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -575,20 +632,22 @@ public Builder setInputUris(
      * 
* * repeated string input_uris = 1; + * * @param value The inputUris to add. * @return This builder for chaining. */ - public Builder addInputUris( - java.lang.String value) { + public Builder addInputUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -596,18 +655,19 @@ public Builder addInputUris(
      * 
* * repeated string input_uris = 1; + * * @param values The inputUris to add. * @return This builder for chaining. */ - public Builder addAllInputUris( - java.lang.Iterable values) { + public Builder addAllInputUris(java.lang.Iterable values) { ensureInputUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputUris_); onChanged(); return this; } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -615,6 +675,7 @@ public Builder addAllInputUris(
      * 
* * repeated string input_uris = 1; + * * @return This builder for chaining. */ public Builder clearInputUris() { @@ -624,6 +685,8 @@ public Builder clearInputUris() { return this; } /** + * + * *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
@@ -631,23 +694,23 @@ public Builder clearInputUris() {
      * 
* * repeated string input_uris = 1; + * * @param value The bytes of the inputUris to add. * @return This builder for chaining. */ - public Builder addInputUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addInputUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -657,12 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GcsSource) private static final com.google.cloud.automl.v1beta1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GcsSource(); } @@ -671,16 +734,16 @@ public static com.google.cloud.automl.v1beta1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -695,6 +758,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java index a41f6bb75..bb6073fd0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -15,11 +33,13 @@ public interface GcsSourceOrBuilder extends
    * 
* * repeated string input_uris = 1; + * * @return A list containing the inputUris. */ - java.util.List - getInputUrisList(); + java.util.List getInputUrisList(); /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -27,10 +47,13 @@ public interface GcsSourceOrBuilder extends
    * 
* * repeated string input_uris = 1; + * * @return The count of inputUris. */ int getInputUrisCount(); /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -38,11 +61,14 @@ public interface GcsSourceOrBuilder extends
    * 
* * repeated string input_uris = 1; + * * @param index The index of the element to return. * @return The inputUris at the given index. */ java.lang.String getInputUris(int index); /** + * + * *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
@@ -50,9 +76,9 @@ public interface GcsSourceOrBuilder extends
    * 
* * repeated string input_uris = 1; + * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - com.google.protobuf.ByteString - getInputUrisBytes(int index); + com.google.protobuf.ByteString getInputUrisBytes(int index); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java new file mode 100644 index 000000000..e85401c2e --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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\245\001" + + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" + + "toMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1" + + "beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java index fdb50adf6..08ac0f41e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAnnotationSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetAnnotationSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetAnnotationSpecRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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_; /** + * + * *
    * Required. The resource name of the annotation spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 annotation spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest other = + (com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.class, + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.newBuilder() @@ -320,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +375,9 @@ public Builder clear() { } @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; + 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 @@ -360,7 +396,8 @@ public com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest build() { @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); + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest result = + new com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +407,39 @@ public com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +447,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +485,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +509,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +533,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the annotation spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +610,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -564,16 +624,16 @@ public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest getDefaul 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); - } - }; + 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; @@ -588,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java new file mode 100644 index 000000000..580d815e0 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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 { + + /** + * + * + *
+   * Required. The resource name of the annotation spec to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the annotation spec to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java index 2f30875f0..91e1fc8c5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetColumnSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetColumnSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,75 @@ private GetColumnSpecRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + 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(); + name_ = s; + break; } - fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + 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; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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_; /** + * + * *
    * Required. The resource name of the column spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -120,29 +147,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 column spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,11 +182,14 @@ public java.lang.String getName() { 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; + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -165,11 +197,14 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ @java.lang.Override @@ -177,6 +212,8 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * Mask specifying which fields to read.
    * 
@@ -189,6 +226,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +238,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -221,8 +258,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,19 +268,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.GetColumnSpecRequest other = + (com.google.cloud.automl.v1beta1.GetColumnSpecRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask() - .equals(other.getFieldMask())) return false; + if (!getFieldMask().equals(other.getFieldMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -269,117 +304,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.GetColumnSpecRequest.class, + com.google.cloud.automl.v1beta1.GetColumnSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetColumnSpecRequest.newBuilder() @@ -387,16 +431,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +455,9 @@ public Builder clear() { } @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; + 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 @@ -433,7 +476,8 @@ public com.google.cloud.automl.v1beta1.GetColumnSpecRequest build() { @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); + com.google.cloud.automl.v1beta1.GetColumnSpecRequest result = + new com.google.cloud.automl.v1beta1.GetColumnSpecRequest(this); result.name_ = name_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; @@ -448,38 +492,39 @@ public com.google.cloud.automl.v1beta1.GetColumnSpecRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.GetColumnSpecRequest) other); } else { super.mergeFrom(other); return this; @@ -487,7 +532,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetColumnSpecRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetColumnSpecRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.GetColumnSpecRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -514,7 +560,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.GetColumnSpecRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.GetColumnSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,18 +573,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the column spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -546,20 +597,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the column spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -567,54 +621,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the column spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the column spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the column spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -622,24 +689,33 @@ public Builder setNameBytes( 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_; + 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; + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -650,6 +726,8 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -670,14 +748,15 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; */ - public Builder setFieldMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -688,6 +767,8 @@ public Builder setFieldMask( return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -698,7 +779,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -710,6 +791,8 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -728,6 +811,8 @@ public Builder clearFieldMask() { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -735,11 +820,13 @@ public Builder clearFieldMask() { * .google.protobuf.FieldMask field_mask = 2; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -750,11 +837,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -762,21 +850,24 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * .google.protobuf.FieldMask field_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -786,12 +877,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -800,16 +891,16 @@ public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest getDefaultIns 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); - } - }; + 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; @@ -824,6 +915,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GetColumnSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java index c3c2fa8d2..69ed101ba 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java @@ -1,51 +1,84 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +public interface GetColumnSpecRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetColumnSpecRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the column spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the column spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * Mask specifying which fields to read.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java index d8c08544c..10605f7a7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetDatasetRequest} */ -public final class GetDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GetDatasetRequest) GetDatasetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetDatasetRequest.newBuilder() to construct. private GetDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetDatasetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_GetDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetDatasetRequest.class, com.google.cloud.automl.v1beta1.GetDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetDatasetRequest.class, + com.google.cloud.automl.v1beta1.GetDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the dataset to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 dataset to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.GetDatasetRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.GetDatasetRequest other = (com.google.cloud.automl.v1beta1.GetDatasetRequest) obj; + com.google.cloud.automl.v1beta1.GetDatasetRequest other = + (com.google.cloud.automl.v1beta1.GetDatasetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GetDatasetRequest 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.GetDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetDatasetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GetDatasetRequest) com.google.cloud.automl.v1beta1.GetDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetDatasetRequest.class, com.google.cloud.automl.v1beta1.GetDatasetRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetDatasetRequest.class, + com.google.cloud.automl.v1beta1.GetDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetDatasetRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1beta1.GetDatasetRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.GetDatasetRequest buildPartial() { - com.google.cloud.automl.v1beta1.GetDatasetRequest result = new com.google.cloud.automl.v1beta1.GetDatasetRequest(this); + com.google.cloud.automl.v1beta1.GetDatasetRequest result = + new com.google.cloud.automl.v1beta1.GetDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1beta1.GetDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetDatasetRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.GetDatasetRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.GetDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetDatasetRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetDatasetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.GetDatasetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.GetDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.GetDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +508,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +532,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GetDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetDatasetRequest) private static final com.google.cloud.automl.v1beta1.GetDatasetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GetDatasetRequest(); } @@ -564,16 +623,16 @@ public static com.google.cloud.automl.v1beta1.GetDatasetRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GetDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java new file mode 100644 index 000000000..01ff1b52c --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface GetDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the dataset to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the dataset to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java index e2d17e0cf..185c4458f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelEvaluationRequest} */ -public final class GetModelEvaluationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetModelEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GetModelEvaluationRequest) GetModelEvaluationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetModelEvaluationRequest.newBuilder() to construct. private GetModelEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetModelEvaluationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetModelEvaluationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetModelEvaluationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetModelEvaluationRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_GetModelEvaluationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name for the model evaluation.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name for the model evaluation.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.GetModelEvaluationRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest other = (com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) obj; + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest other = + (com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetModelEvaluationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest 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.GetModelEvaluationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelEvaluationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GetModelEvaluationRequest) com.google.cloud.automl.v1beta1.GetModelEvaluationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.newBuilder() @@ -320,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; } @java.lang.Override @@ -360,7 +396,8 @@ public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest buildPartial() { - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest result = new com.google.cloud.automl.v1beta1.GetModelEvaluationRequest(this); + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest result = + new com.google.cloud.automl.v1beta1.GetModelEvaluationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +407,39 @@ public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetModelEvaluationRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.GetModelEvaluationRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +447,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +485,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name for the model evaluation.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +509,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name for the model evaluation.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +533,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name for the model evaluation.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name for the model evaluation.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name for the model evaluation.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +610,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GetModelEvaluationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetModelEvaluationRequest) private static final com.google.cloud.automl.v1beta1.GetModelEvaluationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GetModelEvaluationRequest(); } @@ -564,16 +624,16 @@ public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetModelEvaluationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelEvaluationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetModelEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetModelEvaluationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java new file mode 100644 index 000000000..81798b30a --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface GetModelEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetModelEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name for the model evaluation.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name for the model evaluation.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java index 19c0d1a5d..d716eb3c3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelRequest} */ -public final class GetModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GetModelRequest) GetModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetModelRequest.newBuilder() to construct. private GetModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_GetModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetModelRequest.class, com.google.cloud.automl.v1beta1.GetModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetModelRequest.class, + com.google.cloud.automl.v1beta1.GetModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the model.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the model.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.GetModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.GetModelRequest other = (com.google.cloud.automl.v1beta1.GetModelRequest) obj; + com.google.cloud.automl.v1beta1.GetModelRequest other = + (com.google.cloud.automl.v1beta1.GetModelRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GetModelRequest 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.GetModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.GetModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.GetModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GetModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GetModelRequest) com.google.cloud.automl.v1beta1.GetModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.GetModelRequest.class, com.google.cloud.automl.v1beta1.GetModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.GetModelRequest.class, + com.google.cloud.automl.v1beta1.GetModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetModelRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1beta1.GetModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelRequest buildPartial() { - com.google.cloud.automl.v1beta1.GetModelRequest result = new com.google.cloud.automl.v1beta1.GetModelRequest(this); + com.google.cloud.automl.v1beta1.GetModelRequest result = + new com.google.cloud.automl.v1beta1.GetModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1beta1.GetModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetModelRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.GetModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.GetModelRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetModelRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetModelRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.GetModelRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -445,18 +483,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the model.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +507,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +531,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GetModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetModelRequest) private static final com.google.cloud.automl.v1beta1.GetModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GetModelRequest(); } @@ -564,16 +622,16 @@ public static com.google.cloud.automl.v1beta1.GetModelRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +646,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GetModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java new file mode 100644 index 000000000..92e67a6df --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface GetModelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the model.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the model.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java index e4280fefe..bd92fdf7e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetTableSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetTableSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,75 @@ private GetTableSpecRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + 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(); + name_ = s; + break; } - fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + 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; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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_; /** + * + * *
    * Required. The resource name of the table spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -120,29 +147,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 table spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,11 +182,14 @@ public java.lang.String getName() { 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; + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -165,11 +197,14 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ @java.lang.Override @@ -177,6 +212,8 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * Mask specifying which fields to read.
    * 
@@ -189,6 +226,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +238,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -221,8 +258,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,19 +268,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.GetTableSpecRequest other = + (com.google.cloud.automl.v1beta1.GetTableSpecRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask() - .equals(other.getFieldMask())) return false; + if (!getFieldMask().equals(other.getFieldMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -269,117 +304,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.GetTableSpecRequest.class, + com.google.cloud.automl.v1beta1.GetTableSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.GetTableSpecRequest.newBuilder() @@ -387,16 +431,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +455,9 @@ public Builder clear() { } @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; + 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 @@ -433,7 +476,8 @@ public com.google.cloud.automl.v1beta1.GetTableSpecRequest build() { @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); + com.google.cloud.automl.v1beta1.GetTableSpecRequest result = + new com.google.cloud.automl.v1beta1.GetTableSpecRequest(this); result.name_ = name_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; @@ -448,38 +492,39 @@ public com.google.cloud.automl.v1beta1.GetTableSpecRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.GetTableSpecRequest) other); } else { super.mergeFrom(other); return this; @@ -487,7 +532,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetTableSpecRequest other) { - if (other == com.google.cloud.automl.v1beta1.GetTableSpecRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.GetTableSpecRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -514,7 +560,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.GetTableSpecRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.GetTableSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,18 +573,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the table spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -546,20 +597,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the table spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -567,54 +621,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the table spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the table spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the table spec to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -622,24 +689,33 @@ public Builder setNameBytes( 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_; + 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; + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -650,6 +726,8 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -670,14 +748,15 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; */ - public Builder setFieldMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -688,6 +767,8 @@ public Builder setFieldMask( return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -698,7 +779,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -710,6 +791,8 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -728,6 +811,8 @@ public Builder clearFieldMask() { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -735,11 +820,13 @@ public Builder clearFieldMask() { * .google.protobuf.FieldMask field_mask = 2; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -750,11 +837,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -762,21 +850,24 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * .google.protobuf.FieldMask field_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -786,12 +877,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -800,16 +891,16 @@ public static com.google.cloud.automl.v1beta1.GetTableSpecRequest getDefaultInst 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); - } - }; + 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; @@ -824,6 +915,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.GetTableSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java index 0cb716f08..602d954d1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java @@ -1,51 +1,84 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +public interface GetTableSpecRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetTableSpecRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the table spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the table spec to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * Mask specifying which fields to read.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java index 02a1c0fdf..af9c1ecd6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 an image.
  * Only images up to 30MB in size are supported.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.Image}
  */
-public final class Image extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Image extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Image)
     ImageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Image.newBuilder() to construct.
   private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Image() {
     thumbnailUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Image();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Image(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,72 +71,81 @@ private Image(
           case 0:
             done = true;
             break;
-          case 10: {
-            dataCase_ = 1;
-            data_ = input.readBytes();
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              dataCase_ = 1;
+              data_ = input.readBytes();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            thumbnailUri_ = s;
-            break;
-          }
-          case 50: {
-            com.google.cloud.automl.v1beta1.InputConfig.Builder subBuilder = null;
-            if (dataCase_ == 6) {
-              subBuilder = ((com.google.cloud.automl.v1beta1.InputConfig) data_).toBuilder();
+              thumbnailUri_ = s;
+              break;
             }
-            data_ =
-                input.readMessage(com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.InputConfig) data_);
-              data_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.cloud.automl.v1beta1.InputConfig.Builder subBuilder = null;
+              if (dataCase_ == 6) {
+                subBuilder = ((com.google.cloud.automl.v1beta1.InputConfig) data_).toBuilder();
+              }
+              data_ =
+                  input.readMessage(
+                      com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.InputConfig) data_);
+                data_ = subBuilder.buildPartial();
+              }
+              dataCase_ = 6;
+              break;
             }
-            dataCase_ = 6;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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_Image_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1beta1.DataItems
+        .internal_static_google_cloud_automl_v1beta1_Image_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable
+    return com.google.cloud.automl.v1beta1.DataItems
+        .internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1beta1.Image.class, com.google.cloud.automl.v1beta1.Image.Builder.class);
+            com.google.cloud.automl.v1beta1.Image.class,
+            com.google.cloud.automl.v1beta1.Image.Builder.class);
   }
 
   private int dataCase_ = 0;
   private java.lang.Object data_;
+
   public enum DataCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     IMAGE_BYTES(1),
     INPUT_CONFIG(6),
     DATA_NOT_SET(0);
     private final int value;
+
     private DataCase(int value) {
       this.value = value;
     }
@@ -135,25 +161,30 @@ public static DataCase valueOf(int value) {
 
     public static DataCase forNumber(int value) {
       switch (value) {
-        case 1: return IMAGE_BYTES;
-        case 6: return INPUT_CONFIG;
-        case 0: return DATA_NOT_SET;
-        default: return null;
+        case 1:
+          return IMAGE_BYTES;
+        case 6:
+          return INPUT_CONFIG;
+        case 0:
+          return DATA_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DataCase
-  getDataCase() {
-    return DataCase.forNumber(
-        dataCase_);
+  public DataCase getDataCase() {
+    return DataCase.forNumber(dataCase_);
   }
 
   public static final int IMAGE_BYTES_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -161,6 +192,7 @@ public int getNumber() {
    * 
* * bytes image_bytes = 1; + * * @return Whether the imageBytes field is set. */ @java.lang.Override @@ -168,6 +200,8 @@ public boolean hasImageBytes() { return dataCase_ == 1; } /** + * + * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -175,6 +209,7 @@ public boolean hasImageBytes() {
    * 
* * bytes image_bytes = 1; + * * @return The imageBytes. */ @java.lang.Override @@ -187,11 +222,14 @@ public com.google.protobuf.ByteString getImageBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 6; /** + * + * *
    * An input config specifying the content of the image.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -199,21 +237,26 @@ public boolean hasInputConfig() { return dataCase_ == 6; } /** + * + * *
    * An input config specifying the content of the image.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { if (dataCase_ == 6) { - return (com.google.cloud.automl.v1beta1.InputConfig) data_; + return (com.google.cloud.automl.v1beta1.InputConfig) data_; } return com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance(); } /** + * + * *
    * An input config specifying the content of the image.
    * 
@@ -223,7 +266,7 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (dataCase_ == 6) { - return (com.google.cloud.automl.v1beta1.InputConfig) data_; + return (com.google.cloud.automl.v1beta1.InputConfig) data_; } return com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance(); } @@ -231,11 +274,14 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil public static final int THUMBNAIL_URI_FIELD_NUMBER = 4; private volatile java.lang.Object thumbnailUri_; /** + * + * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; + * * @return The thumbnailUri. */ @java.lang.Override @@ -244,29 +290,29 @@ public java.lang.String getThumbnailUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); thumbnailUri_ = s; return s; } } /** + * + * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; + * * @return The bytes for thumbnailUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getThumbnailUriBytes() { + public com.google.protobuf.ByteString getThumbnailUriBytes() { java.lang.Object ref = thumbnailUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); thumbnailUri_ = b; return b; } else { @@ -275,6 +321,7 @@ public java.lang.String getThumbnailUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,11 +333,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dataCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) data_); + output.writeBytes(1, (com.google.protobuf.ByteString) data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbnailUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, thumbnailUri_); @@ -308,16 +353,17 @@ public int getSerializedSize() { size = 0; if (dataCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) data_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbnailUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, thumbnailUri_); } if (dataCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.automl.v1beta1.InputConfig) data_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.automl.v1beta1.InputConfig) data_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -327,24 +373,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.Image)) { return super.equals(obj); } com.google.cloud.automl.v1beta1.Image other = (com.google.cloud.automl.v1beta1.Image) obj; - if (!getThumbnailUri() - .equals(other.getThumbnailUri())) return false; + if (!getThumbnailUri().equals(other.getThumbnailUri())) return false; if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 1: - if (!getImageBytes() - .equals(other.getImageBytes())) return false; + if (!getImageBytes().equals(other.getImageBytes())) return false; break; case 6: - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; break; case 0: default: @@ -379,97 +422,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.Image parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.Image parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Image parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Image parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.automl.v1beta1.Image parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Image 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.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Image parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.Image parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.Image parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.Image parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.Image parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.Image parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.Image parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A representation of an image.
    * Only images up to 30MB in size are supported.
@@ -477,21 +526,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.Image}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Image)
       com.google.cloud.automl.v1beta1.ImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1beta1.DataItems
+          .internal_static_google_cloud_automl_v1beta1_Image_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable
+      return com.google.cloud.automl.v1beta1.DataItems
+          .internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1beta1.Image.class, com.google.cloud.automl.v1beta1.Image.Builder.class);
+              com.google.cloud.automl.v1beta1.Image.class,
+              com.google.cloud.automl.v1beta1.Image.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.Image.newBuilder()
@@ -499,16 +550,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -520,9 +570,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1beta1.DataItems
+          .internal_static_google_cloud_automl_v1beta1_Image_descriptor;
     }
 
     @java.lang.Override
@@ -541,7 +591,8 @@ public com.google.cloud.automl.v1beta1.Image build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1beta1.Image buildPartial() {
-      com.google.cloud.automl.v1beta1.Image result = new com.google.cloud.automl.v1beta1.Image(this);
+      com.google.cloud.automl.v1beta1.Image result =
+          new com.google.cloud.automl.v1beta1.Image(this);
       if (dataCase_ == 1) {
         result.data_ = data_;
       }
@@ -562,38 +613,39 @@ public com.google.cloud.automl.v1beta1.Image buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.Image) {
-        return mergeFrom((com.google.cloud.automl.v1beta1.Image)other);
+        return mergeFrom((com.google.cloud.automl.v1beta1.Image) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -607,17 +659,20 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Image other) {
         onChanged();
       }
       switch (other.getDataCase()) {
-        case IMAGE_BYTES: {
-          setImageBytes(other.getImageBytes());
-          break;
-        }
-        case INPUT_CONFIG: {
-          mergeInputConfig(other.getInputConfig());
-          break;
-        }
-        case DATA_NOT_SET: {
-          break;
-        }
+        case IMAGE_BYTES:
+          {
+            setImageBytes(other.getImageBytes());
+            break;
+          }
+        case INPUT_CONFIG:
+          {
+            mergeInputConfig(other.getInputConfig());
+            break;
+          }
+        case DATA_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -647,12 +702,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int dataCase_ = 0;
     private java.lang.Object data_;
-    public DataCase
-        getDataCase() {
-      return DataCase.forNumber(
-          dataCase_);
+
+    public DataCase getDataCase() {
+      return DataCase.forNumber(dataCase_);
     }
 
     public Builder clearData() {
@@ -662,8 +717,9 @@ public Builder clearData() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -671,12 +727,15 @@ public Builder clearData() {
      * 
* * bytes image_bytes = 1; + * * @return Whether the imageBytes field is set. */ public boolean hasImageBytes() { return dataCase_ == 1; } /** + * + * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -684,6 +743,7 @@ public boolean hasImageBytes() {
      * 
* * bytes image_bytes = 1; + * * @return The imageBytes. */ public com.google.protobuf.ByteString getImageBytes() { @@ -693,6 +753,8 @@ public com.google.protobuf.ByteString getImageBytes() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -700,19 +762,22 @@ public com.google.protobuf.ByteString getImageBytes() {
      * 
* * bytes image_bytes = 1; + * * @param value The imageBytes to set. * @return This builder for chaining. */ public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - dataCase_ = 1; + throw new NullPointerException(); + } + dataCase_ = 1; data_ = value; onChanged(); return this; } /** + * + * *
      * Image content represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -720,6 +785,7 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes image_bytes = 1; + * * @return This builder for chaining. */ public Builder clearImageBytes() { @@ -732,13 +798,19 @@ public Builder clearImageBytes() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.automl.v1beta1.InputConfig, + com.google.cloud.automl.v1beta1.InputConfig.Builder, + com.google.cloud.automl.v1beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * An input config specifying the content of the image.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -746,11 +818,14 @@ public boolean hasInputConfig() { return dataCase_ == 6; } /** + * + * *
      * An input config specifying the content of the image.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; + * * @return The inputConfig. */ @java.lang.Override @@ -768,6 +843,8 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { } } /** + * + * *
      * An input config specifying the content of the image.
      * 
@@ -788,6 +865,8 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) return this; } /** + * + * *
      * An input config specifying the content of the image.
      * 
@@ -806,6 +885,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * An input config specifying the content of the image.
      * 
@@ -814,10 +895,13 @@ public Builder setInputConfig( */ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { - if (dataCase_ == 6 && - data_ != com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance()) { - data_ = com.google.cloud.automl.v1beta1.InputConfig.newBuilder((com.google.cloud.automl.v1beta1.InputConfig) data_) - .mergeFrom(value).buildPartial(); + if (dataCase_ == 6 + && data_ != com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance()) { + data_ = + com.google.cloud.automl.v1beta1.InputConfig.newBuilder( + (com.google.cloud.automl.v1beta1.InputConfig) data_) + .mergeFrom(value) + .buildPartial(); } else { data_ = value; } @@ -832,6 +916,8 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.InputConfig valu return this; } /** + * + * *
      * An input config specifying the content of the image.
      * 
@@ -855,6 +941,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * An input config specifying the content of the image.
      * 
@@ -865,6 +953,8 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder getInputConfigBuilder return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * An input config specifying the content of the image.
      * 
@@ -883,6 +973,8 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil } } /** + * + * *
      * An input config specifying the content of the image.
      * 
@@ -890,38 +982,46 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil * .google.cloud.automl.v1beta1.InputConfig input_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder> + com.google.cloud.automl.v1beta1.InputConfig, + com.google.cloud.automl.v1beta1.InputConfig.Builder, + com.google.cloud.automl.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { if (!(dataCase_ == 6)) { data_ = com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance(); } - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder>( + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.InputConfig, + com.google.cloud.automl.v1beta1.InputConfig.Builder, + com.google.cloud.automl.v1beta1.InputConfigOrBuilder>( (com.google.cloud.automl.v1beta1.InputConfig) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 6; - onChanged();; + onChanged(); + ; return inputConfigBuilder_; } private java.lang.Object thumbnailUri_ = ""; /** + * + * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; + * * @return The thumbnailUri. */ public java.lang.String getThumbnailUri() { java.lang.Object ref = thumbnailUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); thumbnailUri_ = s; return s; @@ -930,20 +1030,21 @@ public java.lang.String getThumbnailUri() { } } /** + * + * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; + * * @return The bytes for thumbnailUri. */ - public com.google.protobuf.ByteString - getThumbnailUriBytes() { + public com.google.protobuf.ByteString getThumbnailUriBytes() { java.lang.Object ref = thumbnailUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); thumbnailUri_ = b; return b; } else { @@ -951,61 +1052,68 @@ public java.lang.String getThumbnailUri() { } } /** + * + * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; + * * @param value The thumbnailUri to set. * @return This builder for chaining. */ - public Builder setThumbnailUri( - java.lang.String value) { + public Builder setThumbnailUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + thumbnailUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; + * * @return This builder for chaining. */ public Builder clearThumbnailUri() { - + thumbnailUri_ = getDefaultInstance().getThumbnailUri(); onChanged(); return this; } /** + * + * *
      * Output only. HTTP URI to the thumbnail image.
      * 
* * string thumbnail_uri = 4; + * * @param value The bytes for thumbnailUri to set. * @return This builder for chaining. */ - public Builder setThumbnailUriBytes( - com.google.protobuf.ByteString value) { + public Builder setThumbnailUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + thumbnailUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1015,12 +1123,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Image) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Image) private static final com.google.cloud.automl.v1beta1.Image DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Image(); } @@ -1029,16 +1137,16 @@ public static com.google.cloud.automl.v1beta1.Image getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Image parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Image(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Image(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1053,6 +1161,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java index b4e6df2e9..5e4ab281b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/image.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Dataset metadata that is specific to image classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata} */ -public final class ImageClassificationDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageClassificationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) ImageClassificationDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageClassificationDatasetMetadata.newBuilder() to construct. - private ImageClassificationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationDatasetMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageClassificationDatasetMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageClassificationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageClassificationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,72 +71,89 @@ private ImageClassificationDatasetMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + classificationType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_ImageClassificationDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.class, + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 1; private int classificationType_; /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The classificationType. */ - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { + @java.lang.Override + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); - return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( + classificationType_); + return result == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,9 +165,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (classificationType_ + != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + .CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, classificationType_); } unknownFields.writeTo(output); @@ -144,9 +181,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, classificationType_); + if (classificationType_ + != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + .CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -156,12 +195,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata other = (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) obj; + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata other = + (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -183,134 +223,145 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ImageClassificationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata 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.ImageClassificationDatasetMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata 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.ImageClassificationDatasetMetadata + 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.ImageClassificationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Dataset metadata that is specific to image classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.class, + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.Builder.class); } - // Construct using com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,14 +371,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + .getDefaultInstance(); } @java.lang.Override @@ -341,7 +394,8 @@ public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata build( @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata result = new com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata(this); + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata result = + new com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -351,46 +405,51 @@ public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ImageClassificationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata)other); + return mergeFrom( + (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata other) { - if (other == com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + .getDefaultInstance()) return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -413,7 +472,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -425,80 +486,102 @@ public Builder mergeFrom( private int classificationType_ = 0; /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The classificationType. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); - return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( + classificationType_); + return result == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @param value The classificationType to set. * @return This builder for chaining. */ - public Builder setClassificationType(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { + public Builder setClassificationType( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -508,30 +591,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) - private static final com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata(); } - public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -543,9 +628,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java index c915e6313..b7c177d77 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/image.proto package com.google.cloud.automl.v1beta1; -public interface ImageClassificationDatasetMetadataOrBuilder extends +public interface ImageClassificationDatasetMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The classificationType. */ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java index afd15a9ae..1e368ef93 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadata.java @@ -1,39 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 Classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata} */ -public final class ImageClassificationModelDeploymentMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageClassificationModelDeploymentMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) ImageClassificationModelDeploymentMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageClassificationModelDeploymentMetadata.newBuilder() to construct. - private ImageClassificationModelDeploymentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationModelDeploymentMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageClassificationModelDeploymentMetadata() { - } + + private ImageClassificationModelDeploymentMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageClassificationModelDeploymentMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageClassificationModelDeploymentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,46 +70,51 @@ private ImageClassificationModelDeploymentMetadata( case 0: done = true; break; - case 8: { - - nodeCount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + nodeCount_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_ImageClassificationModelDeploymentMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder.class); + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.class, + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.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
@@ -101,6 +124,7 @@ private ImageClassificationModelDeploymentMetadata(
    * 
* * int64 node_count = 1; + * * @return The nodeCount. */ @java.lang.Override @@ -109,6 +133,7 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +145,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nodeCount_ != 0L) { output.writeInt64(1, nodeCount_); } @@ -135,8 +159,7 @@ public int getSerializedSize() { size = 0; if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nodeCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -146,15 +169,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata)) { + if (!(obj + instanceof com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata other = (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) obj; + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata other = + (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) obj; - if (getNodeCount() - != other.getNodeCount()) return false; + if (getNodeCount() != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -167,142 +191,158 @@ public int hashCode() { 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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getNodeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + 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.ImageClassificationModelDeploymentMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + 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.ImageClassificationModelDeploymentMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + 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.ImageClassificationModelDeploymentMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata 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.ImageClassificationModelDeploymentMetadata + 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.ImageClassificationModelDeploymentMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata 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.ImageClassificationModelDeploymentMetadata + 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.ImageClassificationModelDeploymentMetadata 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.ImageClassificationModelDeploymentMetadata + 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.ImageClassificationModelDeploymentMetadata parseFrom( - com.google.protobuf.CodedInputStream 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.ImageClassificationModelDeploymentMetadata + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model deployment metadata specific to Image Classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder.class); + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.class, + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.Builder + .class); } - // Construct using com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,19 +352,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance(); + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata build() { - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata result = buildPartial(); + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -332,8 +375,10 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadat } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata buildPartial() { - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata result = new com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata(this); + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + buildPartial() { + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata result = + new com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata(this); result.nodeCount_ = nodeCount_; onBuilt(); return result; @@ -343,46 +388,52 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ImageClassificationModelDeploymentMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata)other); + if (other + instanceof com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata other) { - if (other == com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + .getDefaultInstance()) return this; if (other.getNodeCount() != 0L) { setNodeCount(other.getNodeCount()); } @@ -401,11 +452,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parsedMessage = null; + com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -415,8 +469,10 @@ public Builder mergeFrom( return this; } - private long nodeCount_ ; + 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
@@ -426,6 +482,7 @@ public Builder mergeFrom(
      * 
* * int64 node_count = 1; + * * @return The nodeCount. */ @java.lang.Override @@ -433,6 +490,8 @@ 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
@@ -442,16 +501,19 @@ public long getNodeCount() {
      * 
* * int64 node_count = 1; + * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -461,17 +523,18 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 1; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -481,30 +544,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) - private static final com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata(); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationModelDeploymentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationModelDeploymentMetadata(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationModelDeploymentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationModelDeploymentMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -516,9 +583,8 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java index 5fec803c1..f40580896 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelDeploymentMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/image.proto package com.google.cloud.automl.v1beta1; -public interface ImageClassificationModelDeploymentMetadataOrBuilder extends +public interface ImageClassificationModelDeploymentMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata) 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
@@ -17,6 +35,7 @@ public interface ImageClassificationModelDeploymentMetadataOrBuilder extends
    * 
* * int64 node_count = 1; + * * @return The nodeCount. */ long getNodeCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java similarity index 80% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java index 905f4e594..b1825563c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/image.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Model metadata for image classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationModelMetadata} */ -public final class ImageClassificationModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageClassificationModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) ImageClassificationModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageClassificationModelMetadata.newBuilder() to construct. - private ImageClassificationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageClassificationModelMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageClassificationModelMetadata() { baseModelId_ = ""; stopReason_ = ""; @@ -27,16 +46,15 @@ private ImageClassificationModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageClassificationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageClassificationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,79 +73,86 @@ private ImageClassificationModelMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - baseModelId_ = s; - break; - } - case 16: { - - trainBudget_ = input.readInt64(); - break; - } - case 24: { - - trainCost_ = input.readInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - stopReason_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - modelType_ = s; - break; - } - case 105: { + baseModelId_ = s; + break; + } + case 16: + { + trainBudget_ = input.readInt64(); + break; + } + case 24: + { + trainCost_ = input.readInt64(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - nodeQps_ = input.readDouble(); - break; - } - case 112: { + stopReason_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - nodeCount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + modelType_ = s; + break; + } + case 105: + { + nodeQps_ = input.readDouble(); + break; + } + case 112: + { + nodeCount_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_ImageClassificationModelMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.class, + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder.class); } public static final int BASE_MODEL_ID_FIELD_NUMBER = 1; private volatile java.lang.Object baseModelId_; /** + * + * *
    * 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
@@ -137,6 +162,7 @@ private ImageClassificationModelMetadata(
    * 
* * string base_model_id = 1; + * * @return The baseModelId. */ @java.lang.Override @@ -145,14 +171,15 @@ public java.lang.String getBaseModelId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModelId_ = s; return s; } } /** + * + * *
    * 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
@@ -162,16 +189,15 @@ public java.lang.String getBaseModelId() {
    * 
* * string base_model_id = 1; + * * @return The bytes for baseModelId. */ @java.lang.Override - public com.google.protobuf.ByteString - getBaseModelIdBytes() { + public com.google.protobuf.ByteString getBaseModelIdBytes() { java.lang.Object ref = baseModelId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseModelId_ = b; return b; } else { @@ -182,12 +208,15 @@ public java.lang.String getBaseModelId() { public static final int TRAIN_BUDGET_FIELD_NUMBER = 2; private long trainBudget_; /** + * + * *
    * 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; + * * @return The trainBudget. */ @java.lang.Override @@ -198,6 +227,8 @@ public long getTrainBudget() { public static final int TRAIN_COST_FIELD_NUMBER = 3; private long trainCost_; /** + * + * *
    * 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
@@ -205,6 +236,7 @@ public long getTrainBudget() {
    * 
* * int64 train_cost = 3; + * * @return The trainCost. */ @java.lang.Override @@ -215,12 +247,15 @@ public long getTrainCost() { public static final int STOP_REASON_FIELD_NUMBER = 5; private volatile java.lang.Object stopReason_; /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The stopReason. */ @java.lang.Override @@ -229,30 +264,30 @@ public java.lang.String getStopReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; } } /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ @java.lang.Override - public com.google.protobuf.ByteString - getStopReasonBytes() { + public com.google.protobuf.ByteString getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stopReason_ = b; return b; } else { @@ -263,6 +298,8 @@ public java.lang.String getStopReason() { 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.
@@ -300,6 +337,7 @@ public java.lang.String getStopReason() {
    * 
* * string model_type = 7; + * * @return The modelType. */ @java.lang.Override @@ -308,14 +346,15 @@ public java.lang.String getModelType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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.
@@ -353,16 +392,15 @@ public java.lang.String getModelType() {
    * 
* * string model_type = 7; + * * @return The bytes for modelType. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelType_ = b; return b; } else { @@ -373,12 +411,15 @@ public java.lang.String getModelType() { public static final int NODE_QPS_FIELD_NUMBER = 13; 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 = 13; + * * @return The nodeQps. */ @java.lang.Override @@ -389,6 +430,8 @@ public double getNodeQps() { public static final int NODE_COUNT_FIELD_NUMBER = 14; 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
@@ -396,6 +439,7 @@ public double getNodeQps() {
    * 
* * int64 node_count = 14; + * * @return The nodeCount. */ @java.lang.Override @@ -404,6 +448,7 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -415,8 +460,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseModelId_); } @@ -451,12 +495,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseModelId_); } if (trainBudget_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, trainBudget_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, trainBudget_); } if (trainCost_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, trainCost_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, trainCost_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stopReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stopReason_); @@ -465,12 +507,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, modelType_); } if (nodeQps_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(13, nodeQps_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(13, nodeQps_); } if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, nodeCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -480,28 +520,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata other = (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) obj; - - if (!getBaseModelId() - .equals(other.getBaseModelId())) return false; - 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; + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata other = + (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) obj; + + if (!getBaseModelId().equals(other.getBaseModelId())) return false; + 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 (java.lang.Double.doubleToLongBits(getNodeQps()) - != java.lang.Double.doubleToLongBits( - other.getNodeQps())) return false; - if (getNodeCount() - != other.getNodeCount()) return false; + != java.lang.Double.doubleToLongBits(other.getNodeQps())) return false; + if (getNodeCount() != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -516,138 +550,147 @@ public int hashCode() { hash = (37 * hash) + BASE_MODEL_ID_FIELD_NUMBER; hash = (53 * hash) + getBaseModelId().hashCode(); hash = (37 * hash) + TRAIN_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTrainBudget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainBudget()); hash = (37 * hash) + TRAIN_COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTrainCost()); + 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 = (37 * hash) + NODE_QPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getNodeQps())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNodeQps())); hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNodeCount()); + 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.ImageClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ImageClassificationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata 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.ImageClassificationModelMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model metadata for image classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImageClassificationModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.class, com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.class, + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.newBuilder() @@ -655,16 +698,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -686,13 +728,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); } @@ -707,7 +750,8 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata build() @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata buildPartial() { - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata result = new com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata(this); + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata result = + new com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata(this); result.baseModelId_ = baseModelId_; result.trainBudget_ = trainBudget_; result.trainCost_ = trainCost_; @@ -723,46 +767,50 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ImageClassificationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance()) + return this; if (!other.getBaseModelId().isEmpty()) { baseModelId_ = other.baseModelId_; onChanged(); @@ -806,7 +854,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -818,6 +868,8 @@ public Builder mergeFrom( private java.lang.Object baseModelId_ = ""; /** + * + * *
      * 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
@@ -827,13 +879,13 @@ public Builder mergeFrom(
      * 
* * string base_model_id = 1; + * * @return The baseModelId. */ public java.lang.String getBaseModelId() { java.lang.Object ref = baseModelId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModelId_ = s; return s; @@ -842,6 +894,8 @@ 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
@@ -851,15 +905,14 @@ public java.lang.String getBaseModelId() {
      * 
* * string base_model_id = 1; + * * @return The bytes for baseModelId. */ - public com.google.protobuf.ByteString - getBaseModelIdBytes() { + public com.google.protobuf.ByteString getBaseModelIdBytes() { java.lang.Object ref = baseModelId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseModelId_ = b; return b; } else { @@ -867,6 +920,8 @@ 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
@@ -876,20 +931,22 @@ public java.lang.String getBaseModelId() {
      * 
* * string base_model_id = 1; + * * @param value The baseModelId to set. * @return This builder for chaining. */ - public Builder setBaseModelId( - java.lang.String value) { + public Builder setBaseModelId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + baseModelId_ = value; onChanged(); return this; } /** + * + * *
      * 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
@@ -899,15 +956,18 @@ public Builder setBaseModelId(
      * 
* * string base_model_id = 1; + * * @return This builder for chaining. */ public Builder clearBaseModelId() { - + baseModelId_ = getDefaultInstance().getBaseModelId(); onChanged(); return this; } /** + * + * *
      * 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
@@ -917,29 +977,32 @@ public Builder clearBaseModelId() {
      * 
* * string base_model_id = 1; + * * @param value The bytes for baseModelId to set. * @return This builder for chaining. */ - public Builder setBaseModelIdBytes( - com.google.protobuf.ByteString value) { + public Builder setBaseModelIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseModelId_ = value; onChanged(); return this; } - private long trainBudget_ ; + private long trainBudget_; /** + * + * *
      * 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; + * * @return The trainBudget. */ @java.lang.Override @@ -947,39 +1010,47 @@ public long getTrainBudget() { return trainBudget_; } /** + * + * *
      * 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; + * * @param value The trainBudget to set. * @return This builder for chaining. */ public Builder setTrainBudget(long value) { - + trainBudget_ = value; onChanged(); return this; } /** + * + * *
      * 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; + * * @return This builder for chaining. */ public Builder clearTrainBudget() { - + trainBudget_ = 0L; onChanged(); return this; } - private long trainCost_ ; + private long trainCost_; /** + * + * *
      * 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
@@ -987,6 +1058,7 @@ public Builder clearTrainBudget() {
      * 
* * int64 train_cost = 3; + * * @return The trainCost. */ @java.lang.Override @@ -994,6 +1066,8 @@ public long getTrainCost() { return trainCost_; } /** + * + * *
      * 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
@@ -1001,16 +1075,19 @@ public long getTrainCost() {
      * 
* * int64 train_cost = 3; + * * @param value The trainCost to set. * @return This builder for chaining. */ public Builder setTrainCost(long value) { - + trainCost_ = value; onChanged(); return this; } /** + * + * *
      * 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
@@ -1018,10 +1095,11 @@ public Builder setTrainCost(long value) {
      * 
* * int64 train_cost = 3; + * * @return This builder for chaining. */ public Builder clearTrainCost() { - + trainCost_ = 0L; onChanged(); return this; @@ -1029,19 +1107,21 @@ public Builder clearTrainCost() { private java.lang.Object stopReason_ = ""; /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return The stopReason. */ public java.lang.String getStopReason() { java.lang.Object ref = stopReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; @@ -1050,21 +1130,22 @@ public java.lang.String getStopReason() { } } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ - public com.google.protobuf.ByteString - getStopReasonBytes() { + public com.google.protobuf.ByteString getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stopReason_ = b; return b; } else { @@ -1072,57 +1153,64 @@ public java.lang.String getStopReason() { } } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @param value The stopReason to set. * @return This builder for chaining. */ - public Builder setStopReason( - java.lang.String value) { + public Builder setStopReason(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stopReason_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return This builder for chaining. */ public Builder clearStopReason() { - + stopReason_ = getDefaultInstance().getStopReason(); onChanged(); return this; } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @param value The bytes for stopReason to set. * @return This builder for chaining. */ - public Builder setStopReasonBytes( - com.google.protobuf.ByteString value) { + public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stopReason_ = value; onChanged(); return this; @@ -1130,6 +1218,8 @@ public Builder setStopReasonBytes( 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.
@@ -1167,13 +1257,13 @@ public Builder setStopReasonBytes(
      * 
* * string model_type = 7; + * * @return The modelType. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelType_ = s; return s; @@ -1182,6 +1272,8 @@ public java.lang.String getModelType() { } } /** + * + * *
      * Optional. Type of the model. The available values are:
      * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -1219,15 +1311,14 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 7; + * * @return The bytes for modelType. */ - public com.google.protobuf.ByteString - getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelType_ = b; return b; } else { @@ -1235,6 +1326,8 @@ public java.lang.String getModelType() { } } /** + * + * *
      * Optional. Type of the model. The available values are:
      * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -1272,20 +1365,22 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 7; + * * @param value The modelType to set. * @return This builder for chaining. */ - public Builder setModelType( - java.lang.String value) { + public Builder setModelType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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.
@@ -1323,15 +1418,18 @@ public Builder setModelType(
      * 
* * string model_type = 7; + * * @return This builder for chaining. */ 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.
@@ -1369,29 +1467,32 @@ public Builder clearModelType() {
      * 
* * string model_type = 7; + * * @param value The bytes for modelType to set. * @return This builder for chaining. */ - public Builder setModelTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelType_ = value; onChanged(); return this; } - private double nodeQps_ ; + 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 = 13; + * * @return The nodeQps. */ @java.lang.Override @@ -1399,39 +1500,47 @@ 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 = 13; + * * @param value The nodeQps to set. * @return This builder for chaining. */ 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 = 13; + * * @return This builder for chaining. */ public Builder clearNodeQps() { - + nodeQps_ = 0D; onChanged(); return this; } - private long nodeCount_ ; + 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
@@ -1439,6 +1548,7 @@ public Builder clearNodeQps() {
      * 
* * int64 node_count = 14; + * * @return The nodeCount. */ @java.lang.Override @@ -1446,6 +1556,8 @@ 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
@@ -1453,16 +1565,19 @@ public long getNodeCount() {
      * 
* * int64 node_count = 14; + * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -1470,17 +1585,18 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 14; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1490,30 +1606,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) - private static final com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata(); } - public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1525,9 +1643,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java similarity index 89% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java index e7de2f63b..747152091 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/image.proto package com.google.cloud.automl.v1beta1; -public interface ImageClassificationModelMetadataOrBuilder extends +public interface ImageClassificationModelMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * 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
@@ -17,10 +35,13 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * string base_model_id = 1; + * * @return The baseModelId. */ 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
@@ -30,23 +51,28 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * string base_model_id = 1; + * * @return The bytes for baseModelId. */ - com.google.protobuf.ByteString - getBaseModelIdBytes(); + com.google.protobuf.ByteString getBaseModelIdBytes(); /** + * + * *
    * 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; + * * @return The trainBudget. */ long getTrainBudget(); /** + * + * *
    * 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
@@ -54,33 +80,41 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * int64 train_cost = 3; + * * @return The trainCost. */ long getTrainCost(); /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The stopReason. */ java.lang.String getStopReason(); /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ - com.google.protobuf.ByteString - getStopReasonBytes(); + 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.
@@ -118,10 +152,13 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * string model_type = 7; + * * @return The modelType. */ java.lang.String getModelType(); /** + * + * *
    * Optional. Type of the model. The available values are:
    * *   `cloud` - Model to be used via prediction calls to AutoML API.
@@ -159,23 +196,28 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * string model_type = 7; + * * @return The bytes for modelType. */ - com.google.protobuf.ByteString - getModelTypeBytes(); + com.google.protobuf.ByteString getModelTypeBytes(); /** + * + * *
    * 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 = 13; + * * @return The nodeQps. */ double getNodeQps(); /** + * + * *
    * 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
@@ -183,6 +225,7 @@ public interface ImageClassificationModelMetadataOrBuilder extends
    * 
* * int64 node_count = 14; + * * @return The nodeCount. */ long getNodeCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java index 861b60e75..a722d9fcb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java @@ -1,39 +1,56 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use ImageObjectDetectionAnnotation.newBuilder() to construct. - private ImageObjectDetectionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionAnnotation( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageObjectDetectionAnnotation() { - } + + private ImageObjectDetectionAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageObjectDetectionAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageObjectDetectionAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,64 +69,72 @@ private ImageObjectDetectionAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + 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; } - boundingBox_ = input.readMessage(com.google.cloud.automl.v1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 21: + { + score_ = input.readFloat(); + break; } - - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -117,18 +142,25 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * Output only. The rectangle representing the object location.
    * 
@@ -143,12 +175,15 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui 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; + * * @return The score. */ @java.lang.Override @@ -157,6 +192,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingBox_ != null) { output.writeMessage(1, getBoundingBox()); } @@ -186,12 +221,10 @@ public int getSerializedSize() { size = 0; if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingBox()); } if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -201,21 +234,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getBoundingBox().equals(other.getBoundingBox())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,125 +264,134 @@ public int hashCode() { hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + 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 { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.newBuilder() @@ -358,16 +399,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -383,13 +423,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); } @@ -404,7 +445,8 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation build() { @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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation result = + new com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation(this); if (boundingBoxBuilder_ == null) { result.boundingBox_ = boundingBox_; } else { @@ -419,38 +461,39 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) other); } else { super.mergeFrom(other); return this; @@ -458,7 +501,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation other) { - if (other == com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance()) + return this; if (other.hasBoundingBox()) { mergeBoundingBox(other.getBoundingBox()); } @@ -484,7 +529,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -496,34 +543,47 @@ public Builder mergeFrom( 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_; + 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; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + * * @return The boundingBox. */ public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -544,6 +604,8 @@ public Builder setBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly value return this; } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -562,6 +624,8 @@ public Builder setBoundingBox( return this; } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -572,7 +636,9 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly val if (boundingBoxBuilder_ == null) { if (boundingBox_ != null) { boundingBox_ = - com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingBox_) + .mergeFrom(value) + .buildPartial(); } else { boundingBox_ = value; } @@ -584,6 +650,8 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly val return this; } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -602,6 +670,8 @@ public Builder clearBoundingBox() { return this; } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -609,11 +679,13 @@ public Builder clearBoundingBox() { * .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.
      * 
@@ -624,11 +696,14 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui if (boundingBoxBuilder_ != null) { return boundingBoxBuilder_.getMessageOrBuilder(); } else { - return boundingBox_ == null ? - com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } } /** + * + * *
      * Output only. The rectangle representing the object location.
      * 
@@ -636,27 +711,33 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui * .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> + 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()); + 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_ ; + 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; + * * @return The score. */ @java.lang.Override @@ -664,39 +745,45 @@ 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; + * * @param value The score to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -706,30 +793,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -741,9 +830,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java index ad98f8505..2988e1bb4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * Output only. The rectangle representing the object location.
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + * * @return The boundingBox. */ com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * Output only. The rectangle representing the object location.
    * 
@@ -35,12 +59,15 @@ public interface ImageObjectDetectionAnnotationOrBuilder extends 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; + * * @return The score. */ float getScore(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java index 530938955..d7435ce81 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java @@ -1,39 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use ImageObjectDetectionDatasetMetadata.newBuilder() to construct. - private ImageObjectDetectionDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionDatasetMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageObjectDetectionDatasetMetadata() { - } + + private ImageObjectDetectionDatasetMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageObjectDetectionDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageObjectDetectionDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +70,42 @@ private ImageObjectDetectionDatasetMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; @@ -96,8 +117,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +135,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata other = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,134 +160,145 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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 + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder.class); } - // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,14 +306,16 @@ public Builder clear() { } @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; + 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(); + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + .getDefaultInstance(); } @java.lang.Override @@ -295,7 +329,8 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata build @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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata result = + new com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata(this); onBuilt(); return result; } @@ -304,46 +339,51 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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; @@ -363,7 +403,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +414,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,30 +426,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -419,9 +463,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java new file mode 100644 index 000000000..e2daa6796 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java index 2e47233bf..9b12e97d8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.
@@ -11,31 +28,33 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics}
  */
-public final class ImageObjectDetectionEvaluationMetrics extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  private static final long serialVersionUID = 0L;
   // Use ImageObjectDetectionEvaluationMetrics.newBuilder() to construct.
-  private ImageObjectDetectionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ImageObjectDetectionEvaluationMetrics(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImageObjectDetectionEvaluationMetrics() {
     boundingBoxMetricsEntries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImageObjectDetectionEvaluationMetrics();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImageObjectDetectionEvaluationMetrics(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,69 +74,80 @@ private ImageObjectDetectionEvaluationMetrics(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            evaluatedBoundingBoxCount_ = input.readInt32();
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              boundingBoxMetricsEntries_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 8:
+            {
+              evaluatedBoundingBoxCount_ = input.readInt32();
+              break;
             }
-            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;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                boundingBoxMetricsEntries_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              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;
             }
-            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        boundingBoxMetricsEntries_ = java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+        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;
+
+  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
+    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);
+            com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.class,
+            com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder.class);
   }
 
   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; + * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -126,8 +156,11 @@ public int getEvaluatedBoundingBoxCount() { } public static final int BOUNDING_BOX_METRICS_ENTRIES_FIELD_NUMBER = 2; - private java.util.List boundingBoxMetricsEntries_; + 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
@@ -135,13 +168,18 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ @java.lang.Override - public java.util.List getBoundingBoxMetricsEntriesList() { + 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
@@ -149,14 +187,18 @@ public java.util.List g
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ @java.lang.Override - public java.util.List + 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
@@ -164,13 +206,17 @@ public java.util.List g
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ @java.lang.Override 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
@@ -178,13 +224,18 @@ public int getBoundingBoxMetricsEntriesCount() {
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index) { + 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
@@ -192,23 +243,28 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( - int index) { + 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; + * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -217,6 +273,7 @@ public float getBoundingBoxMeanAveragePrecision() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +285,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (evaluatedBoundingBoxCount_ != 0) { output.writeInt32(1, evaluatedBoundingBoxCount_); } @@ -249,16 +305,17 @@ public int getSerializedSize() { size = 0; if (evaluatedBoundingBoxCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, evaluatedBoundingBoxCount_); + 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)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, boundingBoxMetricsEntries_.get(i)); } if (boundingBoxMeanAveragePrecision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, boundingBoxMeanAveragePrecision_); + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 3, boundingBoxMeanAveragePrecision_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -268,20 +325,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (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; + != java.lang.Float.floatToIntBits(other.getBoundingBoxMeanAveragePrecision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,104 +356,112 @@ public int hashCode() { hash = (53 * hash) + getBoundingBoxMetricsEntriesList().hashCode(); } hash = (37 * hash) + BOUNDING_BOX_MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoundingBoxMeanAveragePrecision()); + 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 { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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 + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -405,39 +469,42 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.class,
+              com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder.class);
     }
 
-    // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.newBuilder()
+    // Construct using
+    // com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getBoundingBoxMetricsEntriesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -455,14 +522,16 @@ public Builder clear() {
     }
 
     @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;
+    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();
+    public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics
+        getDefaultInstanceForType() {
+      return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -476,12 +545,14 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics bui
 
     @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);
+      com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics result =
+          new com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics(this);
       int from_bitField0_ = bitField0_;
       result.evaluatedBoundingBoxCount_ = evaluatedBoundingBoxCount_;
       if (boundingBoxMetricsEntriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          boundingBoxMetricsEntries_ = java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+          boundingBoxMetricsEntries_ =
+              java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.boundingBoxMetricsEntries_ = boundingBoxMetricsEntries_;
@@ -497,46 +568,51 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics bui
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        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;
+    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());
       }
@@ -558,9 +634,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageObjectDetectionEva
             boundingBoxMetricsEntriesBuilder_ = null;
             boundingBoxMetricsEntries_ = other.boundingBoxMetricsEntries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingBoxMetricsEntriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBoundingBoxMetricsEntriesFieldBuilder() : null;
+            boundingBoxMetricsEntriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBoundingBoxMetricsEntriesFieldBuilder()
+                    : null;
           } else {
             boundingBoxMetricsEntriesBuilder_.addAllMessages(other.boundingBoxMetricsEntries_);
           }
@@ -588,7 +665,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -597,16 +676,20 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private int evaluatedBoundingBoxCount_ ;
+    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; + * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -614,50 +697,64 @@ 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; + * * @param value The evaluatedBoundingBoxCount to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearEvaluatedBoundingBoxCount() { - + evaluatedBoundingBoxCount_ = 0; onChanged(); return this; } - private java.util.List boundingBoxMetricsEntries_ = - java.util.Collections.emptyList(); + private java.util.List + boundingBoxMetricsEntries_ = java.util.Collections.emptyList(); + private void ensureBoundingBoxMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingBoxMetricsEntries_ = new java.util.ArrayList(boundingBoxMetricsEntries_); + boundingBoxMetricsEntries_ = + new java.util.ArrayList( + boundingBoxMetricsEntries_); bitField0_ |= 0x00000001; - } + } } 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_; + 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
@@ -665,9 +762,12 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public java.util.List getBoundingBoxMetricsEntriesList() { + public java.util.List + getBoundingBoxMetricsEntriesList() { if (boundingBoxMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_); } else { @@ -675,6 +775,8 @@ public java.util.List g } } /** + * + * *
      * 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
@@ -682,7 +784,9 @@ public java.util.List g
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public int getBoundingBoxMetricsEntriesCount() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -692,6 +796,8 @@ public 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
@@ -699,9 +805,12 @@ public int getBoundingBoxMetricsEntriesCount() {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( + int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { return boundingBoxMetricsEntries_.get(index); } else { @@ -709,6 +818,8 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet } } /** + * + * *
      * 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
@@ -716,7 +827,9 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder setBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { @@ -733,6 +846,8 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -740,10 +855,13 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder setBoundingBoxMetricsEntries( - int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); boundingBoxMetricsEntries_.set(index, builderForValue.build()); @@ -754,6 +872,8 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -761,9 +881,12 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { + public Builder addBoundingBoxMetricsEntries( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { if (boundingBoxMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,6 +900,8 @@ public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1beta1.Boun 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
@@ -784,7 +909,9 @@ public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1beta1.Boun
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder addBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { @@ -801,6 +928,8 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -808,7 +937,9 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder addBoundingBoxMetricsEntries( com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { @@ -822,6 +953,8 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -829,10 +962,13 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder addBoundingBoxMetricsEntries( - int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); boundingBoxMetricsEntries_.add(index, builderForValue.build()); @@ -843,6 +979,8 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -850,14 +988,16 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder addAllBoundingBoxMetricsEntries( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, boundingBoxMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingBoxMetricsEntries_); onChanged(); } else { boundingBoxMetricsEntriesBuilder_.addAllMessages(values); @@ -865,6 +1005,8 @@ public Builder addAllBoundingBoxMetricsEntries( 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
@@ -872,7 +1014,9 @@ public Builder addAllBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder clearBoundingBoxMetricsEntries() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -885,6 +1029,8 @@ public Builder clearBoundingBoxMetricsEntries() { 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
@@ -892,7 +1038,9 @@ public Builder clearBoundingBoxMetricsEntries() {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ public Builder removeBoundingBoxMetricsEntries(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -905,6 +1053,8 @@ public Builder removeBoundingBoxMetricsEntries(int 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
@@ -912,13 +1062,17 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder getBoundingBoxMetricsEntriesBuilder( - int index) { + 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
@@ -926,16 +1080,21 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder getBoundi
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder + getBoundingBoxMetricsEntriesOrBuilder(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { - return boundingBoxMetricsEntries_.get(index); } else { + 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
@@ -943,10 +1102,13 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBound
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public java.util.List - getBoundingBoxMetricsEntriesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder> + getBoundingBoxMetricsEntriesOrBuilderList() { if (boundingBoxMetricsEntriesBuilder_ != null) { return boundingBoxMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -954,6 +1116,8 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBound } } /** + * + * *
      * 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
@@ -961,13 +1125,18 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBound
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * 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()); + 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
@@ -975,14 +1144,19 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder addBoundi
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * 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()); + 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
@@ -990,18 +1164,26 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder addBoundi
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - public java.util.List - getBoundingBoxMetricsEntriesBuilderList() { + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -1011,14 +1193,17 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder addBoundi return boundingBoxMetricsEntriesBuilder_; } - private float boundingBoxMeanAveragePrecision_ ; + 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; + * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -1026,39 +1211,45 @@ 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; + * * @param value The boundingBoxMeanAveragePrecision to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearBoundingBoxMeanAveragePrecision() { - + boundingBoxMeanAveragePrecision_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1068,30 +1259,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -1103,9 +1296,8 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java index 88f722052..7d768cb43 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java @@ -1,24 +1,45 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return The evaluatedBoundingBoxCount. */ 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
@@ -26,11 +47,15 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - java.util.List + 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
@@ -38,10 +63,14 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * 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
@@ -49,10 +78,14 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * 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
@@ -60,11 +93,15 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - java.util.List + 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
@@ -72,18 +109,23 @@ public interface ImageObjectDetectionEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * */ - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( - int index); + 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; + * * @return The boundingBoxMeanAveragePrecision. */ float getBoundingBoxMeanAveragePrecision(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java index 2bc99bc61..d40b69817 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java @@ -1,39 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use ImageObjectDetectionModelDeploymentMetadata.newBuilder() to construct. - private ImageObjectDetectionModelDeploymentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionModelDeploymentMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageObjectDetectionModelDeploymentMetadata() { - } + + private ImageObjectDetectionModelDeploymentMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageObjectDetectionModelDeploymentMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageObjectDetectionModelDeploymentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,46 +70,51 @@ private ImageObjectDetectionModelDeploymentMetadata( case 0: done = true; break; - case 8: { - - nodeCount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + nodeCount_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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
@@ -101,6 +124,7 @@ private ImageObjectDetectionModelDeploymentMetadata(
    * 
* * int64 node_count = 1; + * * @return The nodeCount. */ @java.lang.Override @@ -109,6 +133,7 @@ public long getNodeCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +145,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nodeCount_ != 0L) { output.writeInt64(1, nodeCount_); } @@ -135,8 +159,7 @@ public int getSerializedSize() { size = 0; if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nodeCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -146,15 +169,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata)) { + 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; + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata other = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) obj; - if (getNodeCount() - != other.getNodeCount()) return false; + if (getNodeCount() != other.getNodeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -167,142 +191,158 @@ public int hashCode() { 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 = (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 { + 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 { + + 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 { + + 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 { + + 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 { + + 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 { + + 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) 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 + 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) 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 + 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) 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); + + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder + .class); } - // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,19 +352,22 @@ public Builder clear() { } @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; + 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(); + 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(); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -332,8 +375,10 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetada } @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); + 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; @@ -343,46 +388,52 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetada public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -401,11 +452,14 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -415,8 +469,10 @@ public Builder mergeFrom( return this; } - private long nodeCount_ ; + 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
@@ -426,6 +482,7 @@ public Builder mergeFrom(
      * 
* * int64 node_count = 1; + * * @return The nodeCount. */ @java.lang.Override @@ -433,6 +490,8 @@ 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
@@ -442,16 +501,19 @@ public long getNodeCount() {
      * 
* * int64 node_count = 1; + * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -461,17 +523,18 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 1; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -481,44 +544,48 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata(); } - public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata getDefaultInstance() { + 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); - } - }; + 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() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java index 798ea315b..c45fa4223 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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
@@ -17,6 +35,7 @@ public interface ImageObjectDetectionModelDeploymentMetadataOrBuilder extends
    * 
* * int64 node_count = 1; + * * @return The nodeCount. */ long getNodeCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java similarity index 79% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java index 51672d62a..5b07619e8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use ImageObjectDetectionModelMetadata.newBuilder() to construct. - private ImageObjectDetectionModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ImageObjectDetectionModelMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageObjectDetectionModelMetadata() { modelType_ = ""; stopReason_ = ""; @@ -26,16 +45,15 @@ private ImageObjectDetectionModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageObjectDetectionModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageObjectDetectionModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,73 +72,79 @@ private ImageObjectDetectionModelMetadata( 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; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - stopReason_ = s; - break; - } - case 48: { - - trainBudgetMilliNodeHours_ = input.readInt64(); - break; - } - case 56: { + modelType_ = s; + break; + } + case 24: + { + nodeCount_ = input.readInt64(); + break; + } + case 33: + { + nodeQps_ = input.readDouble(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - trainCostMilliNodeHours_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + stopReason_ = s; + break; + } + case 48: + { + trainBudgetMilliNodeHours_ = input.readInt64(); + break; + } + case 56: + { + trainCostMilliNodeHours_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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
@@ -148,6 +172,7 @@ private ImageObjectDetectionModelMetadata(
    * 
* * string model_type = 1; + * * @return The modelType. */ @java.lang.Override @@ -156,14 +181,15 @@ public java.lang.String getModelType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -191,16 +217,15 @@ public java.lang.String getModelType() {
    * 
* * string model_type = 1; + * * @return The bytes for modelType. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelType_ = b; return b; } else { @@ -211,6 +236,8 @@ public java.lang.String getModelType() { 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
@@ -218,6 +245,7 @@ public java.lang.String getModelType() {
    * 
* * int64 node_count = 3; + * * @return The nodeCount. */ @java.lang.Override @@ -228,12 +256,15 @@ public long getNodeCount() { 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; + * * @return The nodeQps. */ @java.lang.Override @@ -244,12 +275,15 @@ public double getNodeQps() { public static final int STOP_REASON_FIELD_NUMBER = 5; private volatile java.lang.Object stopReason_; /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The stopReason. */ @java.lang.Override @@ -258,30 +292,30 @@ public java.lang.String getStopReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; } } /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ @java.lang.Override - public com.google.protobuf.ByteString - getStopReasonBytes() { + public com.google.protobuf.ByteString getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stopReason_ = b; return b; } else { @@ -292,6 +326,8 @@ public java.lang.String getStopReason() { 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 actual
@@ -311,6 +347,7 @@ public java.lang.String getStopReason() {
    * 
* * int64 train_budget_milli_node_hours = 6; + * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -321,6 +358,8 @@ public long getTrainBudgetMilliNodeHours() { public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 7; private long trainCostMilliNodeHours_; /** + * + * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -328,6 +367,7 @@ public long getTrainBudgetMilliNodeHours() {
    * 
* * int64 train_cost_milli_node_hours = 7; + * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -336,6 +376,7 @@ public long getTrainCostMilliNodeHours() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +388,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelType_); } @@ -380,23 +420,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, modelType_); } if (nodeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, nodeCount_); } if (nodeQps_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, nodeQps_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, nodeQps_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stopReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stopReason_); } if (trainBudgetMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, trainBudgetMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, trainBudgetMilliNodeHours_); } if (trainCostMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, trainCostMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, trainCostMilliNodeHours_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -406,26 +442,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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 (!getStopReason() - .equals(other.getStopReason())) return false; - if (getTrainBudgetMilliNodeHours() - != other.getTrainBudgetMilliNodeHours()) return false; - if (getTrainCostMilliNodeHours() - != other.getTrainCostMilliNodeHours()) return false; + != java.lang.Double.doubleToLongBits(other.getNodeQps())) return false; + if (!getStopReason().equals(other.getStopReason())) return false; + if (getTrainBudgetMilliNodeHours() != other.getTrainBudgetMilliNodeHours()) return false; + if (getTrainCostMilliNodeHours() != other.getTrainCostMilliNodeHours()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -440,153 +471,163 @@ public int 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 = (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 = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNodeQps())); hash = (37 * hash) + STOP_REASON_FIELD_NUMBER; hash = (53 * hash) + getStopReason().hashCode(); hash = (37 * hash) + TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTrainBudgetMilliNodeHours()); + 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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainCostMilliNodeHours()); 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 { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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 + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder.class); } - // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -606,13 +647,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } @@ -627,7 +669,8 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata build() @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); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata result = + new com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata(this); result.modelType_ = modelType_; result.nodeCount_ = nodeCount_; result.nodeQps_ = nodeQps_; @@ -642,46 +685,50 @@ public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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(); @@ -721,7 +768,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -733,6 +782,8 @@ public Builder mergeFrom( 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
@@ -760,13 +811,13 @@ public Builder mergeFrom(
      * 
* * string model_type = 1; + * * @return The modelType. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelType_ = s; return s; @@ -775,6 +826,8 @@ public 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
@@ -802,15 +855,14 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 1; + * * @return The bytes for modelType. */ - public com.google.protobuf.ByteString - getModelTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelType_ = b; return b; } else { @@ -818,6 +870,8 @@ public 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
@@ -845,20 +899,22 @@ public java.lang.String getModelType() {
      * 
* * string model_type = 1; + * * @param value The modelType to set. * @return This builder for chaining. */ - public Builder setModelType( - java.lang.String value) { + public Builder setModelType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -886,15 +942,18 @@ public Builder setModelType(
      * 
* * string model_type = 1; + * * @return This builder for chaining. */ 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
@@ -922,23 +981,25 @@ public Builder clearModelType() {
      * 
* * string model_type = 1; + * * @param value The bytes for modelType to set. * @return This builder for chaining. */ - public Builder setModelTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelType_ = value; onChanged(); return this; } - private long nodeCount_ ; + 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
@@ -946,6 +1007,7 @@ public Builder setModelTypeBytes(
      * 
* * int64 node_count = 3; + * * @return The nodeCount. */ @java.lang.Override @@ -953,6 +1015,8 @@ 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
@@ -960,16 +1024,19 @@ public long getNodeCount() {
      * 
* * int64 node_count = 3; + * * @param value The nodeCount to set. * @return This builder for chaining. */ 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
@@ -977,23 +1044,27 @@ public Builder setNodeCount(long value) {
      * 
* * int64 node_count = 3; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0L; onChanged(); return this; } - private double nodeQps_ ; + 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; + * * @return The nodeQps. */ @java.lang.Override @@ -1001,32 +1072,38 @@ 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; + * * @param value The nodeQps to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearNodeQps() { - + nodeQps_ = 0D; onChanged(); return this; @@ -1034,19 +1111,21 @@ public Builder clearNodeQps() { private java.lang.Object stopReason_ = ""; /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return The stopReason. */ public java.lang.String getStopReason() { java.lang.Object ref = stopReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopReason_ = s; return s; @@ -1055,21 +1134,22 @@ public java.lang.String getStopReason() { } } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ - public com.google.protobuf.ByteString - getStopReasonBytes() { + public com.google.protobuf.ByteString getStopReasonBytes() { java.lang.Object ref = stopReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stopReason_ = b; return b; } else { @@ -1077,64 +1157,73 @@ public java.lang.String getStopReason() { } } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @param value The stopReason to set. * @return This builder for chaining. */ - public Builder setStopReason( - java.lang.String value) { + public Builder setStopReason(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stopReason_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @return This builder for chaining. */ public Builder clearStopReason() { - + stopReason_ = getDefaultInstance().getStopReason(); onChanged(); return this; } /** + * + * *
      * Output only. The reason that this create model operation stopped,
      * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; + * * @param value The bytes for stopReason to set. * @return This builder for chaining. */ - public Builder setStopReasonBytes( - com.google.protobuf.ByteString value) { + public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stopReason_ = value; onChanged(); return this; } - private long trainBudgetMilliNodeHours_ ; + 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 actual
@@ -1154,6 +1243,7 @@ public Builder setStopReasonBytes(
      * 
* * int64 train_budget_milli_node_hours = 6; + * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -1161,6 +1251,8 @@ 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 actual
@@ -1180,16 +1272,19 @@ public long getTrainBudgetMilliNodeHours() {
      * 
* * int64 train_budget_milli_node_hours = 6; + * * @param value The trainBudgetMilliNodeHours to set. * @return This builder for chaining. */ 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 actual
@@ -1209,17 +1304,20 @@ public Builder setTrainBudgetMilliNodeHours(long value) {
      * 
* * int64 train_budget_milli_node_hours = 6; + * * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; } - private long trainCostMilliNodeHours_ ; + private long trainCostMilliNodeHours_; /** + * + * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1227,6 +1325,7 @@ public Builder clearTrainBudgetMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; + * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -1234,6 +1333,8 @@ public long getTrainCostMilliNodeHours() { return trainCostMilliNodeHours_; } /** + * + * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1241,16 +1342,19 @@ public long getTrainCostMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; + * * @param value The trainCostMilliNodeHours to set. * @return This builder for chaining. */ public Builder setTrainCostMilliNodeHours(long value) { - + trainCostMilliNodeHours_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The actual train cost of creating this model, expressed in
      * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -1258,17 +1362,18 @@ public Builder setTrainCostMilliNodeHours(long value) {
      * 
* * int64 train_cost_milli_node_hours = 7; + * * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + trainCostMilliNodeHours_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1278,30 +1383,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -1313,9 +1420,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java similarity index 88% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java index 585de2612..f65f5db9b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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
@@ -35,10 +53,13 @@ public interface ImageObjectDetectionModelMetadataOrBuilder extends
    * 
* * string model_type = 1; + * * @return The modelType. */ 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
@@ -66,12 +87,14 @@ public interface ImageObjectDetectionModelMetadataOrBuilder extends
    * 
* * string model_type = 1; + * * @return The bytes for modelType. */ - com.google.protobuf.ByteString - getModelTypeBytes(); + 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
@@ -79,44 +102,55 @@ public interface ImageObjectDetectionModelMetadataOrBuilder extends
    * 
* * int64 node_count = 3; + * * @return The nodeCount. */ 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; + * * @return The nodeQps. */ double getNodeQps(); /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The stopReason. */ java.lang.String getStopReason(); /** + * + * *
    * Output only. The reason that this create model operation stopped,
    * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; + * * @return The bytes for stopReason. */ - com.google.protobuf.ByteString - getStopReasonBytes(); + com.google.protobuf.ByteString getStopReasonBytes(); /** + * + * *
    * 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 actual
@@ -136,11 +170,14 @@ public interface ImageObjectDetectionModelMetadataOrBuilder extends
    * 
* * int64 train_budget_milli_node_hours = 6; + * * @return The trainBudgetMilliNodeHours. */ long getTrainBudgetMilliNodeHours(); /** + * + * *
    * Output only. The actual train cost of creating this model, expressed in
    * milli node hours, i.e. 1,000 value in this field means 1 node hour.
@@ -148,6 +185,7 @@ public interface ImageObjectDetectionModelMetadataOrBuilder extends
    * 
* * int64 train_cost_milli_node_hours = 7; + * * @return The trainCostMilliNodeHours. */ long getTrainCostMilliNodeHours(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java index da6343a85..ba432aa22 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 ImageOrBuilder extends +public interface ImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Image) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -15,10 +33,13 @@ public interface ImageOrBuilder extends
    * 
* * bytes image_bytes = 1; + * * @return Whether the imageBytes field is set. */ boolean hasImageBytes(); /** + * + * *
    * Image content represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -26,29 +47,38 @@ public interface ImageOrBuilder extends
    * 
* * bytes image_bytes = 1; + * * @return The imageBytes. */ com.google.protobuf.ByteString getImageBytes(); /** + * + * *
    * An input config specifying the content of the image.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * An input config specifying the content of the image.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 6; + * * @return The inputConfig. */ com.google.cloud.automl.v1beta1.InputConfig getInputConfig(); /** + * + * *
    * An input config specifying the content of the image.
    * 
@@ -58,24 +88,29 @@ public interface ImageOrBuilder extends com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; + * * @return The thumbnailUri. */ java.lang.String getThumbnailUri(); /** + * + * *
    * Output only. HTTP URI to the thumbnail image.
    * 
* * string thumbnail_uri = 4; + * * @return The bytes for thumbnailUri. */ - com.google.protobuf.ByteString - getThumbnailUriBytes(); + com.google.protobuf.ByteString getThumbnailUriBytes(); public com.google.cloud.automl.v1beta1.Image.DataCase getDataCase(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java new file mode 100644 index 000000000..e12717b18 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java @@ -0,0 +1,167 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/image.proto + +package com.google.cloud.automl.v1beta1; + +public final class ImageProto { + private ImageProto() {} + + 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_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_ImageClassificationModelDeploymentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_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; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/automl/v1beta1/image.prot" + + "o\022\033google.cloud.automl.v1beta1\032\031google/a" + + "pi/resource.proto\0321google/cloud/automl/v" + + "1beta1/annotation_spec.proto\0320google/clo" + + "ud/automl/v1beta1/classification.proto\032\037" + + "google/protobuf/timestamp.proto\032\034google/" + + "api/annotations.proto\"r\n\"ImageClassifica" + + "tionDatasetMetadata\022L\n\023classification_ty" + + "pe\030\001 \001(\0162/.google.cloud.automl.v1beta1.C" + + "lassificationType\"%\n#ImageObjectDetectio" + + "nDatasetMetadata\"\262\001\n ImageClassification" + + "ModelMetadata\022\025\n\rbase_model_id\030\001 \001(\t\022\024\n\014" + + "train_budget\030\002 \001(\003\022\022\n\ntrain_cost\030\003 \001(\003\022\023" + + "\n\013stop_reason\030\005 \001(\t\022\022\n\nmodel_type\030\007 \001(\t\022" + + "\020\n\010node_qps\030\r \001(\001\022\022\n\nnode_count\030\016 \001(\003\"\276\001" + + "\n!ImageObjectDetectionModelMetadata\022\022\n\nm" + + "odel_type\030\001 \001(\t\022\022\n\nnode_count\030\003 \001(\003\022\020\n\010n" + + "ode_qps\030\004 \001(\001\022\023\n\013stop_reason\030\005 \001(\t\022%\n\035tr" + + "ain_budget_milli_node_hours\030\006 \001(\003\022#\n\033tra" + + "in_cost_milli_node_hours\030\007 \001(\003\"@\n*ImageC" + + "lassificationModelDeploymentMetadata\022\022\n\n" + + "node_count\030\001 \001(\003\"A\n+ImageObjectDetection" + + "ModelDeploymentMetadata\022\022\n\nnode_count\030\001 " + + "\001(\003B\261\001\n\037com.google.cloud.automl.v1beta1B" + + "\nImageProtoP\001ZAgoogle.golang.org/genprot" + + "o/googleapis/cloud/automl/v1beta1;automl" + + "\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Google:" + + ":Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor, + new java.lang.String[] { + "ClassificationType", + }); + 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", + "ModelType", + "NodeQps", + "NodeCount", + }); + 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", + "StopReason", + "TrainBudgetMilliNodeHours", + "TrainCostMilliNodeHours", + }); + internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ImageClassificationModelDeploymentMetadata_descriptor, + new java.lang.String[] { + "NodeCount", + }); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + 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.ResourceProto.getDescriptor(); + com.google.cloud.automl.v1beta1.AnnotationSpecOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java index ed5121222..6d01d3581 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use ImportDataOperationMetadata.newBuilder() to construct. private ImportDataOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportDataOperationMetadata() { - } + + private ImportDataOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportDataOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportDataOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private ImportDataOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata other = + (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImportDataOperationMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.class, + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +302,9 @@ public Builder clear() { } @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; + 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 @@ -295,7 +323,8 @@ public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata result = + new com.google.cloud.automl.v1beta1.ImportDataOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +333,39 @@ public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +373,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImportDataOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +404,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +416,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -398,16 +430,16 @@ public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getDef 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); - } - }; + 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; @@ -422,6 +454,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java new file mode 100644 index 000000000..95a58a64a --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java index 20a384c6d..50a96554d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImportDataRequest} */ -public final class ImportDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportDataRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImportDataRequest) ImportDataRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportDataRequest.newBuilder() to construct. private ImportDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportDataRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportDataRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,66 +70,77 @@ private ImportDataRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: { - com.google.cloud.automl.v1beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); + name_ = s; + break; } - inputConfig_ = input.readMessage(com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_ImportDataRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImportDataRequest.class, com.google.cloud.automl.v1beta1.ImportDataRequest.Builder.class); + com.google.cloud.automl.v1beta1.ImportDataRequest.class, + com.google.cloud.automl.v1beta1.ImportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Dataset name. Dataset must already exist. All imported
    * annotations and examples will be added.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -121,30 +149,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Dataset name. Dataset must already exist. All imported
    * annotations and examples will be added.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -155,12 +185,17 @@ public java.lang.String getName() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.automl.v1beta1.InputConfig inputConfig_; /** + * + * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -168,25 +203,36 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. The desired input location and its domain specific semantics,
    * if any.
    * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { @@ -194,6 +240,7 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -226,8 +272,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -237,19 +282,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ImportDataRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ImportDataRequest other = (com.google.cloud.automl.v1beta1.ImportDataRequest) obj; + com.google.cloud.automl.v1beta1.ImportDataRequest other = + (com.google.cloud.automl.v1beta1.ImportDataRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -274,117 +318,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ImportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ImportDataRequest 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.ImportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ImportDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ImportDataRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ImportDataRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImportDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImportDataRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImportDataRequest) com.google.cloud.automl.v1beta1.ImportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ImportDataRequest.class, com.google.cloud.automl.v1beta1.ImportDataRequest.Builder.class); + com.google.cloud.automl.v1beta1.ImportDataRequest.class, + com.google.cloud.automl.v1beta1.ImportDataRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ImportDataRequest.newBuilder() @@ -392,16 +445,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override @@ -438,7 +490,8 @@ public com.google.cloud.automl.v1beta1.ImportDataRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ImportDataRequest buildPartial() { - com.google.cloud.automl.v1beta1.ImportDataRequest result = new com.google.cloud.automl.v1beta1.ImportDataRequest(this); + com.google.cloud.automl.v1beta1.ImportDataRequest result = + new com.google.cloud.automl.v1beta1.ImportDataRequest(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -453,38 +506,39 @@ public com.google.cloud.automl.v1beta1.ImportDataRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ImportDataRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.ImportDataRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ImportDataRequest) other); } else { super.mergeFrom(other); return this; @@ -492,7 +546,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImportDataRequest other) { - if (other == com.google.cloud.automl.v1beta1.ImportDataRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ImportDataRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -519,7 +574,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ImportDataRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ImportDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -531,19 +587,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -552,21 +612,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -574,57 +637,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Dataset name. Dataset must already exist. All imported
      * annotations and examples will be added.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -632,42 +708,61 @@ public Builder setNameBytes( private com.google.cloud.automl.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.automl.v1beta1.InputConfig, + com.google.cloud.automl.v1beta1.InputConfig.Builder, + com.google.cloud.automl.v1beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -683,12 +778,16 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) return this; } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.automl.v1beta1.InputConfig.Builder builderForValue) { @@ -702,18 +801,24 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.automl.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -725,12 +830,16 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.InputConfig valu return this; } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -744,58 +853,74 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. The desired input location and its domain specific semantics,
      * if any.
      * 
* - * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder> + com.google.cloud.automl.v1beta1.InputConfig, + com.google.cloud.automl.v1beta1.InputConfig.Builder, + com.google.cloud.automl.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.InputConfig, com.google.cloud.automl.v1beta1.InputConfig.Builder, com.google.cloud.automl.v1beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.InputConfig, + com.google.cloud.automl.v1beta1.InputConfig.Builder, + com.google.cloud.automl.v1beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +930,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImportDataRequest) private static final com.google.cloud.automl.v1beta1.ImportDataRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImportDataRequest(); } @@ -819,16 +944,16 @@ public static com.google.cloud.automl.v1beta1.ImportDataRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportDataRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportDataRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,6 +968,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ImportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java new file mode 100644 index 000000000..3cdc3fbe0 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface ImportDataRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImportDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Dataset name. Dataset must already exist. All imported
+   * annotations and examples will be added.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Dataset name. Dataset must already exist. All imported
+   * annotations and examples will be added.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputConfig field is set. + */ + boolean hasInputConfig(); + /** + * + * + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputConfig. + */ + com.google.cloud.automl.v1beta1.InputConfig getInputConfig(); + /** + * + * + *
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java similarity index 82% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java index dcad2e23f..ebb3d78db 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 ImportData Action.
  * The format of input depends on dataset_metadata the Dataset into which
@@ -351,30 +368,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.InputConfig}
  */
-public final class InputConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class InputConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.InputConfig)
     InputConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use InputConfig.newBuilder() to construct.
   private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private InputConfig() {
-  }
+
+  private InputConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new InputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private InputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -394,100 +410,108 @@ private InputConfig(
           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: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              params_ = com.google.protobuf.MapField.newMapField(
-                  ParamsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          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;
             }
-            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();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                params_ =
+                    com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry params__ =
+                  input.readMessage(
+                      ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              params_.getMutableMap().put(params__.getKey(), params__.getValue());
+              break;
             }
-            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();
+          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;
             }
-            sourceCase_ = 3;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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_InputConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1beta1.Io
+        .internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetParams();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        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_InputConfig_fieldAccessorTable
+    return com.google.cloud.automl.v1beta1.Io
+        .internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1beta1.InputConfig.class, com.google.cloud.automl.v1beta1.InputConfig.Builder.class);
+            com.google.cloud.automl.v1beta1.InputConfig.class,
+            com.google.cloud.automl.v1beta1.InputConfig.Builder.class);
   }
 
   private int sourceCase_ = 0;
   private java.lang.Object source_;
+
   public enum SourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_SOURCE(1),
     BIGQUERY_SOURCE(3),
     SOURCE_NOT_SET(0);
     private final int value;
+
     private SourceCase(int value) {
       this.value = value;
     }
@@ -503,25 +527,30 @@ public static SourceCase valueOf(int value) {
 
     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: return null;
+        case 1:
+          return GCS_SOURCE;
+        case 3:
+          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 SourceCase getSourceCase() {
+    return SourceCase.forNumber(sourceCase_);
   }
 
   public static final int GCS_SOURCE_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -529,6 +558,7 @@ public int getNumber() {
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -536,6 +566,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -543,16 +575,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override 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) source_; } return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -564,18 +599,21 @@ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() {
   @java.lang.Override
   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) source_;
     }
     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; + * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -583,21 +621,26 @@ public boolean hasBigquerySource() { return sourceCase_ == 3; } /** + * + * *
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + * * @return The bigquerySource. */ @java.lang.Override 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) source_; } return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); } /** + * + * *
    * The BigQuery location for the input content.
    * 
@@ -607,30 +650,29 @@ public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { @java.lang.Override 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) 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< - java.lang.String, java.lang.String> 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, - ""); + 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< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -639,6 +681,8 @@ 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
@@ -652,22 +696,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 2;
    */
-
   @java.lang.Override
-  public boolean containsParams(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsParams(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetParams().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Override
   @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
@@ -682,11 +726,12 @@ public java.util.Map getParams() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
   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
@@ -701,16 +746,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
-  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();
+  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
@@ -725,12 +770,11 @@ public java.lang.String getParamsOrDefault(
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getParamsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetParams().getMap();
+  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();
     }
@@ -738,6 +782,7 @@ public java.lang.String getParamsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -749,17 +794,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  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_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetParams(),
-        ParamsDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 2);
     if (sourceCase_ == 3) {
       output.writeMessage(3, (com.google.cloud.automl.v1beta1.BigQuerySource) source_);
     }
@@ -773,22 +813,24 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += 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__);
+      size +=
+          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 +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.cloud.automl.v1beta1.BigQuerySource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -798,24 +840,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1beta1.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1beta1.InputConfig other = (com.google.cloud.automl.v1beta1.InputConfig) obj;
+    com.google.cloud.automl.v1beta1.InputConfig other =
+        (com.google.cloud.automl.v1beta1.InputConfig) obj;
 
-    if (!internalGetParams().equals(
-        other.internalGetParams())) return false;
+    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;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 3:
-        if (!getBigquerySource()
-            .equals(other.getBigquerySource())) return false;
+        if (!getBigquerySource().equals(other.getBigquerySource())) return false;
         break;
       case 0:
       default:
@@ -852,97 +892,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1beta1.InputConfig 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.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.automl.v1beta1.InputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.automl.v1beta1.InputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1beta1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1beta1.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1beta1.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for ImportData Action.
    * The format of input depends on dataset_metadata the Dataset into which
@@ -1290,43 +1337,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.InputConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.InputConfig)
       com.google.cloud.automl.v1beta1.InputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1beta1.Io
+          .internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetParams();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableParams();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          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_InputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1beta1.Io
+          .internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1beta1.InputConfig.class, com.google.cloud.automl.v1beta1.InputConfig.Builder.class);
+              com.google.cloud.automl.v1beta1.InputConfig.class,
+              com.google.cloud.automl.v1beta1.InputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.InputConfig.newBuilder()
@@ -1334,16 +1381,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1354,9 +1400,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1beta1.Io
+          .internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1375,7 +1421,8 @@ public com.google.cloud.automl.v1beta1.InputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1beta1.InputConfig buildPartial() {
-      com.google.cloud.automl.v1beta1.InputConfig result = new com.google.cloud.automl.v1beta1.InputConfig(this);
+      com.google.cloud.automl.v1beta1.InputConfig result =
+          new com.google.cloud.automl.v1beta1.InputConfig(this);
       int from_bitField0_ = bitField0_;
       if (sourceCase_ == 1) {
         if (gcsSourceBuilder_ == null) {
@@ -1402,38 +1449,39 @@ public com.google.cloud.automl.v1beta1.InputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.InputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1beta1.InputConfig)other);
+        return mergeFrom((com.google.cloud.automl.v1beta1.InputConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1442,20 +1490,22 @@ 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());
+      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;
-        }
+        case GCS_SOURCE:
+          {
+            mergeGcsSource(other.getGcsSource());
+            break;
+          }
+        case BIGQUERY_SOURCE:
+          {
+            mergeBigquerySource(other.getBigquerySource());
+            break;
+          }
+        case SOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1485,12 +1535,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-    public SourceCase
-        getSourceCase() {
-      return SourceCase.forNumber(
-          sourceCase_);
+
+    public SourceCase getSourceCase() {
+      return SourceCase.forNumber(sourceCase_);
     }
 
     public Builder clearSource() {
@@ -1503,8 +1553,13 @@ public Builder clearSource() {
     private int bitField0_;
 
     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_;
+            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.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1512,6 +1567,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1519,6 +1575,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1526,6 +1584,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -1543,6 +1602,8 @@ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { } } /** + * + * *
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1565,6 +1626,8 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1573,8 +1636,7 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
      *
      * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(
-        com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -1585,6 +1647,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1595,10 +1659,13 @@ public Builder setGcsSource(
      */
     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();
+        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;
         }
@@ -1613,6 +1680,8 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1638,6 +1707,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1650,6 +1721,8 @@ public com.google.cloud.automl.v1beta1.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1670,6 +1743,8 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for the input content.
      * In ImportData, the gcs_source points to a csv with structure described in
@@ -1679,32 +1754,44 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(
      * .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> 
+            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>(
+        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();;
+      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_;
+            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; + * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -1712,11 +1799,14 @@ public boolean hasBigquerySource() { return sourceCase_ == 3; } /** + * + * *
      * The BigQuery location for the input content.
      * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + * * @return The bigquerySource. */ @java.lang.Override @@ -1734,6 +1824,8 @@ public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { } } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1754,6 +1846,8 @@ public Builder setBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySource return this; } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1772,6 +1866,8 @@ public Builder setBigquerySource( return this; } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1780,10 +1876,13 @@ public Builder setBigquerySource( */ 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(); + 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; } @@ -1798,6 +1897,8 @@ public Builder mergeBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySourc return this; } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1821,6 +1922,8 @@ public Builder clearBigquerySource() { return this; } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1831,6 +1934,8 @@ public com.google.cloud.automl.v1beta1.BigQuerySource.Builder getBigquerySourceB return getBigquerySourceFieldBuilder().getBuilder(); } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1849,6 +1954,8 @@ public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySource } } /** + * + * *
      * The BigQuery location for the input content.
      * 
@@ -1856,40 +1963,45 @@ public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySource * .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> + 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>( + 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();; + onChanged(); + ; return bigquerySourceBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } + private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged();; + internalGetMutableParams() { + onChanged(); + ; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1901,6 +2013,8 @@ 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
@@ -1914,22 +2028,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 2;
      */
-
     @java.lang.Override
-    public boolean containsParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsParams(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetParams().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getParamsMap()} instead.
-     */
+    /** Use {@link #getParamsMap()} instead. */
     @java.lang.Override
     @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
@@ -1944,11 +2058,12 @@ public java.util.Map getParams() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
     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
@@ -1963,16 +2078,17 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
     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();
+        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
@@ -1987,12 +2103,11 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getParamsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetParams().getMap();
+    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();
       }
@@ -2000,11 +2115,12 @@ public java.lang.String getParamsOrThrow(
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap()
-          .clear();
+      internalGetMutableParams().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters describing the semantic of the
      * imported data, any string must be up to 25000
@@ -2018,23 +2134,21 @@ public Builder clearParams() {
      *
      * map<string, string> params = 2;
      */
-
-    public Builder removeParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableParams().getMutableMap()
-          .remove(key);
+    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.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableParams() {
+    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
@@ -2048,16 +2162,19 @@ public Builder removeParams(
      *
      * 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);
+    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
@@ -2071,16 +2188,13 @@ public Builder putParams(
      *
      * map<string, string> params = 2;
      */
-
-    public Builder putAllParams(
-        java.util.Map values) {
-      internalGetMutableParams().getMutableMap()
-          .putAll(values);
+    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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2090,12 +2204,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.InputConfig)
   private static final com.google.cloud.automl.v1beta1.InputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.InputConfig();
   }
@@ -2104,16 +2218,16 @@ public static com.google.cloud.automl.v1beta1.InputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public InputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new InputConfig(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public InputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new InputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2128,6 +2242,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java
index d1bb42f69..5ee1048e9 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1beta1/io.proto
 
 package com.google.cloud.automl.v1beta1;
 
-public interface InputConfigOrBuilder extends
+public interface InputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -15,10 +33,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -26,10 +47,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.automl.v1beta1.GcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location for the input content.
    * In ImportData, the gcs_source points to a csv with structure described in
@@ -41,24 +65,32 @@ public interface InputConfigOrBuilder extends
   com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + * * @return Whether the bigquerySource field is set. */ boolean hasBigquerySource(); /** + * + * *
    * The BigQuery location for the input content.
    * 
* * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + * * @return The bigquerySource. */ com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource(); /** + * + * *
    * The BigQuery location for the input content.
    * 
@@ -68,6 +100,8 @@ public interface InputConfigOrBuilder extends 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
@@ -83,6 +117,8 @@ public interface InputConfigOrBuilder extends
    */
   int getParamsCount();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -96,15 +132,13 @@ public interface InputConfigOrBuilder extends
    *
    * map<string, string> params = 2;
    */
-  boolean containsParams(
-      java.lang.String key);
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  boolean containsParams(java.lang.String key);
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getParams();
+  java.util.Map getParams();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -118,9 +152,10 @@ boolean containsParams(
    *
    * map<string, string> params = 2;
    */
-  java.util.Map
-  getParamsMap();
+  java.util.Map getParamsMap();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters describing the semantic of the
    * imported data, any string must be up to 25000
@@ -134,11 +169,10 @@ boolean containsParams(
    *
    * map<string, string> params = 2;
    */
-
-  java.lang.String getParamsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  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
@@ -152,9 +186,7 @@ java.lang.String getParamsOrDefault(
    *
    * map<string, string> params = 2;
    */
-
-  java.lang.String getParamsOrThrow(
-      java.lang.String key);
+  java.lang.String getParamsOrThrow(java.lang.String key);
 
   public com.google.cloud.automl.v1beta1.InputConfig.SourceCase getSourceCase();
 }
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java
new file mode 100644
index 000000000..46f7c67fe
--- /dev/null
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java
@@ -0,0 +1,267 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1beta1/io.proto
+
+package com.google.cloud.automl.v1beta1;
+
+public final class Io {
+  private Io() {}
+
+  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_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;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n$google/cloud/automl/v1beta1/io.proto\022\033"
+          + "google.cloud.automl.v1beta1\032\034google/api/"
+          + "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\245\001\n\037com.google.cloud.automl.v1beta1"
+          + "P\001ZAgoogle.golang.org/genproto/googleapi"
+          + "s/cloud/automl/v1beta1;automl\312\002\033Google\\C"
+          + "loud\\AutoMl\\V1beta1\352\002\036Google::Cloud::Aut"
+          + "oML::V1beta1b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+            });
+    internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor,
+            new java.lang.String[] {
+              "GcsSource", "BigquerySource", "Params", "Source",
+            });
+    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", "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(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(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();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java
similarity index 71%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java
index f6383d9cf..ba70c7671 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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 +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; + 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_ = ""; @@ -27,16 +45,15 @@ private ListColumnSpecsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListColumnSpecsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListColumnSpecsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,82 +72,94 @@ private ListColumnSpecsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + 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(); + 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: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 50: { - 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; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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_; /** + * + * *
    * Required. The resource name of the table spec to list column specs from.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -139,29 +168,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the table spec to list column specs from.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -172,11 +203,14 @@ public java.lang.String getParent() { 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; + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -184,11 +218,14 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ @java.lang.Override @@ -196,6 +233,8 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * Mask specifying which fields to read.
    * 
@@ -210,11 +249,14 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -223,29 +265,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -256,12 +298,15 @@ public java.lang.String getFilter() { 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; + * * @return The pageSize. */ @java.lang.Override @@ -272,6 +317,8 @@ public int getPageSize() { 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
@@ -280,6 +327,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -288,14 +336,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -304,16 +353,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -322,6 +370,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,8 +382,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -363,15 +411,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -384,26 +430,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest other = + (com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + 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 (!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; } @@ -433,117 +475,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListColumnSpecsRequest prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.class, + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.newBuilder() @@ -551,16 +603,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -582,9 +633,9 @@ public Builder clear() { } @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; + 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 @@ -603,7 +654,8 @@ public com.google.cloud.automl.v1beta1.ListColumnSpecsRequest build() { @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); + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest result = + new com.google.cloud.automl.v1beta1.ListColumnSpecsRequest(this); result.parent_ = parent_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; @@ -621,38 +673,39 @@ public com.google.cloud.automl.v1beta1.ListColumnSpecsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) other); } else { super.mergeFrom(other); return this; @@ -660,7 +713,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListColumnSpecsRequest other) { - if (other == com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -698,7 +752,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -710,18 +765,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the table spec to list column specs from.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -730,20 +789,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the table spec to list column specs from.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -751,54 +813,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the table spec to list column specs from.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the table spec to list column specs from.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the table spec to list column specs from.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -806,24 +881,33 @@ public Builder setParentBytes( 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_; + 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; + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -834,6 +918,8 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -854,14 +940,15 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; */ - public Builder setFieldMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -872,6 +959,8 @@ public Builder setFieldMask( return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -882,7 +971,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -894,6 +983,8 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -912,6 +1003,8 @@ public Builder clearFieldMask() { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -919,11 +1012,13 @@ public Builder clearFieldMask() { * .google.protobuf.FieldMask field_mask = 2; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -934,11 +1029,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -946,14 +1042,17 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * .google.protobuf.FieldMask field_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -961,18 +1060,20 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { private java.lang.Object filter_ = ""; /** + * + * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; + * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -981,20 +1082,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1002,67 +1104,77 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + 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; + * * @return The pageSize. */ @java.lang.Override @@ -1070,32 +1182,38 @@ 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; + * * @param value The pageSize to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1103,6 +1221,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1111,13 +1231,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1126,6 +1246,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1134,15 +1256,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1150,6 +1271,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1158,20 +1281,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1180,15 +1305,18 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ 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
@@ -1197,23 +1325,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1223,12 +1351,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1237,16 +1365,16 @@ public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest getDefaultI 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); - } - }; + 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; @@ -1261,6 +1389,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListColumnSpecsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java index e3a3f0539..b8510abc7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java @@ -1,51 +1,84 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +public interface ListColumnSpecsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListColumnSpecsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the table spec to list column specs from.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the table spec to list column specs from.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * Mask specifying which fields to read.
    * 
@@ -55,37 +88,47 @@ public interface ListColumnSpecsRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); /** + * + * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + 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; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results for the server to return.
    * Typically obtained from the
@@ -94,10 +137,13 @@ public interface ListColumnSpecsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results for the server to return.
    * Typically obtained from the
@@ -106,8 +152,8 @@ public interface ListColumnSpecsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java index 46a44e0cb..62c624c0c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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_ = ""; @@ -26,16 +44,15 @@ private ListColumnSpecsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListColumnSpecsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListColumnSpecsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,38 @@ private ListColumnSpecsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - columnSpecs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - columnSpecs_.add( - input.readMessage(com.google.cloud.automl.v1beta1.ColumnSpec.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { columnSpecs_ = java.util.Collections.unmodifiableList(columnSpecs_); @@ -92,22 +112,27 @@ private ListColumnSpecsResponse( 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.Builder.class); } public static final int COLUMN_SPECS_FIELD_NUMBER = 1; private java.util.List columnSpecs_; /** + * + * *
    * The column specs read.
    * 
@@ -119,6 +144,8 @@ public java.util.List getColumnSpecs return columnSpecs_; } /** + * + * *
    * The column specs read.
    * 
@@ -126,11 +153,13 @@ public java.util.List getColumnSpecs * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColumnSpecsOrBuilderList() { return columnSpecs_; } /** + * + * *
    * The column specs read.
    * 
@@ -142,6 +171,8 @@ public int getColumnSpecsCount() { return columnSpecs_.size(); } /** + * + * *
    * The column specs read.
    * 
@@ -153,6 +184,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int index) { return columnSpecs_.get(index); } /** + * + * *
    * The column specs read.
    * 
@@ -160,20 +193,22 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int index) { * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuilder( - int index) { + 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; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,30 +217,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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)); } @@ -243,8 +278,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < columnSpecs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, columnSpecs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, columnSpecs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +291,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getColumnSpecsList().equals(other.getColumnSpecsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +324,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListColumnSpecsResponse prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.newBuilder() @@ -409,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getColumnSpecsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +478,9 @@ public Builder clear() { } @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; + 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 @@ -456,7 +499,8 @@ public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse build() { @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); + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse result = + new com.google.cloud.automl.v1beta1.ListColumnSpecsResponse(this); int from_bitField0_ = bitField0_; if (columnSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +520,39 @@ public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ListColumnSpecsResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListColumnSpecsResponse other) { - if (other == com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.getDefaultInstance()) + return this; if (columnSpecsBuilder_ == null) { if (!other.columnSpecs_.isEmpty()) { if (columnSpecs_.isEmpty()) { @@ -534,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListColumnSpecsResponse columnSpecsBuilder_ = null; columnSpecs_ = other.columnSpecs_; bitField0_ = (bitField0_ & ~0x00000001); - columnSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnSpecsFieldBuilder() : null; + columnSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnSpecsFieldBuilder() + : null; } else { columnSpecsBuilder_.addAllMessages(other.columnSpecs_); } @@ -565,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ListColumnSpecsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ListColumnSpecsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +622,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List columnSpecs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureColumnSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - columnSpecs_ = new java.util.ArrayList(columnSpecs_); + 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_; + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + columnSpecsBuilder_; /** + * + * *
      * The column specs read.
      * 
@@ -603,6 +659,8 @@ public java.util.List getColumnSpecs } } /** + * + * *
      * The column specs read.
      * 
@@ -617,6 +675,8 @@ public int getColumnSpecsCount() { } } /** + * + * *
      * The column specs read.
      * 
@@ -631,14 +691,15 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int 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) { + public Builder setColumnSpecs(int index, com.google.cloud.automl.v1beta1.ColumnSpec value) { if (columnSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -652,6 +713,8 @@ public Builder setColumnSpecs( return this; } /** + * + * *
      * The column specs read.
      * 
@@ -670,6 +733,8 @@ public Builder setColumnSpecs( return this; } /** + * + * *
      * The column specs read.
      * 
@@ -690,14 +755,15 @@ public Builder addColumnSpecs(com.google.cloud.automl.v1beta1.ColumnSpec 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) { + public Builder addColumnSpecs(int index, com.google.cloud.automl.v1beta1.ColumnSpec value) { if (columnSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,6 +777,8 @@ public Builder addColumnSpecs( return this; } /** + * + * *
      * The column specs read.
      * 
@@ -729,6 +797,8 @@ public Builder addColumnSpecs( return this; } /** + * + * *
      * The column specs read.
      * 
@@ -747,6 +817,8 @@ public Builder addColumnSpecs( return this; } /** + * + * *
      * The column specs read.
      * 
@@ -757,8 +829,7 @@ public Builder addAllColumnSpecs( java.lang.Iterable values) { if (columnSpecsBuilder_ == null) { ensureColumnSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columnSpecs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnSpecs_); onChanged(); } else { columnSpecsBuilder_.addAllMessages(values); @@ -766,6 +837,8 @@ public Builder addAllColumnSpecs( return this; } /** + * + * *
      * The column specs read.
      * 
@@ -783,6 +856,8 @@ public Builder clearColumnSpecs() { return this; } /** + * + * *
      * The column specs read.
      * 
@@ -800,39 +875,44 @@ public Builder removeColumnSpecs(int 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) { + 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) { + public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuilder(int index) { if (columnSpecsBuilder_ == null) { - return columnSpecs_.get(index); } else { + 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() { + public java.util.List + getColumnSpecsOrBuilderList() { if (columnSpecsBuilder_ != null) { return columnSpecsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +920,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuild } } /** + * + * *
      * The column specs read.
      * 
@@ -847,42 +929,48 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuild * 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()); + 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()); + 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() { + 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> + 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()); + 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_; @@ -890,19 +978,21 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addColumnSpecsBuilder( 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; + * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -911,21 +1001,22 @@ public 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; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -933,64 +1024,71 @@ public 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; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1098,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1014,16 +1112,16 @@ public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse getDefault 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); - } - }; + 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; @@ -1038,6 +1136,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java index 09463851a..fb3efe275 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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(); + java.util.List getColumnSpecsList(); /** + * + * *
    * The column specs read.
    * 
@@ -25,6 +44,8 @@ public interface ListColumnSpecsResponseOrBuilder extends */ com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int index); /** + * + * *
    * The column specs read.
    * 
@@ -33,43 +54,51 @@ public interface ListColumnSpecsResponseOrBuilder extends */ int getColumnSpecsCount(); /** + * + * *
    * The column specs read.
    * 
* * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; */ - java.util.List + 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); + 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; + * * @return The nextPageToken. */ 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; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java index 6d6e28179..33f7519ee 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsRequest} */ -public final class ListDatasetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDatasetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListDatasetsRequest) ListDatasetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDatasetsRequest.newBuilder() to construct. private ListDatasetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDatasetsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListDatasetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatasetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDatasetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,69 +72,79 @@ private ListDatasetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 32: { + parent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 50: { - 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; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_ListDatasetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, com.google.cloud.automl.v1beta1.ListDatasetsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, + com.google.cloud.automl.v1beta1.ListDatasetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -126,29 +153,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -159,6 +188,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
@@ -169,6 +200,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -177,14 +209,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
@@ -195,16 +228,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -215,12 +247,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * Requested page size. Server may return fewer results than requested.
    * If unspecified, server will pick a default size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -231,6 +266,8 @@ public int getPageSize() { 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 via
@@ -239,6 +276,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -247,14 +285,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 via
@@ -263,16 +302,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -281,6 +319,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -292,8 +331,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -322,8 +360,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -336,21 +373,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListDatasetsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListDatasetsRequest other = (com.google.cloud.automl.v1beta1.ListDatasetsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.automl.v1beta1.ListDatasetsRequest other = + (com.google.cloud.automl.v1beta1.ListDatasetsRequest) obj; + + if (!getParent().equals(other.getParent())) 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; } @@ -376,117 +410,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListDatasetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest 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.ListDatasetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListDatasetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListDatasetsRequest) com.google.cloud.automl.v1beta1.ListDatasetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, com.google.cloud.automl.v1beta1.ListDatasetsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, + com.google.cloud.automl.v1beta1.ListDatasetsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListDatasetsRequest.newBuilder() @@ -494,16 +537,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -519,9 +561,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override @@ -540,7 +582,8 @@ public com.google.cloud.automl.v1beta1.ListDatasetsRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsRequest buildPartial() { - com.google.cloud.automl.v1beta1.ListDatasetsRequest result = new com.google.cloud.automl.v1beta1.ListDatasetsRequest(this); + com.google.cloud.automl.v1beta1.ListDatasetsRequest result = + new com.google.cloud.automl.v1beta1.ListDatasetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -553,38 +596,39 @@ public com.google.cloud.automl.v1beta1.ListDatasetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListDatasetsRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListDatasetsRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListDatasetsRequest) other); } else { super.mergeFrom(other); return this; @@ -592,7 +636,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListDatasetsRequest other) { - if (other == com.google.cloud.automl.v1beta1.ListDatasetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ListDatasetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -627,7 +672,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ListDatasetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ListDatasetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -639,18 +685,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -659,20 +709,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -680,54 +733,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project from which to list datasets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -735,6 +801,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
@@ -745,13 +813,13 @@ public Builder setParentBytes(
      * 
* * string filter = 3; + * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -760,6 +828,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
@@ -770,15 +840,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -786,6 +855,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
@@ -796,20 +867,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
@@ -820,15 +893,18 @@ public Builder setFilter(
      * 
* * string filter = 3; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `dataset_metadata` - for existence of the case (e.g.
@@ -839,29 +915,32 @@ public Builder clearFilter() {
      * 
* * string filter = 3; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -869,32 +948,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Requested page size. Server may return fewer results than requested.
      * If unspecified, server will pick a default size.
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -902,6 +987,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -910,13 +997,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -925,6 +1012,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -933,15 +1022,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -949,6 +1037,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -957,20 +1047,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -979,15 +1071,18 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -996,23 +1091,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1022,12 +1117,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListDatasetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListDatasetsRequest) private static final com.google.cloud.automl.v1beta1.ListDatasetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListDatasetsRequest(); } @@ -1036,16 +1131,16 @@ public static com.google.cloud.automl.v1beta1.ListDatasetsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDatasetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,6 +1155,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListDatasetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java index 5bd97c460..c478a28dc 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListDatasetsRequestOrBuilder extends +public interface ListDatasetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListDatasetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the project from which to list datasets.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
@@ -38,10 +65,13 @@ public interface ListDatasetsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression for filtering the results of the request.
    *   * `dataset_metadata` - for existence of the case (e.g.
@@ -52,23 +82,28 @@ public interface ListDatasetsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Requested page size. Server may return fewer results than requested.
    * If unspecified, server will pick a default size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -77,10 +112,13 @@ public interface ListDatasetsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -89,8 +127,8 @@ public interface ListDatasetsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java index fe62549e1..8fe29df07 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsResponse} */ -public final class ListDatasetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDatasetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListDatasetsResponse) ListDatasetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDatasetsResponse.newBuilder() to construct. private ListDatasetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDatasetsResponse() { datasets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListDatasetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatasetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDatasetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListDatasetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - datasets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + datasets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + datasets_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.Dataset.parser(), extensionRegistry)); + break; } - datasets_.add( - input.readMessage(com.google.cloud.automl.v1beta1.Dataset.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { datasets_ = java.util.Collections.unmodifiableList(datasets_); @@ -92,22 +111,27 @@ private ListDatasetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, com.google.cloud.automl.v1beta1.ListDatasetsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, + com.google.cloud.automl.v1beta1.ListDatasetsResponse.Builder.class); } public static final int DATASETS_FIELD_NUMBER = 1; private java.util.List datasets_; /** + * + * *
    * The datasets read.
    * 
@@ -119,6 +143,8 @@ public java.util.List getDatasetsList() return datasets_; } /** + * + * *
    * The datasets read.
    * 
@@ -126,11 +152,13 @@ public java.util.List getDatasetsList() * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDatasetsOrBuilderList() { return datasets_; } /** + * + * *
    * The datasets read.
    * 
@@ -142,6 +170,8 @@ public int getDatasetsCount() { return datasets_.size(); } /** + * + * *
    * The datasets read.
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.automl.v1beta1.Dataset getDatasets(int index) { return datasets_.get(index); } /** + * + * *
    * The datasets read.
    * 
@@ -160,20 +192,22 @@ public com.google.cloud.automl.v1beta1.Dataset getDatasets(int index) { * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index) { return datasets_.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 [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,30 +216,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,6 +248,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < datasets_.size(); i++) { output.writeMessage(1, datasets_.get(i)); } @@ -243,8 +277,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < datasets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, datasets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, datasets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +290,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListDatasetsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListDatasetsResponse other = (com.google.cloud.automl.v1beta1.ListDatasetsResponse) obj; + com.google.cloud.automl.v1beta1.ListDatasetsResponse other = + (com.google.cloud.automl.v1beta1.ListDatasetsResponse) obj; - if (!getDatasetsList() - .equals(other.getDatasetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDatasetsList().equals(other.getDatasetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +323,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListDatasetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse 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.ListDatasetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListDatasetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListDatasetsResponse) com.google.cloud.automl.v1beta1.ListDatasetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, com.google.cloud.automl.v1beta1.ListDatasetsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, + com.google.cloud.automl.v1beta1.ListDatasetsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListDatasetsResponse.newBuilder() @@ -409,17 +450,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDatasetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override @@ -456,7 +497,8 @@ public com.google.cloud.automl.v1beta1.ListDatasetsResponse build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsResponse buildPartial() { - com.google.cloud.automl.v1beta1.ListDatasetsResponse result = new com.google.cloud.automl.v1beta1.ListDatasetsResponse(this); + com.google.cloud.automl.v1beta1.ListDatasetsResponse result = + new com.google.cloud.automl.v1beta1.ListDatasetsResponse(this); int from_bitField0_ = bitField0_; if (datasetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +518,39 @@ public com.google.cloud.automl.v1beta1.ListDatasetsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListDatasetsResponse) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListDatasetsResponse)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListDatasetsResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +558,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListDatasetsResponse other) { - if (other == com.google.cloud.automl.v1beta1.ListDatasetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ListDatasetsResponse.getDefaultInstance()) + return this; if (datasetsBuilder_ == null) { if (!other.datasets_.isEmpty()) { if (datasets_.isEmpty()) { @@ -534,9 +578,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListDatasetsResponse ot datasetsBuilder_ = null; datasets_ = other.datasets_; bitField0_ = (bitField0_ & ~0x00000001); - datasetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDatasetsFieldBuilder() : null; + datasetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDatasetsFieldBuilder() + : null; } else { datasetsBuilder_.addAllMessages(other.datasets_); } @@ -565,7 +610,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ListDatasetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ListDatasetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +620,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List datasets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDatasetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { datasets_ = new java.util.ArrayList(datasets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Dataset, com.google.cloud.automl.v1beta1.Dataset.Builder, com.google.cloud.automl.v1beta1.DatasetOrBuilder> datasetsBuilder_; + com.google.cloud.automl.v1beta1.Dataset, + com.google.cloud.automl.v1beta1.Dataset.Builder, + com.google.cloud.automl.v1beta1.DatasetOrBuilder> + datasetsBuilder_; /** + * + * *
      * The datasets read.
      * 
@@ -603,6 +656,8 @@ public java.util.List getDatasetsList() } } /** + * + * *
      * The datasets read.
      * 
@@ -617,6 +672,8 @@ public int getDatasetsCount() { } } /** + * + * *
      * The datasets read.
      * 
@@ -631,14 +688,15 @@ public com.google.cloud.automl.v1beta1.Dataset getDatasets(int index) { } } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public Builder setDatasets( - int index, com.google.cloud.automl.v1beta1.Dataset value) { + public Builder setDatasets(int index, com.google.cloud.automl.v1beta1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -652,6 +710,8 @@ public Builder setDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
@@ -670,6 +730,8 @@ public Builder setDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
@@ -690,14 +752,15 @@ public Builder addDatasets(com.google.cloud.automl.v1beta1.Dataset value) { return this; } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public Builder addDatasets( - int index, com.google.cloud.automl.v1beta1.Dataset value) { + public Builder addDatasets(int index, com.google.cloud.automl.v1beta1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,14 +774,15 @@ public Builder addDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public Builder addDatasets( - com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { + public Builder addDatasets(com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { if (datasetsBuilder_ == null) { ensureDatasetsIsMutable(); datasets_.add(builderForValue.build()); @@ -729,6 +793,8 @@ public Builder addDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
@@ -747,6 +813,8 @@ public Builder addDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
@@ -757,8 +825,7 @@ public Builder addAllDatasets( java.lang.Iterable values) { if (datasetsBuilder_ == null) { ensureDatasetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, datasets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, datasets_); onChanged(); } else { datasetsBuilder_.addAllMessages(values); @@ -766,6 +833,8 @@ public Builder addAllDatasets( return this; } /** + * + * *
      * The datasets read.
      * 
@@ -783,6 +852,8 @@ public Builder clearDatasets() { return this; } /** + * + * *
      * The datasets read.
      * 
@@ -800,39 +871,44 @@ public Builder removeDatasets(int index) { return this; } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1beta1.Dataset.Builder getDatasetsBuilder( - int index) { + public com.google.cloud.automl.v1beta1.Dataset.Builder getDatasetsBuilder(int index) { return getDatasetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index) { if (datasetsBuilder_ == null) { - return datasets_.get(index); } else { + return datasets_.get(index); + } else { return datasetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public java.util.List - getDatasetsOrBuilderList() { + public java.util.List + getDatasetsOrBuilderList() { if (datasetsBuilder_ != null) { return datasetsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +916,8 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( } } /** + * + * *
      * The datasets read.
      * 
@@ -847,42 +925,48 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ public com.google.cloud.automl.v1beta1.Dataset.Builder addDatasetsBuilder() { - return getDatasetsFieldBuilder().addBuilder( - com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance()); + return getDatasetsFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance()); } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.automl.v1beta1.Dataset.Builder addDatasetsBuilder( - int index) { - return getDatasetsFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.Dataset.Builder addDatasetsBuilder(int index) { + return getDatasetsFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance()); } /** + * + * *
      * The datasets read.
      * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - public java.util.List - getDatasetsBuilderList() { + public java.util.List + getDatasetsBuilderList() { return getDatasetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Dataset, com.google.cloud.automl.v1beta1.Dataset.Builder, com.google.cloud.automl.v1beta1.DatasetOrBuilder> + com.google.cloud.automl.v1beta1.Dataset, + com.google.cloud.automl.v1beta1.Dataset.Builder, + com.google.cloud.automl.v1beta1.DatasetOrBuilder> getDatasetsFieldBuilder() { if (datasetsBuilder_ == null) { - datasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Dataset, com.google.cloud.automl.v1beta1.Dataset.Builder, com.google.cloud.automl.v1beta1.DatasetOrBuilder>( - datasets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + datasetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.Dataset, + com.google.cloud.automl.v1beta1.Dataset.Builder, + com.google.cloud.automl.v1beta1.DatasetOrBuilder>( + datasets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); datasets_ = null; } return datasetsBuilder_; @@ -890,19 +974,21 @@ public com.google.cloud.automl.v1beta1.Dataset.Builder addDatasetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -911,21 +997,22 @@ 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.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -933,64 +1020,71 @@ 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.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1094,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListDatasetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListDatasetsResponse) private static final com.google.cloud.automl.v1beta1.ListDatasetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListDatasetsResponse(); } @@ -1014,16 +1108,16 @@ public static com.google.cloud.automl.v1beta1.ListDatasetsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDatasetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListDatasetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java index 8d9298aa1..93dc2bd25 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListDatasetsResponseOrBuilder extends +public interface ListDatasetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListDatasetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - java.util.List - getDatasetsList(); + java.util.List getDatasetsList(); /** + * + * *
    * The datasets read.
    * 
@@ -25,6 +44,8 @@ public interface ListDatasetsResponseOrBuilder extends */ com.google.cloud.automl.v1beta1.Dataset getDatasets(int index); /** + * + * *
    * The datasets read.
    * 
@@ -33,43 +54,51 @@ public interface ListDatasetsResponseOrBuilder extends */ int getDatasetsCount(); /** + * + * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - java.util.List + java.util.List getDatasetsOrBuilderList(); /** + * + * *
    * The datasets read.
    * 
* * repeated .google.cloud.automl.v1beta1.Dataset datasets = 1; */ - com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( - int index); + com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ 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.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java index eb15d3062..fd6b51355 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsRequest} */ -public final class ListModelEvaluationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListModelEvaluationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) ListModelEvaluationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListModelEvaluationsRequest.newBuilder() to construct. private ListModelEvaluationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListModelEvaluationsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListModelEvaluationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListModelEvaluationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListModelEvaluationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,71 +72,81 @@ private ListModelEvaluationsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 32: { + parent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 50: { - 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; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_ListModelEvaluationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -128,31 +155,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -163,6 +192,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -175,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -183,14 +215,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -203,16 +236,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -223,11 +255,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * Requested page size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -238,6 +273,8 @@ public int getPageSize() { 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 via
@@ -246,6 +283,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -254,14 +292,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 via
@@ -270,16 +309,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -288,6 +326,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,8 +338,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -329,8 +367,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -343,21 +380,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest other = (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest other = + (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) obj; + + if (!getParent().equals(other.getParent())) 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; } @@ -383,117 +417,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListModelEvaluationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest 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.ListModelEvaluationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) com.google.cloud.automl.v1beta1.ListModelEvaluationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.newBuilder() @@ -501,16 +545,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -526,9 +569,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; } @java.lang.Override @@ -547,7 +590,8 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest buildPartial() { - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest result = new com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest(this); + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest result = + new com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -560,38 +604,39 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListModelEvaluationsRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) other); } else { super.mergeFrom(other); return this; @@ -599,7 +644,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest other) { - if (other == com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -634,7 +680,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -646,20 +693,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -668,22 +719,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -691,60 +745,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to list the model evaluations for.
      * If modelId is set as "-", this will list model evaluations from across all
      * models of the parent location.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -752,6 +819,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -764,13 +833,13 @@ public Builder setParentBytes(
      * 
* * string filter = 3; + * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -779,6 +848,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -791,15 +862,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -807,6 +877,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -819,20 +891,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -845,15 +919,18 @@ public Builder setFilter(
      * 
* * string filter = 3; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -866,28 +943,31 @@ public Builder clearFilter() {
      * 
* * string filter = 3; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -895,30 +975,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -926,6 +1012,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -934,13 +1022,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -949,6 +1037,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -957,15 +1047,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -973,6 +1062,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -981,20 +1072,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1003,15 +1096,18 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
@@ -1020,23 +1116,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1046,12 +1142,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) private static final com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest(); } @@ -1060,16 +1156,16 @@ public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelEvaluationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelEvaluationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelEvaluationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelEvaluationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1084,6 +1180,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java index b0e27d299..f51b6851c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListModelEvaluationsRequestOrBuilder extends +public interface ListModelEvaluationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the model to list the model evaluations for.
    * If modelId is set as "-", this will list model evaluations from across all
    * models of the parent location.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -44,10 +71,13 @@ public interface ListModelEvaluationsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression for filtering the results of the request.
    *   * `annotation_spec_id` - for =, !=  or existence. See example below for
@@ -60,22 +90,27 @@ public interface ListModelEvaluationsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Requested page size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
@@ -84,10 +119,13 @@ public interface ListModelEvaluationsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
@@ -96,8 +134,8 @@ public interface ListModelEvaluationsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java index 3a065d5ae..4de393672 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsResponse} */ -public final class ListModelEvaluationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListModelEvaluationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) ListModelEvaluationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListModelEvaluationsResponse.newBuilder() to construct. private ListModelEvaluationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListModelEvaluationsResponse() { modelEvaluation_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListModelEvaluationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListModelEvaluationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListModelEvaluationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,38 @@ private ListModelEvaluationsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - modelEvaluation_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + modelEvaluation_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + modelEvaluation_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.ModelEvaluation.parser(), extensionRegistry)); + break; } - modelEvaluation_.add( - input.readMessage(com.google.cloud.automl.v1beta1.ModelEvaluation.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { modelEvaluation_ = java.util.Collections.unmodifiableList(modelEvaluation_); @@ -92,22 +112,27 @@ private ListModelEvaluationsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.Builder.class); } public static final int MODEL_EVALUATION_FIELD_NUMBER = 1; private java.util.List modelEvaluation_; /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -119,6 +144,8 @@ public java.util.List getModelE return modelEvaluation_; } /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -126,11 +153,13 @@ public java.util.List getModelE * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ @java.lang.Override - public java.util.List + public java.util.List getModelEvaluationOrBuilderList() { return modelEvaluation_; } /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -142,6 +171,8 @@ public int getModelEvaluationCount() { return modelEvaluation_.size(); } /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -153,6 +184,8 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation(int in return modelEvaluation_.get(index); } /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -168,6 +201,8 @@ public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluati 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 the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -175,6 +210,7 @@ public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluati
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +219,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -198,16 +235,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +252,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < modelEvaluation_.size(); i++) { output.writeMessage(1, modelEvaluation_.get(i)); } @@ -245,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < modelEvaluation_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, modelEvaluation_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, modelEvaluation_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +294,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse other = (com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) obj; + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse other = + (com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) obj; - if (!getModelEvaluationList() - .equals(other.getModelEvaluationList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getModelEvaluationList().equals(other.getModelEvaluationList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +327,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListModelEvaluationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse 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.ListModelEvaluationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) com.google.cloud.automl.v1beta1.ListModelEvaluationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.newBuilder() @@ -411,17 +455,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getModelEvaluationFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +481,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.getDefaultInstance(); } @@ -458,7 +503,8 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse buildPartial() { - com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse result = new com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse(this); + com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse result = + new com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse(this); int from_bitField0_ = bitField0_; if (modelEvaluationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +524,39 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListModelEvaluationsResponse) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +564,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse other) { - if (other == com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.getDefaultInstance()) + return this; if (modelEvaluationBuilder_ == null) { if (!other.modelEvaluation_.isEmpty()) { if (modelEvaluation_.isEmpty()) { @@ -536,9 +585,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelEvaluationsRes modelEvaluationBuilder_ = null; modelEvaluation_ = other.modelEvaluation_; bitField0_ = (bitField0_ & ~0x00000001); - modelEvaluationBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getModelEvaluationFieldBuilder() : null; + modelEvaluationBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getModelEvaluationFieldBuilder() + : null; } else { modelEvaluationBuilder_.addAllMessages(other.modelEvaluation_); } @@ -567,7 +617,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +627,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List modelEvaluation_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureModelEvaluationIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - modelEvaluation_ = new java.util.ArrayList(modelEvaluation_); + modelEvaluation_ = + new java.util.ArrayList( + modelEvaluation_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ModelEvaluation, com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder> modelEvaluationBuilder_; + com.google.cloud.automl.v1beta1.ModelEvaluation, + com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, + com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder> + modelEvaluationBuilder_; /** + * + * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - public java.util.List getModelEvaluationList() { + public java.util.List + getModelEvaluationList() { if (modelEvaluationBuilder_ == null) { return java.util.Collections.unmodifiableList(modelEvaluation_); } else { @@ -605,6 +666,8 @@ public java.util.List getModelE } } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -619,6 +682,8 @@ public int getModelEvaluationCount() { } } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -633,6 +698,8 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation(int in } } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -654,6 +721,8 @@ public Builder setModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -672,6 +741,8 @@ public Builder setModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -692,6 +763,8 @@ public Builder addModelEvaluation(com.google.cloud.automl.v1beta1.ModelEvaluatio return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -713,6 +786,8 @@ public Builder addModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -731,6 +806,8 @@ public Builder addModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -749,6 +826,8 @@ public Builder addModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -759,8 +838,7 @@ public Builder addAllModelEvaluation( java.lang.Iterable values) { if (modelEvaluationBuilder_ == null) { ensureModelEvaluationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, modelEvaluation_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modelEvaluation_); onChanged(); } else { modelEvaluationBuilder_.addAllMessages(values); @@ -768,6 +846,8 @@ public Builder addAllModelEvaluation( return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -785,6 +865,8 @@ public Builder clearModelEvaluation() { return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -802,6 +884,8 @@ public Builder removeModelEvaluation(int index) { return this; } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -813,6 +897,8 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder getModelEvaluatio return getModelEvaluationFieldBuilder().getBuilder(index); } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -822,19 +908,22 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder getModelEvaluatio public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder( int index) { if (modelEvaluationBuilder_ == null) { - return modelEvaluation_.get(index); } else { + return modelEvaluation_.get(index); + } else { return modelEvaluationBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - public java.util.List - getModelEvaluationOrBuilderList() { + public java.util.List + getModelEvaluationOrBuilderList() { if (modelEvaluationBuilder_ != null) { return modelEvaluationBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +931,8 @@ public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluati } } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -849,10 +940,12 @@ public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluati * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluationBuilder() { - return getModelEvaluationFieldBuilder().addBuilder( - com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()); + return getModelEvaluationFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()); } /** + * + * *
      * List of model evaluations in the requested page.
      * 
@@ -861,26 +954,34 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluatio */ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluationBuilder( int index) { - return getModelEvaluationFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()); + return getModelEvaluationFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()); } /** + * + * *
      * List of model evaluations in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - public java.util.List - getModelEvaluationBuilderList() { + public java.util.List + getModelEvaluationBuilderList() { return getModelEvaluationFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ModelEvaluation, com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder> + com.google.cloud.automl.v1beta1.ModelEvaluation, + com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, + com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder> getModelEvaluationFieldBuilder() { if (modelEvaluationBuilder_ == null) { - modelEvaluationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.ModelEvaluation, com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder>( + modelEvaluationBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ModelEvaluation, + com.google.cloud.automl.v1beta1.ModelEvaluation.Builder, + com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder>( modelEvaluation_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -892,6 +993,8 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluatio private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -899,13 +1002,13 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluatio
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -914,6 +1017,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -921,15 +1026,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -937,6 +1041,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -944,20 +1050,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -965,15 +1073,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -981,23 +1092,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,12 +1118,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) - private static final com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse(); } @@ -1021,16 +1133,16 @@ public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelEvaluationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelEvaluationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelEvaluationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelEvaluationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1157,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java index 82bfd230b..a14c73e66 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListModelEvaluationsResponseOrBuilder extends +public interface ListModelEvaluationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - java.util.List - getModelEvaluationList(); + java.util.List getModelEvaluationList(); /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -25,6 +44,8 @@ public interface ListModelEvaluationsResponseOrBuilder extends */ com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation(int index); /** + * + * *
    * List of model evaluations in the requested page.
    * 
@@ -33,25 +54,30 @@ public interface ListModelEvaluationsResponseOrBuilder extends */ int getModelEvaluationCount(); /** + * + * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - java.util.List + java.util.List getModelEvaluationOrBuilderList(); /** + * + * *
    * List of model evaluations in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.ModelEvaluation model_evaluation = 1; */ - com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder( - int index); + com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -59,10 +85,13 @@ com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluationOrBui
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
@@ -70,8 +99,8 @@ com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluationOrBui
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java index dce61b33e..7367f878b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsRequest} */ -public final class ListModelsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListModelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListModelsRequest) ListModelsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListModelsRequest.newBuilder() to construct. private ListModelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListModelsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListModelsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListModelsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListModelsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,69 +72,79 @@ private ListModelsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 32: { + parent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 50: { - 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; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_ListModelsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelsRequest.class, com.google.cloud.automl.v1beta1.ListModelsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListModelsRequest.class, + com.google.cloud.automl.v1beta1.ListModelsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -126,29 +153,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -159,6 +188,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
@@ -170,6 +201,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -178,14 +210,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
@@ -197,16 +230,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -217,11 +249,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * Requested page size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -232,6 +267,8 @@ public int getPageSize() { 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 via
@@ -240,6 +277,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -248,14 +286,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 via
@@ -264,16 +303,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -282,6 +320,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +332,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -323,8 +361,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -337,21 +374,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListModelsRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListModelsRequest other = (com.google.cloud.automl.v1beta1.ListModelsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.automl.v1beta1.ListModelsRequest other = + (com.google.cloud.automl.v1beta1.ListModelsRequest) obj; + + if (!getParent().equals(other.getParent())) 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; } @@ -377,117 +411,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListModelsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelsRequest 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.ListModelsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListModelsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListModelsRequest) com.google.cloud.automl.v1beta1.ListModelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelsRequest.class, com.google.cloud.automl.v1beta1.ListModelsRequest.Builder.class); + com.google.cloud.automl.v1beta1.ListModelsRequest.class, + com.google.cloud.automl.v1beta1.ListModelsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListModelsRequest.newBuilder() @@ -495,16 +538,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +562,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; } @java.lang.Override @@ -541,7 +583,8 @@ public com.google.cloud.automl.v1beta1.ListModelsRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsRequest buildPartial() { - com.google.cloud.automl.v1beta1.ListModelsRequest result = new com.google.cloud.automl.v1beta1.ListModelsRequest(this); + com.google.cloud.automl.v1beta1.ListModelsRequest result = + new com.google.cloud.automl.v1beta1.ListModelsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -554,38 +597,39 @@ public com.google.cloud.automl.v1beta1.ListModelsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListModelsRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListModelsRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListModelsRequest) other); } else { super.mergeFrom(other); return this; @@ -593,7 +637,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelsRequest other) { - if (other == com.google.cloud.automl.v1beta1.ListModelsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ListModelsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -628,7 +673,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ListModelsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ListModelsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -640,18 +686,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -660,20 +710,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -681,54 +734,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the project, from which to list the models.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -736,6 +802,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
@@ -747,13 +815,13 @@ public Builder setParentBytes(
      * 
* * string filter = 3; + * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -762,6 +830,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
@@ -773,15 +843,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -789,6 +858,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
@@ -800,20 +871,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
@@ -825,15 +898,18 @@ public Builder setFilter(
      * 
* * string filter = 3; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * An expression for filtering the results of the request.
      *   * `model_metadata` - for existence of the case (e.g.
@@ -845,28 +921,31 @@ public Builder clearFilter() {
      * 
* * string filter = 3; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -874,30 +953,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -905,6 +990,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -913,13 +1000,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -928,6 +1015,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -936,15 +1025,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -952,6 +1040,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -960,20 +1050,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -982,15 +1074,18 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return
      * Typically obtained via
@@ -999,23 +1094,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1025,12 +1120,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListModelsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelsRequest) private static final com.google.cloud.automl.v1beta1.ListModelsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListModelsRequest(); } @@ -1039,16 +1134,16 @@ public static com.google.cloud.automl.v1beta1.ListModelsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1063,6 +1158,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListModelsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java index a15f09ce9..3d57b5069 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListModelsRequestOrBuilder extends +public interface ListModelsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListModelsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the project, from which to list the models.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
@@ -39,10 +66,13 @@ public interface ListModelsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression for filtering the results of the request.
    *   * `model_metadata` - for existence of the case (e.g.
@@ -54,22 +84,27 @@ public interface ListModelsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Requested page size.
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -78,10 +113,13 @@ public interface ListModelsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results for the server to return
    * Typically obtained via
@@ -90,8 +128,8 @@ public interface ListModelsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java index 87a85e1c1..d7526c4b6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsResponse} */ -public final class ListModelsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListModelsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListModelsResponse) ListModelsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListModelsResponse.newBuilder() to construct. private ListModelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListModelsResponse() { model_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListModelsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListModelsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListModelsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListModelsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - model_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + model_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + model_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.Model.parser(), extensionRegistry)); + break; } - model_.add( - input.readMessage(com.google.cloud.automl.v1beta1.Model.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { model_ = java.util.Collections.unmodifiableList(model_); @@ -92,22 +111,27 @@ private ListModelsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelsResponse.class, com.google.cloud.automl.v1beta1.ListModelsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListModelsResponse.class, + com.google.cloud.automl.v1beta1.ListModelsResponse.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private java.util.List model_; /** + * + * *
    * List of models in the requested page.
    * 
@@ -119,6 +143,8 @@ public java.util.List getModelList() { return model_; } /** + * + * *
    * List of models in the requested page.
    * 
@@ -126,11 +152,13 @@ public java.util.List getModelList() { * repeated .google.cloud.automl.v1beta1.Model model = 1; */ @java.lang.Override - public java.util.List + public java.util.List getModelOrBuilderList() { return model_; } /** + * + * *
    * List of models in the requested page.
    * 
@@ -142,6 +170,8 @@ public int getModelCount() { return model_.size(); } /** + * + * *
    * List of models in the requested page.
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.automl.v1beta1.Model getModel(int index) { return model_.get(index); } /** + * + * *
    * List of models in the requested page.
    * 
@@ -160,20 +192,22 @@ public com.google.cloud.automl.v1beta1.Model getModel(int index) { * repeated .google.cloud.automl.v1beta1.Model model = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(int index) { return model_.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 [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,30 +216,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,6 +248,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < model_.size(); i++) { output.writeMessage(1, model_.get(i)); } @@ -243,8 +277,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < model_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, model_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, model_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +290,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ListModelsResponse)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ListModelsResponse other = (com.google.cloud.automl.v1beta1.ListModelsResponse) obj; + com.google.cloud.automl.v1beta1.ListModelsResponse other = + (com.google.cloud.automl.v1beta1.ListModelsResponse) obj; - if (!getModelList() - .equals(other.getModelList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getModelList().equals(other.getModelList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +323,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListModelsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelsResponse 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.ListModelsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ListModelsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ListModelsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListModelsResponse) com.google.cloud.automl.v1beta1.ListModelsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ListModelsResponse.class, com.google.cloud.automl.v1beta1.ListModelsResponse.Builder.class); + com.google.cloud.automl.v1beta1.ListModelsResponse.class, + com.google.cloud.automl.v1beta1.ListModelsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListModelsResponse.newBuilder() @@ -409,17 +450,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getModelFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; } @java.lang.Override @@ -456,7 +497,8 @@ public com.google.cloud.automl.v1beta1.ListModelsResponse build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsResponse buildPartial() { - com.google.cloud.automl.v1beta1.ListModelsResponse result = new com.google.cloud.automl.v1beta1.ListModelsResponse(this); + com.google.cloud.automl.v1beta1.ListModelsResponse result = + new com.google.cloud.automl.v1beta1.ListModelsResponse(this); int from_bitField0_ = bitField0_; if (modelBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +518,39 @@ public com.google.cloud.automl.v1beta1.ListModelsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListModelsResponse) { - return mergeFrom((com.google.cloud.automl.v1beta1.ListModelsResponse)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ListModelsResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +558,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelsResponse other) { - if (other == com.google.cloud.automl.v1beta1.ListModelsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ListModelsResponse.getDefaultInstance()) + return this; if (modelBuilder_ == null) { if (!other.model_.isEmpty()) { if (model_.isEmpty()) { @@ -534,9 +578,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelsResponse othe modelBuilder_ = null; model_ = other.model_; bitField0_ = (bitField0_ & ~0x00000001); - modelBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getModelFieldBuilder() : null; + modelBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getModelFieldBuilder() + : null; } else { modelBuilder_.addAllMessages(other.model_); } @@ -565,7 +610,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ListModelsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ListModelsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +620,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List model_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureModelIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { model_ = new java.util.ArrayList(model_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder> modelBuilder_; + com.google.cloud.automl.v1beta1.Model, + com.google.cloud.automl.v1beta1.Model.Builder, + com.google.cloud.automl.v1beta1.ModelOrBuilder> + modelBuilder_; /** + * + * *
      * List of models in the requested page.
      * 
@@ -603,6 +656,8 @@ public java.util.List getModelList() { } } /** + * + * *
      * List of models in the requested page.
      * 
@@ -617,6 +672,8 @@ public int getModelCount() { } } /** + * + * *
      * List of models in the requested page.
      * 
@@ -631,14 +688,15 @@ public com.google.cloud.automl.v1beta1.Model getModel(int index) { } } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public Builder setModel( - int index, com.google.cloud.automl.v1beta1.Model value) { + public Builder setModel(int index, com.google.cloud.automl.v1beta1.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -652,6 +710,8 @@ public Builder setModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
@@ -670,6 +730,8 @@ public Builder setModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
@@ -690,14 +752,15 @@ public Builder addModel(com.google.cloud.automl.v1beta1.Model value) { return this; } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public Builder addModel( - int index, com.google.cloud.automl.v1beta1.Model value) { + public Builder addModel(int index, com.google.cloud.automl.v1beta1.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,14 +774,15 @@ public Builder addModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public Builder addModel( - com.google.cloud.automl.v1beta1.Model.Builder builderForValue) { + public Builder addModel(com.google.cloud.automl.v1beta1.Model.Builder builderForValue) { if (modelBuilder_ == null) { ensureModelIsMutable(); model_.add(builderForValue.build()); @@ -729,6 +793,8 @@ public Builder addModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
@@ -747,6 +813,8 @@ public Builder addModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
@@ -757,8 +825,7 @@ public Builder addAllModel( java.lang.Iterable values) { if (modelBuilder_ == null) { ensureModelIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, model_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, model_); onChanged(); } else { modelBuilder_.addAllMessages(values); @@ -766,6 +833,8 @@ public Builder addAllModel( return this; } /** + * + * *
      * List of models in the requested page.
      * 
@@ -783,6 +852,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * List of models in the requested page.
      * 
@@ -800,39 +871,44 @@ public Builder removeModel(int index) { return this; } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public com.google.cloud.automl.v1beta1.Model.Builder getModelBuilder( - int index) { + public com.google.cloud.automl.v1beta1.Model.Builder getModelBuilder(int index) { return getModelFieldBuilder().getBuilder(index); } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(int index) { if (modelBuilder_ == null) { - return model_.get(index); } else { + return model_.get(index); + } else { return modelBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public java.util.List - getModelOrBuilderList() { + public java.util.List + getModelOrBuilderList() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +916,8 @@ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder( } } /** + * + * *
      * List of models in the requested page.
      * 
@@ -847,42 +925,47 @@ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder( * repeated .google.cloud.automl.v1beta1.Model model = 1; */ public com.google.cloud.automl.v1beta1.Model.Builder addModelBuilder() { - return getModelFieldBuilder().addBuilder( - com.google.cloud.automl.v1beta1.Model.getDefaultInstance()); + return getModelFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.Model.getDefaultInstance()); } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public com.google.cloud.automl.v1beta1.Model.Builder addModelBuilder( - int index) { - return getModelFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1beta1.Model.getDefaultInstance()); + public com.google.cloud.automl.v1beta1.Model.Builder addModelBuilder(int index) { + return getModelFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1beta1.Model.getDefaultInstance()); } /** + * + * *
      * List of models in the requested page.
      * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - public java.util.List - getModelBuilderList() { + public java.util.List getModelBuilderList() { return getModelFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder> + com.google.cloud.automl.v1beta1.Model, + com.google.cloud.automl.v1beta1.Model.Builder, + com.google.cloud.automl.v1beta1.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.Model, com.google.cloud.automl.v1beta1.Model.Builder, com.google.cloud.automl.v1beta1.ModelOrBuilder>( - model_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + modelBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.Model, + com.google.cloud.automl.v1beta1.Model.Builder, + com.google.cloud.automl.v1beta1.ModelOrBuilder>( + model_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; @@ -890,19 +973,21 @@ public com.google.cloud.automl.v1beta1.Model.Builder addModelBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -911,21 +996,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -933,64 +1019,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListModelsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelsResponse) private static final com.google.cloud.automl.v1beta1.ListModelsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListModelsResponse(); } @@ -1014,16 +1107,16 @@ public static com.google.cloud.automl.v1beta1.ListModelsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListModelsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1131,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListModelsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java index 32ebf71ab..a3caedf68 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/service.proto package com.google.cloud.automl.v1beta1; -public interface ListModelsResponseOrBuilder extends +public interface ListModelsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListModelsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - java.util.List - getModelList(); + java.util.List getModelList(); /** + * + * *
    * List of models in the requested page.
    * 
@@ -25,6 +44,8 @@ public interface ListModelsResponseOrBuilder extends */ com.google.cloud.automl.v1beta1.Model getModel(int index); /** + * + * *
    * List of models in the requested page.
    * 
@@ -33,43 +54,50 @@ public interface ListModelsResponseOrBuilder extends */ int getModelCount(); /** + * + * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - java.util.List - getModelOrBuilderList(); + java.util.List getModelOrBuilderList(); /** + * + * *
    * List of models in the requested page.
    * 
* * repeated .google.cloud.automl.v1beta1.Model model = 1; */ - com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder( - int index); + com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java index 8751f3588..b330aae66 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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_ = ""; @@ -27,16 +45,15 @@ private ListTableSpecsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTableSpecsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTableSpecsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,82 +72,94 @@ private ListTableSpecsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + 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(); + 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: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 50: { - 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; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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_; /** + * + * *
    * Required. The resource name of the dataset to list table specs from.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -139,29 +168,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the dataset to list table specs from.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -172,11 +203,14 @@ public java.lang.String getParent() { 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; + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -184,11 +218,14 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ @java.lang.Override @@ -196,6 +233,8 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * Mask specifying which fields to read.
    * 
@@ -210,11 +249,14 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -223,29 +265,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -256,12 +298,15 @@ public java.lang.String getFilter() { 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; + * * @return The pageSize. */ @java.lang.Override @@ -272,6 +317,8 @@ public int getPageSize() { 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
@@ -280,6 +327,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -288,14 +336,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -304,16 +353,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -322,6 +370,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,8 +382,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -363,15 +411,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -384,26 +430,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.ListTableSpecsRequest other = + (com.google.cloud.automl.v1beta1.ListTableSpecsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + 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 (!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; } @@ -433,117 +475,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListTableSpecsRequest prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ListTableSpecsRequest.class, + com.google.cloud.automl.v1beta1.ListTableSpecsRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListTableSpecsRequest.newBuilder() @@ -551,16 +603,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -582,9 +633,9 @@ public Builder clear() { } @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; + 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 @@ -603,7 +654,8 @@ public com.google.cloud.automl.v1beta1.ListTableSpecsRequest build() { @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); + com.google.cloud.automl.v1beta1.ListTableSpecsRequest result = + new com.google.cloud.automl.v1beta1.ListTableSpecsRequest(this); result.parent_ = parent_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; @@ -621,38 +673,39 @@ public com.google.cloud.automl.v1beta1.ListTableSpecsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ListTableSpecsRequest) other); } else { super.mergeFrom(other); return this; @@ -660,7 +713,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListTableSpecsRequest other) { - if (other == com.google.cloud.automl.v1beta1.ListTableSpecsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ListTableSpecsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -698,7 +752,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ListTableSpecsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ListTableSpecsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -710,18 +765,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the dataset to list table specs from.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -730,20 +789,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the dataset to list table specs from.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -751,54 +813,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the dataset to list table specs from.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset to list table specs from.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the dataset to list table specs from.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -806,24 +881,33 @@ public Builder setParentBytes( 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_; + 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; + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -834,6 +918,8 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -854,14 +940,15 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
* * .google.protobuf.FieldMask field_mask = 2; */ - public Builder setFieldMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -872,6 +959,8 @@ public Builder setFieldMask( return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -882,7 +971,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -894,6 +983,8 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -912,6 +1003,8 @@ public Builder clearFieldMask() { return this; } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -919,11 +1012,13 @@ public Builder clearFieldMask() { * .google.protobuf.FieldMask field_mask = 2; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -934,11 +1029,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** + * + * *
      * Mask specifying which fields to read.
      * 
@@ -946,14 +1042,17 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * .google.protobuf.FieldMask field_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -961,18 +1060,20 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { private java.lang.Object filter_ = ""; /** + * + * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; + * * @return The filter. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -981,20 +1082,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1002,67 +1104,77 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Filter expression, see go/filtering.
      * 
* * string filter = 3; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + 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; + * * @return The pageSize. */ @java.lang.Override @@ -1070,32 +1182,38 @@ 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; + * * @param value The pageSize to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1103,6 +1221,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1111,13 +1231,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1126,6 +1246,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1134,15 +1256,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1150,6 +1271,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1158,20 +1281,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results for the server to return.
      * Typically obtained from the
@@ -1180,15 +1305,18 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ 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
@@ -1197,23 +1325,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1223,12 +1351,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1237,16 +1365,16 @@ public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest getDefaultIn 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); - } - }; + 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; @@ -1261,6 +1389,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListTableSpecsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java index bbecefbdb..f98028520 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java @@ -1,51 +1,84 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +public interface ListTableSpecsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListTableSpecsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the dataset to list table specs from.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the dataset to list table specs from.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * Mask specifying which fields to read.
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * Mask specifying which fields to read.
    * 
@@ -55,37 +88,47 @@ public interface ListTableSpecsRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); /** + * + * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter expression, see go/filtering.
    * 
* * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + 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; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results for the server to return.
    * Typically obtained from the
@@ -94,10 +137,13 @@ public interface ListTableSpecsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results for the server to return.
    * Typically obtained from the
@@ -106,8 +152,8 @@ public interface ListTableSpecsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java index 3977459c2..20a2043ba 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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_ = ""; @@ -26,16 +44,15 @@ private ListTableSpecsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTableSpecsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTableSpecsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListTableSpecsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tableSpecs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - tableSpecs_.add( - input.readMessage(com.google.cloud.automl.v1beta1.TableSpec.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { tableSpecs_ = java.util.Collections.unmodifiableList(tableSpecs_); @@ -92,22 +111,27 @@ private ListTableSpecsResponse( 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse.Builder.class); } public static final int TABLE_SPECS_FIELD_NUMBER = 1; private java.util.List tableSpecs_; /** + * + * *
    * The table specs read.
    * 
@@ -119,6 +143,8 @@ public java.util.List getTableSpecsLi return tableSpecs_; } /** + * + * *
    * The table specs read.
    * 
@@ -126,11 +152,13 @@ public java.util.List getTableSpecsLi * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getTableSpecsOrBuilderList() { return tableSpecs_; } /** + * + * *
    * The table specs read.
    * 
@@ -142,6 +170,8 @@ public int getTableSpecsCount() { return tableSpecs_.size(); } /** + * + * *
    * The table specs read.
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int index) { return tableSpecs_.get(index); } /** + * + * *
    * The table specs read.
    * 
@@ -160,20 +192,22 @@ public com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int index) { * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder( - int index) { + 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; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,30 +216,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,6 +248,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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)); } @@ -243,8 +277,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < tableSpecs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tableSpecs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tableSpecs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +290,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getTableSpecsList().equals(other.getTableSpecsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +323,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListTableSpecsResponse prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ListTableSpecsResponse.newBuilder() @@ -409,17 +451,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTableSpecsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +477,9 @@ public Builder clear() { } @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; + 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 @@ -456,7 +498,8 @@ public com.google.cloud.automl.v1beta1.ListTableSpecsResponse build() { @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); + com.google.cloud.automl.v1beta1.ListTableSpecsResponse result = + new com.google.cloud.automl.v1beta1.ListTableSpecsResponse(this); int from_bitField0_ = bitField0_; if (tableSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +519,39 @@ public com.google.cloud.automl.v1beta1.ListTableSpecsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ListTableSpecsResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +559,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListTableSpecsResponse other) { - if (other == com.google.cloud.automl.v1beta1.ListTableSpecsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ListTableSpecsResponse.getDefaultInstance()) + return this; if (tableSpecsBuilder_ == null) { if (!other.tableSpecs_.isEmpty()) { if (tableSpecs_.isEmpty()) { @@ -534,9 +579,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListTableSpecsResponse tableSpecsBuilder_ = null; tableSpecs_ = other.tableSpecs_; bitField0_ = (bitField0_ & ~0x00000001); - tableSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTableSpecsFieldBuilder() : null; + tableSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTableSpecsFieldBuilder() + : null; } else { tableSpecsBuilder_.addAllMessages(other.tableSpecs_); } @@ -565,7 +611,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ListTableSpecsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ListTableSpecsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +621,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List tableSpecs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTableSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - tableSpecs_ = new java.util.ArrayList(tableSpecs_); + 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_; + com.google.cloud.automl.v1beta1.TableSpec, + com.google.cloud.automl.v1beta1.TableSpec.Builder, + com.google.cloud.automl.v1beta1.TableSpecOrBuilder> + tableSpecsBuilder_; /** + * + * *
      * The table specs read.
      * 
@@ -603,6 +658,8 @@ public java.util.List getTableSpecsLi } } /** + * + * *
      * The table specs read.
      * 
@@ -617,6 +674,8 @@ public int getTableSpecsCount() { } } /** + * + * *
      * The table specs read.
      * 
@@ -631,14 +690,15 @@ public com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int 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) { + public Builder setTableSpecs(int index, com.google.cloud.automl.v1beta1.TableSpec value) { if (tableSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -652,6 +712,8 @@ public Builder setTableSpecs( return this; } /** + * + * *
      * The table specs read.
      * 
@@ -670,6 +732,8 @@ public Builder setTableSpecs( return this; } /** + * + * *
      * The table specs read.
      * 
@@ -690,14 +754,15 @@ public Builder addTableSpecs(com.google.cloud.automl.v1beta1.TableSpec 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) { + public Builder addTableSpecs(int index, com.google.cloud.automl.v1beta1.TableSpec value) { if (tableSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,6 +776,8 @@ public Builder addTableSpecs( return this; } /** + * + * *
      * The table specs read.
      * 
@@ -729,6 +796,8 @@ public Builder addTableSpecs( return this; } /** + * + * *
      * The table specs read.
      * 
@@ -747,6 +816,8 @@ public Builder addTableSpecs( return this; } /** + * + * *
      * The table specs read.
      * 
@@ -757,8 +828,7 @@ public Builder addAllTableSpecs( java.lang.Iterable values) { if (tableSpecsBuilder_ == null) { ensureTableSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tableSpecs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tableSpecs_); onChanged(); } else { tableSpecsBuilder_.addAllMessages(values); @@ -766,6 +836,8 @@ public Builder addAllTableSpecs( return this; } /** + * + * *
      * The table specs read.
      * 
@@ -783,6 +855,8 @@ public Builder clearTableSpecs() { return this; } /** + * + * *
      * The table specs read.
      * 
@@ -800,39 +874,44 @@ public Builder removeTableSpecs(int 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) { + 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) { + public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder(int index) { if (tableSpecsBuilder_ == null) { - return tableSpecs_.get(index); } else { + 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() { + public java.util.List + getTableSpecsOrBuilderList() { if (tableSpecsBuilder_ != null) { return tableSpecsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +919,8 @@ public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder } } /** + * + * *
      * The table specs read.
      * 
@@ -847,42 +928,48 @@ public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder * 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()); + 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()); + 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() { + 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> + 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()); + 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_; @@ -890,19 +977,21 @@ public com.google.cloud.automl.v1beta1.TableSpec.Builder addTableSpecsBuilder( 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; + * * @return The nextPageToken. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -911,21 +1000,22 @@ public 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; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -933,64 +1023,71 @@ public 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; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1097,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1014,16 +1111,16 @@ public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse getDefaultI 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); - } - }; + 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; @@ -1038,6 +1135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ListTableSpecsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java index 4c65ee502..7b79bad7b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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(); + java.util.List getTableSpecsList(); /** + * + * *
    * The table specs read.
    * 
@@ -25,6 +44,8 @@ public interface ListTableSpecsResponseOrBuilder extends */ com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int index); /** + * + * *
    * The table specs read.
    * 
@@ -33,43 +54,51 @@ public interface ListTableSpecsResponseOrBuilder extends */ int getTableSpecsCount(); /** + * + * *
    * The table specs read.
    * 
* * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; */ - java.util.List + 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); + 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; + * * @return The nextPageToken. */ 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; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java index 3d45c3f76..24ade1111 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/model.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * API proto representing a trained machine learning model.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.Model} */ -public final class Model extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Model extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Model) ModelOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Model.newBuilder() to construct. private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Model() { name_ = ""; displayName_ = ""; @@ -28,16 +46,15 @@ private Model() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Model(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Model( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,224 +73,306 @@ private Model( 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 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - datasetId_ = s; - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 64: { - int rawValue = input.readEnum(); - - deploymentState_ = rawValue; - break; - } - case 90: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + displayName_ = s; + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 106: { - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 13) { - subBuilder = ((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_).toBuilder(); - } - modelMetadata_ = - input.readMessage(com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 13; - break; - } - case 114: { - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 14) { - subBuilder = ((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_).toBuilder(); - } - modelMetadata_ = - input.readMessage(com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - modelMetadataCase_ = 14; - break; - } - case 122: { - com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 15) { - subBuilder = ((com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_).toBuilder(); + datasetId_ = s; + break; } - modelMetadata_ = - input.readMessage(com.google.cloud.automl.v1beta1.TranslationModelMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); - } - 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(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - 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(); + case 64: + { + int rawValue = input.readEnum(); + + deploymentState_ = rawValue; + break; } - 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(); + case 90: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - 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(); + case 106: + { + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder subBuilder = + null; + if (modelMetadataCase_ == 13) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) + modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) + modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 13; + break; } - modelMetadataCase_ = 20; - break; - } - case 170: { - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 21) { - subBuilder = ((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_).toBuilder(); + case 114: + { + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder subBuilder = + null; + if (modelMetadataCase_ == 14) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) + modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) + modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 14; + break; } - modelMetadata_ = - input.readMessage(com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_); - modelMetadata_ = subBuilder.buildPartial(); + case 122: + { + com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 15) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TranslationModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 15; + break; } - modelMetadataCase_ = 21; - break; - } - case 178: { - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder subBuilder = null; - if (modelMetadataCase_ == 22) { - subBuilder = ((com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_).toBuilder(); + 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; } - 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(); + 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; } - 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(); + case 170: + { + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder subBuilder = + null; + if (modelMetadataCase_ == 21) { + subBuilder = + ((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) + modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) + modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 21; + break; } - 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(); + 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; } - 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(); + 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; } - 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(); + 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; } - modelMetadataCase_ = 24; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ModelOuterClass + .internal_static_google_cloud_automl_v1beta1_Model_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ModelOuterClass + .internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.Model.class, com.google.cloud.automl.v1beta1.Model.Builder.class); + com.google.cloud.automl.v1beta1.Model.class, + com.google.cloud.automl.v1beta1.Model.Builder.class); } /** + * + * *
    * Deployment state of the model.
    * 
* * Protobuf enum {@code google.cloud.automl.v1beta1.Model.DeploymentState} */ - public enum DeploymentState - implements com.google.protobuf.ProtocolMessageEnum { + public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Should not be used, an un-set enum has this value by default.
      * 
@@ -282,6 +381,8 @@ public enum DeploymentState */ DEPLOYMENT_STATE_UNSPECIFIED(0), /** + * + * *
      * Model is deployed.
      * 
@@ -290,6 +391,8 @@ public enum DeploymentState */ DEPLOYED(1), /** + * + * *
      * Model is not deployed.
      * 
@@ -301,6 +404,8 @@ public enum DeploymentState ; /** + * + * *
      * Should not be used, an un-set enum has this value by default.
      * 
@@ -309,6 +414,8 @@ public enum DeploymentState */ public static final int DEPLOYMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Model is deployed.
      * 
@@ -317,6 +424,8 @@ public enum DeploymentState */ public static final int DEPLOYED_VALUE = 1; /** + * + * *
      * Model is not deployed.
      * 
@@ -325,7 +434,6 @@ public enum DeploymentState */ public static final int UNDEPLOYED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -350,39 +458,42 @@ public static DeploymentState valueOf(int value) { */ public static DeploymentState forNumber(int value) { switch (value) { - case 0: return DEPLOYMENT_STATE_UNSPECIFIED; - case 1: return DEPLOYED; - case 2: return UNDEPLOYED; - default: return null; + case 0: + return DEPLOYMENT_STATE_UNSPECIFIED; + case 1: + return DEPLOYED; + case 2: + return UNDEPLOYED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DeploymentState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DeploymentState findValueByNumber(int number) { - return DeploymentState.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeploymentState findValueByNumber(int number) { + return DeploymentState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.automl.v1beta1.Model.getDescriptor().getEnumTypes().get(0); } @@ -391,8 +502,7 @@ public DeploymentState findValueByNumber(int number) { public static DeploymentState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -411,8 +521,10 @@ private DeploymentState(int value) { private int modelMetadataCase_ = 0; private java.lang.Object modelMetadata_; + public enum ModelMetadataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION_MODEL_METADATA(15), IMAGE_CLASSIFICATION_MODEL_METADATA(13), @@ -425,6 +537,7 @@ public enum ModelMetadataCase TEXT_SENTIMENT_MODEL_METADATA(22), MODELMETADATA_NOT_SET(0); private final int value; + private ModelMetadataCase(int value) { this.value = value; } @@ -440,37 +553,51 @@ 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 20: return IMAGE_OBJECT_DETECTION_MODEL_METADATA; - case 23: return VIDEO_CLASSIFICATION_MODEL_METADATA; - case 21: return VIDEO_OBJECT_TRACKING_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: return null; + case 15: + return TRANSLATION_MODEL_METADATA; + case 13: + return IMAGE_CLASSIFICATION_MODEL_METADATA; + case 14: + return TEXT_CLASSIFICATION_MODEL_METADATA; + case 20: + return IMAGE_OBJECT_DETECTION_MODEL_METADATA; + case 23: + return VIDEO_CLASSIFICATION_MODEL_METADATA; + case 21: + return VIDEO_OBJECT_TRACKING_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: + return null; } } + public int getNumber() { return this.value; } }; - public ModelMetadataCase - getModelMetadataCase() { - return ModelMetadataCase.forNumber( - modelMetadataCase_); + 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; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * * @return Whether the translationModelMetadata field is set. */ @java.lang.Override @@ -478,42 +605,55 @@ public boolean hasTranslationModelMetadata() { return modelMetadataCase_ == 15; } /** + * + * *
    * Metadata for translation models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * * @return The translationModelMetadata. */ @java.lang.Override 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for translation models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); } public static final int IMAGE_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 13; /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return Whether the imageClassificationModelMetadata field is set. */ @java.lang.Override @@ -521,42 +661,58 @@ public boolean hasImageClassificationModelMetadata() { return modelMetadataCase_ == 13; } /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return The imageClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getImageClassificationModelMetadata() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + getImageClassificationModelMetadata() { if (modelMetadataCase_ == 13) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_; + 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; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder + getImageClassificationModelMetadataOrBuilder() { if (modelMetadataCase_ == 13) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 14; /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return Whether the textClassificationModelMetadata field is set. */ @java.lang.Override @@ -564,42 +720,58 @@ public boolean hasTextClassificationModelMetadata() { return modelMetadataCase_ == 14; } /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return The textClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getTextClassificationModelMetadata() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata + getTextClassificationModelMetadata() { if (modelMetadataCase_ == 14) { - return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; + 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; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder + getTextClassificationModelMetadataOrBuilder() { if (modelMetadataCase_ == 14) { - return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); } public static final int IMAGE_OBJECT_DETECTION_MODEL_METADATA_FIELD_NUMBER = 20; /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return Whether the imageObjectDetectionModelMetadata field is set. */ @java.lang.Override @@ -607,42 +779,58 @@ public boolean hasImageObjectDetectionModelMetadata() { return modelMetadataCase_ == 20; } /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return The imageObjectDetectionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata() { + 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.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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder() { + 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.ImageObjectDetectionModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } public static final int VIDEO_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 23; /** + * + * *
    * Metadata for video classification models.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * * @return Whether the videoClassificationModelMetadata field is set. */ @java.lang.Override @@ -650,42 +838,58 @@ public boolean hasVideoClassificationModelMetadata() { return modelMetadataCase_ == 23; } /** + * + * *
    * Metadata for video classification models.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * * @return The videoClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata getVideoClassificationModelMetadata() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for video classification models.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder getVideoClassificationModelMetadataOrBuilder() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_MODEL_METADATA_FIELD_NUMBER = 21; /** + * + * *
    * Metadata for video object tracking models.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * * @return Whether the videoObjectTrackingModelMetadata field is set. */ @java.lang.Override @@ -693,42 +897,58 @@ public boolean hasVideoObjectTrackingModelMetadata() { return modelMetadataCase_ == 21; } /** + * + * *
    * Metadata for video object tracking models.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * * @return The videoObjectTrackingModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getVideoObjectTrackingModelMetadata() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + getVideoObjectTrackingModelMetadata() { if (modelMetadataCase_ == 21) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for video object tracking models.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder getVideoObjectTrackingModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder + getVideoObjectTrackingModelMetadataOrBuilder() { if (modelMetadataCase_ == 21) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; } return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } public static final int TEXT_EXTRACTION_MODEL_METADATA_FIELD_NUMBER = 19; /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return Whether the textExtractionModelMetadata field is set. */ @java.lang.Override @@ -736,42 +956,56 @@ public boolean hasTextExtractionModelMetadata() { return modelMetadataCase_ == 19; } /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return The textExtractionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getTextExtractionModelMetadata() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); } public static final int TABLES_MODEL_METADATA_FIELD_NUMBER = 24; /** + * + * *
    * Metadata for Tables models.
    * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; + * * @return Whether the tablesModelMetadata field is set. */ @java.lang.Override @@ -779,21 +1013,26 @@ public boolean hasTablesModelMetadata() { return modelMetadataCase_ == 24; } /** + * + * *
    * Metadata for Tables models.
    * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; + * * @return The tablesModelMetadata. */ @java.lang.Override 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for Tables models.
    * 
@@ -801,20 +1040,26 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata getTablesModelMetadat * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder getTablesModelMetadataOrBuilder() { + 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) 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; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return Whether the textSentimentModelMetadata field is set. */ @java.lang.Override @@ -822,31 +1067,42 @@ public boolean hasTextSentimentModelMetadata() { return modelMetadataCase_ == 22; } /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return The textSentimentModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getTextSentimentModelMetadata() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder() { + 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) modelMetadata_; } return com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); } @@ -854,12 +1110,15 @@ public com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder getTe 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; + * * @return The name. */ @java.lang.Override @@ -868,30 +1127,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -902,6 +1161,8 @@ public java.lang.String getName() { 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
@@ -910,6 +1171,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -918,14 +1180,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -934,16 +1197,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -954,12 +1216,15 @@ public java.lang.String getDisplayName() { 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; + * * @return The datasetId. */ @java.lang.Override @@ -968,30 +1233,30 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -1002,11 +1267,14 @@ public java.lang.String getDatasetId() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1014,11 +1282,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ @java.lang.Override @@ -1026,6 +1297,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
@@ -1040,11 +1313,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1052,11 +1328,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ @java.lang.Override @@ -1064,6 +1343,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
@@ -1078,33 +1359,45 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 8; private int deploymentState_; /** + * + * *
    * 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; + * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override public int getDeploymentStateValue() { + @java.lang.Override + public int getDeploymentStateValue() { return deploymentState_; } /** + * + * *
    * 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; + * * @return The deploymentState. */ - @java.lang.Override public com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState() { + @java.lang.Override + public com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.Model.DeploymentState result = com.google.cloud.automl.v1beta1.Model.DeploymentState.valueOf(deploymentState_); - return result == null ? com.google.cloud.automl.v1beta1.Model.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.Model.DeploymentState result = + com.google.cloud.automl.v1beta1.Model.DeploymentState.valueOf(deploymentState_); + return result == null + ? com.google.cloud.automl.v1beta1.Model.DeploymentState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1116,8 +1409,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1130,35 +1422,45 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } - if (deploymentState_ != com.google.cloud.automl.v1beta1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (deploymentState_ + != com.google.cloud.automl.v1beta1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(8, deploymentState_); } if (updateTime_ != null) { output.writeMessage(11, getUpdateTime()); } if (modelMetadataCase_ == 13) { - output.writeMessage(13, (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_); + output.writeMessage( + 13, (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 14) { - output.writeMessage(14, (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_); + output.writeMessage( + 14, (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 15) { - output.writeMessage(15, (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); + output.writeMessage( + 15, (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 19) { - output.writeMessage(19, (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_); + output.writeMessage( + 19, (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 20) { - output.writeMessage(20, (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_); + output.writeMessage( + 20, (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 21) { - output.writeMessage(21, (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_); + output.writeMessage( + 21, (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 22) { - output.writeMessage(22, (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_); + output.writeMessage( + 22, (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 23) { - output.writeMessage(23, (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_); + output.writeMessage( + 23, (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 24) { output.writeMessage(24, (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_); @@ -1182,52 +1484,64 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, datasetId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } - if (deploymentState_ != com.google.cloud.automl.v1beta1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, deploymentState_); + if (deploymentState_ + != com.google.cloud.automl.v1beta1.Model.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, deploymentState_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); } if (modelMetadataCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, + (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); + size += + 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_); + 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_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, + (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_); } if (modelMetadataCase_ == 22) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_); + 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_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1237,35 +1551,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.Model)) { return super.equals(obj); } com.google.cloud.automl.v1beta1.Model other = (com.google.cloud.automl.v1beta1.Model) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDatasetId() - .equals(other.getDatasetId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDatasetId().equals(other.getDatasetId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (deploymentState_ != other.deploymentState_) return false; if (!getModelMetadataCase().equals(other.getModelMetadataCase())) return false; switch (modelMetadataCase_) { case 15: - if (!getTranslationModelMetadata() - .equals(other.getTranslationModelMetadata())) return false; + if (!getTranslationModelMetadata().equals(other.getTranslationModelMetadata())) + return false; break; case 13: if (!getImageClassificationModelMetadata() @@ -1288,16 +1597,15 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getVideoObjectTrackingModelMetadata())) return false; break; case 19: - if (!getTextExtractionModelMetadata() - .equals(other.getTextExtractionModelMetadata())) return false; + if (!getTextExtractionModelMetadata().equals(other.getTextExtractionModelMetadata())) + return false; break; case 24: - if (!getTablesModelMetadata() - .equals(other.getTablesModelMetadata())) return false; + if (!getTablesModelMetadata().equals(other.getTablesModelMetadata())) return false; break; case 22: - if (!getTextSentimentModelMetadata() - .equals(other.getTextSentimentModelMetadata())) return false; + if (!getTextSentimentModelMetadata().equals(other.getTextSentimentModelMetadata())) + return false; break; case 0: default: @@ -1374,118 +1682,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.Model parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.Model parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Model parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Model parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.automl.v1beta1.Model parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Model 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.Model parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.Model parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.Model parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.Model parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.Model parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.Model parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.Model parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.Model parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.Model prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * API proto representing a trained machine learning model.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.Model} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Model) com.google.cloud.automl.v1beta1.ModelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ModelOuterClass + .internal_static_google_cloud_automl_v1beta1_Model_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ModelOuterClass + .internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.Model.class, com.google.cloud.automl.v1beta1.Model.Builder.class); + com.google.cloud.automl.v1beta1.Model.class, + com.google.cloud.automl.v1beta1.Model.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.Model.newBuilder() @@ -1493,16 +1809,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1532,9 +1847,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ModelOuterClass + .internal_static_google_cloud_automl_v1beta1_Model_descriptor; } @java.lang.Override @@ -1553,7 +1868,8 @@ public com.google.cloud.automl.v1beta1.Model build() { @java.lang.Override public com.google.cloud.automl.v1beta1.Model buildPartial() { - com.google.cloud.automl.v1beta1.Model result = new com.google.cloud.automl.v1beta1.Model(this); + com.google.cloud.automl.v1beta1.Model result = + new com.google.cloud.automl.v1beta1.Model(this); if (modelMetadataCase_ == 15) { if (translationModelMetadataBuilder_ == null) { result.modelMetadata_ = modelMetadata_; @@ -1640,38 +1956,39 @@ public com.google.cloud.automl.v1beta1.Model buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.Model) { - return mergeFrom((com.google.cloud.automl.v1beta1.Model)other); + return mergeFrom((com.google.cloud.automl.v1beta1.Model) other); } else { super.mergeFrom(other); return this; @@ -1702,45 +2019,55 @@ 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()); - break; - } - case TEXT_CLASSIFICATION_MODEL_METADATA: { - mergeTextClassificationModelMetadata(other.getTextClassificationModelMetadata()); - break; - } - case IMAGE_OBJECT_DETECTION_MODEL_METADATA: { - mergeImageObjectDetectionModelMetadata(other.getImageObjectDetectionModelMetadata()); - break; - } - case VIDEO_CLASSIFICATION_MODEL_METADATA: { - mergeVideoClassificationModelMetadata(other.getVideoClassificationModelMetadata()); - break; - } - case VIDEO_OBJECT_TRACKING_MODEL_METADATA: { - mergeVideoObjectTrackingModelMetadata(other.getVideoObjectTrackingModelMetadata()); - 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: { - break; - } + case TRANSLATION_MODEL_METADATA: + { + mergeTranslationModelMetadata(other.getTranslationModelMetadata()); + break; + } + case IMAGE_CLASSIFICATION_MODEL_METADATA: + { + mergeImageClassificationModelMetadata(other.getImageClassificationModelMetadata()); + break; + } + case TEXT_CLASSIFICATION_MODEL_METADATA: + { + mergeTextClassificationModelMetadata(other.getTextClassificationModelMetadata()); + break; + } + case IMAGE_OBJECT_DETECTION_MODEL_METADATA: + { + mergeImageObjectDetectionModelMetadata(other.getImageObjectDetectionModelMetadata()); + break; + } + case VIDEO_CLASSIFICATION_MODEL_METADATA: + { + mergeVideoClassificationModelMetadata(other.getVideoClassificationModelMetadata()); + break; + } + case VIDEO_OBJECT_TRACKING_MODEL_METADATA: + { + mergeVideoObjectTrackingModelMetadata(other.getVideoObjectTrackingModelMetadata()); + 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: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1770,12 +2097,12 @@ public Builder mergeFrom( } return this; } + private int modelMetadataCase_ = 0; private java.lang.Object modelMetadata_; - public ModelMetadataCase - getModelMetadataCase() { - return ModelMetadataCase.forNumber( - modelMetadataCase_); + + public ModelMetadataCase getModelMetadataCase() { + return ModelMetadataCase.forNumber(modelMetadataCase_); } public Builder clearModelMetadata() { @@ -1785,15 +2112,21 @@ public Builder clearModelMetadata() { return this; } - 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.TranslationModelMetadata, + com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder> + translationModelMetadataBuilder_; /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * * @return Whether the translationModelMetadata field is set. */ @java.lang.Override @@ -1801,11 +2134,15 @@ public boolean hasTranslationModelMetadata() { return modelMetadataCase_ == 15; } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * * @return The translationModelMetadata. */ @java.lang.Override @@ -1823,13 +2160,17 @@ public com.google.cloud.automl.v1beta1.TranslationModelMetadata getTranslationMo } } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * */ - public Builder setTranslationModelMetadata(com.google.cloud.automl.v1beta1.TranslationModelMetadata value) { + public Builder setTranslationModelMetadata( + com.google.cloud.automl.v1beta1.TranslationModelMetadata value) { if (translationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1843,11 +2184,14 @@ public Builder setTranslationModelMetadata(com.google.cloud.automl.v1beta1.Trans return this; } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * */ public Builder setTranslationModelMetadata( com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder builderForValue) { @@ -1861,18 +2205,26 @@ public Builder setTranslationModelMetadata( return this; } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * */ - public Builder mergeTranslationModelMetadata(com.google.cloud.automl.v1beta1.TranslationModelMetadata value) { + 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(); + 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; } @@ -1887,11 +2239,14 @@ public Builder mergeTranslationModelMetadata(com.google.cloud.automl.v1beta1.Tra return this; } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * */ public Builder clearTranslationModelMetadata() { if (translationModelMetadataBuilder_ == null) { @@ -1910,24 +2265,32 @@ public Builder clearTranslationModelMetadata() { return this; } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * */ - public com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder getTranslationModelMetadataBuilder() { + 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; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder + getTranslationModelMetadataOrBuilder() { if ((modelMetadataCase_ == 15) && (translationModelMetadataBuilder_ != null)) { return translationModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -1938,39 +2301,57 @@ public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder getTran } } /** + * + * *
      * Metadata for translation models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .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> + 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(); + 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>( + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return Whether the imageClassificationModelMetadata field is set. */ @java.lang.Override @@ -1978,35 +2359,48 @@ public boolean hasImageClassificationModelMetadata() { return modelMetadataCase_ == 13; } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return The imageClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getImageClassificationModelMetadata() { + 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(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + .getDefaultInstance(); } else { if (modelMetadataCase_ == 13) { return imageClassificationModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + .getDefaultInstance(); } } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ - public Builder setImageClassificationModelMetadata(com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata value) { + public Builder setImageClassificationModelMetadata( + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata value) { if (imageClassificationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2020,11 +2414,15 @@ public Builder setImageClassificationModelMetadata(com.google.cloud.automl.v1bet return this; } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ public Builder setImageClassificationModelMetadata( com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder builderForValue) { @@ -2038,18 +2436,29 @@ public Builder setImageClassificationModelMetadata( return this; } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ - public Builder mergeImageClassificationModelMetadata(com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata value) { + 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(); + 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; } @@ -2064,11 +2473,15 @@ public Builder mergeImageClassificationModelMetadata(com.google.cloud.automl.v1b return this; } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ public Builder clearImageClassificationModelMetadata() { if (imageClassificationModelMetadataBuilder_ == null) { @@ -2087,67 +2500,97 @@ public Builder clearImageClassificationModelMetadata() { return this; } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder getImageClassificationModelMetadataBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder() { + 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(); + return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + .getDefaultInstance(); } } /** + * + * *
      * Metadata for image classification models.
      * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .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> + 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(); + 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>( + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return Whether the textClassificationModelMetadata field is set. */ @java.lang.Override @@ -2155,15 +2598,21 @@ public boolean hasTextClassificationModelMetadata() { return modelMetadataCase_ == 14; } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return The textClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getTextClassificationModelMetadata() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata + getTextClassificationModelMetadata() { if (textClassificationModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 14) { return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; @@ -2177,13 +2626,18 @@ public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getTextCl } } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ - public Builder setTextClassificationModelMetadata(com.google.cloud.automl.v1beta1.TextClassificationModelMetadata value) { + public Builder setTextClassificationModelMetadata( + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata value) { if (textClassificationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2197,11 +2651,15 @@ public Builder setTextClassificationModelMetadata(com.google.cloud.automl.v1beta return this; } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ public Builder setTextClassificationModelMetadata( com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder builderForValue) { @@ -2215,18 +2673,29 @@ public Builder setTextClassificationModelMetadata( return this; } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ - public Builder mergeTextClassificationModelMetadata(com.google.cloud.automl.v1beta1.TextClassificationModelMetadata value) { + 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(); + 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; } @@ -2241,11 +2710,15 @@ public Builder mergeTextClassificationModelMetadata(com.google.cloud.automl.v1be return this; } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ public Builder clearTextClassificationModelMetadata() { if (textClassificationModelMetadataBuilder_ == null) { @@ -2264,24 +2737,34 @@ public Builder clearTextClassificationModelMetadata() { return this; } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder getTextClassificationModelMetadataBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder + getTextClassificationModelMetadataOrBuilder() { if ((modelMetadataCase_ == 14) && (textClassificationModelMetadataBuilder_ != null)) { return textClassificationModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -2292,39 +2775,58 @@ public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder } } /** + * + * *
      * Metadata for text classification models.
      * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .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> + 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(); + 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>( + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return Whether the imageObjectDetectionModelMetadata field is set. */ @java.lang.Override @@ -2332,35 +2834,48 @@ public boolean hasImageObjectDetectionModelMetadata() { return modelMetadataCase_ == 20; } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return The imageObjectDetectionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata() { + 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(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + .getDefaultInstance(); } else { if (modelMetadataCase_ == 20) { return imageObjectDetectionModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ - public Builder setImageObjectDetectionModelMetadata(com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata value) { + public Builder setImageObjectDetectionModelMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata value) { if (imageObjectDetectionModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2374,11 +2889,15 @@ public Builder setImageObjectDetectionModelMetadata(com.google.cloud.automl.v1be return this; } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ public Builder setImageObjectDetectionModelMetadata( com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder builderForValue) { @@ -2392,18 +2911,29 @@ public Builder setImageObjectDetectionModelMetadata( return this; } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ - public Builder mergeImageObjectDetectionModelMetadata(com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata value) { + 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(); + 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; } @@ -2418,11 +2948,15 @@ public Builder mergeImageObjectDetectionModelMetadata(com.google.cloud.automl.v1 return this; } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ public Builder clearImageObjectDetectionModelMetadata() { if (imageObjectDetectionModelMetadataBuilder_ == null) { @@ -2441,67 +2975,98 @@ public Builder clearImageObjectDetectionModelMetadata() { return this; } /** + * + * *
      * Metadata for image object detection models.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder getImageObjectDetectionModelMetadataBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder() { + 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(); + 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; + * + * .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> + 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(); + 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>( + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * * @return Whether the videoClassificationModelMetadata field is set. */ @java.lang.Override @@ -2509,35 +3074,48 @@ public boolean hasVideoClassificationModelMetadata() { return modelMetadataCase_ == 23; } /** + * + * *
      * Metadata for video classification models.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * * @return The videoClassificationModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata getVideoClassificationModelMetadata() { + 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(); + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + .getDefaultInstance(); } else { if (modelMetadataCase_ == 23) { return videoClassificationModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + .getDefaultInstance(); } } /** + * + * *
      * Metadata for video classification models.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ - public Builder setVideoClassificationModelMetadata(com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata value) { + public Builder setVideoClassificationModelMetadata( + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata value) { if (videoClassificationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2551,11 +3129,15 @@ public Builder setVideoClassificationModelMetadata(com.google.cloud.automl.v1bet return this; } /** + * + * *
      * Metadata for video classification models.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ public Builder setVideoClassificationModelMetadata( com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder builderForValue) { @@ -2569,18 +3151,29 @@ public Builder setVideoClassificationModelMetadata( return this; } /** + * + * *
      * Metadata for video classification models.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ - public Builder mergeVideoClassificationModelMetadata(com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata value) { + 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(); + 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; } @@ -2595,11 +3188,15 @@ public Builder mergeVideoClassificationModelMetadata(com.google.cloud.automl.v1b return this; } /** + * + * *
      * Metadata for video classification models.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ public Builder clearVideoClassificationModelMetadata() { if (videoClassificationModelMetadataBuilder_ == null) { @@ -2618,67 +3215,97 @@ public Builder clearVideoClassificationModelMetadata() { return this; } /** + * + * *
      * Metadata for video classification models.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder getVideoClassificationModelMetadataBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder getVideoClassificationModelMetadataOrBuilder() { + 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(); + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + .getDefaultInstance(); } } /** + * + * *
      * Metadata for video classification models.
      * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .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> + 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(); + 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>( + 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();; + onChanged(); + ; return videoClassificationModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder> videoObjectTrackingModelMetadataBuilder_; + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder> + videoObjectTrackingModelMetadataBuilder_; /** + * + * *
      * Metadata for video object tracking models.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * * @return Whether the videoObjectTrackingModelMetadata field is set. */ @java.lang.Override @@ -2686,35 +3313,48 @@ public boolean hasVideoObjectTrackingModelMetadata() { return modelMetadataCase_ == 21; } /** + * + * *
      * Metadata for video object tracking models.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * * @return The videoObjectTrackingModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getVideoObjectTrackingModelMetadata() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + getVideoObjectTrackingModelMetadata() { if (videoObjectTrackingModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 21) { return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + .getDefaultInstance(); } else { if (modelMetadataCase_ == 21) { return videoObjectTrackingModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + .getDefaultInstance(); } } /** + * + * *
      * Metadata for video object tracking models.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * */ - public Builder setVideoObjectTrackingModelMetadata(com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata value) { + public Builder setVideoObjectTrackingModelMetadata( + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata value) { if (videoObjectTrackingModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2728,11 +3368,15 @@ public Builder setVideoObjectTrackingModelMetadata(com.google.cloud.automl.v1bet return this; } /** + * + * *
      * Metadata for video object tracking models.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * */ public Builder setVideoObjectTrackingModelMetadata( com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder builderForValue) { @@ -2746,18 +3390,29 @@ public Builder setVideoObjectTrackingModelMetadata( return this; } /** + * + * *
      * Metadata for video object tracking models.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * */ - public Builder mergeVideoObjectTrackingModelMetadata(com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata value) { + public Builder mergeVideoObjectTrackingModelMetadata( + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata value) { if (videoObjectTrackingModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 21 && - modelMetadata_ != com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance()) { - modelMetadata_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.newBuilder((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_) - .mergeFrom(value).buildPartial(); + if (modelMetadataCase_ == 21 + && modelMetadata_ + != com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + .getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) + modelMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelMetadata_ = value; } @@ -2772,11 +3427,15 @@ public Builder mergeVideoObjectTrackingModelMetadata(com.google.cloud.automl.v1b return this; } /** + * + * *
      * Metadata for video object tracking models.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * */ public Builder clearVideoObjectTrackingModelMetadata() { if (videoObjectTrackingModelMetadataBuilder_ == null) { @@ -2795,67 +3454,97 @@ public Builder clearVideoObjectTrackingModelMetadata() { return this; } /** + * + * *
      * Metadata for video object tracking models.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * */ - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder getVideoObjectTrackingModelMetadataBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder + getVideoObjectTrackingModelMetadataBuilder() { return getVideoObjectTrackingModelMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for video object tracking models.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder getVideoObjectTrackingModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder + getVideoObjectTrackingModelMetadataOrBuilder() { if ((modelMetadataCase_ == 21) && (videoObjectTrackingModelMetadataBuilder_ != null)) { return videoObjectTrackingModelMetadataBuilder_.getMessageOrBuilder(); } else { if (modelMetadataCase_ == 21) { return (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + .getDefaultInstance(); } } /** + * + * *
      * Metadata for video object tracking models.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder> + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder> getVideoObjectTrackingModelMetadataFieldBuilder() { if (videoObjectTrackingModelMetadataBuilder_ == null) { if (!(modelMetadataCase_ == 21)) { - modelMetadata_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); + modelMetadata_ = + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } - videoObjectTrackingModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder>( + videoObjectTrackingModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder>( (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } modelMetadataCase_ = 21; - onChanged();; + onChanged(); + ; return videoObjectTrackingModelMetadataBuilder_; } 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_; + 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; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return Whether the textExtractionModelMetadata field is set. */ @java.lang.Override @@ -2863,15 +3552,21 @@ public boolean hasTextExtractionModelMetadata() { return modelMetadataCase_ == 19; } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return The textExtractionModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getTextExtractionModelMetadata() { + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata + getTextExtractionModelMetadata() { if (textExtractionModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 19) { return (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_; @@ -2885,13 +3580,18 @@ public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getTextExtrac } } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - public Builder setTextExtractionModelMetadata(com.google.cloud.automl.v1beta1.TextExtractionModelMetadata value) { + public Builder setTextExtractionModelMetadata( + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata value) { if (textExtractionModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2905,11 +3605,15 @@ public Builder setTextExtractionModelMetadata(com.google.cloud.automl.v1beta1.Te return this; } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ public Builder setTextExtractionModelMetadata( com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder builderForValue) { @@ -2923,18 +3627,28 @@ public Builder setTextExtractionModelMetadata( return this; } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - public Builder mergeTextExtractionModelMetadata(com.google.cloud.automl.v1beta1.TextExtractionModelMetadata value) { + public Builder mergeTextExtractionModelMetadata( + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata value) { if (textExtractionModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 19 && - modelMetadata_ != com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance()) { - modelMetadata_ = com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.newBuilder((com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_) - .mergeFrom(value).buildPartial(); + if (modelMetadataCase_ == 19 + && modelMetadata_ + != com.google.cloud.automl.v1beta1.TextExtractionModelMetadata + .getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelMetadata_ = value; } @@ -2949,11 +3663,15 @@ public Builder mergeTextExtractionModelMetadata(com.google.cloud.automl.v1beta1. return this; } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ public Builder clearTextExtractionModelMetadata() { if (textExtractionModelMetadataBuilder_ == null) { @@ -2972,24 +3690,34 @@ public Builder clearTextExtractionModelMetadata() { return this; } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder getTextExtractionModelMetadataBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder + getTextExtractionModelMetadataBuilder() { return getTextExtractionModelMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder + getTextExtractionModelMetadataOrBuilder() { if ((modelMetadataCase_ == 19) && (textExtractionModelMetadataBuilder_ != null)) { return textExtractionModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3000,39 +3728,56 @@ public com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder getT } } /** + * + * *
      * Metadata for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ private com.google.protobuf.SingleFieldBuilderV3< - 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, + 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.TextExtractionModelMetadata.getDefaultInstance(); + modelMetadata_ = + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); } - textExtractionModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextExtractionModelMetadata, com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder, com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder>( + textExtractionModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 19; - onChanged();; + onChanged(); + ; return textExtractionModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TablesModelMetadata, com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder, com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder> tablesModelMetadataBuilder_; + com.google.cloud.automl.v1beta1.TablesModelMetadata, + com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder> + tablesModelMetadataBuilder_; /** + * + * *
      * Metadata for Tables models.
      * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; + * * @return Whether the tablesModelMetadata field is set. */ @java.lang.Override @@ -3040,11 +3785,14 @@ public boolean hasTablesModelMetadata() { return modelMetadataCase_ == 24; } /** + * + * *
      * Metadata for Tables models.
      * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; + * * @return The tablesModelMetadata. */ @java.lang.Override @@ -3062,13 +3810,16 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata getTablesModelMetadat } } /** + * + * *
      * Metadata for Tables models.
      * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public Builder setTablesModelMetadata(com.google.cloud.automl.v1beta1.TablesModelMetadata value) { + public Builder setTablesModelMetadata( + com.google.cloud.automl.v1beta1.TablesModelMetadata value) { if (tablesModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3082,6 +3833,8 @@ public Builder setTablesModelMetadata(com.google.cloud.automl.v1beta1.TablesMode return this; } /** + * + * *
      * Metadata for Tables models.
      * 
@@ -3100,18 +3853,25 @@ public Builder setTablesModelMetadata( return this; } /** + * + * *
      * Metadata for Tables models.
      * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public Builder mergeTablesModelMetadata(com.google.cloud.automl.v1beta1.TablesModelMetadata value) { + public Builder mergeTablesModelMetadata( + com.google.cloud.automl.v1beta1.TablesModelMetadata value) { if (tablesModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 24 && - modelMetadata_ != com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance()) { - modelMetadata_ = com.google.cloud.automl.v1beta1.TablesModelMetadata.newBuilder((com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_) - .mergeFrom(value).buildPartial(); + if (modelMetadataCase_ == 24 + && modelMetadata_ + != com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.TablesModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelMetadata_ = value; } @@ -3126,6 +3886,8 @@ public Builder mergeTablesModelMetadata(com.google.cloud.automl.v1beta1.TablesMo return this; } /** + * + * *
      * Metadata for Tables models.
      * 
@@ -3149,16 +3911,21 @@ public Builder clearTablesModelMetadata() { return this; } /** + * + * *
      * Metadata for Tables models.
      * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder getTablesModelMetadataBuilder() { + public com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder + getTablesModelMetadataBuilder() { return getTablesModelMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for Tables models.
      * 
@@ -3166,7 +3933,8 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder getTablesMode * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder getTablesModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder + getTablesModelMetadataOrBuilder() { if ((modelMetadataCase_ == 24) && (tablesModelMetadataBuilder_ != null)) { return tablesModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3177,6 +3945,8 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder getTablesMod } } /** + * + * *
      * Metadata for Tables models.
      * 
@@ -3184,32 +3954,46 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder getTablesMod * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - 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, + 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(); } - tablesModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TablesModelMetadata, com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder, com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder>( + tablesModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 24; - onChanged();; + onChanged(); + ; return tablesModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata, com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder, com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder> textSentimentModelMetadataBuilder_; + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder> + textSentimentModelMetadataBuilder_; /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return Whether the textSentimentModelMetadata field is set. */ @java.lang.Override @@ -3217,15 +4001,21 @@ public boolean hasTextSentimentModelMetadata() { return modelMetadataCase_ == 22; } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return The textSentimentModelMetadata. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getTextSentimentModelMetadata() { + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata + getTextSentimentModelMetadata() { if (textSentimentModelMetadataBuilder_ == null) { if (modelMetadataCase_ == 22) { return (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_; @@ -3239,13 +4029,18 @@ public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getTextSentime } } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ - public Builder setTextSentimentModelMetadata(com.google.cloud.automl.v1beta1.TextSentimentModelMetadata value) { + public Builder setTextSentimentModelMetadata( + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata value) { if (textSentimentModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3259,11 +4054,15 @@ public Builder setTextSentimentModelMetadata(com.google.cloud.automl.v1beta1.Tex return this; } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ public Builder setTextSentimentModelMetadata( com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder builderForValue) { @@ -3277,18 +4076,28 @@ public Builder setTextSentimentModelMetadata( return this; } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ - public Builder mergeTextSentimentModelMetadata(com.google.cloud.automl.v1beta1.TextSentimentModelMetadata value) { + public Builder mergeTextSentimentModelMetadata( + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata value) { if (textSentimentModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 22 && - modelMetadata_ != com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance()) { - modelMetadata_ = com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.newBuilder((com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_) - .mergeFrom(value).buildPartial(); + if (modelMetadataCase_ == 22 + && modelMetadata_ + != com.google.cloud.automl.v1beta1.TextSentimentModelMetadata + .getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_) + .mergeFrom(value) + .buildPartial(); } else { modelMetadata_ = value; } @@ -3303,11 +4112,15 @@ public Builder mergeTextSentimentModelMetadata(com.google.cloud.automl.v1beta1.T return this; } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ public Builder clearTextSentimentModelMetadata() { if (textSentimentModelMetadataBuilder_ == null) { @@ -3326,24 +4139,34 @@ public Builder clearTextSentimentModelMetadata() { return this; } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ - public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder getTextSentimentModelMetadataBuilder() { + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder + getTextSentimentModelMetadataBuilder() { return getTextSentimentModelMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder() { + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder + getTextSentimentModelMetadataOrBuilder() { if ((modelMetadataCase_ == 22) && (textSentimentModelMetadataBuilder_ != null)) { return textSentimentModelMetadataBuilder_.getMessageOrBuilder(); } else { @@ -3354,46 +4177,59 @@ public com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder getTe } } /** + * + * *
      * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ private com.google.protobuf.SingleFieldBuilderV3< - 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, + 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.TextSentimentModelMetadata.getDefaultInstance(); + modelMetadata_ = + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); } - textSentimentModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSentimentModelMetadata, com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder, com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder>( + textSentimentModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 22; - onChanged();; + onChanged(); + ; return textSentimentModelMetadataBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3402,21 +4238,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3424,57 +4261,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the model.
      * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3482,6 +4326,8 @@ public Builder setNameBytes( private 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
@@ -3490,13 +4336,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3505,6 +4351,8 @@ 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
@@ -3513,15 +4361,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3529,6 +4376,8 @@ 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
@@ -3537,20 +4386,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * 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
@@ -3559,15 +4410,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * 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
@@ -3576,16 +4430,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3593,19 +4447,21 @@ public Builder setDisplayNameBytes( private 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; + * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -3614,21 +4470,22 @@ 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.
      * 
* * string dataset_id = 3; + * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -3636,57 +4493,64 @@ 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.
      * 
* * string dataset_id = 3; + * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId( - java.lang.String value) { + public Builder setDatasetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + datasetId_ = value; onChanged(); return this; } /** + * + * *
      * 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; + * * @return This builder for chaining. */ public Builder clearDatasetId() { - + datasetId_ = getDefaultInstance().getDatasetId(); onChanged(); return this; } /** + * + * *
      * 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; + * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetId_ = value; onChanged(); return this; @@ -3694,34 +4558,47 @@ public Builder setDatasetIdBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3742,14 +4619,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
* * .google.protobuf.Timestamp create_time = 7; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3760,6 +4638,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3770,7 +4650,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3782,6 +4662,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3800,6 +4682,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3807,11 +4691,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3822,11 +4708,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Timestamp when the model training finished  and can be used for prediction.
      * 
@@ -3834,14 +4723,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3849,34 +4741,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3897,14 +4802,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 11; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3915,6 +4821,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3925,7 +4833,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3937,6 +4845,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3955,6 +4865,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3962,11 +4874,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 11; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3977,11 +4891,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Timestamp when this model was last updated.
      * 
@@ -3989,14 +4906,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -4004,55 +4924,71 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int deploymentState_ = 0; /** + * + * *
      * 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; + * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override public int getDeploymentStateValue() { + @java.lang.Override + public int getDeploymentStateValue() { return deploymentState_; } /** + * + * *
      * 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; + * * @param value The enum numeric value on the wire for deploymentState to set. * @return This builder for chaining. */ public Builder setDeploymentStateValue(int value) { - + deploymentState_ = value; onChanged(); return this; } /** + * + * *
      * 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; + * * @return The deploymentState. */ @java.lang.Override public com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.Model.DeploymentState result = com.google.cloud.automl.v1beta1.Model.DeploymentState.valueOf(deploymentState_); - return result == null ? com.google.cloud.automl.v1beta1.Model.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.Model.DeploymentState result = + com.google.cloud.automl.v1beta1.Model.DeploymentState.valueOf(deploymentState_); + return result == null + ? com.google.cloud.automl.v1beta1.Model.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * 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; + * * @param value The deploymentState to set. * @return This builder for chaining. */ @@ -4060,29 +4996,32 @@ public Builder setDeploymentState(com.google.cloud.automl.v1beta1.Model.Deployme if (value == null) { throw new NullPointerException(); } - + deploymentState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * 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; + * * @return This builder for chaining. */ public Builder clearDeploymentState() { - + deploymentState_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4092,12 +5031,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Model) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Model) private static final com.google.cloud.automl.v1beta1.Model DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Model(); } @@ -4106,16 +5045,16 @@ public static com.google.cloud.automl.v1beta1.Model getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Model parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Model(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Model parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Model(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4130,6 +5069,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.Model getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java index 79a89109d..fbac3e58b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/model_evaluation.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Evaluation results of a model.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ModelEvaluation} */ -public final class ModelEvaluation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ModelEvaluation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ModelEvaluation) ModelEvaluationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ModelEvaluation.newBuilder() to construct. private ModelEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ModelEvaluation() { name_ = ""; annotationSpecId_ = ""; @@ -27,16 +45,15 @@ private ModelEvaluation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModelEvaluation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ModelEvaluation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,176 +72,254 @@ private ModelEvaluation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - annotationSpecId_ = s; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 48: { - - evaluatedExampleCount_ = input.readInt32(); - break; - } - case 66: { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 8) { - subBuilder = ((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_).toBuilder(); - } - metrics_ = - input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 8; - break; - } - case 74: { - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 9) { - subBuilder = ((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_).toBuilder(); - } - metrics_ = - input.readMessage(com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); + annotationSpecId_ = s; + break; } - 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(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - 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(); + case 48: + { + evaluatedExampleCount_ = input.readInt32(); + break; } - 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(); + case 66: + { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .Builder + subBuilder = null; + if (metricsCase_ == 8) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics) + metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics) + metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 8; + break; } - 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(); + case 74: + { + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder subBuilder = + null; + if (metricsCase_ == 9) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 9; + break; } - 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(); + 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; } - 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(); + 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; } - metricsCase_ = 13; - break; - } - case 114: { - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder subBuilder = null; - if (metricsCase_ == 14) { - subBuilder = ((com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_).toBuilder(); + 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; } - metrics_ = - input.readMessage(com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); + case 114: + { + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder + subBuilder = null; + if (metricsCase_ == 14) { + subBuilder = + ((com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) + metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) + metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 14; + break; } - metricsCase_ = 14; - break; - } - case 122: { - java.lang.String s = input.readStringRequireUtf8(); + 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(); + displayName_ = s; + break; } - 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(); + 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; } - metricsCase_ = 24; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass + .internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass + .internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ModelEvaluation.class, com.google.cloud.automl.v1beta1.ModelEvaluation.Builder.class); + com.google.cloud.automl.v1beta1.ModelEvaluation.class, + com.google.cloud.automl.v1beta1.ModelEvaluation.Builder.class); } private int metricsCase_ = 0; private java.lang.Object metrics_; + public enum MetricsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLASSIFICATION_EVALUATION_METRICS(8), REGRESSION_EVALUATION_METRICS(24), @@ -235,6 +330,7 @@ public enum MetricsCase TEXT_EXTRACTION_EVALUATION_METRICS(13), METRICS_NOT_SET(0); private final int value; + private MetricsCase(int value) { this.value = value; } @@ -250,30 +346,40 @@ public static MetricsCase valueOf(int value) { 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 14: return VIDEO_OBJECT_TRACKING_EVALUATION_METRICS; - case 11: return TEXT_SENTIMENT_EVALUATION_METRICS; - case 13: return TEXT_EXTRACTION_EVALUATION_METRICS; - case 0: return METRICS_NOT_SET; - default: return null; + 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 14: + return VIDEO_OBJECT_TRACKING_EVALUATION_METRICS; + case 11: + return TEXT_SENTIMENT_EVALUATION_METRICS; + case 13: + return TEXT_EXTRACTION_EVALUATION_METRICS; + case 0: + return METRICS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public MetricsCase - getMetricsCase() { - return MetricsCase.forNumber( - metricsCase_); + public MetricsCase getMetricsCase() { + return MetricsCase.forNumber(metricsCase_); } public static final int CLASSIFICATION_EVALUATION_METRICS_FIELD_NUMBER = 8; /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -281,7 +387,10 @@ public int getNumber() {
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return Whether the classificationEvaluationMetrics field is set. */ @java.lang.Override @@ -289,6 +398,8 @@ public boolean hasClassificationEvaluationMetrics() { return metricsCase_ == 8; } /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -296,17 +407,25 @@ public boolean hasClassificationEvaluationMetrics() {
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return The classificationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getClassificationEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + getClassificationEvaluationMetrics() { if (metricsCase_ == 8) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) + metrics_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .getDefaultInstance(); } /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -314,25 +433,36 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetricsOrBuilder + getClassificationEvaluationMetricsOrBuilder() { if (metricsCase_ == 8) { - return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) + metrics_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + * * @return Whether the regressionEvaluationMetrics field is set. */ @java.lang.Override @@ -340,46 +470,64 @@ 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + * * @return The regressionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics getRegressionEvaluationMetrics() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder getRegressionEvaluationMetricsOrBuilder() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .getDefaultInstance(); } public static final int TRANSLATION_EVALUATION_METRICS_FIELD_NUMBER = 9; /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return Whether the translationEvaluationMetrics field is set. */ @java.lang.Override @@ -387,42 +535,58 @@ public boolean hasTranslationEvaluationMetrics() { return metricsCase_ == 9; } /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return The translationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getTranslationEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics + getTranslationEvaluationMetrics() { if (metricsCase_ == 9) { - return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; + 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; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder + getTranslationEvaluationMetricsOrBuilder() { if (metricsCase_ == 9) { - return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; } 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ @java.lang.Override @@ -430,42 +594,60 @@ public boolean hasImageObjectDetectionEvaluationMetrics() { return metricsCase_ == 12; } /** + * + * *
    * Model evaluation metrics for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return The imageObjectDetectionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder() { + 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) metrics_; } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_EVALUATION_METRICS_FIELD_NUMBER = 14; /** + * + * *
    * Model evaluation metrics for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * * @return Whether the videoObjectTrackingEvaluationMetrics field is set. */ @java.lang.Override @@ -473,42 +655,60 @@ public boolean hasVideoObjectTrackingEvaluationMetrics() { return metricsCase_ == 14; } /** + * + * *
    * Model evaluation metrics for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * * @return The videoObjectTrackingEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getVideoObjectTrackingEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + getVideoObjectTrackingEvaluationMetrics() { if (metricsCase_ == 14) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + .getDefaultInstance(); } /** + * + * *
    * Model evaluation metrics for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder getVideoObjectTrackingEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder + getVideoObjectTrackingEvaluationMetricsOrBuilder() { if (metricsCase_ == 14) { - return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + .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; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return Whether the textSentimentEvaluationMetrics field is set. */ @java.lang.Override @@ -516,42 +716,62 @@ public boolean hasTextSentimentEvaluationMetrics() { return metricsCase_ == 11; } /** + * + * *
    * Evaluation metrics for text sentiment models.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return The textSentimentEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics() { + 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) + metrics_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder() { + 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) + metrics_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return Whether the textExtractionEvaluationMetrics field is set. */ @java.lang.Override @@ -559,31 +779,42 @@ public boolean hasTextExtractionEvaluationMetrics() { return metricsCase_ == 13; } /** + * + * *
    * Evaluation metrics for text extraction models.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return The textExtractionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics() { + 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) 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; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder() { + 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) metrics_; } return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); } @@ -591,6 +822,8 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -598,6 +831,7 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -606,14 +840,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 evaluation.
    * Format:
@@ -621,16 +856,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -641,6 +875,8 @@ public java.lang.String getName() { public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 2; private volatile java.lang.Object annotationSpecId_; /** + * + * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -653,6 +889,7 @@ public java.lang.String getName() {
    * 
* * string annotation_spec_id = 2; + * * @return The annotationSpecId. */ @java.lang.Override @@ -661,14 +898,15 @@ public java.lang.String getAnnotationSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; } } /** + * + * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -681,16 +919,15 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string annotation_spec_id = 2; + * * @return The bytes for annotationSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -701,6 +938,8 @@ public java.lang.String getAnnotationSpecId() { public static final int DISPLAY_NAME_FIELD_NUMBER = 15; private volatile java.lang.Object displayName_; /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -716,6 +955,7 @@ public java.lang.String getAnnotationSpecId() {
    * 
* * string display_name = 15; + * * @return The displayName. */ @java.lang.Override @@ -724,14 +964,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -747,16 +988,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 15; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -767,11 +1007,14 @@ public java.lang.String getDisplayName() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -779,11 +1022,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ @java.lang.Override @@ -791,6 +1037,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
@@ -805,6 +1053,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EVALUATED_EXAMPLE_COUNT_FIELD_NUMBER = 6; private int evaluatedExampleCount_; /** + * + * *
    * 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
@@ -817,6 +1067,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * int32 evaluated_example_count = 6; + * * @return The evaluatedExampleCount. */ @java.lang.Override @@ -825,6 +1076,7 @@ public int getEvaluatedExampleCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -836,8 +1088,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -851,28 +1102,40 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt32(6, evaluatedExampleCount_); } if (metricsCase_ == 8) { - output.writeMessage(8, (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_); + output.writeMessage( + 8, + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) + metrics_); } if (metricsCase_ == 9) { - output.writeMessage(9, (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); + output.writeMessage( + 9, (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); } if (metricsCase_ == 11) { - output.writeMessage(11, (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_); + output.writeMessage( + 11, + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) + metrics_); } if (metricsCase_ == 12) { - output.writeMessage(12, (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_); + output.writeMessage( + 12, (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_); } if (metricsCase_ == 13) { - output.writeMessage(13, (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_); + output.writeMessage( + 13, (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_); } if (metricsCase_ == 14) { - output.writeMessage(14, (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_); + output.writeMessage( + 14, (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, displayName_); } if (metricsCase_ == 24) { - output.writeMessage(24, (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) metrics_); + output.writeMessage( + 24, + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) metrics_); } unknownFields.writeTo(output); } @@ -890,43 +1153,54 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annotationSpecId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (evaluatedExampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, evaluatedExampleCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, evaluatedExampleCount_); } if (metricsCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) metrics_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) + metrics_); } if (metricsCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); } if (metricsCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_); + 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_); + 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_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_); } if (metricsCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) + metrics_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -936,26 +1210,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.ModelEvaluation)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.ModelEvaluation other = (com.google.cloud.automl.v1beta1.ModelEvaluation) obj; + com.google.cloud.automl.v1beta1.ModelEvaluation other = + (com.google.cloud.automl.v1beta1.ModelEvaluation) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAnnotationSpecId() - .equals(other.getAnnotationSpecId())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + 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; + if (!getCreateTime().equals(other.getCreateTime())) return false; } - if (getEvaluatedExampleCount() - != other.getEvaluatedExampleCount()) return false; + if (getEvaluatedExampleCount() != other.getEvaluatedExampleCount()) return false; if (!getMetricsCase().equals(other.getMetricsCase())) return false; switch (metricsCase_) { case 8: @@ -963,12 +1233,12 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClassificationEvaluationMetrics())) return false; break; case 24: - if (!getRegressionEvaluationMetrics() - .equals(other.getRegressionEvaluationMetrics())) return false; + if (!getRegressionEvaluationMetrics().equals(other.getRegressionEvaluationMetrics())) + return false; break; case 9: - if (!getTranslationEvaluationMetrics() - .equals(other.getTranslationEvaluationMetrics())) return false; + if (!getTranslationEvaluationMetrics().equals(other.getTranslationEvaluationMetrics())) + return false; break; case 12: if (!getImageObjectDetectionEvaluationMetrics() @@ -979,8 +1249,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getVideoObjectTrackingEvaluationMetrics())) return false; break; case 11: - if (!getTextSentimentEvaluationMetrics() - .equals(other.getTextSentimentEvaluationMetrics())) return false; + if (!getTextSentimentEvaluationMetrics().equals(other.getTextSentimentEvaluationMetrics())) + return false; break; case 13: if (!getTextExtractionEvaluationMetrics() @@ -1049,118 +1319,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ModelEvaluation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ModelEvaluation 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.ModelEvaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.ModelEvaluation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ModelEvaluation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Evaluation results of a model.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ModelEvaluation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ModelEvaluation) com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass + .internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass + .internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ModelEvaluation.class, com.google.cloud.automl.v1beta1.ModelEvaluation.Builder.class); + com.google.cloud.automl.v1beta1.ModelEvaluation.class, + com.google.cloud.automl.v1beta1.ModelEvaluation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ModelEvaluation.newBuilder() @@ -1168,16 +1447,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1201,9 +1479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass + .internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; } @java.lang.Override @@ -1222,7 +1500,8 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation build() { @java.lang.Override public com.google.cloud.automl.v1beta1.ModelEvaluation buildPartial() { - com.google.cloud.automl.v1beta1.ModelEvaluation result = new com.google.cloud.automl.v1beta1.ModelEvaluation(this); + com.google.cloud.automl.v1beta1.ModelEvaluation result = + new com.google.cloud.automl.v1beta1.ModelEvaluation(this); if (metricsCase_ == 8) { if (classificationEvaluationMetricsBuilder_ == null) { result.metrics_ = metrics_; @@ -1290,38 +1569,39 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ModelEvaluation) { - return mergeFrom((com.google.cloud.automl.v1beta1.ModelEvaluation)other); + return mergeFrom((com.google.cloud.automl.v1beta1.ModelEvaluation) other); } else { super.mergeFrom(other); return this; @@ -1329,7 +1609,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ModelEvaluation other) { - if (other == com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1349,37 +1630,47 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ModelEvaluation other) setEvaluatedExampleCount(other.getEvaluatedExampleCount()); } switch (other.getMetricsCase()) { - case CLASSIFICATION_EVALUATION_METRICS: { - 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 VIDEO_OBJECT_TRACKING_EVALUATION_METRICS: { - mergeVideoObjectTrackingEvaluationMetrics(other.getVideoObjectTrackingEvaluationMetrics()); - break; - } - case TEXT_SENTIMENT_EVALUATION_METRICS: { - mergeTextSentimentEvaluationMetrics(other.getTextSentimentEvaluationMetrics()); - break; - } - case TEXT_EXTRACTION_EVALUATION_METRICS: { - mergeTextExtractionEvaluationMetrics(other.getTextExtractionEvaluationMetrics()); - break; - } - case METRICS_NOT_SET: { - break; - } + case CLASSIFICATION_EVALUATION_METRICS: + { + 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 VIDEO_OBJECT_TRACKING_EVALUATION_METRICS: + { + mergeVideoObjectTrackingEvaluationMetrics( + other.getVideoObjectTrackingEvaluationMetrics()); + break; + } + case TEXT_SENTIMENT_EVALUATION_METRICS: + { + mergeTextSentimentEvaluationMetrics(other.getTextSentimentEvaluationMetrics()); + break; + } + case TEXT_EXTRACTION_EVALUATION_METRICS: + { + mergeTextExtractionEvaluationMetrics(other.getTextExtractionEvaluationMetrics()); + break; + } + case METRICS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1409,12 +1700,12 @@ public Builder mergeFrom( } return this; } + private int metricsCase_ = 0; private java.lang.Object metrics_; - public MetricsCase - getMetricsCase() { - return MetricsCase.forNumber( - metricsCase_); + + public MetricsCase getMetricsCase() { + return MetricsCase.forNumber(metricsCase_); } public Builder clearMetrics() { @@ -1424,10 +1715,16 @@ public Builder clearMetrics() { 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_; + 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.
@@ -1435,7 +1732,10 @@ public Builder clearMetrics() {
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return Whether the classificationEvaluationMetrics field is set. */ @java.lang.Override @@ -1443,6 +1743,8 @@ public boolean hasClassificationEvaluationMetrics() { return metricsCase_ == 8; } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1450,24 +1752,34 @@ public boolean hasClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return The classificationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getClassificationEvaluationMetrics() { + 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) + metrics_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance(); + 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(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .getDefaultInstance(); } } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1475,9 +1787,12 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ - public Builder setClassificationEvaluationMetrics(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics value) { + public Builder setClassificationEvaluationMetrics( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics value) { if (classificationEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1491,6 +1806,8 @@ public Builder setClassificationEvaluationMetrics(com.google.cloud.automl.v1beta return this; } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1498,10 +1815,13 @@ public Builder setClassificationEvaluationMetrics(com.google.cloud.automl.v1beta
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ public Builder setClassificationEvaluationMetrics( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder + builderForValue) { if (classificationEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -1512,6 +1832,8 @@ public Builder setClassificationEvaluationMetrics( return this; } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1519,14 +1841,25 @@ public Builder setClassificationEvaluationMetrics(
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ - public Builder mergeClassificationEvaluationMetrics(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics value) { + 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(); + 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; } @@ -1541,6 +1874,8 @@ public Builder mergeClassificationEvaluationMetrics(com.google.cloud.automl.v1be return this; } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1548,7 +1883,9 @@ public Builder mergeClassificationEvaluationMetrics(com.google.cloud.automl.v1be
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ public Builder clearClassificationEvaluationMetrics() { if (classificationEvaluationMetricsBuilder_ == null) { @@ -1567,6 +1904,8 @@ public Builder clearClassificationEvaluationMetrics() { return this; } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1574,12 +1913,18 @@ public Builder clearClassificationEvaluationMetrics() {
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder getClassificationEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .Builder + getClassificationEvaluationMetricsBuilder() { return getClassificationEvaluationMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1587,20 +1932,29 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder() { + 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) + metrics_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .getDefaultInstance(); } } /** + * + * *
      * Model evaluation metrics for image, text, video and tables
      * classification.
@@ -1608,37 +1962,61 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat
      * is CATEGORY DataType.
      * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .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> + 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(); + 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_, + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + * * @return Whether the regressionEvaluationMetrics field is set. */ @java.lang.Override @@ -1646,39 +2024,53 @@ 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + * * @return The regressionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics getRegressionEvaluationMetrics() { + 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) + metrics_; } - return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.getDefaultInstance(); + 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(); + 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * */ - public Builder setRegressionEvaluationMetrics(com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics value) { + public Builder setRegressionEvaluationMetrics( + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics value) { if (regressionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1692,16 +2084,21 @@ public Builder setRegressionEvaluationMetrics(com.google.cloud.automl.v1beta1.Re 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * */ public Builder setRegressionEvaluationMetrics( - com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder builderForValue) { + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder + builderForValue) { if (regressionEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -1712,20 +2109,32 @@ public Builder setRegressionEvaluationMetrics( 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * */ - public Builder mergeRegressionEvaluationMetrics(com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics value) { + 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(); + 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; } @@ -1740,13 +2149,17 @@ public Builder mergeRegressionEvaluationMetrics(com.google.cloud.automl.v1beta1. 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * */ public Builder clearRegressionEvaluationMetrics() { if (regressionEvaluationMetricsBuilder_ == null) { @@ -1765,73 +2178,107 @@ public Builder clearRegressionEvaluationMetrics() { 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * */ - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder getRegressionEvaluationMetricsBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder getRegressionEvaluationMetricsOrBuilder() { + 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) + metrics_; } - return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.getDefaultInstance(); + 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; + * + * .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> + 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(); + 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_, + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return Whether the translationEvaluationMetrics field is set. */ @java.lang.Override @@ -1839,15 +2286,21 @@ public boolean hasTranslationEvaluationMetrics() { return metricsCase_ == 9; } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return The translationEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getTranslationEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics + getTranslationEvaluationMetrics() { if (translationEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 9) { return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; @@ -1861,13 +2314,18 @@ public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getTranslati } } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ - public Builder setTranslationEvaluationMetrics(com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics value) { + public Builder setTranslationEvaluationMetrics( + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics value) { if (translationEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1881,11 +2339,15 @@ public Builder setTranslationEvaluationMetrics(com.google.cloud.automl.v1beta1.T return this; } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ public Builder setTranslationEvaluationMetrics( com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder builderForValue) { @@ -1899,18 +2361,28 @@ public Builder setTranslationEvaluationMetrics( return this; } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ - public Builder mergeTranslationEvaluationMetrics(com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics value) { + 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(); + 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; } @@ -1925,11 +2397,15 @@ public Builder mergeTranslationEvaluationMetrics(com.google.cloud.automl.v1beta1 return this; } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ public Builder clearTranslationEvaluationMetrics() { if (translationEvaluationMetricsBuilder_ == null) { @@ -1948,24 +2424,34 @@ public Builder clearTranslationEvaluationMetrics() { return this; } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder getTranslationEvaluationMetricsBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder + getTranslationEvaluationMetricsOrBuilder() { if ((metricsCase_ == 9) && (translationEvaluationMetricsBuilder_ != null)) { return translationEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -1976,39 +2462,58 @@ public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder get } } /** + * + * *
      * Model evaluation metrics for translation.
      * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .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> + 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(); + 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>( + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ @java.lang.Override @@ -2016,35 +2521,48 @@ public boolean hasImageObjectDetectionEvaluationMetrics() { return metricsCase_ == 12; } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return The imageObjectDetectionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics() { + 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(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); } else { if (metricsCase_ == 12) { return imageObjectDetectionEvaluationMetricsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ - public Builder setImageObjectDetectionEvaluationMetrics(com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics value) { + public Builder setImageObjectDetectionEvaluationMetrics( + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics value) { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2058,14 +2576,19 @@ public Builder setImageObjectDetectionEvaluationMetrics(com.google.cloud.automl. return this; } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ public Builder setImageObjectDetectionEvaluationMetrics( - com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder + builderForValue) { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -2076,18 +2599,29 @@ public Builder setImageObjectDetectionEvaluationMetrics( return this; } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ - public Builder mergeImageObjectDetectionEvaluationMetrics(com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics value) { + 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(); + 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; } @@ -2102,11 +2636,15 @@ public Builder mergeImageObjectDetectionEvaluationMetrics(com.google.cloud.autom return this; } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ public Builder clearImageObjectDetectionEvaluationMetrics() { if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { @@ -2125,67 +2663,98 @@ public Builder clearImageObjectDetectionEvaluationMetrics() { return this; } /** + * + * *
      * Model evaluation metrics for image object detection.
      * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder getImageObjectDetectionEvaluationMetricsBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder() { + 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(); + 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; + * + * .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> + 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(); + 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>( + 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();; + onChanged(); + ; return imageObjectDetectionEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder> videoObjectTrackingEvaluationMetricsBuilder_; + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder> + videoObjectTrackingEvaluationMetricsBuilder_; /** + * + * *
      * Model evaluation metrics for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * * @return Whether the videoObjectTrackingEvaluationMetrics field is set. */ @java.lang.Override @@ -2193,35 +2762,48 @@ public boolean hasVideoObjectTrackingEvaluationMetrics() { return metricsCase_ == 14; } /** + * + * *
      * Model evaluation metrics for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * * @return The videoObjectTrackingEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getVideoObjectTrackingEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + getVideoObjectTrackingEvaluationMetrics() { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 14) { return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + .getDefaultInstance(); } else { if (metricsCase_ == 14) { return videoObjectTrackingEvaluationMetricsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + .getDefaultInstance(); } } /** + * + * *
      * Model evaluation metrics for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * */ - public Builder setVideoObjectTrackingEvaluationMetrics(com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics value) { + public Builder setVideoObjectTrackingEvaluationMetrics( + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics value) { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2235,14 +2817,19 @@ public Builder setVideoObjectTrackingEvaluationMetrics(com.google.cloud.automl.v return this; } /** + * + * *
      * Model evaluation metrics for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * */ public Builder setVideoObjectTrackingEvaluationMetrics( - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder builderForValue) { + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder + builderForValue) { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -2253,18 +2840,29 @@ public Builder setVideoObjectTrackingEvaluationMetrics( return this; } /** + * + * *
      * Model evaluation metrics for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * */ - public Builder mergeVideoObjectTrackingEvaluationMetrics(com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics value) { + public Builder mergeVideoObjectTrackingEvaluationMetrics( + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics value) { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 14 && - metrics_ != com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance()) { - metrics_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.newBuilder((com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_) - .mergeFrom(value).buildPartial(); + if (metricsCase_ == 14 + && metrics_ + != com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.newBuilder( + (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) + metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -2279,11 +2877,15 @@ public Builder mergeVideoObjectTrackingEvaluationMetrics(com.google.cloud.automl return this; } /** + * + * *
      * Model evaluation metrics for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * */ public Builder clearVideoObjectTrackingEvaluationMetrics() { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { @@ -2302,67 +2904,100 @@ public Builder clearVideoObjectTrackingEvaluationMetrics() { return this; } /** + * + * *
      * Model evaluation metrics for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * */ - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder getVideoObjectTrackingEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder + getVideoObjectTrackingEvaluationMetricsBuilder() { return getVideoObjectTrackingEvaluationMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Model evaluation metrics for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder getVideoObjectTrackingEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder + getVideoObjectTrackingEvaluationMetricsOrBuilder() { if ((metricsCase_ == 14) && (videoObjectTrackingEvaluationMetricsBuilder_ != null)) { return videoObjectTrackingEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { if (metricsCase_ == 14) { return (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + .getDefaultInstance(); } } /** + * + * *
      * Model evaluation metrics for video object tracking.
      * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder> getVideoObjectTrackingEvaluationMetricsFieldBuilder() { if (videoObjectTrackingEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 14)) { - metrics_ = com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance(); + metrics_ = + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + .getDefaultInstance(); } - videoObjectTrackingEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder>( + videoObjectTrackingEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder>( (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 14; - onChanged();; + onChanged(); + ; return videoObjectTrackingEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder> textSentimentEvaluationMetricsBuilder_; + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .Builder, + com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetricsOrBuilder> + textSentimentEvaluationMetricsBuilder_; /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return Whether the textSentimentEvaluationMetrics field is set. */ @java.lang.Override @@ -2370,35 +3005,49 @@ public boolean hasTextSentimentEvaluationMetrics() { return metricsCase_ == 11; } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return The textSentimentEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics() { + 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.TextSentimentProto.TextSentimentEvaluationMetrics) + metrics_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .getDefaultInstance(); } else { if (metricsCase_ == 11) { return textSentimentEvaluationMetricsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ - public Builder setTextSentimentEvaluationMetrics(com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics value) { + public Builder setTextSentimentEvaluationMetrics( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics value) { if (textSentimentEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2412,14 +3061,19 @@ public Builder setTextSentimentEvaluationMetrics(com.google.cloud.automl.v1beta1 return this; } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ public Builder setTextSentimentEvaluationMetrics( - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder builderForValue) { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder + builderForValue) { if (textSentimentEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -2430,18 +3084,31 @@ public Builder setTextSentimentEvaluationMetrics( return this; } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ - public Builder mergeTextSentimentEvaluationMetrics(com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics value) { + public Builder mergeTextSentimentEvaluationMetrics( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics value) { if (textSentimentEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 11 && - metrics_ != com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.getDefaultInstance()) { - metrics_ = com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.newBuilder((com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_) - .mergeFrom(value).buildPartial(); + if (metricsCase_ == 11 + && metrics_ + != com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .newBuilder( + (com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetrics) + metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -2456,11 +3123,15 @@ public Builder mergeTextSentimentEvaluationMetrics(com.google.cloud.automl.v1bet return this; } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ public Builder clearTextSentimentEvaluationMetrics() { if (textSentimentEvaluationMetricsBuilder_ == null) { @@ -2479,67 +3150,105 @@ public Builder clearTextSentimentEvaluationMetrics() { return this; } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder getTextSentimentEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder + getTextSentimentEvaluationMetricsBuilder() { return getTextSentimentEvaluationMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Evaluation metrics for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetricsOrBuilder + getTextSentimentEvaluationMetricsOrBuilder() { if ((metricsCase_ == 11) && (textSentimentEvaluationMetricsBuilder_ != null)) { return textSentimentEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { if (metricsCase_ == 11) { - return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_; + return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) + metrics_; } - return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.getDefaultInstance(); + 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; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder> + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .Builder, + com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetricsOrBuilder> getTextSentimentEvaluationMetricsFieldBuilder() { if (textSentimentEvaluationMetricsBuilder_ == null) { if (!(metricsCase_ == 11)) { - metrics_ = com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.getDefaultInstance(); + metrics_ = + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .getDefaultInstance(); } - textSentimentEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder>( - (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_, + textSentimentEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .Builder, + com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetricsOrBuilder>( + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) + metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 11; - onChanged();; + onChanged(); + ; return textSentimentEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder> textExtractionEvaluationMetricsBuilder_; + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder> + textExtractionEvaluationMetricsBuilder_; /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return Whether the textExtractionEvaluationMetrics field is set. */ @java.lang.Override @@ -2547,15 +3256,21 @@ public boolean hasTextExtractionEvaluationMetrics() { return metricsCase_ == 13; } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return The textExtractionEvaluationMetrics. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + getTextExtractionEvaluationMetrics() { if (textExtractionEvaluationMetricsBuilder_ == null) { if (metricsCase_ == 13) { return (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_; @@ -2569,13 +3284,18 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics getTextEx } } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ - public Builder setTextExtractionEvaluationMetrics(com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics value) { + public Builder setTextExtractionEvaluationMetrics( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics value) { if (textExtractionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2589,11 +3309,15 @@ public Builder setTextExtractionEvaluationMetrics(com.google.cloud.automl.v1beta return this; } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ public Builder setTextExtractionEvaluationMetrics( com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder builderForValue) { @@ -2607,18 +3331,28 @@ public Builder setTextExtractionEvaluationMetrics( return this; } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ - public Builder mergeTextExtractionEvaluationMetrics(com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics value) { + public Builder mergeTextExtractionEvaluationMetrics( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics value) { if (textExtractionEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 13 && - metrics_ != com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance()) { - metrics_ = com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.newBuilder((com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_) - .mergeFrom(value).buildPartial(); + if (metricsCase_ == 13 + && metrics_ + != com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.newBuilder( + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -2633,11 +3367,15 @@ public Builder mergeTextExtractionEvaluationMetrics(com.google.cloud.automl.v1be return this; } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ public Builder clearTextExtractionEvaluationMetrics() { if (textExtractionEvaluationMetricsBuilder_ == null) { @@ -2656,24 +3394,34 @@ public Builder clearTextExtractionEvaluationMetrics() { return this; } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder getTextExtractionEvaluationMetricsBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder + getTextExtractionEvaluationMetricsBuilder() { return getTextExtractionEvaluationMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder + getTextExtractionEvaluationMetricsOrBuilder() { if ((metricsCase_ == 13) && (textExtractionEvaluationMetricsBuilder_ != null)) { return textExtractionEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -2684,33 +3432,46 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder } } /** + * + * *
      * Evaluation metrics for text extraction models.
      * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - 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, + 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.TextExtractionEvaluationMetrics.getDefaultInstance(); + metrics_ = + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); } - textExtractionEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder>( + textExtractionEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 13; - onChanged();; + onChanged(); + ; return textExtractionEvaluationMetricsBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2718,13 +3479,13 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder
      * 
* * string name = 1; + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2733,6 +3494,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2740,15 +3503,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2756,6 +3518,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2763,20 +3527,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2784,15 +3550,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the model evaluation.
      * Format:
@@ -2800,16 +3569,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2817,6 +3586,8 @@ public Builder setNameBytes( private java.lang.Object annotationSpecId_ = ""; /** + * + * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2829,13 +3600,13 @@ public Builder setNameBytes(
      * 
* * string annotation_spec_id = 2; + * * @return The annotationSpecId. */ public java.lang.String getAnnotationSpecId() { java.lang.Object ref = annotationSpecId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecId_ = s; return s; @@ -2844,6 +3615,8 @@ public java.lang.String getAnnotationSpecId() { } } /** + * + * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2856,15 +3629,14 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 2; + * * @return The bytes for annotationSpecId. */ - public com.google.protobuf.ByteString - getAnnotationSpecIdBytes() { + public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { java.lang.Object ref = annotationSpecId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecId_ = b; return b; } else { @@ -2872,6 +3644,8 @@ public java.lang.String getAnnotationSpecId() { } } /** + * + * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2884,20 +3658,22 @@ public java.lang.String getAnnotationSpecId() {
      * 
* * string annotation_spec_id = 2; + * * @param value The annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecId( - java.lang.String value) { + public Builder setAnnotationSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2910,15 +3686,18 @@ public Builder setAnnotationSpecId(
      * 
* * string annotation_spec_id = 2; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecId() { - + annotationSpecId_ = getDefaultInstance().getAnnotationSpecId(); onChanged(); return this; } /** + * + * *
      * Output only. The ID of the annotation spec that the model evaluation applies to. The
      * The ID is empty for the overall model evaluation.
@@ -2931,16 +3710,16 @@ public Builder clearAnnotationSpecId() {
      * 
* * string annotation_spec_id = 2; + * * @param value The bytes for annotationSpecId to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecId_ = value; onChanged(); return this; @@ -2948,6 +3727,8 @@ public Builder setAnnotationSpecIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -2963,13 +3744,13 @@ public Builder setAnnotationSpecIdBytes(
      * 
* * string display_name = 15; + * * @return The displayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2978,6 +3759,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -2993,15 +3776,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 15; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3009,6 +3791,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -3024,20 +3808,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 15; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -3053,15 +3839,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 15; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Output only. The value of
      * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -3077,16 +3866,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 15; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3094,34 +3883,47 @@ public Builder setDisplayNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3142,14 +3944,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3160,6 +3963,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3170,7 +3975,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3182,6 +3987,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3200,6 +4007,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3207,11 +4016,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3222,11 +4033,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Timestamp when this model evaluation was created.
      * 
@@ -3234,21 +4048,26 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } - private int evaluatedExampleCount_ ; + private int evaluatedExampleCount_; /** + * + * *
      * 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
@@ -3261,6 +4080,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * int32 evaluated_example_count = 6; + * * @return The evaluatedExampleCount. */ @java.lang.Override @@ -3268,6 +4088,8 @@ public int getEvaluatedExampleCount() { return evaluatedExampleCount_; } /** + * + * *
      * 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
@@ -3280,16 +4102,19 @@ public int getEvaluatedExampleCount() {
      * 
* * int32 evaluated_example_count = 6; + * * @param value The evaluatedExampleCount to set. * @return This builder for chaining. */ public Builder setEvaluatedExampleCount(int value) { - + evaluatedExampleCount_ = value; onChanged(); return this; } /** + * + * *
      * 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
@@ -3302,17 +4127,18 @@ public Builder setEvaluatedExampleCount(int value) {
      * 
* * int32 evaluated_example_count = 6; + * * @return This builder for chaining. */ public Builder clearEvaluatedExampleCount() { - + evaluatedExampleCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3322,12 +4148,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ModelEvaluation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ModelEvaluation) private static final com.google.cloud.automl.v1beta1.ModelEvaluation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ModelEvaluation(); } @@ -3336,16 +4162,16 @@ public static com.google.cloud.automl.v1beta1.ModelEvaluation getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModelEvaluation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModelEvaluation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelEvaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelEvaluation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3360,6 +4186,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.ModelEvaluation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java index f1c849ce8..f1b473442 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/model_evaluation.proto package com.google.cloud.automl.v1beta1; -public interface ModelEvaluationOrBuilder extends +public interface ModelEvaluationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ModelEvaluation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -15,11 +33,16 @@ public interface ModelEvaluationOrBuilder extends
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return Whether the classificationEvaluationMetrics field is set. */ boolean hasClassificationEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -27,11 +50,17 @@ public interface ModelEvaluationOrBuilder extends
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * * @return The classificationEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getClassificationEvaluationMetrics(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + getClassificationEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for image, text, video and tables
    * classification.
@@ -39,179 +68,279 @@ public interface ModelEvaluationOrBuilder extends
    * is CATEGORY DataType.
    * 
* - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetricsOrBuilder + getClassificationEvaluationMetricsOrBuilder(); /** + * + * *
    * 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + * * @return Whether the regressionEvaluationMetrics field is set. */ 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + * * @return The regressionEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics getRegressionEvaluationMetrics(); + 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; + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * */ - com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder getRegressionEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder + getRegressionEvaluationMetricsOrBuilder(); /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return Whether the translationEvaluationMetrics field is set. */ boolean hasTranslationEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * * @return The translationEvaluationMetrics. */ com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getTranslationEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for translation.
    * 
* - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * */ - com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder(); + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return Whether the imageObjectDetectionEvaluationMetrics field is set. */ boolean hasImageObjectDetectionEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for image object detection.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + * * @return The imageObjectDetectionEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics(); + 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; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder + getImageObjectDetectionEvaluationMetricsOrBuilder(); /** + * + * *
    * Model evaluation metrics for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * * @return Whether the videoObjectTrackingEvaluationMetrics field is set. */ boolean hasVideoObjectTrackingEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * * @return The videoObjectTrackingEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getVideoObjectTrackingEvaluationMetrics(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + getVideoObjectTrackingEvaluationMetrics(); /** + * + * *
    * Model evaluation metrics for video object tracking.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14; + * */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder getVideoObjectTrackingEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder + getVideoObjectTrackingEvaluationMetricsOrBuilder(); /** + * + * *
    * Evaluation metrics for text sentiment models.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return Whether the textSentimentEvaluationMetrics field is set. */ boolean hasTextSentimentEvaluationMetrics(); /** + * + * *
    * Evaluation metrics for text sentiment models.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * * @return The textSentimentEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics(); + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + getTextSentimentEvaluationMetrics(); /** + * + * *
    * Evaluation metrics for text sentiment models.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * */ - com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder + getTextSentimentEvaluationMetricsOrBuilder(); /** + * + * *
    * Evaluation metrics for text extraction models.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return Whether the textExtractionEvaluationMetrics field is set. */ boolean hasTextExtractionEvaluationMetrics(); /** + * + * *
    * Evaluation metrics for text extraction models.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * * @return The textExtractionEvaluationMetrics. */ - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics(); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + getTextExtractionEvaluationMetrics(); /** + * + * *
    * Evaluation metrics for text extraction models.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * */ - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder(); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder + getTextExtractionEvaluationMetricsOrBuilder(); /** + * + * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -219,10 +348,13 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the model evaluation.
    * Format:
@@ -230,12 +362,14 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -248,10 +382,13 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string annotation_spec_id = 2; + * * @return The annotationSpecId. */ java.lang.String getAnnotationSpecId(); /** + * + * *
    * Output only. The ID of the annotation spec that the model evaluation applies to. The
    * The ID is empty for the overall model evaluation.
@@ -264,12 +401,14 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string annotation_spec_id = 2; + * * @return The bytes for annotationSpecId. */ - com.google.protobuf.ByteString - getAnnotationSpecIdBytes(); + com.google.protobuf.ByteString getAnnotationSpecIdBytes(); /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -285,10 +424,13 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string display_name = 15; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Output only. The value of
    * [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
@@ -304,30 +446,38 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * string display_name = 15; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp when this model evaluation was created.
    * 
@@ -337,6 +487,8 @@ public interface ModelEvaluationOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * 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
@@ -349,6 +501,7 @@ public interface ModelEvaluationOrBuilder extends
    * 
* * int32 evaluated_example_count = 6; + * * @return The evaluatedExampleCount. */ int getEvaluatedExampleCount(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java new file mode 100644 index 000000000..c86e09bb8 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java @@ -0,0 +1,141 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/model_evaluation.proto + +package com.google.cloud.automl.v1beta1; + +public final class ModelEvaluationOuterClass { + private ModelEvaluationOuterClass() {} + + 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_ModelEvaluation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/automl/v1beta1/model_eval" + + "uation.proto\022\033google.cloud.automl.v1beta" + + "1\032\031google/api/resource.proto\0320google/clo" + + "ud/automl/v1beta1/classification.proto\032+" + + "google/cloud/automl/v1beta1/detection.pr" + + "oto\032,google/cloud/automl/v1beta1/regress" + + "ion.proto\032(google/cloud/automl/v1beta1/t" + + "ables.proto\0321google/cloud/automl/v1beta1" + + "/text_extraction.proto\0320google/cloud/aut" + + "oml/v1beta1/text_sentiment.proto\032-google" + + "/cloud/automl/v1beta1/translation.proto\032" + + "\037google/protobuf/timestamp.proto\032\034google" + + "/api/annotations.proto\"\261\010\n\017ModelEvaluati" + + "on\022i\n!classification_evaluation_metrics\030" + + "\010 \001(\0132<.google.cloud.automl.v1beta1.Clas" + + "sificationEvaluationMetricsH\000\022a\n\035regress" + + "ion_evaluation_metrics\030\030 \001(\01328.google.cl" + + "oud.automl.v1beta1.RegressionEvaluationM" + + "etricsH\000\022c\n\036translation_evaluation_metri" + + "cs\030\t \001(\01329.google.cloud.automl.v1beta1.T" + + "ranslationEvaluationMetricsH\000\022w\n)image_o" + + "bject_detection_evaluation_metrics\030\014 \001(\013" + + "2B.google.cloud.automl.v1beta1.ImageObje" + + "ctDetectionEvaluationMetricsH\000\022u\n(video_" + + "object_tracking_evaluation_metrics\030\016 \001(\013" + + "2A.google.cloud.automl.v1beta1.VideoObje" + + "ctTrackingEvaluationMetricsH\000\022h\n!text_se" + + "ntiment_evaluation_metrics\030\013 \001(\0132;.googl" + + "e.cloud.automl.v1beta1.TextSentimentEval" + + "uationMetricsH\000\022j\n\"text_extraction_evalu" + + "ation_metrics\030\r \001(\0132<.google.cloud.autom" + + "l.v1beta1.TextExtractionEvaluationMetric" + + "sH\000\022\014\n\004name\030\001 \001(\t\022\032\n\022annotation_spec_id\030" + + "\002 \001(\t\022\024\n\014display_name\030\017 \001(\t\022/\n\013create_ti" + + "me\030\005 \001(\0132\032.google.protobuf.Timestamp\022\037\n\027" + + "evaluated_example_count\030\006 \001(\005:\207\001\352A\203\001\n%au" + + "toml.googleapis.com/ModelEvaluation\022Zpro" + + "jects/{project}/locations/{location}/mod" + + "els/{model}/modelEvaluations/{model_eval" + + "uation}B\t\n\007metricsB\245\001\n\037com.google.cloud." + + "automl.v1beta1P\001ZAgoogle.golang.org/genp" + + "roto/googleapis/cloud/automl/v1beta1;aut" + + "oml\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Goog" + + "le::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.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(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor, + new java.lang.String[] { + "ClassificationEvaluationMetrics", + "RegressionEvaluationMetrics", + "TranslationEvaluationMetrics", + "ImageObjectDetectionEvaluationMetrics", + "VideoObjectTrackingEvaluationMetrics", + "TextSentimentEvaluationMetrics", + "TextExtractionEvaluationMetrics", + "Name", + "AnnotationSpecId", + "DisplayName", + "CreateTime", + "EvaluatedExampleCount", + "Metrics", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.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(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java similarity index 78% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java index 966a9ed07..72a76d121 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModelExportOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ModelExportOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,106 +71,117 @@ private ModelExportOutputConfig( 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(); + 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; } - 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(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; } - destinationCase_ = 1; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + 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; } - 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(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - modelFormat_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + modelFormat_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.class, + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), GCR_DESTINATION(3), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -169,25 +197,30 @@ public static DestinationCase valueOf(int 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; + 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 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:
@@ -200,6 +233,7 @@ public int getNumber() {
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -207,6 +241,8 @@ 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:
@@ -219,16 +255,19 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override 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) 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:
@@ -245,13 +284,15 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   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) 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:
@@ -260,6 +301,7 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
    * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + * * @return Whether the gcrDestination field is set. */ @java.lang.Override @@ -267,6 +309,8 @@ 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:
@@ -275,16 +319,19 @@ public boolean hasGcrDestination() {
    * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + * * @return The gcrDestination. */ @java.lang.Override 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) 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:
@@ -297,7 +344,7 @@ public com.google.cloud.automl.v1beta1.GcrDestination getGcrDestination() {
   @java.lang.Override
   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) destination_;
     }
     return com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance();
   }
@@ -305,6 +352,8 @@ public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestination
   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
@@ -351,6 +400,7 @@ public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestination
    * 
* * string model_format = 4; + * * @return The modelFormat. */ @java.lang.Override @@ -359,14 +409,15 @@ public java.lang.String getModelFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -413,16 +464,15 @@ public java.lang.String getModelFormat() {
    * 
* * string model_format = 4; + * * @return The bytes for modelFormat. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelFormat_ = b; return b; } else { @@ -431,24 +481,23 @@ public java.lang.String getModelFormat() { } public static final int PARAMS_FIELD_NUMBER = 2; + private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> 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, - ""); + 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< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -457,6 +506,8 @@ 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
@@ -468,22 +519,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 2;
    */
-
   @java.lang.Override
-  public boolean containsParams(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsParams(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetParams().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Override
   @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
@@ -496,11 +547,12 @@ public java.util.Map getParams() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
   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
@@ -513,16 +565,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
-  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();
+  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
@@ -535,12 +587,11 @@ public java.lang.String getParamsOrDefault(
    * map<string, string> params = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getParamsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetParams().getMap();
+  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();
     }
@@ -548,6 +599,7 @@ public java.lang.String getParamsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -559,17 +611,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  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);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 2);
     if (destinationCase_ == 3) {
       output.writeMessage(3, (com.google.cloud.automl.v1beta1.GcrDestination) destination_);
     }
@@ -586,22 +633,24 @@ public int getSerializedSize() {
 
     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__);
+      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_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.cloud.automl.v1beta1.GcrDestination) destination_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelFormat_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modelFormat_);
@@ -614,26 +663,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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;
+    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 (!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;
+        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
         break;
       case 3:
-        if (!getGcrDestination()
-            .equals(other.getGcrDestination())) return false;
+        if (!getGcrDestination().equals(other.getGcrDestination())) return false;
         break;
       case 0:
       default:
@@ -673,139 +719,147 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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)
+      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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.automl.v1beta1.ModelExportOutputConfig prototype) {
+
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.class, + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.ModelExportOutputConfig.newBuilder() @@ -813,16 +867,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -835,9 +888,9 @@ public Builder clear() { } @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; + 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 @@ -856,7 +909,8 @@ public com.google.cloud.automl.v1beta1.ModelExportOutputConfig build() { @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); + com.google.cloud.automl.v1beta1.ModelExportOutputConfig result = + new com.google.cloud.automl.v1beta1.ModelExportOutputConfig(this); int from_bitField0_ = bitField0_; if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { @@ -884,38 +938,39 @@ public com.google.cloud.automl.v1beta1.ModelExportOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.ModelExportOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -923,25 +978,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.ModelExportOutputConfig other) { - if (other == com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance()) + return this; if (!other.getModelFormat().isEmpty()) { modelFormat_ = other.modelFormat_; onChanged(); } - internalGetMutableParams().mergeFrom( - other.internalGetParams()); + 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; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case GCR_DESTINATION: + { + mergeGcrDestination(other.getGcrDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -962,7 +1020,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.ModelExportOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.ModelExportOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -971,12 +1030,12 @@ public Builder mergeFrom( } return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -989,8 +1048,13 @@ public Builder clearDestination() { 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_; + 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:
@@ -1003,6 +1067,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -1010,6 +1075,8 @@ 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:
@@ -1022,6 +1089,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -1039,6 +1107,8 @@ public 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:
@@ -1066,6 +1136,8 @@ public Builder setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination
       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:
@@ -1091,6 +1163,8 @@ public Builder setGcsDestination(
       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:
@@ -1106,10 +1180,14 @@ public Builder setGcsDestination(
      */
     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();
+        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;
         }
@@ -1124,6 +1202,8 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestinatio
       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:
@@ -1154,6 +1234,8 @@ public Builder clearGcsDestination() {
       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:
@@ -1171,6 +1253,8 @@ public com.google.cloud.automl.v1beta1.GcsDestination.Builder getGcsDestinationB
       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:
@@ -1196,6 +1280,8 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder 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:
@@ -1210,27 +1296,38 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
      * .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> 
+            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>(
+        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();;
+      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_;
+            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:
@@ -1239,6 +1336,7 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
      * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + * * @return Whether the gcrDestination field is set. */ @java.lang.Override @@ -1246,6 +1344,8 @@ 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:
@@ -1254,6 +1354,7 @@ public boolean hasGcrDestination() {
      * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + * * @return The gcrDestination. */ @java.lang.Override @@ -1271,6 +1372,8 @@ public 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:
@@ -1294,6 +1397,8 @@ public Builder setGcrDestination(com.google.cloud.automl.v1beta1.GcrDestination
       return this;
     }
     /**
+     *
+     *
      * 
      * The GCR location where model image is to be pushed to. This location
      * may only be set for the following model formats:
@@ -1315,6 +1420,8 @@ public Builder setGcrDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * The GCR location where model image is to be pushed to. This location
      * may only be set for the following model formats:
@@ -1326,10 +1433,14 @@ public Builder setGcrDestination(
      */
     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();
+        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;
         }
@@ -1344,6 +1455,8 @@ public Builder mergeGcrDestination(com.google.cloud.automl.v1beta1.GcrDestinatio
       return this;
     }
     /**
+     *
+     *
      * 
      * The GCR location where model image is to be pushed to. This location
      * may only be set for the following model formats:
@@ -1370,6 +1483,8 @@ public Builder clearGcrDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The GCR location where model image is to be pushed to. This location
      * may only be set for the following model formats:
@@ -1383,6 +1498,8 @@ public com.google.cloud.automl.v1beta1.GcrDestination.Builder getGcrDestinationB
       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:
@@ -1404,6 +1521,8 @@ public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestination
       }
     }
     /**
+     *
+     *
      * 
      * The GCR location where model image is to be pushed to. This location
      * may only be set for the following model formats:
@@ -1414,26 +1533,34 @@ public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestination
      * .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> 
+            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>(
+        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();;
+      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
@@ -1480,13 +1607,13 @@ public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestination
      * 
* * string model_format = 4; + * * @return The modelFormat. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelFormat_ = s; return s; @@ -1495,6 +1622,8 @@ public 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
@@ -1541,15 +1670,14 @@ public java.lang.String getModelFormat() {
      * 
* * string model_format = 4; + * * @return The bytes for modelFormat. */ - public com.google.protobuf.ByteString - getModelFormatBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelFormat_ = b; return b; } else { @@ -1557,6 +1685,8 @@ public 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
@@ -1603,20 +1733,22 @@ public java.lang.String getModelFormat() {
      * 
* * string model_format = 4; + * * @param value The modelFormat to set. * @return This builder for chaining. */ - public Builder setModelFormat( - java.lang.String value) { + public Builder setModelFormat(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -1663,15 +1795,18 @@ public Builder setModelFormat(
      * 
* * string model_format = 4; + * * @return This builder for chaining. */ 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
@@ -1718,37 +1853,36 @@ public Builder clearModelFormat() {
      * 
* * string model_format = 4; + * * @param value The bytes for modelFormat to set. * @return This builder for chaining. */ - public Builder setModelFormatBytes( - com.google.protobuf.ByteString value) { + public Builder setModelFormatBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelFormat_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } + private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged();; + internalGetMutableParams() { + onChanged(); + ; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1760,6 +1894,8 @@ 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
@@ -1771,22 +1907,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 2;
      */
-
     @java.lang.Override
-    public boolean containsParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsParams(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetParams().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getParamsMap()} instead.
-     */
+    /** Use {@link #getParamsMap()} instead. */
     @java.lang.Override
     @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
@@ -1799,11 +1935,12 @@ public java.util.Map getParams() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
     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
@@ -1816,16 +1953,17 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
     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();
+        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
@@ -1838,12 +1976,11 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getParamsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetParams().getMap();
+    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();
       }
@@ -1851,11 +1988,12 @@ public java.lang.String getParamsOrThrow(
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap()
-          .clear();
+      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
@@ -1867,23 +2005,21 @@ public Builder clearParams() {
      *
      * map<string, string> params = 2;
      */
-
-    public Builder removeParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableParams().getMutableMap()
-          .remove(key);
+    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.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableParams() {
+    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
@@ -1895,16 +2031,19 @@ public Builder removeParams(
      *
      * 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);
+    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
@@ -1916,16 +2055,13 @@ public Builder putParams(
      *
      * map<string, string> params = 2;
      */
-
-    public Builder putAllParams(
-        java.util.Map values) {
-      internalGetMutableParams().getMutableMap()
-          .putAll(values);
+    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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1935,12 +2071,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -1949,16 +2085,16 @@ public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig getDefault
     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);
-    }
-  };
+  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;
@@ -1973,6 +2109,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.ModelExportOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java
similarity index 89%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java
index e07bc86f0..1b77d30a7 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+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:
@@ -20,10 +38,13 @@ public interface ModelExportOutputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ 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:
@@ -36,10 +57,13 @@ public interface ModelExportOutputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ 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:
@@ -56,6 +80,8 @@ public interface ModelExportOutputConfigOrBuilder extends
   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:
@@ -64,10 +90,13 @@ public interface ModelExportOutputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + * * @return Whether the gcrDestination field is set. */ boolean hasGcrDestination(); /** + * + * *
    * The GCR location where model image is to be pushed to. This location
    * may only be set for the following model formats:
@@ -76,10 +105,13 @@ public interface ModelExportOutputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + * * @return The gcrDestination. */ 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:
@@ -92,6 +124,8 @@ public interface ModelExportOutputConfigOrBuilder extends
   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
@@ -138,10 +172,13 @@ public interface ModelExportOutputConfigOrBuilder extends
    * 
* * string model_format = 4; + * * @return The modelFormat. */ 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
@@ -188,12 +225,14 @@ public interface ModelExportOutputConfigOrBuilder extends
    * 
* * string model_format = 4; + * * @return The bytes for modelFormat. */ - com.google.protobuf.ByteString - getModelFormatBytes(); + 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
@@ -207,6 +246,8 @@ public interface ModelExportOutputConfigOrBuilder extends
    */
   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
@@ -218,15 +259,13 @@ public interface ModelExportOutputConfigOrBuilder extends
    *
    * map<string, string> params = 2;
    */
-  boolean containsParams(
-      java.lang.String key);
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  boolean containsParams(java.lang.String key);
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getParams();
+  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
@@ -238,9 +277,10 @@ boolean containsParams(
    *
    * map<string, string> params = 2;
    */
-  java.util.Map
-  getParamsMap();
+  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
@@ -252,11 +292,10 @@ boolean containsParams(
    *
    * map<string, string> params = 2;
    */
-
-  java.lang.String getParamsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  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
@@ -268,9 +307,8 @@ java.lang.String getParamsOrDefault(
    *
    * map<string, string> params = 2;
    */
+  java.lang.String getParamsOrThrow(java.lang.String key);
 
-  java.lang.String getParamsOrThrow(
-      java.lang.String key);
-
-  public com.google.cloud.automl.v1beta1.ModelExportOutputConfig.DestinationCase getDestinationCase();
+  public com.google.cloud.automl.v1beta1.ModelExportOutputConfig.DestinationCase
+      getDestinationCase();
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java
similarity index 66%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java
index c78911ac3..e63f75501 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java
@@ -1,220 +1,351 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1beta1/model.proto
 
 package com.google.cloud.automl.v1beta1;
 
-public interface ModelOrBuilder extends
+public interface ModelOrBuilder
+    extends
     // @@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; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * * @return Whether the translationModelMetadata field is set. */ boolean hasTranslationModelMetadata(); /** + * + * *
    * Metadata for translation models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * * @return The translationModelMetadata. */ com.google.cloud.automl.v1beta1.TranslationModelMetadata getTranslationModelMetadata(); /** + * + * *
    * Metadata for translation models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * */ - com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder + getTranslationModelMetadataOrBuilder(); /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return Whether the imageClassificationModelMetadata field is set. */ boolean hasImageClassificationModelMetadata(); /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * * @return The imageClassificationModelMetadata. */ - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getImageClassificationModelMetadata(); + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + getImageClassificationModelMetadata(); /** + * + * *
    * Metadata for image classification models.
    * 
* - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * */ - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder + getImageClassificationModelMetadataOrBuilder(); /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return Whether the textClassificationModelMetadata field is set. */ boolean hasTextClassificationModelMetadata(); /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * * @return The textClassificationModelMetadata. */ - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getTextClassificationModelMetadata(); + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata + getTextClassificationModelMetadata(); /** + * + * *
    * Metadata for text classification models.
    * 
* - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * */ - com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder + getTextClassificationModelMetadataOrBuilder(); /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return Whether the imageObjectDetectionModelMetadata field is set. */ boolean hasImageObjectDetectionModelMetadata(); /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * * @return The imageObjectDetectionModelMetadata. */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata(); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + getImageObjectDetectionModelMetadata(); /** + * + * *
    * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * */ - com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder + getImageObjectDetectionModelMetadataOrBuilder(); /** + * + * *
    * Metadata for video classification models.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * * @return Whether the videoClassificationModelMetadata field is set. */ boolean hasVideoClassificationModelMetadata(); /** + * + * *
    * Metadata for video classification models.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * * @return The videoClassificationModelMetadata. */ - com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata getVideoClassificationModelMetadata(); + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + getVideoClassificationModelMetadata(); /** + * + * *
    * Metadata for video classification models.
    * 
* - * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ - com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder getVideoClassificationModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder + getVideoClassificationModelMetadataOrBuilder(); /** + * + * *
    * Metadata for video object tracking models.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * * @return Whether the videoObjectTrackingModelMetadata field is set. */ boolean hasVideoObjectTrackingModelMetadata(); /** + * + * *
    * Metadata for video object tracking models.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * * @return The videoObjectTrackingModelMetadata. */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getVideoObjectTrackingModelMetadata(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + getVideoObjectTrackingModelMetadata(); /** + * + * *
    * Metadata for video object tracking models.
    * 
* - * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * + * .google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21; + * */ - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder getVideoObjectTrackingModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder + getVideoObjectTrackingModelMetadataOrBuilder(); /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return Whether the textExtractionModelMetadata field is set. */ boolean hasTextExtractionModelMetadata(); /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * * @return The textExtractionModelMetadata. */ com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getTextExtractionModelMetadata(); /** + * + * *
    * Metadata for text extraction models.
    * 
* - * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder + getTextExtractionModelMetadataOrBuilder(); /** + * + * *
    * Metadata for Tables models.
    * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; + * * @return Whether the tablesModelMetadata field is set. */ boolean hasTablesModelMetadata(); /** + * + * *
    * Metadata for Tables models.
    * 
* * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; + * * @return The tablesModelMetadata. */ com.google.cloud.automl.v1beta1.TablesModelMetadata getTablesModelMetadata(); /** + * + * *
    * Metadata for Tables models.
    * 
@@ -224,55 +355,77 @@ public interface ModelOrBuilder extends com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder getTablesModelMetadataOrBuilder(); /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return Whether the textSentimentModelMetadata field is set. */ boolean hasTextSentimentModelMetadata(); /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * * @return The textSentimentModelMetadata. */ com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getTextSentimentModelMetadata(); /** + * + * *
    * Metadata for text sentiment models.
    * 
* - * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * */ - com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder + getTextSentimentModelMetadataOrBuilder(); /** + * + * *
    * Output only. Resource name of the model.
    * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the model.
    * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * 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
@@ -281,10 +434,13 @@ public interface ModelOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ 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
@@ -293,52 +449,65 @@ public interface ModelOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * 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; + * * @return The datasetId. */ 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.
    * 
* * string dataset_id = 3; + * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString - getDatasetIdBytes(); + com.google.protobuf.ByteString getDatasetIdBytes(); /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp when the model training finished  and can be used for prediction.
    * 
@@ -348,24 +517,32 @@ public interface ModelOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Timestamp when this model was last updated.
    * 
@@ -375,22 +552,28 @@ public interface ModelOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * 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; + * * @return The enum numeric value on the wire for deploymentState. */ int getDeploymentStateValue(); /** + * + * *
    * 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; + * * @return The deploymentState. */ com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java new file mode 100644 index 000000000..5fa242df7 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java @@ -0,0 +1,144 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/model.proto + +package com.google.cloud.automl.v1beta1; + +public final class ModelOuterClass { + private ModelOuterClass() {} + + 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_Model_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Model_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/model.prot" + + "o\022\033google.cloud.automl.v1beta1\032\031google/a" + + "pi/resource.proto\032\'google/cloud/automl/v" + + "1beta1/image.proto\032(google/cloud/automl/" + + "v1beta1/tables.proto\032&google/cloud/autom" + + "l/v1beta1/text.proto\032-google/cloud/autom" + + "l/v1beta1/translation.proto\032\'google/clou" + + "d/automl/v1beta1/video.proto\032\037google/pro" + + "tobuf/timestamp.proto\032\034google/api/annota" + + "tions.proto\"\314\n\n\005Model\022[\n\032translation_mod" + + "el_metadata\030\017 \001(\01325.google.cloud.automl." + + "v1beta1.TranslationModelMetadataH\000\022l\n#im" + + "age_classification_model_metadata\030\r \001(\0132" + + "=.google.cloud.automl.v1beta1.ImageClass" + + "ificationModelMetadataH\000\022j\n\"text_classif" + + "ication_model_metadata\030\016 \001(\0132<.google.cl" + + "oud.automl.v1beta1.TextClassificationMod" + + "elMetadataH\000\022o\n%image_object_detection_m" + + "odel_metadata\030\024 \001(\0132>.google.cloud.autom" + + "l.v1beta1.ImageObjectDetectionModelMetad" + + "ataH\000\022l\n#video_classification_model_meta" + + "data\030\027 \001(\0132=.google.cloud.automl.v1beta1" + + ".VideoClassificationModelMetadataH\000\022m\n$v" + + "ideo_object_tracking_model_metadata\030\025 \001(" + + "\0132=.google.cloud.automl.v1beta1.VideoObj" + + "ectTrackingModelMetadataH\000\022b\n\036text_extra" + + "ction_model_metadata\030\023 \001(\01328.google.clou" + + "d.automl.v1beta1.TextExtractionModelMeta" + + "dataH\000\022Q\n\025tables_model_metadata\030\030 \001(\01320." + + "google.cloud.automl.v1beta1.TablesModelM" + + "etadataH\000\022`\n\035text_sentiment_model_metada" + + "ta\030\026 \001(\01327.google.cloud.automl.v1beta1.T" + + "extSentimentModelMetadataH\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.protob" + + "uf.Timestamp\022/\n\013update_time\030\013 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022L\n\020deployment_stat" + + "e\030\010 \001(\01622.google.cloud.automl.v1beta1.Mo" + + "del.DeploymentState\"Q\n\017DeploymentState\022 " + + "\n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\014\n\010DEPL" + + "OYED\020\001\022\016\n\nUNDEPLOYED\020\002:X\352AU\n\033automl.goog" + + "leapis.com/Model\0226projects/{project}/loc" + + "ations/{location}/models/{model}B\020\n\016mode" + + "l_metadataB\245\001\n\037com.google.cloud.automl.v" + + "1beta1P\001ZAgoogle.golang.org/genproto/goo" + + "gleapis/cloud/automl/v1beta1;automl\312\002\033Go" + + "ogle\\Cloud\\AutoMl\\V1beta1\352\002\036Google::Clou" + + "d::AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.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(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_Model_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Model_descriptor, + new java.lang.String[] { + "TranslationModelMetadata", + "ImageClassificationModelMetadata", + "TextClassificationModelMetadata", + "ImageObjectDetectionModelMetadata", + "VideoClassificationModelMetadata", + "VideoObjectTrackingModelMetadata", + "TextExtractionModelMetadata", + "TablesModelMetadata", + "TextSentimentModelMetadata", + "Name", + "DisplayName", + "DatasetId", + "CreateTime", + "UpdateTime", + "DeploymentState", + "ModelMetadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.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(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java index c6af43430..f56ba38e4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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
@@ -14,30 +31,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.NormalizedVertex}
  */
-public final class NormalizedVertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private NormalizedVertex() {
-  }
+
+  private NormalizedVertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,56 +72,61 @@ private NormalizedVertex(
           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;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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;
+
+  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
+    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);
+            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; + * * @return The x. */ @java.lang.Override @@ -116,11 +137,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Required. Vertical coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -129,6 +153,7 @@ public float getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +165,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (x_ != 0F) { output.writeFloat(1, x_); } @@ -158,12 +182,10 @@ public int getSerializedSize() { size = 0; if (x_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (y_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,19 +195,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (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; } @@ -198,107 +219,112 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + 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) + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -309,21 +335,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.NormalizedVertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.NormalizedVertex.class,
+              com.google.cloud.automl.v1beta1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.NormalizedVertex.newBuilder()
@@ -331,16 +359,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -352,9 +379,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -373,7 +400,8 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.NormalizedVertex result =
+          new com.google.cloud.automl.v1beta1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -384,38 +412,39 @@ public com.google.cloud.automl.v1beta1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.NormalizedVertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -423,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.NormalizedVertex other) {
-      if (other == com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance()) return this;
+      if (other == com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance())
+        return this;
       if (other.getX() != 0F) {
         setX(other.getX());
       }
@@ -459,13 +489,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * Required. Horizontal coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -473,42 +506,51 @@ public float getX() { return x_; } /** + * + * *
      * Required. Horizontal coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * Required. Horizontal coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -516,37 +558,43 @@ public float getY() { return y_; } /** + * + * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Required. Vertical coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -556,12 +604,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -570,16 +618,16 @@ public static com.google.cloud.automl.v1beta1.NormalizedVertex getDefaultInstanc 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); - } - }; + 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; @@ -594,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..cef427423 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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; + * + * @return The x. + */ + float getX(); + + /** + * + * + *
+   * Required. Vertical coordinate.
+   * 
+ * + * float y = 2; + * + * @return The y. + */ + float getY(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java index 0147be495..efce081f3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/operations.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Metadata used across all long running operations returned by AutoML API.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { partialFailures_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,186 +71,253 @@ private OperationMetadata( case 0: done = true; break; - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - partialFailures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - partialFailures_.add( - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + partialFailures_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + partialFailures_.add( + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + break; } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + 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(); + break; } - 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(); + 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; } - detailsCase_ = 8; - break; - } - case 82: { - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder subBuilder = null; - if (detailsCase_ == 10) { - subBuilder = ((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_).toBuilder(); + case 82: + { + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder subBuilder = + null; + if (detailsCase_ == 10) { + subBuilder = + ((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 10; + break; } - details_ = - input.readMessage(com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_); - details_ = subBuilder.buildPartial(); + case 104: + { + progressPercent_ = input.readInt32(); + break; } - detailsCase_ = 10; - break; - } - case 104: { - - 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(); + 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; } - 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(); + 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; } - 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(); + 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; } - 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(); + 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; } - 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(); + 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; } - 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(); + 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; } - 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(); + 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; } - 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(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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)) { - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); @@ -242,23 +326,28 @@ private OperationMetadata( makeExtensionsImmutable(); } } - 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 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 + 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); + com.google.cloud.automl.v1beta1.OperationMetadata.class, + com.google.cloud.automl.v1beta1.OperationMetadata.Builder.class); } private int detailsCase_ = 0; private java.lang.Object details_; + public enum DetailsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DELETE_DETAILS(8), DEPLOY_MODEL_DETAILS(24), @@ -271,6 +360,7 @@ public enum DetailsCase EXPORT_EVALUATED_EXAMPLES_DETAILS(26), DETAILS_NOT_SET(0); private final int value; + private DetailsCase(int value) { this.value = value; } @@ -286,37 +376,50 @@ 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: return null; + 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: + return null; } } + public int getNumber() { return this.value; } }; - public DetailsCase - getDetailsCase() { - return DetailsCase.forNumber( - detailsCase_); + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); } public static final int DELETE_DETAILS_FIELD_NUMBER = 8; /** + * + * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + * * @return Whether the deleteDetails field is set. */ @java.lang.Override @@ -324,21 +427,26 @@ public boolean hasDeleteDetails() { return detailsCase_ == 8; } /** + * + * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + * * @return The deleteDetails. */ @java.lang.Override 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.DeleteOperationMetadata) details_; } return com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of a Delete operation.
    * 
@@ -346,20 +454,25 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDeleteDetails( * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder getDeleteDetailsOrBuilder() { + 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.DeleteOperationMetadata) details_; } return com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); } public static final int DEPLOY_MODEL_DETAILS_FIELD_NUMBER = 24; /** + * + * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + * * @return Whether the deployModelDetails field is set. */ @java.lang.Override @@ -367,42 +480,54 @@ public boolean hasDeployModelDetails() { return detailsCase_ == 24; } /** + * + * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + * * @return The deployModelDetails. */ @java.lang.Override 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) details_; } return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); } public static final int UNDEPLOY_MODEL_DETAILS_FIELD_NUMBER = 25; /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return Whether the undeployModelDetails field is set. */ @java.lang.Override @@ -410,42 +535,54 @@ public boolean hasUndeployModelDetails() { return detailsCase_ == 25; } /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return The undeployModelDetails. */ @java.lang.Override 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) details_; } return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); } public static final int CREATE_MODEL_DETAILS_FIELD_NUMBER = 10; /** + * + * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * * @return Whether the createModelDetails field is set. */ @java.lang.Override @@ -453,42 +590,53 @@ public boolean hasCreateModelDetails() { return detailsCase_ == 10; } /** + * + * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * * @return The createModelDetails. */ @java.lang.Override 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) details_; } return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); } public static final int IMPORT_DATA_DETAILS_FIELD_NUMBER = 15; /** + * + * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * * @return Whether the importDataDetails field is set. */ @java.lang.Override @@ -496,21 +644,26 @@ public boolean hasImportDataDetails() { return detailsCase_ == 15; } /** + * + * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * * @return The importDataDetails. */ @java.lang.Override 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) details_; } return com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of ImportData operation.
    * 
@@ -518,20 +671,25 @@ public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getImportData * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder getImportDataDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); } public static final int BATCH_PREDICT_DETAILS_FIELD_NUMBER = 16; /** + * + * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + * * @return Whether the batchPredictDetails field is set. */ @java.lang.Override @@ -539,42 +697,53 @@ public boolean hasBatchPredictDetails() { return detailsCase_ == 16; } /** + * + * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + * * @return The batchPredictDetails. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getBatchPredictDetails() { if (detailsCase_ == 16) { - return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; + return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; } return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder + getBatchPredictDetailsOrBuilder() { if (detailsCase_ == 16) { - return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; + return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; } return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); } public static final int EXPORT_DATA_DETAILS_FIELD_NUMBER = 21; /** + * + * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * * @return Whether the exportDataDetails field is set. */ @java.lang.Override @@ -582,21 +751,26 @@ public boolean hasExportDataDetails() { return detailsCase_ == 21; } /** + * + * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * * @return The exportDataDetails. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getExportDataDetails() { if (detailsCase_ == 21) { - return (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_; + return (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_; } return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of ExportData operation.
    * 
@@ -604,20 +778,25 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getExportData * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder getExportDataDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); } public static final int EXPORT_MODEL_DETAILS_FIELD_NUMBER = 22; /** + * + * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + * * @return Whether the exportModelDetails field is set. */ @java.lang.Override @@ -625,42 +804,55 @@ public boolean hasExportModelDetails() { return detailsCase_ == 22; } /** + * + * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + * * @return The exportModelDetails. */ @java.lang.Override 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) details_; } return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); } /** + * + * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder() { + 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) details_; } return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); } 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; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * * @return Whether the exportEvaluatedExamplesDetails field is set. */ @java.lang.Override @@ -668,44 +860,60 @@ public boolean hasExportEvaluatedExamplesDetails() { return detailsCase_ == 26; } /** + * + * *
    * Details of ExportEvaluatedExamples operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * * @return The exportEvaluatedExamplesDetails. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata getExportEvaluatedExamplesDetails() { + 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) details_; } - return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of ExportEvaluatedExamples operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder getExportEvaluatedExamplesDetailsOrBuilder() { + 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) details_; } - return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } 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; + * * @return The progressPercent. */ @java.lang.Override @@ -716,6 +924,8 @@ public int getProgressPercent() { 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.
@@ -730,6 +940,8 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -740,11 +952,13 @@ public java.util.List getPartialFailuresList() {
    * repeated .google.rpc.Status partial_failures = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPartialFailuresOrBuilderList() {
     return partialFailures_;
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -759,6 +973,8 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -773,6 +989,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
     return partialFailures_.get(index);
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -783,19 +1001,21 @@ public com.google.rpc.Status getPartialFailures(int index) {
    * repeated .google.rpc.Status partial_failures = 2;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
-      int index) {
+  public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
     return partialFailures_.get(index);
   }
 
   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; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -803,11 +1023,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ @java.lang.Override @@ -815,6 +1038,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when the operation was created.
    * 
@@ -829,11 +1054,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -841,11 +1069,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return The updateTime. */ @java.lang.Override @@ -853,6 +1084,8 @@ 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.
    * 
@@ -865,6 +1098,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -876,8 +1110,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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)); } @@ -891,31 +1124,39 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(8, (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_); } if (detailsCase_ == 10) { - output.writeMessage(10, (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_); + 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_); + output.writeMessage( + 15, (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_); } if (detailsCase_ == 16) { - output.writeMessage(16, (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_); + output.writeMessage( + 16, (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_); } if (detailsCase_ == 21) { - output.writeMessage(21, (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_); + output.writeMessage( + 21, (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_); } if (detailsCase_ == 22) { - output.writeMessage(22, (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_); + output.writeMessage( + 22, (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_); } if (detailsCase_ == 24) { - output.writeMessage(24, (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_); + output.writeMessage( + 24, (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_); } if (detailsCase_ == 25) { - output.writeMessage(25, (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_); + output.writeMessage( + 25, (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_); } if (detailsCase_ == 26) { - output.writeMessage(26, (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_); + output.writeMessage( + 26, (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_); } unknownFields.writeTo(output); } @@ -927,56 +1168,62 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < partialFailures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, partialFailures_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, partialFailures_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -986,64 +1233,53 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (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 (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + 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; + if (!getDeleteDetails().equals(other.getDeleteDetails())) return false; break; case 24: - if (!getDeployModelDetails() - .equals(other.getDeployModelDetails())) return false; + if (!getDeployModelDetails().equals(other.getDeployModelDetails())) return false; break; case 25: - if (!getUndeployModelDetails() - .equals(other.getUndeployModelDetails())) return false; + if (!getUndeployModelDetails().equals(other.getUndeployModelDetails())) return false; break; case 10: - if (!getCreateModelDetails() - .equals(other.getCreateModelDetails())) return false; + if (!getCreateModelDetails().equals(other.getCreateModelDetails())) return false; break; case 15: - if (!getImportDataDetails() - .equals(other.getImportDataDetails())) return false; + if (!getImportDataDetails().equals(other.getImportDataDetails())) return false; break; case 16: - if (!getBatchPredictDetails() - .equals(other.getBatchPredictDetails())) return false; + if (!getBatchPredictDetails().equals(other.getBatchPredictDetails())) return false; break; case 21: - if (!getExportDataDetails() - .equals(other.getExportDataDetails())) return false; + if (!getExportDataDetails().equals(other.getExportDataDetails())) return false; break; case 22: - if (!getExportModelDetails() - .equals(other.getExportModelDetails())) return false; + if (!getExportModelDetails().equals(other.getExportModelDetails())) return false; break; case 26: - if (!getExportEvaluatedExamplesDetails() - .equals(other.getExportEvaluatedExamplesDetails())) return false; + if (!getExportEvaluatedExamplesDetails().equals(other.getExportEvaluatedExamplesDetails())) + return false; break; case 0: default: @@ -1119,117 +1355,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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 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 + 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); + com.google.cloud.automl.v1beta1.OperationMetadata.class, + com.google.cloud.automl.v1beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.OperationMetadata.newBuilder() @@ -1237,17 +1482,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPartialFailuresFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1277,9 +1522,9 @@ public Builder clear() { } @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; + 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 @@ -1298,7 +1543,8 @@ public com.google.cloud.automl.v1beta1.OperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.OperationMetadata result = + new com.google.cloud.automl.v1beta1.OperationMetadata(this); int from_bitField0_ = bitField0_; if (detailsCase_ == 8) { if (deleteDetailsBuilder_ == null) { @@ -1392,38 +1638,39 @@ public com.google.cloud.automl.v1beta1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1431,7 +1678,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.OperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.OperationMetadata.getDefaultInstance()) + return this; if (other.getProgressPercent() != 0) { setProgressPercent(other.getProgressPercent()); } @@ -1453,9 +1701,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.OperationMetadata other partialFailuresBuilder_ = null; partialFailures_ = other.partialFailures_; bitField0_ = (bitField0_ & ~0x00000001); - partialFailuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialFailuresFieldBuilder() : null; + partialFailuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialFailuresFieldBuilder() + : null; } else { partialFailuresBuilder_.addAllMessages(other.partialFailures_); } @@ -1468,45 +1717,55 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.OperationMetadata other 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; - } + 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(); @@ -1527,7 +1786,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1536,12 +1796,12 @@ public Builder mergeFrom( } return this; } + private int detailsCase_ = 0; private java.lang.Object details_; - public DetailsCase - getDetailsCase() { - return DetailsCase.forNumber( - detailsCase_); + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); } public Builder clearDetails() { @@ -1554,13 +1814,19 @@ public Builder clearDetails() { 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_; + 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; + * * @return Whether the deleteDetails field is set. */ @java.lang.Override @@ -1568,11 +1834,14 @@ public boolean hasDeleteDetails() { return detailsCase_ == 8; } /** + * + * *
      * Details of a Delete operation.
      * 
* * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + * * @return The deleteDetails. */ @java.lang.Override @@ -1590,6 +1859,8 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDeleteDetails( } } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1610,6 +1881,8 @@ public Builder setDeleteDetails(com.google.cloud.automl.v1beta1.DeleteOperationM return this; } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1628,18 +1901,25 @@ public Builder setDeleteDetails( 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) { + 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(); + 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; } @@ -1654,6 +1934,8 @@ public Builder mergeDeleteDetails(com.google.cloud.automl.v1beta1.DeleteOperatio return this; } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1677,16 +1959,21 @@ public Builder clearDeleteDetails() { return this; } /** + * + * *
      * Details of a Delete operation.
      * 
* * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; */ - public com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder getDeleteDetailsBuilder() { + public com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder + getDeleteDetailsBuilder() { return getDeleteDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1694,7 +1981,8 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder getDelete * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder getDeleteDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder + getDeleteDetailsOrBuilder() { if ((detailsCase_ == 8) && (deleteDetailsBuilder_ != null)) { return deleteDetailsBuilder_.getMessageOrBuilder(); } else { @@ -1705,6 +1993,8 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder getDelet } } /** + * + * *
      * Details of a Delete operation.
      * 
@@ -1712,32 +2002,45 @@ public com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder getDelet * .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> + 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>( + 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();; + 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_; + 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; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + * * @return Whether the deployModelDetails field is set. */ @java.lang.Override @@ -1745,11 +2048,15 @@ public boolean hasDeployModelDetails() { return detailsCase_ == 24; } /** + * + * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + * * @return The deployModelDetails. */ @java.lang.Override @@ -1767,13 +2074,17 @@ public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDeployMod } } /** + * + * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ - public Builder setDeployModelDetails(com.google.cloud.automl.v1beta1.DeployModelOperationMetadata value) { + public Builder setDeployModelDetails( + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata value) { if (deployModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1787,11 +2098,14 @@ public Builder setDeployModelDetails(com.google.cloud.automl.v1beta1.DeployModel return this; } /** + * + * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ public Builder setDeployModelDetails( com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder builderForValue) { @@ -1805,18 +2119,27 @@ public Builder setDeployModelDetails( return this; } /** + * + * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ - public Builder mergeDeployModelDetails(com.google.cloud.automl.v1beta1.DeployModelOperationMetadata value) { + 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(); + 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; } @@ -1831,11 +2154,14 @@ public Builder mergeDeployModelDetails(com.google.cloud.automl.v1beta1.DeployMod return this; } /** + * + * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ public Builder clearDeployModelDetails() { if (deployModelDetailsBuilder_ == null) { @@ -1854,24 +2180,32 @@ public Builder clearDeployModelDetails() { return this; } /** + * + * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ - public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder getDeployModelDetailsBuilder() { + 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; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder + getDeployModelDetailsOrBuilder() { if ((detailsCase_ == 24) && (deployModelDetailsBuilder_ != null)) { return deployModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -1882,39 +2216,57 @@ public com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder get } } /** + * + * *
      * Details of a DeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .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> + 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(); + 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>( + 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();; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return Whether the undeployModelDetails field is set. */ @java.lang.Override @@ -1922,15 +2274,21 @@ public boolean hasUndeployModelDetails() { return detailsCase_ == 25; } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return The undeployModelDetails. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata getUndeployModelDetails() { + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata + getUndeployModelDetails() { if (undeployModelDetailsBuilder_ == null) { if (detailsCase_ == 25) { return (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_; @@ -1944,13 +2302,18 @@ public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata getUndeplo } } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - public Builder setUndeployModelDetails(com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata value) { + public Builder setUndeployModelDetails( + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata value) { if (undeployModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1964,11 +2327,15 @@ public Builder setUndeployModelDetails(com.google.cloud.automl.v1beta1.UndeployM return this; } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ public Builder setUndeployModelDetails( com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder builderForValue) { @@ -1982,18 +2349,28 @@ public Builder setUndeployModelDetails( return this; } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - public Builder mergeUndeployModelDetails(com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata value) { + 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(); + 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; } @@ -2008,11 +2385,15 @@ public Builder mergeUndeployModelDetails(com.google.cloud.automl.v1beta1.Undeplo return this; } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ public Builder clearUndeployModelDetails() { if (undeployModelDetailsBuilder_ == null) { @@ -2031,24 +2412,34 @@ public Builder clearUndeployModelDetails() { return this; } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder getUndeployModelDetailsBuilder() { + 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; + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder + getUndeployModelDetailsOrBuilder() { if ((detailsCase_ == 25) && (undeployModelDetailsBuilder_ != null)) { return undeployModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2059,39 +2450,57 @@ public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder g } } /** + * + * *
      * Details of an UndeployModel operation.
      * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * .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> + 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(); + 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>( + 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();; + 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_; + 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; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * * @return Whether the createModelDetails field is set. */ @java.lang.Override @@ -2099,11 +2508,15 @@ public boolean hasCreateModelDetails() { return detailsCase_ == 10; } /** + * + * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * * @return The createModelDetails. */ @java.lang.Override @@ -2121,13 +2534,17 @@ public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getCreateMod } } /** + * + * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ - public Builder setCreateModelDetails(com.google.cloud.automl.v1beta1.CreateModelOperationMetadata value) { + public Builder setCreateModelDetails( + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata value) { if (createModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2141,11 +2558,14 @@ public Builder setCreateModelDetails(com.google.cloud.automl.v1beta1.CreateModel return this; } /** + * + * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ public Builder setCreateModelDetails( com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder builderForValue) { @@ -2159,18 +2579,27 @@ public Builder setCreateModelDetails( return this; } /** + * + * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ - public Builder mergeCreateModelDetails(com.google.cloud.automl.v1beta1.CreateModelOperationMetadata value) { + 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(); + 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; } @@ -2185,11 +2614,14 @@ public Builder mergeCreateModelDetails(com.google.cloud.automl.v1beta1.CreateMod return this; } /** + * + * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ public Builder clearCreateModelDetails() { if (createModelDetailsBuilder_ == null) { @@ -2208,24 +2640,32 @@ public Builder clearCreateModelDetails() { return this; } /** + * + * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder getCreateModelDetailsBuilder() { + 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; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder + getCreateModelDetailsOrBuilder() { if ((detailsCase_ == 10) && (createModelDetailsBuilder_ != null)) { return createModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2236,39 +2676,56 @@ public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder get } } /** + * + * *
      * Details of CreateModel operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .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> + 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(); + 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>( + 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();; + 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_; + 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; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + * * @return Whether the importDataDetails field is set. */ @java.lang.Override @@ -2276,11 +2733,15 @@ public boolean hasImportDataDetails() { return detailsCase_ == 15; } /** + * + * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + * * @return The importDataDetails. */ @java.lang.Override @@ -2298,13 +2759,17 @@ public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getImportData } } /** + * + * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * */ - public Builder setImportDataDetails(com.google.cloud.automl.v1beta1.ImportDataOperationMetadata value) { + public Builder setImportDataDetails( + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata value) { if (importDataDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2318,11 +2783,14 @@ public Builder setImportDataDetails(com.google.cloud.automl.v1beta1.ImportDataOp return this; } /** + * + * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * */ public Builder setImportDataDetails( com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder builderForValue) { @@ -2336,18 +2804,27 @@ public Builder setImportDataDetails( return this; } /** + * + * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * */ - public Builder mergeImportDataDetails(com.google.cloud.automl.v1beta1.ImportDataOperationMetadata value) { + 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(); + 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; } @@ -2362,11 +2839,14 @@ public Builder mergeImportDataDetails(com.google.cloud.automl.v1beta1.ImportData return this; } /** + * + * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * */ public Builder clearImportDataDetails() { if (importDataDetailsBuilder_ == null) { @@ -2385,24 +2865,32 @@ public Builder clearImportDataDetails() { return this; } /** + * + * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * */ - public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder getImportDataDetailsBuilder() { + 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; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder getImportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder + getImportDataDetailsOrBuilder() { if ((detailsCase_ == 15) && (importDataDetailsBuilder_ != null)) { return importDataDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2413,39 +2901,56 @@ public com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder getI } } /** + * + * *
      * Details of ImportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * .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> + 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(); + 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>( + 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();; + 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_; + 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; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + * * @return Whether the batchPredictDetails field is set. */ @java.lang.Override @@ -2453,11 +2958,15 @@ public boolean hasBatchPredictDetails() { return detailsCase_ == 16; } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + * * @return The batchPredictDetails. */ @java.lang.Override @@ -2475,13 +2984,17 @@ public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getBatchPre } } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ - public Builder setBatchPredictDetails(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata value) { + public Builder setBatchPredictDetails( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata value) { if (batchPredictDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2495,11 +3008,14 @@ public Builder setBatchPredictDetails(com.google.cloud.automl.v1beta1.BatchPredi return this; } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ public Builder setBatchPredictDetails( com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder builderForValue) { @@ -2513,18 +3029,27 @@ public Builder setBatchPredictDetails( return this; } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ - public Builder mergeBatchPredictDetails(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata value) { + 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(); + 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; } @@ -2539,11 +3064,14 @@ public Builder mergeBatchPredictDetails(com.google.cloud.automl.v1beta1.BatchPre return this; } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ public Builder clearBatchPredictDetails() { if (batchPredictDetailsBuilder_ == null) { @@ -2562,24 +3090,32 @@ public Builder clearBatchPredictDetails() { return this; } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder getBatchPredictDetailsBuilder() { + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder + getBatchPredictDetailsBuilder() { return getBatchPredictDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder + getBatchPredictDetailsOrBuilder() { if ((detailsCase_ == 16) && (batchPredictDetailsBuilder_ != null)) { return batchPredictDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2590,39 +3126,56 @@ public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder ge } } /** + * + * *
      * Details of BatchPredict operation.
      * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .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> + 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(); + 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>( + 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; } detailsCase_ = 16; - onChanged();; + onChanged(); + ; return batchPredictDetailsBuilder_; } 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_; + 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; + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + * * @return Whether the exportDataDetails field is set. */ @java.lang.Override @@ -2630,11 +3183,15 @@ public boolean hasExportDataDetails() { return detailsCase_ == 21; } /** + * + * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + * * @return The exportDataDetails. */ @java.lang.Override @@ -2652,13 +3209,17 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getExportData } } /** + * + * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * */ - public Builder setExportDataDetails(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata value) { + public Builder setExportDataDetails( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata value) { if (exportDataDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2672,11 +3233,14 @@ public Builder setExportDataDetails(com.google.cloud.automl.v1beta1.ExportDataOp return this; } /** + * + * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * */ public Builder setExportDataDetails( com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder builderForValue) { @@ -2690,18 +3254,27 @@ public Builder setExportDataDetails( return this; } /** + * + * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * */ - public Builder mergeExportDataDetails(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata value) { + 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(); + 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; } @@ -2716,11 +3289,14 @@ public Builder mergeExportDataDetails(com.google.cloud.automl.v1beta1.ExportData return this; } /** + * + * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * */ public Builder clearExportDataDetails() { if (exportDataDetailsBuilder_ == null) { @@ -2739,24 +3315,32 @@ public Builder clearExportDataDetails() { return this; } /** + * + * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * */ - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder getExportDataDetailsBuilder() { + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder + getExportDataDetailsBuilder() { return getExportDataDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder getExportDataDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder + getExportDataDetailsOrBuilder() { if ((detailsCase_ == 21) && (exportDataDetailsBuilder_ != null)) { return exportDataDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2767,39 +3351,56 @@ public com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder getE } } /** + * + * *
      * Details of ExportData operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * .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> + 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(); + 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>( + 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();; + onChanged(); + ; return exportDataDetailsBuilder_; } 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_; + 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; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + * * @return Whether the exportModelDetails field is set. */ @java.lang.Override @@ -2807,11 +3408,15 @@ public boolean hasExportModelDetails() { return detailsCase_ == 22; } /** + * + * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + * * @return The exportModelDetails. */ @java.lang.Override @@ -2829,13 +3434,17 @@ public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getExportMod } } /** + * + * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * */ - public Builder setExportModelDetails(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata value) { + public Builder setExportModelDetails( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata value) { if (exportModelDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2849,11 +3458,14 @@ public Builder setExportModelDetails(com.google.cloud.automl.v1beta1.ExportModel return this; } /** + * + * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * */ public Builder setExportModelDetails( com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder builderForValue) { @@ -2867,18 +3479,27 @@ public Builder setExportModelDetails( return this; } /** + * + * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * */ - public Builder mergeExportModelDetails(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata value) { + 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(); + 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; } @@ -2893,11 +3514,14 @@ public Builder mergeExportModelDetails(com.google.cloud.automl.v1beta1.ExportMod return this; } /** + * + * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * */ public Builder clearExportModelDetails() { if (exportModelDetailsBuilder_ == null) { @@ -2916,24 +3540,32 @@ public Builder clearExportModelDetails() { return this; } /** + * + * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * */ - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder getExportModelDetailsBuilder() { + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder + getExportModelDetailsBuilder() { return getExportModelDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder + getExportModelDetailsOrBuilder() { if ((detailsCase_ == 22) && (exportModelDetailsBuilder_ != null)) { return exportModelDetailsBuilder_.getMessageOrBuilder(); } else { @@ -2944,39 +3576,57 @@ public com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder get } } /** + * + * *
      * Details of ExportModel operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .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> + 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(); + 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>( + 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();; + onChanged(); + ; return exportModelDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder> exportEvaluatedExamplesDetailsBuilder_; + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder> + exportEvaluatedExamplesDetailsBuilder_; /** + * + * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * * @return Whether the exportEvaluatedExamplesDetails field is set. */ @java.lang.Override @@ -2984,35 +3634,49 @@ public boolean hasExportEvaluatedExamplesDetails() { return detailsCase_ == 26; } /** + * + * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * * @return The exportEvaluatedExamplesDetails. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata getExportEvaluatedExamplesDetails() { + 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.ExportEvaluatedExamplesOperationMetadata) + details_; } - return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 26) { return exportEvaluatedExamplesDetailsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * */ - public Builder setExportEvaluatedExamplesDetails(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata value) { + public Builder setExportEvaluatedExamplesDetails( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata value) { if (exportEvaluatedExamplesDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3026,14 +3690,19 @@ public Builder setExportEvaluatedExamplesDetails(com.google.cloud.automl.v1beta1 return this; } /** + * + * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * */ public Builder setExportEvaluatedExamplesDetails( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder + builderForValue) { if (exportEvaluatedExamplesDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3044,18 +3713,29 @@ public Builder setExportEvaluatedExamplesDetails( return this; } /** + * + * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * */ - public Builder mergeExportEvaluatedExamplesDetails(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata value) { + public Builder mergeExportEvaluatedExamplesDetails( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata value) { if (exportEvaluatedExamplesDetailsBuilder_ == null) { - if (detailsCase_ == 26 && - details_ != com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.newBuilder((com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 26 + && details_ + != com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -3070,11 +3750,15 @@ public Builder mergeExportEvaluatedExamplesDetails(com.google.cloud.automl.v1bet return this; } /** + * + * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * */ public Builder clearExportEvaluatedExamplesDetails() { if (exportEvaluatedExamplesDetailsBuilder_ == null) { @@ -3093,67 +3777,94 @@ public Builder clearExportEvaluatedExamplesDetails() { return this; } /** + * + * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * */ - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder getExportEvaluatedExamplesDetailsBuilder() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder + getExportEvaluatedExamplesDetailsBuilder() { return getExportEvaluatedExamplesDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder getExportEvaluatedExamplesDetailsOrBuilder() { + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder + getExportEvaluatedExamplesDetailsOrBuilder() { if ((detailsCase_ == 26) && (exportEvaluatedExamplesDetailsBuilder_ != null)) { return exportEvaluatedExamplesDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 26) { - return (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_; + return (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + details_; } - return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * */ private com.google.protobuf.SingleFieldBuilderV3< - 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, + 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.ExportEvaluatedExamplesOperationMetadata.getDefaultInstance(); + details_ = + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } - exportEvaluatedExamplesDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder, com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder>( + exportEvaluatedExamplesDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_ = 26; - onChanged();; + onChanged(); + ; return exportEvaluatedExamplesDetailsBuilder_; } - private int progressPercent_ ; + private int progressPercent_; /** + * + * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; + * * @return The progressPercent. */ @java.lang.Override @@ -3161,50 +3872,60 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Progress of operation. Range: [0, 100].
      * Not used currently.
      * 
* * int32 progress_percent = 13; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; } private java.util.List partialFailures_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePartialFailuresIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { partialFailures_ = new java.util.ArrayList(partialFailures_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailuresBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + partialFailuresBuilder_; /** + * + * *
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3222,6 +3943,8 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3239,6 +3962,8 @@ public int getPartialFailuresCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3256,6 +3981,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3265,8 +3992,7 @@ public com.google.rpc.Status getPartialFailures(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder setPartialFailures(
-        int index, com.google.rpc.Status value) {
+    public Builder setPartialFailures(int index, com.google.rpc.Status value) {
       if (partialFailuresBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3280,6 +4006,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3289,8 +4017,7 @@ public Builder setPartialFailures(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder setPartialFailures(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setPartialFailures(int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.set(index, builderForValue.build());
@@ -3301,6 +4028,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3324,6 +4053,8 @@ public Builder addPartialFailures(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3333,8 +4064,7 @@ public Builder addPartialFailures(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(
-        int index, com.google.rpc.Status value) {
+    public Builder addPartialFailures(int index, com.google.rpc.Status value) {
       if (partialFailuresBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3348,6 +4078,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3357,8 +4089,7 @@ public Builder addPartialFailures(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.add(builderForValue.build());
@@ -3369,6 +4100,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3378,8 +4111,7 @@ public Builder addPartialFailures(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public Builder addPartialFailures(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialFailures(int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
         partialFailures_.add(index, builderForValue.build());
@@ -3390,6 +4122,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3403,8 +4137,7 @@ public Builder addAllPartialFailures(
         java.lang.Iterable values) {
       if (partialFailuresBuilder_ == null) {
         ensurePartialFailuresIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, partialFailures_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialFailures_);
         onChanged();
       } else {
         partialFailuresBuilder_.addAllMessages(values);
@@ -3412,6 +4145,8 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3432,6 +4167,8 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3452,6 +4189,8 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3461,11 +4200,12 @@ public Builder removePartialFailures(int index) {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.Status.Builder getPartialFailuresBuilder(
-        int index) {
+    public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) {
       return getPartialFailuresFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3475,14 +4215,16 @@ public com.google.rpc.Status.Builder getPartialFailuresBuilder(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
-        int index) {
+    public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
       if (partialFailuresBuilder_ == null) {
-        return partialFailures_.get(index);  } else {
+        return partialFailures_.get(index);
+      } else {
         return partialFailuresBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3492,8 +4234,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public java.util.List 
-         getPartialFailuresOrBuilderList() {
+    public java.util.List
+        getPartialFailuresOrBuilderList() {
       if (partialFailuresBuilder_ != null) {
         return partialFailuresBuilder_.getMessageOrBuilderList();
       } else {
@@ -3501,6 +4243,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3511,10 +4255,12 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
      * repeated .google.rpc.Status partial_failures = 2;
      */
     public com.google.rpc.Status.Builder addPartialFailuresBuilder() {
-      return getPartialFailuresFieldBuilder().addBuilder(
-          com.google.rpc.Status.getDefaultInstance());
+      return getPartialFailuresFieldBuilder()
+          .addBuilder(com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3524,12 +4270,13 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder() {
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public com.google.rpc.Status.Builder addPartialFailuresBuilder(
-        int index) {
-      return getPartialFailuresFieldBuilder().addBuilder(
-          index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addPartialFailuresBuilder(int index) {
+      return getPartialFailuresFieldBuilder()
+          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3539,16 +4286,19 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder(
      *
      * repeated .google.rpc.Status partial_failures = 2;
      */
-    public java.util.List 
-         getPartialFailuresBuilderList() {
+    public java.util.List getPartialFailuresBuilderList() {
       return getPartialFailuresFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getPartialFailuresFieldBuilder() {
       if (partialFailuresBuilder_ == null) {
-        partialFailuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+        partialFailuresBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
                 partialFailures_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -3560,34 +4310,47 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder(
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3608,14 +4371,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3626,6 +4390,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3636,7 +4402,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3648,6 +4414,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3666,6 +4434,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3673,11 +4443,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3688,11 +4460,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when the operation was created.
      * 
@@ -3700,14 +4475,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3715,34 +4493,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3763,14 +4554,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
* * .google.protobuf.Timestamp update_time = 4; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3781,6 +4573,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3791,7 +4585,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3803,6 +4597,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3821,6 +4617,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3828,11 +4626,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 4; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3843,11 +4643,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time when the operation was updated for the last time.
      * 
@@ -3855,21 +4658,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3879,12 +4685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.OperationMetadata) private static final com.google.cloud.automl.v1beta1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.OperationMetadata(); } @@ -3893,16 +4699,16 @@ public static com.google.cloud.automl.v1beta1.OperationMetadata getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3917,6 +4723,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java index 3b44334ac..939243f18 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/operations.proto package com.google.cloud.automl.v1beta1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@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; + * * @return Whether the deleteDetails field is set. */ boolean hasDeleteDetails(); /** + * + * *
    * Details of a Delete operation.
    * 
* * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + * * @return The deleteDetails. */ com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDeleteDetails(); /** + * + * *
    * Details of a Delete operation.
    * 
@@ -35,233 +59,332 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder getDeleteDetailsOrBuilder(); /** + * + * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + * * @return Whether the deployModelDetails field is set. */ boolean hasDeployModelDetails(); /** + * + * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + * * @return The deployModelDetails. */ com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDeployModelDetails(); /** + * + * *
    * Details of a DeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ - com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder getDeployModelDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder + getDeployModelDetailsOrBuilder(); /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return Whether the undeployModelDetails field is set. */ boolean hasUndeployModelDetails(); /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + * * @return The undeployModelDetails. */ com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata getUndeployModelDetails(); /** + * + * *
    * Details of an UndeployModel operation.
    * 
* - * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder getUndeployModelDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder + getUndeployModelDetailsOrBuilder(); /** + * + * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * * @return Whether the createModelDetails field is set. */ boolean hasCreateModelDetails(); /** + * + * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * * @return The createModelDetails. */ com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getCreateModelDetails(); /** + * + * *
    * Details of CreateModel operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ - com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder + getCreateModelDetailsOrBuilder(); /** + * + * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * * @return Whether the importDataDetails field is set. */ boolean hasImportDataDetails(); /** + * + * *
    * Details of ImportData operation.
    * 
* * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * * @return The importDataDetails. */ 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(); + com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder + getImportDataDetailsOrBuilder(); /** + * + * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + * * @return Whether the batchPredictDetails field is set. */ boolean hasBatchPredictDetails(); /** + * + * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + * * @return The batchPredictDetails. */ com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getBatchPredictDetails(); /** + * + * *
    * Details of BatchPredict operation.
    * 
* - * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * */ - com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder getBatchPredictDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder + getBatchPredictDetailsOrBuilder(); /** + * + * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * * @return Whether the exportDataDetails field is set. */ boolean hasExportDataDetails(); /** + * + * *
    * Details of ExportData operation.
    * 
* * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * * @return The exportDataDetails. */ 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(); + com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder + getExportDataDetailsOrBuilder(); /** + * + * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + * * @return Whether the exportModelDetails field is set. */ boolean hasExportModelDetails(); /** + * + * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + * * @return The exportModelDetails. */ com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getExportModelDetails(); /** + * + * *
    * Details of ExportModel operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * */ - com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder getExportModelDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder + getExportModelDetailsOrBuilder(); /** + * + * *
    * Details of ExportEvaluatedExamples operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * * @return Whether the exportEvaluatedExamplesDetails field is set. */ boolean hasExportEvaluatedExamplesDetails(); /** + * + * *
    * Details of ExportEvaluatedExamples operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * * @return The exportEvaluatedExamplesDetails. */ - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata getExportEvaluatedExamplesDetails(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + getExportEvaluatedExamplesDetails(); /** + * + * *
    * Details of ExportEvaluatedExamples operation.
    * 
* - * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * */ - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder getExportEvaluatedExamplesDetailsOrBuilder(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder + getExportEvaluatedExamplesDetailsOrBuilder(); /** + * + * *
    * Output only. Progress of operation. Range: [0, 100].
    * Not used currently.
    * 
* * int32 progress_percent = 13; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -271,9 +394,10 @@ public interface OperationMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List 
-      getPartialFailuresList();
+  java.util.List getPartialFailuresList();
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -285,6 +409,8 @@ public interface OperationMetadataOrBuilder extends
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -296,6 +422,8 @@ public interface OperationMetadataOrBuilder extends
    */
   int getPartialFailuresCount();
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -305,9 +433,10 @@ public interface OperationMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List 
-      getPartialFailuresOrBuilderList();
+  java.util.List getPartialFailuresOrBuilderList();
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -317,28 +446,35 @@ public interface OperationMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
@@ -348,24 +484,32 @@ com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when the operation was updated for the last time.
    * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when the operation was updated for the last time.
    * 
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java new file mode 100644 index 000000000..ed65a2044 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java @@ -0,0 +1,309 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public final class Operations { + private Operations() {} + + 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_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; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/automl/v1beta1/operations" + + ".proto\022\033google.cloud.automl.v1beta1\032$goo" + + "gle/cloud/automl/v1beta1/io.proto\032\'googl" + + "e/cloud/automl/v1beta1/model.proto\0322goog" + + "le/cloud/automl/v1beta1/model_evaluation" + + ".proto\032\033google/protobuf/empty.proto\032\037goo" + + "gle/protobuf/timestamp.proto\032\027google/rpc" + + "/status.proto\032\034google/api/annotations.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\245\001\n" + + "\037com.google.cloud.automl.v1beta1P\001ZAgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "automl/v1beta1;automl\312\002\033Google\\Cloud\\Aut" + + "oMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1b" + + "eta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + 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(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_OperationMetadata_fieldAccessorTable = + 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_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.cloud.automl.v1beta1.Io.getDescriptor(); + com.google.cloud.automl.v1beta1.ModelOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java index 8bbcf0c85..4dd7b0095 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * *  For Translation:
  *         CSV file `translation.csv`, with each line in format:
@@ -36,30 +53,29 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.OutputConfig}
  */
-public final class OutputConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.OutputConfig)
     OutputConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use OutputConfig.newBuilder() to construct.
   private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private OutputConfig() {
-  }
+
+  private OutputConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new OutputConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private OutputConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,75 +94,89 @@ private OutputConfig(
           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();
+          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;
             }
-            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();
+          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;
             }
-            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();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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_OutputConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1beta1.Io
+        .internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable
+    return com.google.cloud.automl.v1beta1.Io
+        .internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1beta1.OutputConfig.class, com.google.cloud.automl.v1beta1.OutputConfig.Builder.class);
+            com.google.cloud.automl.v1beta1.OutputConfig.class,
+            com.google.cloud.automl.v1beta1.OutputConfig.Builder.class);
   }
 
   private int destinationCase_ = 0;
   private java.lang.Object destination_;
+
   public enum DestinationCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_DESTINATION(1),
     BIGQUERY_DESTINATION(2),
     DESTINATION_NOT_SET(0);
     private final int value;
+
     private DestinationCase(int value) {
       this.value = value;
     }
@@ -162,25 +192,30 @@ public static DestinationCase valueOf(int 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;
+        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 DestinationCase getDestinationCase() {
+    return DestinationCase.forNumber(destinationCase_);
   }
 
   public static final int GCS_DESTINATION_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -191,6 +226,7 @@ public int getNumber() {
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -198,6 +234,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -208,16 +246,19 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override 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) destination_; } return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -232,18 +273,21 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   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) 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; + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -251,21 +295,26 @@ 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; + * * @return The bigqueryDestination. */ @java.lang.Override 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } /** + * + * *
    * The BigQuery location where the output is to be written to.
    * 
@@ -273,14 +322,16 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + 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) destination_; } return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -292,8 +343,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -310,12 +360,14 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -325,22 +377,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.OutputConfig other = (com.google.cloud.automl.v1beta1.OutputConfig) obj; + com.google.cloud.automl.v1beta1.OutputConfig other = + (com.google.cloud.automl.v1beta1.OutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 2: - if (!getBigqueryDestination() - .equals(other.getBigqueryDestination())) return false; + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; break; case 0: default: @@ -373,97 +424,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.OutputConfig 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.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * *  For Translation:
    *         CSV file `translation.csv`, with each line in format:
@@ -496,21 +554,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.OutputConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.OutputConfig)
       com.google.cloud.automl.v1beta1.OutputConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1beta1.Io
+          .internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable
+      return com.google.cloud.automl.v1beta1.Io
+          .internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1beta1.OutputConfig.class, com.google.cloud.automl.v1beta1.OutputConfig.Builder.class);
+              com.google.cloud.automl.v1beta1.OutputConfig.class,
+              com.google.cloud.automl.v1beta1.OutputConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.OutputConfig.newBuilder()
@@ -518,16 +578,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -537,9 +596,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1beta1.Io
+          .internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor;
     }
 
     @java.lang.Override
@@ -558,7 +617,8 @@ public com.google.cloud.automl.v1beta1.OutputConfig build() {
 
     @java.lang.Override
     public com.google.cloud.automl.v1beta1.OutputConfig buildPartial() {
-      com.google.cloud.automl.v1beta1.OutputConfig result = new com.google.cloud.automl.v1beta1.OutputConfig(this);
+      com.google.cloud.automl.v1beta1.OutputConfig result =
+          new com.google.cloud.automl.v1beta1.OutputConfig(this);
       if (destinationCase_ == 1) {
         if (gcsDestinationBuilder_ == null) {
           result.destination_ = destination_;
@@ -582,38 +642,39 @@ public com.google.cloud.automl.v1beta1.OutputConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.OutputConfig) {
-        return mergeFrom((com.google.cloud.automl.v1beta1.OutputConfig)other);
+        return mergeFrom((com.google.cloud.automl.v1beta1.OutputConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -623,17 +684,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.OutputConfig other) {
       if (other == com.google.cloud.automl.v1beta1.OutputConfig.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;
-        }
+        case GCS_DESTINATION:
+          {
+            mergeGcsDestination(other.getGcsDestination());
+            break;
+          }
+        case BIGQUERY_DESTINATION:
+          {
+            mergeBigqueryDestination(other.getBigqueryDestination());
+            break;
+          }
+        case DESTINATION_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -663,12 +727,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-    public DestinationCase
-        getDestinationCase() {
-      return DestinationCase.forNumber(
-          destinationCase_);
+
+    public DestinationCase getDestinationCase() {
+      return DestinationCase.forNumber(destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -678,10 +742,14 @@ public Builder clearDestination() {
       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_;
+            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 output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -692,6 +760,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -699,6 +768,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -709,6 +780,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -726,6 +798,8 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { } } /** + * + * *
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -751,6 +825,8 @@ public Builder setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -774,6 +850,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -787,10 +865,14 @@ public Builder setGcsDestination(
      */
     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();
+        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;
         }
@@ -805,6 +887,8 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestinatio
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -833,6 +917,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -848,6 +934,8 @@ public com.google.cloud.automl.v1beta1.GcsDestination.Builder getGcsDestinationB
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -871,6 +959,8 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location where the output is to be written to.
      * For Image Object Detection, Text Extraction, Video Classification and
@@ -883,32 +973,44 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination
      * .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> 
+            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>(
+        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();;
+      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_;
+            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; + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -916,11 +1018,14 @@ 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; + * * @return The bigqueryDestination. */ @java.lang.Override @@ -938,13 +1043,16 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestinatio } } /** + * + * *
      * 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) { + public Builder setBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -958,6 +1066,8 @@ public Builder setBigqueryDestination(com.google.cloud.automl.v1beta1.BigQueryDe return this; } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -976,18 +1086,25 @@ public Builder setBigqueryDestination( 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) { + 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(); + 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; } @@ -1002,6 +1119,8 @@ public Builder mergeBigqueryDestination(com.google.cloud.automl.v1beta1.BigQuery return this; } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1025,16 +1144,21 @@ public Builder clearBigqueryDestination() { 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() { + public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { return getBigqueryDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1042,7 +1166,8 @@ public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder getBigqueryDe * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { return bigqueryDestinationBuilder_.getMessageOrBuilder(); } else { @@ -1053,6 +1178,8 @@ public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryD } } /** + * + * *
      * The BigQuery location where the output is to be written to.
      * 
@@ -1060,26 +1187,32 @@ public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryD * .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> + 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>( + 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();; + onChanged(); + ; return bigqueryDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1089,12 +1222,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.OutputConfig) private static final com.google.cloud.automl.v1beta1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.OutputConfig(); } @@ -1103,16 +1236,16 @@ public static com.google.cloud.automl.v1beta1.OutputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,6 +1260,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java index 415d873dc..82e55f6d1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/io.proto package com.google.cloud.automl.v1beta1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -18,10 +36,13 @@ public interface OutputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -32,10 +53,13 @@ public interface OutputConfigOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination(); /** + * + * *
    * The Google Cloud Storage location where the output is to be written to.
    * For Image Object Detection, Text Extraction, Video Classification and
@@ -50,24 +74,32 @@ public interface OutputConfigOrBuilder extends
   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; + * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** + * + * *
    * The BigQuery location where the output is to be written to.
    * 
* * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + * * @return The bigqueryDestination. */ com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination(); /** + * + * *
    * The BigQuery location where the output is to be written to.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java index ec5cfb688..a88f75161 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictRequest} */ -public final class PredictRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PredictRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.PredictRequest) PredictRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PredictRequest.newBuilder() to construct. private PredictRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PredictRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PredictRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PredictRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,90 +71,100 @@ private PredictRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.cloud.automl.v1beta1.ExamplePayload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); + name_ = s; + break; } - payload_ = input.readMessage(com.google.cloud.automl.v1beta1.ExamplePayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.automl.v1beta1.ExamplePayload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ExamplePayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; } - 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; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_PredictRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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_PredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.PredictRequest.class, com.google.cloud.automl.v1beta1.PredictRequest.Builder.class); + com.google.cloud.automl.v1beta1.PredictRequest.class, + com.google.cloud.automl.v1beta1.PredictRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -146,29 +173,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -179,12 +208,17 @@ public java.lang.String getName() { public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.cloud.automl.v1beta1.ExamplePayload payload_; /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the payload field is set. */ @java.lang.Override @@ -192,25 +226,36 @@ public boolean hasPayload() { return payload_ != null; } /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The payload. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayload getPayload() { - return payload_ == null ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() + : payload_; } /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPayloadOrBuilder() { @@ -218,24 +263,23 @@ public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPayloadOrBuild } public static final int PARAMS_FIELD_NUMBER = 3; + private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -244,6 +288,8 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -266,22 +312,22 @@ public int getParamsCount() {
    *
    * map<string, string> params = 3;
    */
-
   @java.lang.Override
-  public boolean containsParams(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsParams(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetParams().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getParams() {
     return getParamsMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -305,11 +351,12 @@ public java.util.Map getParams() {
    * map<string, string> params = 3;
    */
   @java.lang.Override
-
   public java.util.Map getParamsMap() {
     return internalGetParams().getMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -333,16 +380,16 @@ public java.util.Map getParamsMap() {
    * map<string, string> params = 3;
    */
   @java.lang.Override
-
-  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();
+  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, any string must be up to 25000
    * characters long.
@@ -366,12 +413,11 @@ public java.lang.String getParamsOrDefault(
    * map<string, string> params = 3;
    */
   @java.lang.Override
-
-  public java.lang.String getParamsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetParams().getMap();
+  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();
     }
@@ -379,6 +425,7 @@ public java.lang.String getParamsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -390,20 +437,15 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     if (payload_ != null) {
       output.writeMessage(2, getPayload());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetParams(),
-        ParamsDefaultEntryHolder.defaultEntry,
-        3);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 3);
     unknownFields.writeTo(output);
   }
 
@@ -417,18 +459,17 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (payload_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getPayload());
-    }
-    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(3, params__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload());
+    }
+    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(3, params__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -438,22 +479,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1beta1.PredictRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1beta1.PredictRequest other = (com.google.cloud.automl.v1beta1.PredictRequest) obj;
+    com.google.cloud.automl.v1beta1.PredictRequest other =
+        (com.google.cloud.automl.v1beta1.PredictRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasPayload() != other.hasPayload()) return false;
     if (hasPayload()) {
-      if (!getPayload()
-          .equals(other.getPayload())) return false;
+      if (!getPayload().equals(other.getPayload())) return false;
     }
-    if (!internalGetParams().equals(
-        other.internalGetParams())) return false;
+    if (!internalGetParams().equals(other.internalGetParams())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -480,140 +519,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.PredictRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictRequest 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.PredictRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.automl.v1beta1.PredictRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.automl.v1beta1.PredictRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1beta1.PredictRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.PredictRequest) com.google.cloud.automl.v1beta1.PredictRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableParams(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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_PredictRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.PredictRequest.class, com.google.cloud.automl.v1beta1.PredictRequest.Builder.class); + com.google.cloud.automl.v1beta1.PredictRequest.class, + com.google.cloud.automl.v1beta1.PredictRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.PredictRequest.newBuilder() @@ -621,16 +667,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -647,9 +692,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; } @java.lang.Override @@ -668,7 +713,8 @@ public com.google.cloud.automl.v1beta1.PredictRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.PredictRequest buildPartial() { - com.google.cloud.automl.v1beta1.PredictRequest result = new com.google.cloud.automl.v1beta1.PredictRequest(this); + com.google.cloud.automl.v1beta1.PredictRequest result = + new com.google.cloud.automl.v1beta1.PredictRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (payloadBuilder_ == null) { @@ -686,38 +732,39 @@ public com.google.cloud.automl.v1beta1.PredictRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PredictRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.PredictRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.PredictRequest) other); } else { super.mergeFrom(other); return this; @@ -733,8 +780,7 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.PredictRequest other) { if (other.hasPayload()) { mergePayload(other.getPayload()); } - internalGetMutableParams().mergeFrom( - other.internalGetParams()); + internalGetMutableParams().mergeFrom(other.internalGetParams()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -763,22 +809,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -787,20 +838,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -808,54 +862,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the model requested to serve the prediction.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -863,42 +930,61 @@ public Builder setNameBytes( private com.google.cloud.automl.v1beta1.ExamplePayload payload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> payloadBuilder_; + com.google.cloud.automl.v1beta1.ExamplePayload, + com.google.cloud.automl.v1beta1.ExamplePayload.Builder, + com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> + payloadBuilder_; /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The payload. */ public com.google.cloud.automl.v1beta1.ExamplePayload getPayload() { if (payloadBuilder_ == null) { - return payload_ == null ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() + : payload_; } else { return payloadBuilder_.getMessage(); } } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPayload(com.google.cloud.automl.v1beta1.ExamplePayload value) { if (payloadBuilder_ == null) { @@ -914,12 +1000,16 @@ public Builder setPayload(com.google.cloud.automl.v1beta1.ExamplePayload value) return this; } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPayload( com.google.cloud.automl.v1beta1.ExamplePayload.Builder builderForValue) { @@ -933,18 +1023,24 @@ public Builder setPayload( return this; } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePayload(com.google.cloud.automl.v1beta1.ExamplePayload value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = - com.google.cloud.automl.v1beta1.ExamplePayload.newBuilder(payload_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1beta1.ExamplePayload.newBuilder(payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -956,12 +1052,16 @@ public Builder mergePayload(com.google.cloud.automl.v1beta1.ExamplePayload value return this; } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -975,72 +1075,87 @@ public Builder clearPayload() { return this; } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.ExamplePayload.Builder getPayloadBuilder() { - + onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { - return payload_ == null ? - com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() + : payload_; } } /** + * + * *
      * Required. Payload to perform a prediction on. The payload must match the
      * problem type that the model was trained to solve.
      * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> + com.google.cloud.automl.v1beta1.ExamplePayload, + com.google.cloud.automl.v1beta1.ExamplePayload.Builder, + com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExamplePayload, + com.google.cloud.automl.v1beta1.ExamplePayload.Builder, + com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>( + getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } + private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged();; + internalGetMutableParams() { + onChanged(); + ; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1052,6 +1167,8 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1074,22 +1191,22 @@ public int getParamsCount() {
      *
      * map<string, string> params = 3;
      */
-
     @java.lang.Override
-    public boolean containsParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsParams(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetParams().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getParamsMap()} instead.
-     */
+    /** Use {@link #getParamsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getParams() {
       return getParamsMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1113,11 +1230,12 @@ public java.util.Map getParams() {
      * map<string, string> params = 3;
      */
     @java.lang.Override
-
     public java.util.Map getParamsMap() {
       return internalGetParams().getMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1141,16 +1259,17 @@ public java.util.Map getParamsMap() {
      * map<string, string> params = 3;
      */
     @java.lang.Override
-
     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();
+        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, any string must be up to 25000
      * characters long.
@@ -1174,12 +1293,11 @@ public java.lang.String getParamsOrDefault(
      * map<string, string> params = 3;
      */
     @java.lang.Override
-
-    public java.lang.String getParamsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetParams().getMap();
+    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();
       }
@@ -1187,11 +1305,12 @@ public java.lang.String getParamsOrThrow(
     }
 
     public Builder clearParams() {
-      internalGetMutableParams().getMutableMap()
-          .clear();
+      internalGetMutableParams().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1214,23 +1333,21 @@ public Builder clearParams() {
      *
      * map<string, string> params = 3;
      */
-
-    public Builder removeParams(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableParams().getMutableMap()
-          .remove(key);
+    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.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableParams() {
+    public java.util.Map getMutableParams() {
       return internalGetMutableParams().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific parameters, any string must be up to 25000
      * characters long.
@@ -1253,16 +1370,19 @@ public Builder removeParams(
      *
      * map<string, string> params = 3;
      */
-    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);
+    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, any string must be up to 25000
      * characters long.
@@ -1285,16 +1405,13 @@ public Builder putParams(
      *
      * map<string, string> params = 3;
      */
-
-    public Builder putAllParams(
-        java.util.Map values) {
-      internalGetMutableParams().getMutableMap()
-          .putAll(values);
+    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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1304,12 +1421,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.PredictRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictRequest)
   private static final com.google.cloud.automl.v1beta1.PredictRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.PredictRequest();
   }
@@ -1318,16 +1435,16 @@ public static com.google.cloud.automl.v1beta1.PredictRequest getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public PredictRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new PredictRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public PredictRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new PredictRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1342,6 +1459,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.PredictRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java
index 21c48f3a3..f1641e9d1 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java
@@ -1,63 +1,104 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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 PredictRequestOrBuilder extends
+public interface PredictRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.PredictRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Name of the model requested to serve the prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the model requested to serve the prediction.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the payload field is set. */ boolean hasPayload(); /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The payload. */ com.google.cloud.automl.v1beta1.ExamplePayload getPayload(); /** + * + * *
    * Required. Payload to perform a prediction on. The payload must match the
    * problem type that the model was trained to solve.
    * 
* - * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPayloadOrBuilder(); /** + * + * *
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -82,6 +123,8 @@ public interface PredictRequestOrBuilder extends
    */
   int getParamsCount();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -104,15 +147,13 @@ public interface PredictRequestOrBuilder extends
    *
    * map<string, string> params = 3;
    */
-  boolean containsParams(
-      java.lang.String key);
-  /**
-   * Use {@link #getParamsMap()} instead.
-   */
+  boolean containsParams(java.lang.String key);
+  /** Use {@link #getParamsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getParams();
+  java.util.Map getParams();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -135,9 +176,10 @@ boolean containsParams(
    *
    * map<string, string> params = 3;
    */
-  java.util.Map
-  getParamsMap();
+  java.util.Map getParamsMap();
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -160,11 +202,10 @@ boolean containsParams(
    *
    * map<string, string> params = 3;
    */
-
-  java.lang.String getParamsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Additional domain-specific parameters, any string must be up to 25000
    * characters long.
@@ -187,7 +228,5 @@ java.lang.String getParamsOrDefault(
    *
    * map<string, string> params = 3;
    */
-
-  java.lang.String getParamsOrThrow(
-      java.lang.String key);
+  java.lang.String getParamsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java
similarity index 75%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java
index f6e3f157d..b4dabf495 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/automl/v1beta1/prediction_service.proto
 
 package com.google.cloud.automl.v1beta1;
 
 /**
+ *
+ *
  * 
  * Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictResponse} */ -public final class PredictResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PredictResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.PredictResponse) PredictResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PredictResponse.newBuilder() to construct. private PredictResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PredictResponse() { payload_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PredictResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PredictResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,55 +71,63 @@ private PredictResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - payload_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + payload_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + payload_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.AnnotationPayload.parser(), + extensionRegistry)); + break; } - payload_.add( - input.readMessage(com.google.cloud.automl.v1beta1.AnnotationPayload.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metadata_ = + com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); + break; } - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - metadata_.getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } - case 26: { - com.google.cloud.automl.v1beta1.ExamplePayload.Builder subBuilder = null; - if (preprocessedInput_ != null) { - subBuilder = preprocessedInput_.toBuilder(); + case 26: + { + com.google.cloud.automl.v1beta1.ExamplePayload.Builder subBuilder = null; + if (preprocessedInput_ != null) { + subBuilder = preprocessedInput_.toBuilder(); + } + preprocessedInput_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ExamplePayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(preprocessedInput_); + preprocessedInput_ = subBuilder.buildPartial(); + } + + break; } - preprocessedInput_ = input.readMessage(com.google.cloud.automl.v1beta1.ExamplePayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(preprocessedInput_); - preprocessedInput_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { payload_ = java.util.Collections.unmodifiableList(payload_); @@ -111,34 +136,38 @@ private PredictResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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_PredictResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.PredictResponse.class, com.google.cloud.automl.v1beta1.PredictResponse.Builder.class); + com.google.cloud.automl.v1beta1.PredictResponse.class, + com.google.cloud.automl.v1beta1.PredictResponse.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private java.util.List payload_; /** + * + * *
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -151,6 +180,8 @@ public java.util.List getPayl
     return payload_;
   }
   /**
+   *
+   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -159,11 +190,13 @@ public java.util.List getPayl
    * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPayloadOrBuilderList() {
     return payload_;
   }
   /**
+   *
+   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -176,6 +209,8 @@ public int getPayloadCount() {
     return payload_.size();
   }
   /**
+   *
+   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -188,6 +223,8 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index) {
     return payload_.get(index);
   }
   /**
+   *
+   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -196,14 +233,15 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index) {
    * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
-      int index) {
+  public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(int index) {
     return payload_.get(index);
   }
 
   public static final int PREPROCESSED_INPUT_FIELD_NUMBER = 3;
   private com.google.cloud.automl.v1beta1.ExamplePayload preprocessedInput_;
   /**
+   *
+   *
    * 
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -213,6 +251,7 @@ public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBu
    * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; + * * @return Whether the preprocessedInput field is set. */ @java.lang.Override @@ -220,6 +259,8 @@ public boolean hasPreprocessedInput() { return preprocessedInput_ != null; } /** + * + * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -229,13 +270,18 @@ public boolean hasPreprocessedInput() {
    * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; + * * @return The preprocessedInput. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayload getPreprocessedInput() { - return preprocessedInput_ == null ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : preprocessedInput_; + return preprocessedInput_ == null + ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() + : preprocessedInput_; } /** + * + * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -252,24 +298,23 @@ public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPreprocessedIn
   }
 
   public static final int METADATA_FIELD_NUMBER = 2;
+
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_MetadataEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.automl.v1beta1.PredictionServiceProto
+                .internal_static_google_cloud_automl_v1beta1_PredictResponse_MetadataEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> metadata_;
-  private com.google.protobuf.MapField
-  internalGetMetadata() {
+
+  private com.google.protobuf.MapField metadata_;
+
+  private com.google.protobuf.MapField internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
@@ -278,6 +323,8 @@ public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -296,22 +343,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 2;
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -331,11 +378,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -355,16 +403,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -384,12 +433,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -397,6 +445,7 @@ public java.lang.String getMetadataOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -408,17 +457,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < payload_.size(); i++) {
       output.writeMessage(1, payload_.get(i));
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetMetadata(),
-        MetadataDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 2);
     if (preprocessedInput_ != null) {
       output.writeMessage(3, getPreprocessedInput());
     }
@@ -432,22 +476,20 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < payload_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, payload_.get(i));
-    }
-    for (java.util.Map.Entry entry
-         : internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, metadata__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, payload_.get(i));
+    }
+    for (java.util.Map.Entry entry :
+        internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry metadata__ =
+          MetadataDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metadata__);
     }
     if (preprocessedInput_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getPreprocessedInput());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPreprocessedInput());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -457,22 +499,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.automl.v1beta1.PredictResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.automl.v1beta1.PredictResponse other = (com.google.cloud.automl.v1beta1.PredictResponse) obj;
+    com.google.cloud.automl.v1beta1.PredictResponse other =
+        (com.google.cloud.automl.v1beta1.PredictResponse) obj;
 
-    if (!getPayloadList()
-        .equals(other.getPayloadList())) return false;
+    if (!getPayloadList().equals(other.getPayloadList())) return false;
     if (hasPreprocessedInput() != other.hasPreprocessedInput()) return false;
     if (hasPreprocessedInput()) {
-      if (!getPreprocessedInput()
-          .equals(other.getPreprocessedInput())) return false;
+      if (!getPreprocessedInput().equals(other.getPreprocessedInput())) return false;
     }
-    if (!internalGetMetadata().equals(
-        other.internalGetMetadata())) return false;
+    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -501,140 +541,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.PredictResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictResponse 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.PredictResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.automl.v1beta1.PredictResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.automl.v1beta1.PredictResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.automl.v1beta1.PredictResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.PredictResponse) com.google.cloud.automl.v1beta1.PredictResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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_PredictResponse_fieldAccessorTable + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.PredictResponse.class, com.google.cloud.automl.v1beta1.PredictResponse.Builder.class); + com.google.cloud.automl.v1beta1.PredictResponse.class, + com.google.cloud.automl.v1beta1.PredictResponse.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.PredictResponse.newBuilder() @@ -642,17 +689,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPayloadFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -673,9 +720,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; } @java.lang.Override @@ -694,7 +741,8 @@ public com.google.cloud.automl.v1beta1.PredictResponse build() { @java.lang.Override public com.google.cloud.automl.v1beta1.PredictResponse buildPartial() { - com.google.cloud.automl.v1beta1.PredictResponse result = new com.google.cloud.automl.v1beta1.PredictResponse(this); + com.google.cloud.automl.v1beta1.PredictResponse result = + new com.google.cloud.automl.v1beta1.PredictResponse(this); int from_bitField0_ = bitField0_; if (payloadBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -720,38 +768,39 @@ public com.google.cloud.automl.v1beta1.PredictResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PredictResponse) { - return mergeFrom((com.google.cloud.automl.v1beta1.PredictResponse)other); + return mergeFrom((com.google.cloud.automl.v1beta1.PredictResponse) other); } else { super.mergeFrom(other); return this; @@ -759,7 +808,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.PredictResponse other) { - if (other == com.google.cloud.automl.v1beta1.PredictResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.PredictResponse.getDefaultInstance()) + return this; if (payloadBuilder_ == null) { if (!other.payload_.isEmpty()) { if (payload_.isEmpty()) { @@ -778,9 +828,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.PredictResponse other) payloadBuilder_ = null; payload_ = other.payload_; bitField0_ = (bitField0_ & ~0x00000001); - payloadBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPayloadFieldBuilder() : null; + payloadBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPayloadFieldBuilder() + : null; } else { payloadBuilder_.addAllMessages(other.payload_); } @@ -789,8 +840,7 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.PredictResponse other) if (other.hasPreprocessedInput()) { mergePreprocessedInput(other.getPreprocessedInput()); } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -819,21 +869,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List payload_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePayloadIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - payload_ = new java.util.ArrayList(payload_); + payload_ = + new java.util.ArrayList(payload_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.automl.v1beta1.AnnotationPayload, com.google.cloud.automl.v1beta1.AnnotationPayload.Builder, com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder> payloadBuilder_; + com.google.cloud.automl.v1beta1.AnnotationPayload, + com.google.cloud.automl.v1beta1.AnnotationPayload.Builder, + com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder> + payloadBuilder_; /** + * + * *
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -849,6 +907,8 @@ public java.util.List getPayl
       }
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -864,6 +924,8 @@ public int getPayloadCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -879,6 +941,8 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -886,8 +950,7 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public Builder setPayload(
-        int index, com.google.cloud.automl.v1beta1.AnnotationPayload value) {
+    public Builder setPayload(int index, com.google.cloud.automl.v1beta1.AnnotationPayload value) {
       if (payloadBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -901,6 +964,8 @@ public Builder setPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -920,6 +985,8 @@ public Builder setPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -941,6 +1008,8 @@ public Builder addPayload(com.google.cloud.automl.v1beta1.AnnotationPayload valu
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -948,8 +1017,7 @@ public Builder addPayload(com.google.cloud.automl.v1beta1.AnnotationPayload valu
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public Builder addPayload(
-        int index, com.google.cloud.automl.v1beta1.AnnotationPayload value) {
+    public Builder addPayload(int index, com.google.cloud.automl.v1beta1.AnnotationPayload value) {
       if (payloadBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -963,6 +1031,8 @@ public Builder addPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -982,6 +1052,8 @@ public Builder addPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1001,6 +1073,8 @@ public Builder addPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1012,8 +1086,7 @@ public Builder addAllPayload(
         java.lang.Iterable values) {
       if (payloadBuilder_ == null) {
         ensurePayloadIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, payload_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, payload_);
         onChanged();
       } else {
         payloadBuilder_.addAllMessages(values);
@@ -1021,6 +1094,8 @@ public Builder addAllPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1039,6 +1114,8 @@ public Builder clearPayload() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1057,6 +1134,8 @@ public Builder removePayload(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1064,11 +1143,12 @@ public Builder removePayload(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder getPayloadBuilder(
-        int index) {
+    public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder getPayloadBuilder(int index) {
       return getPayloadFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1079,11 +1159,14 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder getPayloadBuild
     public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
         int index) {
       if (payloadBuilder_ == null) {
-        return payload_.get(index);  } else {
+        return payload_.get(index);
+      } else {
         return payloadBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1091,8 +1174,8 @@ public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBu
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public java.util.List 
-         getPayloadOrBuilderList() {
+    public java.util.List
+        getPayloadOrBuilderList() {
       if (payloadBuilder_ != null) {
         return payloadBuilder_.getMessageOrBuilderList();
       } else {
@@ -1100,6 +1183,8 @@ public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBu
       }
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1108,10 +1193,12 @@ public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBu
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
     public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuilder() {
-      return getPayloadFieldBuilder().addBuilder(
-          com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance());
+      return getPayloadFieldBuilder()
+          .addBuilder(com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1119,12 +1206,14 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuild
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuilder(
-        int index) {
-      return getPayloadFieldBuilder().addBuilder(
-          index, com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance());
+    public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuilder(int index) {
+      return getPayloadFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Prediction result.
      * Translation and Text Sentiment will return precisely one payload.
@@ -1132,20 +1221,23 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuild
      *
      * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
      */
-    public java.util.List 
-         getPayloadBuilderList() {
+    public java.util.List
+        getPayloadBuilderList() {
       return getPayloadFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.automl.v1beta1.AnnotationPayload, com.google.cloud.automl.v1beta1.AnnotationPayload.Builder, com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder> 
+            com.google.cloud.automl.v1beta1.AnnotationPayload,
+            com.google.cloud.automl.v1beta1.AnnotationPayload.Builder,
+            com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder>
         getPayloadFieldBuilder() {
       if (payloadBuilder_ == null) {
-        payloadBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.automl.v1beta1.AnnotationPayload, com.google.cloud.automl.v1beta1.AnnotationPayload.Builder, com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder>(
-                payload_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        payloadBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.automl.v1beta1.AnnotationPayload,
+                com.google.cloud.automl.v1beta1.AnnotationPayload.Builder,
+                com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder>(
+                payload_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         payload_ = null;
       }
       return payloadBuilder_;
@@ -1153,8 +1245,13 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuild
 
     private com.google.cloud.automl.v1beta1.ExamplePayload preprocessedInput_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> preprocessedInputBuilder_;
+            com.google.cloud.automl.v1beta1.ExamplePayload,
+            com.google.cloud.automl.v1beta1.ExamplePayload.Builder,
+            com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>
+        preprocessedInputBuilder_;
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1164,12 +1261,15 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuild
      * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; + * * @return Whether the preprocessedInput field is set. */ public boolean hasPreprocessedInput() { return preprocessedInputBuilder_ != null || preprocessedInput_ != null; } /** + * + * *
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1179,16 +1279,21 @@ public boolean hasPreprocessedInput() {
      * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; + * * @return The preprocessedInput. */ public com.google.cloud.automl.v1beta1.ExamplePayload getPreprocessedInput() { if (preprocessedInputBuilder_ == null) { - return preprocessedInput_ == null ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : preprocessedInput_; + return preprocessedInput_ == null + ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() + : preprocessedInput_; } else { return preprocessedInputBuilder_.getMessage(); } } /** + * + * *
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1213,6 +1318,8 @@ public Builder setPreprocessedInput(com.google.cloud.automl.v1beta1.ExamplePaylo
       return this;
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1235,6 +1342,8 @@ public Builder setPreprocessedInput(
       return this;
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1249,7 +1358,9 @@ public Builder mergePreprocessedInput(com.google.cloud.automl.v1beta1.ExamplePay
       if (preprocessedInputBuilder_ == null) {
         if (preprocessedInput_ != null) {
           preprocessedInput_ =
-            com.google.cloud.automl.v1beta1.ExamplePayload.newBuilder(preprocessedInput_).mergeFrom(value).buildPartial();
+              com.google.cloud.automl.v1beta1.ExamplePayload.newBuilder(preprocessedInput_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           preprocessedInput_ = value;
         }
@@ -1261,6 +1372,8 @@ public Builder mergePreprocessedInput(com.google.cloud.automl.v1beta1.ExamplePay
       return this;
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1283,6 +1396,8 @@ public Builder clearPreprocessedInput() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1294,11 +1409,13 @@ public Builder clearPreprocessedInput() {
      * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3;
      */
     public com.google.cloud.automl.v1beta1.ExamplePayload.Builder getPreprocessedInputBuilder() {
-      
+
       onChanged();
       return getPreprocessedInputFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1313,11 +1430,14 @@ public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPreprocessedIn
       if (preprocessedInputBuilder_ != null) {
         return preprocessedInputBuilder_.getMessageOrBuilder();
       } else {
-        return preprocessedInput_ == null ?
-            com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance() : preprocessedInput_;
+        return preprocessedInput_ == null
+            ? com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance()
+            : preprocessedInput_;
       }
     }
     /**
+     *
+     *
      * 
      * The preprocessed example that AutoML actually makes prediction on.
      * Empty if AutoML does not preprocess the input example.
@@ -1329,35 +1449,38 @@ public com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPreprocessedIn
      * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder> 
+            com.google.cloud.automl.v1beta1.ExamplePayload,
+            com.google.cloud.automl.v1beta1.ExamplePayload.Builder,
+            com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>
         getPreprocessedInputFieldBuilder() {
       if (preprocessedInputBuilder_ == null) {
-        preprocessedInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.automl.v1beta1.ExamplePayload, com.google.cloud.automl.v1beta1.ExamplePayload.Builder, com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>(
-                getPreprocessedInput(),
-                getParentForChildren(),
-                isClean());
+        preprocessedInputBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.automl.v1beta1.ExamplePayload,
+                com.google.cloud.automl.v1beta1.ExamplePayload.Builder,
+                com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder>(
+                getPreprocessedInput(), getParentForChildren(), isClean());
         preprocessedInput_ = null;
       }
       return preprocessedInputBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> metadata_;
-    private com.google.protobuf.MapField
-    internalGetMetadata() {
+    private com.google.protobuf.MapField metadata_;
+
+    private com.google.protobuf.MapField internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableMetadata() {
-      onChanged();;
+        internalGetMutableMetadata() {
+      onChanged();
+      ;
       if (metadata_ == null) {
-        metadata_ = com.google.protobuf.MapField.newMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ =
+            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -1369,6 +1492,8 @@ public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1387,22 +1512,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 2;
      */
-
     @java.lang.Override
-    public boolean containsMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetadataMap()} instead.
-     */
+    /** Use {@link #getMetadataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1422,11 +1547,12 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
-
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1446,16 +1572,17 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
-
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1475,12 +1602,11 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getMetadataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+    public java.lang.String getMetadataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1488,11 +1614,12 @@ public java.lang.String getMetadataOrThrow(
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap()
-          .clear();
+      internalGetMutableMetadata().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1511,23 +1638,21 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 2;
      */
-
-    public Builder removeMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableMetadata().getMutableMap()
-          .remove(key);
+    public Builder removeMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMetadata() {
+    public java.util.Map getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1546,16 +1671,19 @@ public Builder removeMetadata(
      *
      * map<string, string> metadata = 2;
      */
-    public Builder putMetadata(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableMetadata().getMutableMap()
-          .put(key, value);
+    public Builder putMetadata(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional domain-specific prediction response metadata.
      * * For Image Object Detection:
@@ -1574,16 +1702,13 @@ public Builder putMetadata(
      *
      * map<string, string> metadata = 2;
      */
-
-    public Builder putAllMetadata(
-        java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetadata(java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1593,12 +1718,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.PredictResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictResponse)
   private static final com.google.cloud.automl.v1beta1.PredictResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.PredictResponse();
   }
@@ -1607,16 +1732,16 @@ public static com.google.cloud.automl.v1beta1.PredictResponse getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public PredictResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new PredictResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public PredictResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new PredictResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1631,6 +1756,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.PredictResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java
index 1290833ce..e5e695268 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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 PredictResponseOrBuilder extends
+public interface PredictResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.PredictResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -15,9 +33,10 @@ public interface PredictResponseOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
    */
-  java.util.List 
-      getPayloadList();
+  java.util.List getPayloadList();
   /**
+   *
+   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -27,6 +46,8 @@ public interface PredictResponseOrBuilder extends
    */
   com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index);
   /**
+   *
+   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -36,6 +57,8 @@ public interface PredictResponseOrBuilder extends
    */
   int getPayloadCount();
   /**
+   *
+   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -43,9 +66,11 @@ public interface PredictResponseOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
    */
-  java.util.List 
+  java.util.List
       getPayloadOrBuilderList();
   /**
+   *
+   *
    * 
    * Prediction result.
    * Translation and Text Sentiment will return precisely one payload.
@@ -53,10 +78,11 @@ public interface PredictResponseOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1;
    */
-  com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
-      int index);
+  com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -66,10 +92,13 @@ com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
    * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; + * * @return Whether the preprocessedInput field is set. */ boolean hasPreprocessedInput(); /** + * + * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -79,10 +108,13 @@ com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
    * 
* * .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; + * * @return The preprocessedInput. */ com.google.cloud.automl.v1beta1.ExamplePayload getPreprocessedInput(); /** + * + * *
    * The preprocessed example that AutoML actually makes prediction on.
    * Empty if AutoML does not preprocess the input example.
@@ -96,6 +128,8 @@ com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
   com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPreprocessedInputOrBuilder();
 
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -116,6 +150,8 @@ com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -134,15 +170,13 @@ com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBuilder(
    *
    * map<string, string> metadata = 2;
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -161,9 +195,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 2;
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -182,11 +217,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 2;
    */
-
-  java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Additional domain-specific prediction response metadata.
    * * For Image Object Detection:
@@ -205,7 +239,5 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 2;
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 }
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java
new file mode 100644
index 000000000..6e6131562
--- /dev/null
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java
@@ -0,0 +1,237 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/automl/v1beta1/prediction_service.proto
+
+package com.google.cloud.automl.v1beta1;
+
+public final class PredictionServiceProto {
+  private PredictionServiceProto() {}
+
+  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_PredictRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_PredictRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_PredictRequest_ParamsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_PredictResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      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;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_automl_v1beta1_BatchPredictResult_MetadataEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n4google/cloud/automl/v1beta1/prediction"
+          + "_service.proto\022\033google.cloud.automl.v1be"
+          + "ta1\032\034google/api/annotations.proto\032\027googl"
+          + "e/api/client.proto\032\037google/api/field_beh"
+          + "avior.proto\032\031google/api/resource.proto\0324"
+          + "google/cloud/automl/v1beta1/annotation_p"
+          + "ayload.proto\032,google/cloud/automl/v1beta"
+          + "1/data_items.proto\032$google/cloud/automl/"
+          + "v1beta1/io.proto\032,google/cloud/automl/v1"
+          + "beta1/operations.proto\032#google/longrunni"
+          + "ng/operations.proto\"\376\001\n\016PredictRequest\0221"
+          + "\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis."
+          + "com/Model\022A\n\007payload\030\002 \001(\0132+.google.clou"
+          + "d.automl.v1beta1.ExamplePayloadB\003\340A\002\022G\n\006"
+          + "params\030\003 \003(\01327.google.cloud.automl.v1bet"
+          + "a1.PredictRequest.ParamsEntry\032-\n\013ParamsE"
+          + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\002\n"
+          + "\017PredictResponse\022?\n\007payload\030\001 \003(\0132..goog"
+          + "le.cloud.automl.v1beta1.AnnotationPayloa"
+          + "d\022G\n\022preprocessed_input\030\003 \001(\0132+.google.c"
+          + "loud.automl.v1beta1.ExamplePayload\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\"\356\002\n\023BatchPredictRequest\0221\n\004name\030\001 \001(\tB"
+          + "#\340A\002\372A\035\n\033automl.googleapis.com/Model\022O\n\014"
+          + "input_config\030\003 \001(\01324.google.cloud.automl"
+          + ".v1beta1.BatchPredictInputConfigB\003\340A\002\022Q\n"
+          + "\routput_config\030\004 \001(\01325.google.cloud.auto"
+          + "ml.v1beta1.BatchPredictOutputConfigB\003\340A\002"
+          + "\022Q\n\006params\030\005 \003(\0132<.google.cloud.automl.v"
+          + "1beta1.BatchPredictRequest.ParamsEntryB\003"
+          + "\340A\002\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value"
+          + "\030\002 \001(\t:\0028\001\"\226\001\n\022BatchPredictResult\022O\n\010met"
+          + "adata\030\001 \003(\0132=.google.cloud.automl.v1beta"
+          + "1.BatchPredictResult.MetadataEntry\032/\n\rMe"
+          + "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
+          + "\0028\0012\236\004\n\021PredictionService\022\276\001\n\007Predict\022+."
+          + "google.cloud.automl.v1beta1.PredictReque"
+          + "st\032,.google.cloud.automl.v1beta1.Predict"
+          + "Response\"X\202\323\344\223\002<\"7/v1beta1/{name=project"
+          + "s/*/locations/*/models/*}:predict:\001*\332A\023n"
+          + "ame,payload,params\022\374\001\n\014BatchPredict\0220.go"
+          + "ogle.cloud.automl.v1beta1.BatchPredictRe"
+          + "quest\032\035.google.longrunning.Operation\"\232\001\202"
+          + "\323\344\223\002A\"
      * Output only. Root Mean Squared Error (RMSE).
      * 
* * float root_mean_squared_error = 1; + * * @return The rootMeanSquaredError. */ float getRootMeanSquaredError(); /** + * + * *
      * Output only. Mean Absolute Error (MAE).
      * 
* * float mean_absolute_error = 2; + * * @return The meanAbsoluteError. */ float getMeanAbsoluteError(); /** + * + * *
      * Output only. Mean absolute percentage error. Only set if all ground truth
      * values are are positive.
      * 
* * float mean_absolute_percentage_error = 3; + * * @return The meanAbsolutePercentageError. */ float getMeanAbsolutePercentageError(); /** + * + * *
      * Output only. R squared.
      * 
* * float r_squared = 4; + * * @return The rSquared. */ float getRSquared(); /** + * + * *
      * Output only. Root mean squared log error.
      * 
* * float root_mean_squared_log_error = 5; + * * @return The rootMeanSquaredLogError. */ float getRootMeanSquaredLogError(); } /** + * + * *
    * Metrics for regression problems.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.RegressionEvaluationMetrics} */ - public static final class RegressionEvaluationMetrics extends - com.google.protobuf.GeneratedMessageV3 implements + 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; + private static final long serialVersionUID = 0L; // Use RegressionEvaluationMetrics.newBuilder() to construct. private RegressionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RegressionEvaluationMetrics() { - } + + private RegressionEvaluationMetrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RegressionEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RegressionEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -118,71 +149,77 @@ private RegressionEvaluationMetrics( 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; - } - case 45: { - - rootMeanSquaredLogError_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 13: + { + rootMeanSquaredError_ = input.readFloat(); + break; + } + case 21: + { + meanAbsoluteError_ = input.readFloat(); + break; + } + case 29: + { + meanAbsolutePercentageError_ = input.readFloat(); + break; + } + case 37: + { + rSquared_ = input.readFloat(); + break; + } + case 45: + { + rootMeanSquaredLogError_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; + * * @return The rootMeanSquaredError. */ @java.lang.Override @@ -193,11 +230,14 @@ public float getRootMeanSquaredError() { public static final int MEAN_ABSOLUTE_ERROR_FIELD_NUMBER = 2; private float meanAbsoluteError_; /** + * + * *
      * Output only. Mean Absolute Error (MAE).
      * 
* * float mean_absolute_error = 2; + * * @return The meanAbsoluteError. */ @java.lang.Override @@ -208,12 +248,15 @@ public float getMeanAbsoluteError() { 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; + * * @return The meanAbsolutePercentageError. */ @java.lang.Override @@ -224,11 +267,14 @@ public float getMeanAbsolutePercentageError() { public static final int R_SQUARED_FIELD_NUMBER = 4; private float rSquared_; /** + * + * *
      * Output only. R squared.
      * 
* * float r_squared = 4; + * * @return The rSquared. */ @java.lang.Override @@ -239,11 +285,14 @@ public float getRSquared() { public static final int ROOT_MEAN_SQUARED_LOG_ERROR_FIELD_NUMBER = 5; private float rootMeanSquaredLogError_; /** + * + * *
      * Output only. Root mean squared log error.
      * 
* * float root_mean_squared_log_error = 5; + * * @return The rootMeanSquaredLogError. */ @java.lang.Override @@ -252,6 +301,7 @@ public float getRootMeanSquaredLogError() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +313,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (rootMeanSquaredError_ != 0F) { output.writeFloat(1, rootMeanSquaredError_); } @@ -290,24 +339,20 @@ public int getSerializedSize() { size = 0; if (rootMeanSquaredError_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, rootMeanSquaredError_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, rootMeanSquaredError_); } if (meanAbsoluteError_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, meanAbsoluteError_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, meanAbsoluteError_); } if (meanAbsolutePercentageError_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, meanAbsolutePercentageError_); + size += + com.google.protobuf.CodedOutputStream.computeFloatSize(3, meanAbsolutePercentageError_); } if (rSquared_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, rSquared_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rSquared_); } if (rootMeanSquaredLogError_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, rootMeanSquaredLogError_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, rootMeanSquaredLogError_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -317,28 +362,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics)) { + 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; + 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; + != java.lang.Float.floatToIntBits(other.getRootMeanSquaredError())) return false; if (java.lang.Float.floatToIntBits(getMeanAbsoluteError()) - != java.lang.Float.floatToIntBits( - other.getMeanAbsoluteError())) return false; + != java.lang.Float.floatToIntBits(other.getMeanAbsoluteError())) return false; if (java.lang.Float.floatToIntBits(getMeanAbsolutePercentageError()) - != java.lang.Float.floatToIntBits( - other.getMeanAbsolutePercentageError())) return false; + != java.lang.Float.floatToIntBits(other.getMeanAbsolutePercentageError())) return false; if (java.lang.Float.floatToIntBits(getRSquared()) - != java.lang.Float.floatToIntBits( - other.getRSquared())) return false; + != java.lang.Float.floatToIntBits(other.getRSquared())) return false; if (java.lang.Float.floatToIntBits(getRootMeanSquaredLogError()) - != java.lang.Float.floatToIntBits( - other.getRootMeanSquaredLogError())) return false; + != java.lang.Float.floatToIntBits(other.getRootMeanSquaredLogError())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -351,107 +393,115 @@ public int hashCode() { 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 = (53 * hash) + java.lang.Float.floatToIntBits(getRootMeanSquaredError()); hash = (37 * hash) + MEAN_ABSOLUTE_ERROR_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMeanAbsoluteError()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAbsolutePercentageError()); hash = (37 * hash) + R_SQUARED_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRSquared()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRSquared()); hash = (37 * hash) + ROOT_MEAN_SQUARED_LOG_ERROR_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRootMeanSquaredLogError()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRootMeanSquaredLogError()); 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 { + 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 { + + 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 { + + 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 { + + 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 { + + 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 { + + 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) 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 + 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) 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 + 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) 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); + + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -461,44 +511,50 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -516,19 +572,22 @@ public Builder clear() { } @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; + 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(); + 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(); + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -536,8 +595,10 @@ public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetri } @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); + 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_; @@ -551,46 +612,55 @@ public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetri public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -621,11 +691,14 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,13 +708,16 @@ public Builder mergeFrom( return this; } - private float rootMeanSquaredError_ ; + private float rootMeanSquaredError_; /** + * + * *
        * Output only. Root Mean Squared Error (RMSE).
        * 
* * float root_mean_squared_error = 1; + * * @return The rootMeanSquaredError. */ @java.lang.Override @@ -649,42 +725,51 @@ public float getRootMeanSquaredError() { return rootMeanSquaredError_; } /** + * + * *
        * Output only. Root Mean Squared Error (RMSE).
        * 
* * float root_mean_squared_error = 1; + * * @param value The rootMeanSquaredError to set. * @return This builder for chaining. */ public Builder setRootMeanSquaredError(float value) { - + rootMeanSquaredError_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Root Mean Squared Error (RMSE).
        * 
* * float root_mean_squared_error = 1; + * * @return This builder for chaining. */ public Builder clearRootMeanSquaredError() { - + rootMeanSquaredError_ = 0F; onChanged(); return this; } - private float meanAbsoluteError_ ; + private float meanAbsoluteError_; /** + * + * *
        * Output only. Mean Absolute Error (MAE).
        * 
* * float mean_absolute_error = 2; + * * @return The meanAbsoluteError. */ @java.lang.Override @@ -692,43 +777,52 @@ public float getMeanAbsoluteError() { return meanAbsoluteError_; } /** + * + * *
        * Output only. Mean Absolute Error (MAE).
        * 
* * float mean_absolute_error = 2; + * * @param value The meanAbsoluteError to set. * @return This builder for chaining. */ public Builder setMeanAbsoluteError(float value) { - + meanAbsoluteError_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Mean Absolute Error (MAE).
        * 
* * float mean_absolute_error = 2; + * * @return This builder for chaining. */ public Builder clearMeanAbsoluteError() { - + meanAbsoluteError_ = 0F; onChanged(); return this; } - private float meanAbsolutePercentageError_ ; + 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; + * * @return The meanAbsolutePercentageError. */ @java.lang.Override @@ -736,44 +830,53 @@ 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; + * * @param value The meanAbsolutePercentageError to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearMeanAbsolutePercentageError() { - + meanAbsolutePercentageError_ = 0F; onChanged(); return this; } - private float rSquared_ ; + private float rSquared_; /** + * + * *
        * Output only. R squared.
        * 
* * float r_squared = 4; + * * @return The rSquared. */ @java.lang.Override @@ -781,42 +884,51 @@ public float getRSquared() { return rSquared_; } /** + * + * *
        * Output only. R squared.
        * 
* * float r_squared = 4; + * * @param value The rSquared to set. * @return This builder for chaining. */ public Builder setRSquared(float value) { - + rSquared_ = value; onChanged(); return this; } /** + * + * *
        * Output only. R squared.
        * 
* * float r_squared = 4; + * * @return This builder for chaining. */ public Builder clearRSquared() { - + rSquared_ = 0F; onChanged(); return this; } - private float rootMeanSquaredLogError_ ; + private float rootMeanSquaredLogError_; /** + * + * *
        * Output only. Root mean squared log error.
        * 
* * float root_mean_squared_log_error = 5; + * * @return The rootMeanSquaredLogError. */ @java.lang.Override @@ -824,34 +936,41 @@ public float getRootMeanSquaredLogError() { return rootMeanSquaredLogError_; } /** + * + * *
        * Output only. Root mean squared log error.
        * 
* * float root_mean_squared_log_error = 5; + * * @param value The rootMeanSquaredLogError to set. * @return This builder for chaining. */ public Builder setRootMeanSquaredLogError(float value) { - + rootMeanSquaredLogError_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Root mean squared log error.
        * 
* * float root_mean_squared_log_error = 5; + * * @return This builder for chaining. */ public Builder clearRootMeanSquaredLogError() { - + rootMeanSquaredLogError_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -864,30 +983,33 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics(); } - public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics getDefaultInstance() { + 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); - } - }; + 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; @@ -899,51 +1021,57 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics getDefaultInstanceForType() { + 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_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() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - 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\"\273\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(\002\022#\n\033root_mean_squared_" + - "log_error\030\005 \001(\002B\264\001\n\037com.google.cloud.aut" + - "oml.v1beta1B\017RegressionProtoZAgoogle.gol" + - "ang.org/genproto/googleapis/cloud/automl" + - "/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1" + - "beta1\352\002\036Google::Cloud::AutoML::V1beta1b\006" + - "proto3" + "\n,google/cloud/automl/v1beta1/regression" + + ".proto\022\033google.cloud.automl.v1beta1\032\034goo" + + "gle/api/annotations.proto\"\273\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(\002\022#\n\033root_mean_squared_" + + "log_error\030\005 \001(\002B\264\001\n\037com.google.cloud.aut" + + "oml.v1beta1B\017RegressionProtoZAgoogle.gol" + + "ang.org/genproto/googleapis/cloud/automl" + + "/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1" + + "beta1\352\002\036Google::Cloud::AutoML::V1beta1b\006" + + "proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); 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", "RootMeanSquaredLogError", }); + 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", + "RootMeanSquaredLogError", + }); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java similarity index 79% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java index debdfb1a6..c2bf94b96 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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(); @@ -26,16 +44,15 @@ private Row() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Row(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Row( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,38 +72,38 @@ private Row( 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; + 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; } - columnSpecIds_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + 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; } - values_.add( - input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { columnSpecIds_ = columnSpecIds_.getUnmodifiableView(); @@ -98,22 +115,27 @@ private Row( 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; + + 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 + 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); + 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
@@ -125,13 +147,15 @@ private Row(
    * 
* * repeated string column_spec_ids = 2; + * * @return A list containing the columnSpecIds. */ - public com.google.protobuf.ProtocolStringList - getColumnSpecIdsList() { + 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
@@ -143,12 +167,15 @@ private Row(
    * 
* * repeated string column_spec_ids = 2; + * * @return The count of columnSpecIds. */ 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
@@ -160,6 +187,7 @@ public int getColumnSpecIdsCount() {
    * 
* * repeated string column_spec_ids = 2; + * * @param index The index of the element to return. * @return The columnSpecIds at the given index. */ @@ -167,6 +195,8 @@ 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
@@ -178,17 +208,19 @@ public java.lang.String getColumnSpecIds(int index) {
    * 
* * repeated string column_spec_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the columnSpecIds at the given index. */ - public com.google.protobuf.ByteString - getColumnSpecIdsBytes(int index) { + 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
@@ -204,6 +236,8 @@ 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
@@ -215,11 +249,12 @@ public java.util.List getValuesList() {
    * repeated .google.protobuf.Value values = 3;
    */
   @java.lang.Override
-  public java.util.List 
-      getValuesOrBuilderList() {
+  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
@@ -235,6 +270,8 @@ 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
@@ -250,6 +287,8 @@ 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
@@ -261,12 +300,12 @@ public com.google.protobuf.Value getValues(int index) {
    * repeated .google.protobuf.Value values = 3;
    */
   @java.lang.Override
-  public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
-      int index) {
+  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;
@@ -278,8 +317,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  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));
     }
@@ -304,8 +342,7 @@ public int getSerializedSize() {
       size += 1 * getColumnSpecIdsList().size();
     }
     for (int i = 0; i < values_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, values_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, values_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -315,17 +352,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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 (!getColumnSpecIdsList().equals(other.getColumnSpecIdsList())) return false;
+    if (!getValuesList().equals(other.getValuesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -350,118 +385,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.Row parseFrom(
-      java.nio.ByteBuffer data)
+  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)
+      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)
+
+  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)
+      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);
+    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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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);
+    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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.Row.class, + com.google.cloud.automl.v1beta1.Row.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.Row.newBuilder() @@ -469,17 +512,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getValuesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -495,9 +538,9 @@ public Builder clear() { } @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; + 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 @@ -540,38 +583,39 @@ public com.google.cloud.automl.v1beta1.Row buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.Row) other); } else { super.mergeFrom(other); return this; @@ -608,9 +652,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Row other) { valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000002); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -644,16 +689,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList columnSpecIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + 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
@@ -665,13 +715,15 @@ private void ensureColumnSpecIdsIsMutable() {
      * 
* * repeated string column_spec_ids = 2; + * * @return A list containing the columnSpecIds. */ - public com.google.protobuf.ProtocolStringList - getColumnSpecIdsList() { + 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
@@ -683,12 +735,15 @@ private void ensureColumnSpecIdsIsMutable() {
      * 
* * repeated string column_spec_ids = 2; + * * @return The count of columnSpecIds. */ 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
@@ -700,6 +755,7 @@ public int getColumnSpecIdsCount() {
      * 
* * repeated string column_spec_ids = 2; + * * @param index The index of the element to return. * @return The columnSpecIds at the given index. */ @@ -707,6 +763,8 @@ 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
@@ -718,14 +776,16 @@ public java.lang.String getColumnSpecIds(int index) {
      * 
* * repeated string column_spec_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the columnSpecIds at the given index. */ - public com.google.protobuf.ByteString - getColumnSpecIdsBytes(int index) { + 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
@@ -737,21 +797,23 @@ public java.lang.String getColumnSpecIds(int index) {
      * 
* * repeated string column_spec_ids = 2; + * * @param index The index to set the value at. * @param value The columnSpecIds to set. * @return This builder for chaining. */ - public Builder setColumnSpecIds( - int index, java.lang.String value) { + public Builder setColumnSpecIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureColumnSpecIdsIsMutable(); + 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
@@ -763,20 +825,22 @@ public Builder setColumnSpecIds(
      * 
* * repeated string column_spec_ids = 2; + * * @param value The columnSpecIds to add. * @return This builder for chaining. */ - public Builder addColumnSpecIds( - java.lang.String value) { + public Builder addColumnSpecIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureColumnSpecIdsIsMutable(); + 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
@@ -788,18 +852,19 @@ public Builder addColumnSpecIds(
      * 
* * repeated string column_spec_ids = 2; + * * @param values The columnSpecIds to add. * @return This builder for chaining. */ - public Builder addAllColumnSpecIds( - java.lang.Iterable values) { + public Builder addAllColumnSpecIds(java.lang.Iterable values) { ensureColumnSpecIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columnSpecIds_); + 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
@@ -811,6 +876,7 @@ public Builder addAllColumnSpecIds(
      * 
* * repeated string column_spec_ids = 2; + * * @return This builder for chaining. */ public Builder clearColumnSpecIds() { @@ -820,6 +886,8 @@ public Builder clearColumnSpecIds() { 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
@@ -831,34 +899,39 @@ public Builder clearColumnSpecIds() {
      * 
* * repeated string column_spec_ids = 2; + * * @param value The bytes of the columnSpecIds to add. * @return This builder for chaining. */ - public Builder addColumnSpecIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addColumnSpecIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureColumnSpecIdsIsMutable(); columnSpecIds_.add(value); onChanged(); return this; } - private java.util.List values_ = - java.util.Collections.emptyList(); + 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_; + 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
@@ -877,6 +950,8 @@ public 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
@@ -895,6 +970,8 @@ public 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
@@ -913,6 +990,8 @@ public 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
@@ -923,8 +1002,7 @@ public com.google.protobuf.Value getValues(int index) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder setValues(
-        int index, com.google.protobuf.Value value) {
+    public Builder setValues(int index, com.google.protobuf.Value value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -938,6 +1016,8 @@ public Builder setValues(
       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
@@ -948,8 +1028,7 @@ public Builder setValues(
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder setValues(
-        int index, com.google.protobuf.Value.Builder builderForValue) {
+    public Builder setValues(int index, com.google.protobuf.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.set(index, builderForValue.build());
@@ -960,6 +1039,8 @@ public Builder setValues(
       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
@@ -984,6 +1065,8 @@ public Builder addValues(com.google.protobuf.Value 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
@@ -994,8 +1077,7 @@ public Builder addValues(com.google.protobuf.Value value) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder addValues(
-        int index, com.google.protobuf.Value value) {
+    public Builder addValues(int index, com.google.protobuf.Value value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1009,6 +1091,8 @@ public Builder addValues(
       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
@@ -1019,8 +1103,7 @@ public Builder addValues(
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder addValues(
-        com.google.protobuf.Value.Builder builderForValue) {
+    public Builder addValues(com.google.protobuf.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(builderForValue.build());
@@ -1031,6 +1114,8 @@ public Builder addValues(
       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
@@ -1041,8 +1126,7 @@ public Builder addValues(
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder addValues(
-        int index, com.google.protobuf.Value.Builder builderForValue) {
+    public Builder addValues(int index, com.google.protobuf.Value.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(index, builderForValue.build());
@@ -1053,6 +1137,8 @@ public Builder addValues(
       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
@@ -1063,12 +1149,10 @@ public Builder addValues(
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public Builder addAllValues(
-        java.lang.Iterable values) {
+    public Builder addAllValues(java.lang.Iterable values) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, values_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
         onChanged();
       } else {
         valuesBuilder_.addAllMessages(values);
@@ -1076,6 +1160,8 @@ public Builder addAllValues(
       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
@@ -1097,6 +1183,8 @@ public Builder clearValues() {
       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
@@ -1118,6 +1206,8 @@ public Builder removeValues(int 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
@@ -1128,11 +1218,12 @@ public Builder removeValues(int index) {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public com.google.protobuf.Value.Builder getValuesBuilder(
-        int index) {
+    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
@@ -1143,14 +1234,16 @@ public com.google.protobuf.Value.Builder getValuesBuilder(
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
-        int index) {
+    public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(int index) {
       if (valuesBuilder_ == null) {
-        return values_.get(index);  } else {
+        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
@@ -1161,8 +1254,7 @@ public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public java.util.List 
-         getValuesOrBuilderList() {
+    public java.util.List getValuesOrBuilderList() {
       if (valuesBuilder_ != null) {
         return valuesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1170,6 +1262,8 @@ public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * 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
@@ -1181,10 +1275,11 @@ public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
      * repeated .google.protobuf.Value values = 3;
      */
     public com.google.protobuf.Value.Builder addValuesBuilder() {
-      return getValuesFieldBuilder().addBuilder(
-          com.google.protobuf.Value.getDefaultInstance());
+      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
@@ -1195,12 +1290,13 @@ public com.google.protobuf.Value.Builder addValuesBuilder() {
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public com.google.protobuf.Value.Builder addValuesBuilder(
-        int index) {
-      return getValuesFieldBuilder().addBuilder(
-          index, com.google.protobuf.Value.getDefaultInstance());
+    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
@@ -1211,27 +1307,29 @@ public com.google.protobuf.Value.Builder addValuesBuilder(
      *
      * repeated .google.protobuf.Value values = 3;
      */
-    public java.util.List 
-         getValuesBuilderList() {
+    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> 
+            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());
+        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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1241,12 +1339,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -1255,16 +1353,16 @@ 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);
-    }
-  };
+  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;
@@ -1279,6 +1377,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.Row getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java
index 8a22570f1..7649c5f78 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+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
@@ -19,11 +37,13 @@ public interface RowOrBuilder extends
    * 
* * repeated string column_spec_ids = 2; + * * @return A list containing the columnSpecIds. */ - java.util.List - getColumnSpecIdsList(); + 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
@@ -35,10 +55,13 @@ public interface RowOrBuilder extends
    * 
* * repeated string column_spec_ids = 2; + * * @return The count of columnSpecIds. */ 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
@@ -50,11 +73,14 @@ public interface RowOrBuilder extends
    * 
* * repeated string column_spec_ids = 2; + * * @param index The index of the element to return. * @return The columnSpecIds at the given index. */ 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
@@ -66,13 +92,15 @@ public interface RowOrBuilder extends
    * 
* * repeated string column_spec_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the columnSpecIds at the given index. */ - com.google.protobuf.ByteString - getColumnSpecIdsBytes(int index); + 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
@@ -83,9 +111,10 @@ public interface RowOrBuilder extends
    *
    * repeated .google.protobuf.Value values = 3;
    */
-  java.util.List 
-      getValuesList();
+  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
@@ -98,6 +127,8 @@ public interface RowOrBuilder extends
    */
   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
@@ -110,6 +141,8 @@ public interface RowOrBuilder extends
    */
   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
@@ -120,9 +153,10 @@ public interface RowOrBuilder extends
    *
    * repeated .google.protobuf.Value values = 3;
    */
-  java.util.List 
-      getValuesOrBuilderList();
+  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
@@ -133,6 +167,5 @@ public interface RowOrBuilder extends
    *
    * repeated .google.protobuf.Value values = 3;
    */
-  com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
-      int index);
+  com.google.protobuf.ValueOrBuilder getValuesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java
similarity index 72%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java
index 7965e2ec2..4e89a16ee 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StringStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StringStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,33 @@ private StringStats( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - topUnigramStats_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + 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; } - topUnigramStats_.add( - input.readMessage(com.google.cloud.automl.v1beta1.StringStats.UnigramStats.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { topUnigramStats_ = java.util.Collections.unmodifiableList(topUnigramStats_); @@ -85,85 +106,99 @@ private StringStats( 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.StringStats.class, + com.google.cloud.automl.v1beta1.StringStats.Builder.class); } - public interface UnigramStatsOrBuilder extends + public interface UnigramStatsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.StringStats.UnigramStats) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The unigram.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The unigram.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
      * The number of occurrences of this unigram in the series.
      * 
* * int64 count = 2; + * * @return The count. */ 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 + 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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UnigramStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UnigramStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -182,57 +217,63 @@ private UnigramStats( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - count_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + case 16: + { + count_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; + * * @return The value. */ @java.lang.Override @@ -241,29 +282,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -274,11 +315,14 @@ public java.lang.String getValue() { public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** + * + * *
      * The number of occurrences of this unigram in the series.
      * 
* * int64 count = 2; + * * @return The count. */ @java.lang.Override @@ -287,6 +331,7 @@ public long getCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,8 +343,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -319,8 +363,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -330,17 +373,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getValue().equals(other.getValue())) return false; + if (getCount() != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -355,95 +397,101 @@ public int 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 = (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 { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -453,27 +501,32 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() @@ -481,16 +534,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +554,9 @@ public Builder clear() { } @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; + 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 @@ -523,7 +575,8 @@ public com.google.cloud.automl.v1beta1.StringStats.UnigramStats build() { @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); + com.google.cloud.automl.v1beta1.StringStats.UnigramStats result = + new com.google.cloud.automl.v1beta1.StringStats.UnigramStats(this); result.value_ = value_; result.count_ = count_; onBuilt(); @@ -534,38 +587,41 @@ public com.google.cloud.automl.v1beta1.StringStats.UnigramStats buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.StringStats.UnigramStats) other); } else { super.mergeFrom(other); return this; @@ -573,7 +629,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } 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 == com.google.cloud.automl.v1beta1.StringStats.UnigramStats.getDefaultInstance()) + return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -600,7 +657,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.StringStats.UnigramStats) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.StringStats.UnigramStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,18 +670,20 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** + * + * *
        * The unigram.
        * 
* * string value = 1; + * * @return The value. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -632,20 +692,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * The unigram.
        * 
* * string value = 1; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -653,66 +714,76 @@ public java.lang.String getValue() { } } /** + * + * *
        * The unigram.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The unigram.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The unigram.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long count_ ; + private long count_; /** + * + * *
        * The number of occurrences of this unigram in the series.
        * 
* * int64 count = 2; + * * @return The count. */ @java.lang.Override @@ -720,34 +791,41 @@ public long getCount() { return count_; } /** + * + * *
        * The number of occurrences of this unigram in the series.
        * 
* * int64 count = 2; + * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** + * + * *
        * The number of occurrences of this unigram in the series.
        * 
* * int64 count = 2; + * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -760,12 +838,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -774,16 +852,16 @@ public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats getDefaul 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); - } - }; + 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; @@ -798,75 +876,91 @@ public com.google.protobuf.Parser getParserForType() { 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ @java.lang.Override - public java.util.List getTopUnigramStatsList() { + 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ @java.lang.Override - public java.util.List + 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ @java.lang.Override 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ @java.lang.Override 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder getTopUnigramStatsOrBuilder( - int index) { + 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; @@ -878,8 +972,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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)); } @@ -893,8 +986,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < topUnigramStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, topUnigramStats_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topUnigramStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -904,15 +996,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.StringStats other = + (com.google.cloud.automl.v1beta1.StringStats) obj; - if (!getTopUnigramStatsList() - .equals(other.getTopUnigramStatsList())) return false; + if (!getTopUnigramStatsList().equals(other.getTopUnigramStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -933,118 +1025,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.StringStats parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.StringStats.class, + com.google.cloud.automl.v1beta1.StringStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.StringStats.newBuilder() @@ -1052,17 +1153,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTopUnigramStatsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1076,9 +1177,9 @@ public Builder clear() { } @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; + 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 @@ -1097,7 +1198,8 @@ public com.google.cloud.automl.v1beta1.StringStats build() { @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); + 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)) { @@ -1116,38 +1218,39 @@ public com.google.cloud.automl.v1beta1.StringStats buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.StringStats) other); } else { super.mergeFrom(other); return this; @@ -1174,9 +1277,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.StringStats other) { topUnigramStatsBuilder_ = null; topUnigramStats_ = other.topUnigramStats_; bitField0_ = (bitField0_ & ~0x00000001); - topUnigramStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTopUnigramStatsFieldBuilder() : null; + topUnigramStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTopUnigramStatsFieldBuilder() + : null; } else { topUnigramStatsBuilder_.addAllMessages(other.topUnigramStats_); } @@ -1210,29 +1314,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List topUnigramStats_ = - java.util.Collections.emptyList(); + private java.util.List + topUnigramStats_ = java.util.Collections.emptyList(); + private void ensureTopUnigramStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - topUnigramStats_ = new java.util.ArrayList(topUnigramStats_); + 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_; + 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ - public java.util.List getTopUnigramStatsList() { + public java.util.List + getTopUnigramStatsList() { if (topUnigramStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(topUnigramStats_); } else { @@ -1240,12 +1355,15 @@ public java.util.List } } /** + * + * *
      * 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ public int getTopUnigramStatsCount() { if (topUnigramStatsBuilder_ == null) { @@ -1255,12 +1373,15 @@ public 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; + * 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) { @@ -1270,12 +1391,15 @@ public com.google.cloud.automl.v1beta1.StringStats.UnigramStats getTopUnigramSta } } /** + * + * *
      * 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ public Builder setTopUnigramStats( int index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { @@ -1292,15 +1416,19 @@ public Builder setTopUnigramStats( 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; + * 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) { + int index, + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) { if (topUnigramStatsBuilder_ == null) { ensureTopUnigramStatsIsMutable(); topUnigramStats_.set(index, builderForValue.build()); @@ -1311,14 +1439,18 @@ public Builder setTopUnigramStats( 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ - public Builder addTopUnigramStats(com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { + public Builder addTopUnigramStats( + com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { if (topUnigramStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1332,12 +1464,15 @@ public Builder addTopUnigramStats(com.google.cloud.automl.v1beta1.StringStats.Un 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ public Builder addTopUnigramStats( int index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { @@ -1354,12 +1489,15 @@ public Builder addTopUnigramStats( 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ public Builder addTopUnigramStats( com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) { @@ -1373,15 +1511,19 @@ public Builder addTopUnigramStats( 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; + * 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) { + int index, + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) { if (topUnigramStatsBuilder_ == null) { ensureTopUnigramStatsIsMutable(); topUnigramStats_.add(index, builderForValue.build()); @@ -1392,19 +1534,22 @@ public Builder addTopUnigramStats( 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ public Builder addAllTopUnigramStats( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (topUnigramStatsBuilder_ == null) { ensureTopUnigramStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topUnigramStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topUnigramStats_); onChanged(); } else { topUnigramStatsBuilder_.addAllMessages(values); @@ -1412,12 +1557,15 @@ public Builder addAllTopUnigramStats( 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ public Builder clearTopUnigramStats() { if (topUnigramStatsBuilder_ == null) { @@ -1430,12 +1578,15 @@ public Builder clearTopUnigramStats() { 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ public Builder removeTopUnigramStats(int index) { if (topUnigramStatsBuilder_ == null) { @@ -1448,42 +1599,53 @@ public Builder removeTopUnigramStats(int 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ - public com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder getTopUnigramStatsBuilder( - int index) { + 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ - public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder getTopUnigramStatsOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder + getTopUnigramStatsOrBuilder(int index) { if (topUnigramStatsBuilder_ == null) { - return topUnigramStats_.get(index); } else { + 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ - public java.util.List - getTopUnigramStatsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder> + getTopUnigramStatsOrBuilderList() { if (topUnigramStatsBuilder_ != null) { return topUnigramStatsBuilder_.getMessageOrBuilderList(); } else { @@ -1491,48 +1653,66 @@ public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder getTopU } } /** + * + * *
      * 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; + * 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()); + 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; + * 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()); + 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ - public java.util.List - getTopUnigramStatsBuilderList() { + 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> + 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>( + 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(), @@ -1541,9 +1721,9 @@ public com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder addTopUn } return topUnigramStatsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1553,12 +1733,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1567,16 +1747,16 @@ 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); - } - }; + 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; @@ -1591,6 +1771,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.StringStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java index 4d96a5283..aa4802c2c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java @@ -1,57 +1,87 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ - java.util.List - getTopUnigramStatsList(); + 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; + * 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; + * 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ - java.util.List + 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; + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * */ com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder getTopUnigramStatsOrBuilder( int index); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java index 807b01906..c43923cbe 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use StructStats.newBuilder() to construct. private StructStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StructStats() { - } + + private StructStats() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StructStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StructStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,82 +69,91 @@ private StructStats( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fieldStats_ = com.google.protobuf.MapField.newMapField( - FieldStatsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + 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; } - com.google.protobuf.MapEntry - fieldStats__ = input.readMessage( - FieldStatsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - fieldStats_.getMutableMap().put( - fieldStats__.getKey(), fieldStats__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetFieldStats(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + 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 = + 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< - java.lang.String, com.google.cloud.automl.v1beta1.DataStats> fieldStats_; + .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 - internalGetFieldStats() { + fieldStats_; + + private com.google.protobuf.MapField + internalGetFieldStats() { if (fieldStats_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldStatsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(FieldStatsDefaultEntryHolder.defaultEntry); } return fieldStats_; } @@ -137,6 +162,8 @@ 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.
@@ -144,22 +171,23 @@ public int getFieldStatsCount() {
    *
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
-
   @java.lang.Override
-  public boolean containsFieldStats(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsFieldStats(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetFieldStats().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getFieldStatsMap()} instead.
-   */
+  /** Use {@link #getFieldStatsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map getFieldStats() {
+  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.
@@ -168,11 +196,13 @@ public java.util.Mapmap<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
   @java.lang.Override
-
-  public java.util.Map getFieldStatsMap() {
+  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.
@@ -181,16 +211,18 @@ public java.util.Mapmap<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
   @java.lang.Override
-
   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.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.
@@ -199,10 +231,10 @@ public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrDefault(
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
   @java.lang.Override
-
-  public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  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)) {
@@ -212,6 +244,7 @@ public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -223,14 +256,9 @@ public final boolean isInitialized() {
   }
 
   @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);
+  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);
   }
 
@@ -240,15 +268,16 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetFieldStats().getMap().entrySet()) {
+    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__);
+          fieldStats__ =
+              FieldStatsDefaultEntryHolder.defaultEntry
+                  .newBuilderForType()
+                  .setKey(entry.getKey())
+                  .setValue(entry.getValue())
+                  .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fieldStats__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -258,15 +287,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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;
+    com.google.cloud.automl.v1beta1.StructStats other =
+        (com.google.cloud.automl.v1beta1.StructStats) obj;
 
-    if (!internalGetFieldStats().equals(
-        other.internalGetFieldStats())) return false;
+    if (!internalGetFieldStats().equals(other.internalGetFieldStats())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -287,140 +316,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.StructStats parseFrom(
-      java.nio.ByteBuffer data)
+  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)
+      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)
+      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);
+    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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetFieldStats(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableFieldStats(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.StructStats.class, + com.google.cloud.automl.v1beta1.StructStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.StructStats.newBuilder() @@ -428,16 +464,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +481,9 @@ public Builder clear() { } @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; + 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 @@ -467,7 +502,8 @@ public com.google.cloud.automl.v1beta1.StructStats build() { @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); + 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(); @@ -479,38 +515,39 @@ public com.google.cloud.automl.v1beta1.StructStats buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.StructStats) other); } else { super.mergeFrom(other); return this; @@ -519,8 +556,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { 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()); + internalGetMutableFieldStats().mergeFrom(other.internalGetFieldStats()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -549,24 +585,31 @@ public Builder mergeFrom( } 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 - internalGetFieldStats() { + 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 - internalGetMutableFieldStats() { - onChanged();; + + 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); + fieldStats_ = + com.google.protobuf.MapField.newMapField(FieldStatsDefaultEntryHolder.defaultEntry); } if (!fieldStats_.isMutable()) { fieldStats_ = fieldStats_.copy(); @@ -578,6 +621,8 @@ 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.
@@ -585,22 +630,23 @@ public int getFieldStatsCount() {
      *
      * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
      */
-
     @java.lang.Override
-    public boolean containsFieldStats(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsFieldStats(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetFieldStats().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getFieldStatsMap()} instead.
-     */
+    /** Use {@link #getFieldStatsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
-    public java.util.Map getFieldStats() {
+    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.
@@ -609,11 +655,13 @@ public java.util.Mapmap<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
      */
     @java.lang.Override
-
-    public java.util.Map getFieldStatsMap() {
+    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.
@@ -622,16 +670,18 @@ public java.util.Mapmap<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
      */
     @java.lang.Override
-
     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.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.
@@ -640,10 +690,10 @@ public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrDefault(
      * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
      */
     @java.lang.Override
-
-    public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    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)) {
@@ -653,11 +703,12 @@ public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(
     }
 
     public Builder clearFieldStats() {
-      internalGetMutableFieldStats().getMutableMap()
-          .clear();
+      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.
@@ -665,23 +716,22 @@ public Builder clearFieldStats() {
      *
      * 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);
+    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.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
     public java.util.Map
-    getMutableFieldStats() {
+        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.
@@ -690,15 +740,19 @@ public Builder removeFieldStats(
      * 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);
+        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.
@@ -706,16 +760,14 @@ public Builder putFieldStats(
      *
      * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
      */
-
     public Builder putAllFieldStats(
         java.util.Map values) {
-      internalGetMutableFieldStats().getMutableMap()
-          .putAll(values);
+      internalGetMutableFieldStats().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -725,12 +777,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -739,16 +791,16 @@ 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);
-    }
-  };
+  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;
@@ -763,6 +815,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.StructStats getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java
similarity index 66%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java
index ad2f60cc4..8e438d41d 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+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.
@@ -17,6 +35,8 @@ public interface StructStatsOrBuilder extends
    */
   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.
@@ -24,15 +44,13 @@ public interface StructStatsOrBuilder extends
    *
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
-  boolean containsFieldStats(
-      java.lang.String key);
-  /**
-   * Use {@link #getFieldStatsMap()} instead.
-   */
+  boolean containsFieldStats(java.lang.String key);
+  /** Use {@link #getFieldStatsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getFieldStats();
+  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.
@@ -40,9 +58,10 @@ boolean containsFieldStats(
    *
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
-  java.util.Map
-  getFieldStatsMap();
+  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.
@@ -50,11 +69,11 @@ boolean containsFieldStats(
    *
    * 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);
+      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.
@@ -62,7 +81,5 @@ com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrDefault(
    *
    * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;
    */
-
-  com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(
-      java.lang.String key);
+  com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java
similarity index 64%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java
index 777069148..1c2729de3 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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 +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; + private static final long serialVersionUID = 0L; // Use StructType.newBuilder() to construct. private StructType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StructType() { - } + + private StructType() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StructType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StructType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,82 +69,90 @@ private StructType( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = com.google.protobuf.MapField.newMapField( - FieldsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + 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; } - com.google.protobuf.MapEntry - fields__ = input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - fields_.getMutableMap().put( - fields__.getKey(), fields__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetFields(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + 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 = + 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< - java.lang.String, com.google.cloud.automl.v1beta1.DataType> fields_; + .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 - internalGetFields() { + fields_; + + private com.google.protobuf.MapField + internalGetFields() { if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); } return fields_; } @@ -137,6 +161,8 @@ 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
@@ -145,22 +171,22 @@ public int getFieldsCount() {
    *
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
-
   @java.lang.Override
-  public boolean containsFields(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsFields(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetFields().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getFieldsMap()} instead.
-   */
+  /** Use {@link #getFieldsMap()} instead. */
   @java.lang.Override
   @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
@@ -170,11 +196,12 @@ public java.util.Map
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
   @java.lang.Override
-
   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
@@ -184,16 +211,18 @@ public java.util.Map
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
   @java.lang.Override
-
   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.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
@@ -203,10 +232,10 @@ public com.google.cloud.automl.v1beta1.DataType getFieldsOrDefault(
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
   @java.lang.Override
-
-  public com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  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)) {
@@ -216,6 +245,7 @@ public com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -227,14 +257,9 @@ public final boolean isInitialized() {
   }
 
   @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);
+  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);
   }
 
@@ -244,15 +269,16 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetFields().getMap().entrySet()) {
+    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__);
+          fields__ =
+              FieldsDefaultEntryHolder.defaultEntry
+                  .newBuilderForType()
+                  .setKey(entry.getKey())
+                  .setValue(entry.getValue())
+                  .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -262,15 +288,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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;
+    com.google.cloud.automl.v1beta1.StructType other =
+        (com.google.cloud.automl.v1beta1.StructType) obj;
 
-    if (!internalGetFields().equals(
-        other.internalGetFields())) return false;
+    if (!internalGetFields().equals(other.internalGetFields())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -291,140 +317,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.StructType parseFrom(
-      java.nio.ByteBuffer data)
+  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)
+      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)
+      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);
+    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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetFields(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableFields(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.StructType.class, + com.google.cloud.automl.v1beta1.StructType.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.StructType.newBuilder() @@ -432,16 +465,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +482,9 @@ public Builder clear() { } @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; + 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 @@ -471,7 +503,8 @@ public com.google.cloud.automl.v1beta1.StructType build() { @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); + 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(); @@ -483,38 +516,39 @@ public com.google.cloud.automl.v1beta1.StructType buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.StructType) other); } else { super.mergeFrom(other); return this; @@ -523,8 +557,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { 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()); + internalGetMutableFields().mergeFrom(other.internalGetFields()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -553,24 +586,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.automl.v1beta1.DataType> fields_; private com.google.protobuf.MapField - internalGetFields() { + fields_; + + private com.google.protobuf.MapField + internalGetFields() { if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); } return fields_; } + private com.google.protobuf.MapField - internalGetMutableFields() { - onChanged();; + internalGetMutableFields() { + onChanged(); + ; if (fields_ == null) { - fields_ = com.google.protobuf.MapField.newMapField( - FieldsDefaultEntryHolder.defaultEntry); + fields_ = com.google.protobuf.MapField.newMapField(FieldsDefaultEntryHolder.defaultEntry); } if (!fields_.isMutable()) { fields_ = fields_.copy(); @@ -582,6 +617,8 @@ 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
@@ -590,22 +627,22 @@ public int getFieldsCount() {
      *
      * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      */
-
     @java.lang.Override
-    public boolean containsFields(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsFields(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetFields().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getFieldsMap()} instead.
-     */
+    /** Use {@link #getFieldsMap()} instead. */
     @java.lang.Override
     @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
@@ -615,11 +652,13 @@ public java.util.Map
      * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      */
     @java.lang.Override
-
-    public java.util.Map getFieldsMap() {
+    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
@@ -629,16 +668,18 @@ public java.util.Map
      * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      */
     @java.lang.Override
-
     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.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
@@ -648,10 +689,10 @@ public com.google.cloud.automl.v1beta1.DataType getFieldsOrDefault(
      * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      */
     @java.lang.Override
-
-    public com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    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)) {
@@ -661,11 +702,12 @@ public com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(
     }
 
     public Builder clearFields() {
-      internalGetMutableFields().getMutableMap()
-          .clear();
+      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
@@ -674,23 +716,22 @@ public Builder clearFields() {
      *
      * 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);
+    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.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
     public java.util.Map
-    getMutableFields() {
+        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
@@ -699,16 +740,19 @@ public Builder removeFields(
      *
      * 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);
+    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
@@ -717,16 +761,14 @@ public Builder putFields(
      *
      * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      */
-
     public Builder putAllFields(
         java.util.Map values) {
-      internalGetMutableFields().getMutableMap()
-          .putAll(values);
+      internalGetMutableFields().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -736,12 +778,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -750,16 +792,16 @@ 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);
-    }
-  };
+  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;
@@ -774,6 +816,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.StructType getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java
similarity index 66%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java
index 2334c6a27..2c8e42cc5 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+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
@@ -18,6 +36,8 @@ public interface StructTypeOrBuilder extends
    */
   int getFieldsCount();
   /**
+   *
+   *
    * 
    * Unordered map of struct field names to their data types.
    * Fields cannot be added or removed via Update. Their names and
@@ -26,15 +46,13 @@ public interface StructTypeOrBuilder extends
    *
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
-  boolean containsFields(
-      java.lang.String key);
-  /**
-   * Use {@link #getFieldsMap()} instead.
-   */
+  boolean containsFields(java.lang.String key);
+  /** Use {@link #getFieldsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getFields();
+  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
@@ -43,9 +61,10 @@ boolean containsFields(
    *
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
-  java.util.Map
-  getFieldsMap();
+  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
@@ -54,11 +73,11 @@ boolean containsFields(
    *
    * 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);
+      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
@@ -67,7 +86,5 @@ com.google.cloud.automl.v1beta1.DataType getFieldsOrDefault(
    *
    * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    */
-
-  com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(
-      java.lang.String key);
+  com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java
similarity index 77%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java
index 65887d79a..927c2bf8d 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
@@ -18,15 +35,16 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.TableSpec}
  */
-public final class TableSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  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_ = "";
@@ -36,16 +54,15 @@ private TableSpec() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TableSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TableSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -65,62 +82,67 @@ private TableSpec(
           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 32: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            validRowCount_ = input.readInt64();
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              inputConfigs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            inputConfigs_.add(
-                input.readMessage(com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry));
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          case 56: {
+              timeColumnSpecId_ = s;
+              break;
+            }
+          case 24:
+            {
+              rowCount_ = input.readInt64();
+              break;
+            }
+          case 32:
+            {
+              validRowCount_ = input.readInt64();
+              break;
+            }
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                inputConfigs_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              inputConfigs_.add(
+                  input.readMessage(
+                      com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry));
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            columnCount_ = input.readInt64();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          case 56:
+            {
+              columnCount_ = input.readInt64();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_);
@@ -129,22 +151,27 @@ private TableSpec(
       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;
+
+  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
+    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);
+            com.google.cloud.automl.v1beta1.TableSpec.class,
+            com.google.cloud.automl.v1beta1.TableSpec.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The resource name of the table spec.
    * Form:
@@ -152,6 +179,7 @@ private TableSpec(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -160,14 +188,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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:
@@ -175,16 +204,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -195,6 +223,8 @@ public java.lang.String getName() { 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
@@ -207,6 +237,7 @@ public java.lang.String getName() {
    * 
* * string time_column_spec_id = 2; + * * @return The timeColumnSpecId. */ @java.lang.Override @@ -215,14 +246,15 @@ public java.lang.String getTimeColumnSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -235,16 +267,15 @@ public java.lang.String getTimeColumnSpecId() {
    * 
* * string time_column_spec_id = 2; + * * @return The bytes for timeColumnSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTimeColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); timeColumnSpecId_ = b; return b; } else { @@ -255,11 +286,14 @@ public java.lang.String getTimeColumnSpecId() { 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; + * * @return The rowCount. */ @java.lang.Override @@ -270,12 +304,15 @@ public long getRowCount() { public static final int VALID_ROW_COUNT_FIELD_NUMBER = 4; private long validRowCount_; /** + * + * *
    * Output only. The number of valid rows (i.e. without values that don't match
    * DataType-s of their columns).
    * 
* * int64 valid_row_count = 4; + * * @return The validRowCount. */ @java.lang.Override @@ -286,12 +323,15 @@ public long getValidRowCount() { 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; + * * @return The columnCount. */ @java.lang.Override @@ -302,6 +342,8 @@ public long getColumnCount() { 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.
@@ -314,6 +356,8 @@ public java.util.List getInputConfi
     return inputConfigs_;
   }
   /**
+   *
+   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -322,11 +366,13 @@ public java.util.List getInputConfi
    * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getInputConfigsOrBuilderList() {
     return inputConfigs_;
   }
   /**
+   *
+   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -339,6 +385,8 @@ public int getInputConfigsCount() {
     return inputConfigs_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -351,6 +399,8 @@ 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.
@@ -359,20 +409,22 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index) {
    * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
    */
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(
-      int index) {
+  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; + * * @return The etag. */ @java.lang.Override @@ -381,30 +433,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -413,6 +465,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -424,8 +477,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -463,23 +515,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timeColumnSpecId_); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, rowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, rowCount_); } if (validRowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, validRowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, validRowCount_); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); } if (columnCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, columnCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, columnCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -489,27 +537,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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 (getValidRowCount() - != other.getValidRowCount()) return false; - if (getColumnCount() - != other.getColumnCount()) return false; - if (!getInputConfigsList() - .equals(other.getInputConfigsList())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + 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 (getValidRowCount() != other.getValidRowCount()) 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; } @@ -526,14 +568,11 @@ public int 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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); hash = (37 * hash) + VALID_ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValidRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValidRowCount()); hash = (37 * hash) + COLUMN_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getColumnCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColumnCount()); if (getInputConfigsCount() > 0) { hash = (37 * hash) + INPUT_CONFIGS_FIELD_NUMBER; hash = (53 * hash) + getInputConfigsList().hashCode(); @@ -545,97 +584,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.TableSpec parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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
@@ -650,21 +696,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.TableSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.TableSpec.class,
+              com.google.cloud.automl.v1beta1.TableSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.TableSpec.newBuilder()
@@ -672,17 +720,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getInputConfigsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -708,9 +756,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -729,7 +777,8 @@ public com.google.cloud.automl.v1beta1.TableSpec build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.TableSpec result =
+          new com.google.cloud.automl.v1beta1.TableSpec(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.timeColumnSpecId_ = timeColumnSpecId_;
@@ -754,38 +803,39 @@ public com.google.cloud.automl.v1beta1.TableSpec buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.TableSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -829,9 +879,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TableSpec other) {
             inputConfigsBuilder_ = null;
             inputConfigs_ = other.inputConfigs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            inputConfigsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getInputConfigsFieldBuilder() : null;
+            inputConfigsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getInputConfigsFieldBuilder()
+                    : null;
           } else {
             inputConfigsBuilder_.addAllMessages(other.inputConfigs_);
           }
@@ -869,10 +920,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the table spec.
      * Form:
@@ -880,13 +934,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -895,6 +949,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the table spec.
      * Form:
@@ -902,15 +958,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -918,6 +973,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the table spec.
      * Form:
@@ -925,20 +982,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the table spec.
      * Form:
@@ -946,15 +1005,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the table spec.
      * Form:
@@ -962,16 +1024,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -979,6 +1041,8 @@ public Builder setNameBytes( 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
@@ -991,13 +1055,13 @@ public Builder setNameBytes(
      * 
* * string time_column_spec_id = 2; + * * @return The timeColumnSpecId. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeColumnSpecId_ = s; return s; @@ -1006,6 +1070,8 @@ public 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
@@ -1018,15 +1084,14 @@ public java.lang.String getTimeColumnSpecId() {
      * 
* * string time_column_spec_id = 2; + * * @return The bytes for timeColumnSpecId. */ - public com.google.protobuf.ByteString - getTimeColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); timeColumnSpecId_ = b; return b; } else { @@ -1034,6 +1099,8 @@ public 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
@@ -1046,20 +1113,22 @@ public java.lang.String getTimeColumnSpecId() {
      * 
* * string time_column_spec_id = 2; + * * @param value The timeColumnSpecId to set. * @return This builder for chaining. */ - public Builder setTimeColumnSpecId( - java.lang.String value) { + public Builder setTimeColumnSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -1072,15 +1141,18 @@ public Builder setTimeColumnSpecId(
      * 
* * string time_column_spec_id = 2; + * * @return This builder for chaining. */ 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
@@ -1093,28 +1165,31 @@ public Builder clearTimeColumnSpecId() {
      * 
* * string time_column_spec_id = 2; + * * @param value The bytes for timeColumnSpecId to set. * @return This builder for chaining. */ - public Builder setTimeColumnSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder setTimeColumnSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeColumnSpecId_ = value; onChanged(); return this; } - private long rowCount_ ; + private long rowCount_; /** + * + * *
      * Output only. The number of rows (i.e. examples) in the table.
      * 
* * int64 row_count = 3; + * * @return The rowCount. */ @java.lang.Override @@ -1122,43 +1197,52 @@ public long getRowCount() { return rowCount_; } /** + * + * *
      * Output only. The number of rows (i.e. examples) in the table.
      * 
* * int64 row_count = 3; + * * @param value The rowCount to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearRowCount() { - + rowCount_ = 0L; onChanged(); return this; } - private long validRowCount_ ; + private long validRowCount_; /** + * + * *
      * Output only. The number of valid rows (i.e. without values that don't match
      * DataType-s of their columns).
      * 
* * int64 valid_row_count = 4; + * * @return The validRowCount. */ @java.lang.Override @@ -1166,45 +1250,54 @@ public long getValidRowCount() { return validRowCount_; } /** + * + * *
      * Output only. The number of valid rows (i.e. without values that don't match
      * DataType-s of their columns).
      * 
* * int64 valid_row_count = 4; + * * @param value The validRowCount to set. * @return This builder for chaining. */ public Builder setValidRowCount(long value) { - + validRowCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of valid rows (i.e. without values that don't match
      * DataType-s of their columns).
      * 
* * int64 valid_row_count = 4; + * * @return This builder for chaining. */ public Builder clearValidRowCount() { - + validRowCount_ = 0L; onChanged(); return this; } - private long columnCount_ ; + private long columnCount_; /** + * + * *
      * Output only. The number of columns of the table. That is, the number of
      * child ColumnSpec-s.
      * 
* * int64 column_count = 7; + * * @return The columnCount. */ @java.lang.Override @@ -1212,50 +1305,63 @@ 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; + * * @param value The columnCount to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearColumnCount() { - + columnCount_ = 0L; onChanged(); return this; } private java.util.List inputConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - inputConfigs_ = new java.util.ArrayList(inputConfigs_); + inputConfigs_ = + new java.util.ArrayList(inputConfigs_); bitField0_ |= 0x00000001; - } + } } 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_; + 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.
@@ -1271,6 +1377,8 @@ public java.util.List getInputConfi
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1286,6 +1394,8 @@ public int getInputConfigsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1301,6 +1411,8 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1308,8 +1420,7 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      */
-    public Builder setInputConfigs(
-        int index, com.google.cloud.automl.v1beta1.InputConfig value) {
+    public Builder setInputConfigs(int index, com.google.cloud.automl.v1beta1.InputConfig value) {
       if (inputConfigsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1323,6 +1434,8 @@ public Builder setInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1342,6 +1455,8 @@ public Builder setInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1363,6 +1478,8 @@ public Builder addInputConfigs(com.google.cloud.automl.v1beta1.InputConfig value
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1370,8 +1487,7 @@ public Builder addInputConfigs(com.google.cloud.automl.v1beta1.InputConfig value
      *
      * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      */
-    public Builder addInputConfigs(
-        int index, com.google.cloud.automl.v1beta1.InputConfig value) {
+    public Builder addInputConfigs(int index, com.google.cloud.automl.v1beta1.InputConfig value) {
       if (inputConfigsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1385,6 +1501,8 @@ public Builder addInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1404,6 +1522,8 @@ public Builder addInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1423,6 +1543,8 @@ public Builder addInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1434,8 +1556,7 @@ public Builder addAllInputConfigs(
         java.lang.Iterable values) {
       if (inputConfigsBuilder_ == null) {
         ensureInputConfigsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, inputConfigs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_);
         onChanged();
       } else {
         inputConfigsBuilder_.addAllMessages(values);
@@ -1443,6 +1564,8 @@ public Builder addAllInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1461,6 +1584,8 @@ public Builder clearInputConfigs() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1479,6 +1604,8 @@ public Builder removeInputConfigs(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1486,11 +1613,12 @@ public Builder removeInputConfigs(int index) {
      *
      * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      */
-    public com.google.cloud.automl.v1beta1.InputConfig.Builder getInputConfigsBuilder(
-        int index) {
+    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.
@@ -1501,11 +1629,14 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder getInputConfigsBuilde
     public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(
         int index) {
       if (inputConfigsBuilder_ == null) {
-        return inputConfigs_.get(index);  } else {
+        return inputConfigs_.get(index);
+      } else {
         return inputConfigsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1513,8 +1644,8 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBui
      *
      * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      */
-    public java.util.List 
-         getInputConfigsOrBuilderList() {
+    public java.util.List
+        getInputConfigsOrBuilderList() {
       if (inputConfigsBuilder_ != null) {
         return inputConfigsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1522,6 +1653,8 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBui
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Input configs via which data currently residing in the table
      * had been imported.
@@ -1530,10 +1663,12 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBui
      * 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());
+      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.
@@ -1541,12 +1676,13 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder addInputConfigsBuilde
      *
      * 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());
+    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.
@@ -1554,20 +1690,23 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder addInputConfigsBuilde
      *
      * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      */
-    public java.util.List 
-         getInputConfigsBuilderList() {
+    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> 
+            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_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        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_ & 0x00000001) != 0), getParentForChildren(), isClean());
         inputConfigs_ = null;
       }
       return inputConfigsBuilder_;
@@ -1575,19 +1714,21 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder addInputConfigsBuilde
 
     private java.lang.Object etag_ = "";
     /**
+     *
+     *
      * 
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; + * * @return The etag. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -1596,21 +1737,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1618,64 +1760,71 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* * string etag = 6; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1685,12 +1834,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1699,16 +1848,16 @@ 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); - } - }; + 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; @@ -1723,6 +1872,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TableSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java index 875081478..b57b8be45 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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:
@@ -15,10 +33,13 @@ public interface TableSpecOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the table spec.
    * Form:
@@ -26,12 +47,14 @@ public interface TableSpecOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + 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
@@ -44,10 +67,13 @@ public interface TableSpecOrBuilder extends
    * 
* * string time_column_spec_id = 2; + * * @return The timeColumnSpecId. */ 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
@@ -60,44 +86,55 @@ public interface TableSpecOrBuilder extends
    * 
* * string time_column_spec_id = 2; + * * @return The bytes for timeColumnSpecId. */ - com.google.protobuf.ByteString - getTimeColumnSpecIdBytes(); + com.google.protobuf.ByteString getTimeColumnSpecIdBytes(); /** + * + * *
    * Output only. The number of rows (i.e. examples) in the table.
    * 
* * int64 row_count = 3; + * * @return The rowCount. */ long getRowCount(); /** + * + * *
    * Output only. The number of valid rows (i.e. without values that don't match
    * DataType-s of their columns).
    * 
* * int64 valid_row_count = 4; + * * @return The validRowCount. */ long getValidRowCount(); /** + * + * *
    * Output only. The number of columns of the table. That is, the number of
    * child ColumnSpec-s.
    * 
* * int64 column_count = 7; + * * @return The columnCount. */ long getColumnCount(); /** + * + * *
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -105,9 +142,10 @@ public interface TableSpecOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
    */
-  java.util.List 
-      getInputConfigsList();
+  java.util.List getInputConfigsList();
   /**
+   *
+   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -117,6 +155,8 @@ public interface TableSpecOrBuilder extends
    */
   com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index);
   /**
+   *
+   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -126,6 +166,8 @@ public interface TableSpecOrBuilder extends
    */
   int getInputConfigsCount();
   /**
+   *
+   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -133,9 +175,11 @@ public interface TableSpecOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
    */
-  java.util.List 
+  java.util.List
       getInputConfigsOrBuilderList();
   /**
+   *
+   *
    * 
    * Output only. Input configs via which data currently residing in the table
    * had been imported.
@@ -143,28 +187,32 @@ public interface TableSpecOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
    */
-  com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(
-      int index);
+  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; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* * string etag = 6; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java new file mode 100644 index 000000000..c0d3ac028 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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\031goo" + + "gle/api/resource.proto\032$google/cloud/aut" + + "oml/v1beta1/io.proto\032\034google/api/annotat" + + "ions.proto\"\301\002\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\027\n\017valid_row_count\030\004 \001(\003\022\024\n\014colum" + + "n_count\030\007 \001(\003\022?\n\rinput_configs\030\005 \003(\0132(.g" + + "oogle.cloud.automl.v1beta1.InputConfig\022\014" + + "\n\004etag\030\006 \001(\t:x\352Au\n\037automl.googleapis.com" + + "/TableSpec\022Rprojects/{project}/locations" + + "/{location}/datasets/{dataset}/tableSpec" + + "s/{table_spec}B\245\001\n\037com.google.cloud.auto" + + "ml.v1beta1P\001ZAgoogle.golang.org/genproto" + + "/googleapis/cloud/automl/v1beta1;automl\312" + + "\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Google::" + + "Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Io.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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", + "ValidRowCount", + "ColumnCount", + "InputConfigs", + "Etag", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Io.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java new file mode 100644 index 000000000..29290c64b --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java @@ -0,0 +1,194 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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\0320google/" + + "cloud/automl/v1beta1/classification.prot" + + "o\032-google/cloud/automl/v1beta1/column_sp" + + "ec.proto\032,google/cloud/automl/v1beta1/da" + + "ta_items.proto\032,google/cloud/automl/v1be" + + "ta1/data_stats.proto\032(google/cloud/autom" + + "l/v1beta1/ranges.proto\032,google/cloud/aut" + + "oml/v1beta1/regression.proto\032*google/clo" + + "ud/automl/v1beta1/temporal.proto\032\034google" + + "/protobuf/struct.proto\032\037google/protobuf/" + + "timestamp.proto\032\034google/api/annotations." + + "proto\"\260\003\n\025TablesDatasetMetadata\022\035\n\025prima" + + "ry_table_spec_id\030\001 \001(\t\022\035\n\025target_column_" + + "spec_id\030\002 \001(\t\022\035\n\025weight_column_spec_id\030\003" + + " \001(\t\022\035\n\025ml_use_column_spec_id\030\004 \001(\t\022t\n\032t" + + "arget_column_correlations\030\006 \003(\0132P.google" + + ".cloud.automl.v1beta1.TablesDatasetMetad" + + "ata.TargetColumnCorrelationsEntry\0225\n\021sta" + + "ts_update_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestamp\032n\n\035TargetColumnCorrelationsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.google.c" + + "loud.automl.v1beta1.CorrelationStats:\0028\001" + + "\"\226\004\n\023TablesModelMetadata\022-\n#optimization" + + "_objective_recall_value\030\021 \001(\002H\000\0220\n&optim" + + "ization_objective_precision_value\030\022 \001(\002H" + + "\000\022C\n\022target_column_spec\030\002 \001(\0132\'.google.c" + + "loud.automl.v1beta1.ColumnSpec\022K\n\032input_" + + "feature_column_specs\030\003 \003(\0132\'.google.clou" + + "d.automl.v1beta1.ColumnSpec\022\036\n\026optimizat" + + "ion_objective\030\004 \001(\t\022T\n\030tables_model_colu" + + "mn_info\030\005 \003(\01322.google.cloud.automl.v1be" + + "ta1.TablesModelColumnInfo\022%\n\035train_budge" + + "t_milli_node_hours\030\006 \001(\003\022#\n\033train_cost_m" + + "illi_node_hours\030\007 \001(\003\022\036\n\026disable_early_s" + + "topping\030\014 \001(\010B*\n(additional_optimization" + + "_objective_config\"\375\001\n\020TablesAnnotation\022\r" + + "\n\005score\030\001 \001(\002\022E\n\023prediction_interval\030\004 \001" + + "(\0132(.google.cloud.automl.v1beta1.DoubleR" + + "ange\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Va" + + "lue\022T\n\030tables_model_column_info\030\003 \003(\01322." + + "google.cloud.automl.v1beta1.TablesModelC" + + "olumnInfo\022\026\n\016baseline_score\030\005 \001(\002\"j\n\025Tab" + + "lesModelColumnInfo\022\030\n\020column_spec_name\030\001" + + " \001(\t\022\033\n\023column_display_name\030\002 \001(\t\022\032\n\022fea" + + "ture_importance\030\003 \001(\002B\245\001\n\037com.google.clo" + + "ud.automl.v1beta1P\001ZAgoogle.golang.org/g" + + "enproto/googleapis/cloud/automl/v1beta1;" + + "automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036G" + + "oogle::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.cloud.automl.v1beta1.ColumnSpecOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.DataItems.getDescriptor(), + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.RangesProto.getDescriptor(), + com.google.cloud.automl.v1beta1.RegressionProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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[] { + "OptimizationObjectiveRecallValue", + "OptimizationObjectivePrecisionValue", + "TargetColumnSpec", + "InputFeatureColumnSpecs", + "OptimizationObjective", + "TablesModelColumnInfo", + "TrainBudgetMilliNodeHours", + "TrainCostMilliNodeHours", + "DisableEarlyStopping", + "AdditionalOptimizationObjectiveConfig", + }); + 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", "BaselineScore", + }); + 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.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + com.google.cloud.automl.v1beta1.ColumnSpecOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.DataItems.getDescriptor(); + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.RangesProto.getDescriptor(); + com.google.cloud.automl.v1beta1.RegressionProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java index 30c496192..937e3e749 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TablesAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TablesAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,65 +71,73 @@ private TablesAnnotation( 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(); + case 13: + { + score_ = input.readFloat(); + break; } - value_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); + 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; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tablesModelColumnInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tablesModelColumnInfo_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.TablesModelColumnInfo>(); + mutable_bitField0_ |= 0x00000001; + } + tablesModelColumnInfo_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.parser(), + extensionRegistry)); + break; } - 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(); + 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; } - predictionInterval_ = input.readMessage(com.google.cloud.automl.v1beta1.DoubleRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(predictionInterval_); - predictionInterval_ = subBuilder.buildPartial(); + case 45: + { + baselineScore_ = input.readFloat(); + break; } - - break; - } - case 45: { - - baselineScore_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { tablesModelColumnInfo_ = java.util.Collections.unmodifiableList(tablesModelColumnInfo_); @@ -121,22 +146,27 @@ private TablesAnnotation( 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.TablesAnnotation.class, + com.google.cloud.automl.v1beta1.TablesAnnotation.Builder.class); } 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.
@@ -146,6 +176,7 @@ private TablesAnnotation(
    * 
* * float score = 1; + * * @return The score. */ @java.lang.Override @@ -156,6 +187,8 @@ public float getScore() { 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]
@@ -164,6 +197,7 @@ public float getScore() {
    * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + * * @return Whether the predictionInterval field is set. */ @java.lang.Override @@ -171,6 +205,8 @@ public boolean hasPredictionInterval() { return predictionInterval_ != null; } /** + * + * *
    * Output only. Only populated when
    * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -179,13 +215,18 @@ public boolean hasPredictionInterval() {
    * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + * * @return The predictionInterval. */ @java.lang.Override public com.google.cloud.automl.v1beta1.DoubleRange getPredictionInterval() { - return predictionInterval_ == null ? com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance() : predictionInterval_; + 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]
@@ -203,6 +244,8 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
   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].
@@ -213,6 +256,7 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
    * 
* * .google.protobuf.Value value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -220,6 +264,8 @@ public boolean hasValue() { return value_ != null; } /** + * + * *
    * The predicted value of the row's
    * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -230,6 +276,7 @@ public boolean hasValue() {
    * 
* * .google.protobuf.Value value = 2; + * * @return The value. */ @java.lang.Override @@ -237,6 +284,8 @@ 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].
@@ -254,8 +303,11 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
   }
 
   public static final int TABLES_MODEL_COLUMN_INFO_FIELD_NUMBER = 3;
-  private java.util.List tablesModelColumnInfo_;
+  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]
@@ -267,13 +319,17 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ @java.lang.Override - public java.util.List getTablesModelColumnInfoList() { + 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]
@@ -285,14 +341,17 @@ public java.util.List get
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ @java.lang.Override - public java.util.List + 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]
@@ -304,13 +363,16 @@ public java.util.List get
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ @java.lang.Override 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]
@@ -322,13 +384,16 @@ public int getTablesModelColumnInfoCount() {
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ @java.lang.Override 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]
@@ -340,17 +405,20 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColum
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder + getTablesModelColumnInfoOrBuilder(int index) { return tablesModelColumnInfo_.get(index); } public static final int BASELINE_SCORE_FIELD_NUMBER = 5; private float baselineScore_; /** + * + * *
    * Output only. Stores the prediction score for the baseline example, which
    * is defined as the example with all values set to their baseline values.
@@ -362,6 +430,7 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesM
    * 
* * float baseline_score = 5; + * * @return The baselineScore. */ @java.lang.Override @@ -370,6 +439,7 @@ public float getBaselineScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,8 +451,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (score_ != 0F) { output.writeFloat(1, score_); } @@ -408,24 +477,21 @@ public int getSerializedSize() { size = 0; if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); + 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)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, tablesModelColumnInfo_.get(i)); } if (predictionInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPredictionInterval()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPredictionInterval()); } if (baselineScore_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, baselineScore_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, baselineScore_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -435,31 +501,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (hasPredictionInterval() != other.hasPredictionInterval()) return false; if (hasPredictionInterval()) { - if (!getPredictionInterval() - .equals(other.getPredictionInterval())) return false; + if (!getPredictionInterval().equals(other.getPredictionInterval())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; } - if (!getTablesModelColumnInfoList() - .equals(other.getTablesModelColumnInfoList())) return false; + if (!getTablesModelColumnInfoList().equals(other.getTablesModelColumnInfoList())) return false; if (java.lang.Float.floatToIntBits(getBaselineScore()) - != java.lang.Float.floatToIntBits( - other.getBaselineScore())) return false; + != java.lang.Float.floatToIntBits(other.getBaselineScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,8 +534,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); if (hasPredictionInterval()) { hash = (37 * hash) + PREDICTION_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getPredictionInterval().hashCode(); @@ -487,125 +548,133 @@ public int hashCode() { hash = (53 * hash) + getTablesModelColumnInfoList().hashCode(); } hash = (37 * hash) + BASELINE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBaselineScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBaselineScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TablesAnnotation.class, + com.google.cloud.automl.v1beta1.TablesAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TablesAnnotation.newBuilder() @@ -613,17 +682,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTablesModelColumnInfoFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -653,9 +722,9 @@ public Builder clear() { } @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; + 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 @@ -674,7 +743,8 @@ public com.google.cloud.automl.v1beta1.TablesAnnotation build() { @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); + com.google.cloud.automl.v1beta1.TablesAnnotation result = + new com.google.cloud.automl.v1beta1.TablesAnnotation(this); int from_bitField0_ = bitField0_; result.score_ = score_; if (predictionIntervalBuilder_ == null) { @@ -705,38 +775,39 @@ public com.google.cloud.automl.v1beta1.TablesAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TablesAnnotation) other); } else { super.mergeFrom(other); return this; @@ -744,7 +815,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesAnnotation other) { - if (other == com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance()) + return this; if (other.getScore() != 0F) { setScore(other.getScore()); } @@ -772,9 +844,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesAnnotation other) tablesModelColumnInfoBuilder_ = null; tablesModelColumnInfo_ = other.tablesModelColumnInfo_; bitField0_ = (bitField0_ & ~0x00000001); - tablesModelColumnInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTablesModelColumnInfoFieldBuilder() : null; + tablesModelColumnInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTablesModelColumnInfoFieldBuilder() + : null; } else { tablesModelColumnInfoBuilder_.addAllMessages(other.tablesModelColumnInfo_); } @@ -811,10 +884,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private float score_ ; + 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.
@@ -824,6 +900,7 @@ public Builder mergeFrom(
      * 
* * float score = 1; + * * @return The score. */ @java.lang.Override @@ -831,6 +908,8 @@ 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.
@@ -840,16 +919,19 @@ public float getScore() {
      * 
* * float score = 1; + * * @param value The score to set. * @return This builder for chaining. */ 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.
@@ -859,10 +941,11 @@ public Builder setScore(float value) {
      * 
* * float score = 1; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -870,8 +953,13 @@ public Builder clearScore() { 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_; + 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]
@@ -880,12 +968,15 @@ public Builder clearScore() {
      * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + * * @return Whether the predictionInterval field is set. */ public boolean hasPredictionInterval() { return predictionIntervalBuilder_ != null || predictionInterval_ != null; } /** + * + * *
      * Output only. Only populated when
      * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -894,16 +985,21 @@ public boolean hasPredictionInterval() {
      * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + * * @return The predictionInterval. */ public com.google.cloud.automl.v1beta1.DoubleRange getPredictionInterval() { if (predictionIntervalBuilder_ == null) { - return predictionInterval_ == null ? com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance() : predictionInterval_; + 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]
@@ -927,6 +1023,8 @@ public Builder setPredictionInterval(com.google.cloud.automl.v1beta1.DoubleRange
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Only populated when
      * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -948,6 +1046,8 @@ public Builder setPredictionInterval(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Only populated when
      * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -961,7 +1061,9 @@ public Builder mergePredictionInterval(com.google.cloud.automl.v1beta1.DoubleRan
       if (predictionIntervalBuilder_ == null) {
         if (predictionInterval_ != null) {
           predictionInterval_ =
-            com.google.cloud.automl.v1beta1.DoubleRange.newBuilder(predictionInterval_).mergeFrom(value).buildPartial();
+              com.google.cloud.automl.v1beta1.DoubleRange.newBuilder(predictionInterval_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           predictionInterval_ = value;
         }
@@ -973,6 +1075,8 @@ public Builder mergePredictionInterval(com.google.cloud.automl.v1beta1.DoubleRan
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Only populated when
      * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -994,6 +1098,8 @@ public Builder clearPredictionInterval() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Only populated when
      * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -1004,11 +1110,13 @@ public Builder clearPredictionInterval() {
      * .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]
@@ -1022,11 +1130,14 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
       if (predictionIntervalBuilder_ != null) {
         return predictionIntervalBuilder_.getMessageOrBuilder();
       } else {
-        return predictionInterval_ == null ?
-            com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance() : predictionInterval_;
+        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]
@@ -1037,14 +1148,17 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
      * .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> 
+            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());
+        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_;
@@ -1052,8 +1166,13 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
 
     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_;
+            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].
@@ -1064,12 +1183,15 @@ public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionInterva
      * 
* * .google.protobuf.Value value = 2; + * * @return Whether the value field is set. */ 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].
@@ -1080,6 +1202,7 @@ public boolean hasValue() {
      * 
* * .google.protobuf.Value value = 2; + * * @return The value. */ public com.google.protobuf.Value getValue() { @@ -1090,6 +1213,8 @@ public com.google.protobuf.Value getValue() { } } /** + * + * *
      * The predicted value of the row's
      * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -1115,6 +1240,8 @@ public Builder setValue(com.google.protobuf.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The predicted value of the row's
      * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -1126,8 +1253,7 @@ public Builder setValue(com.google.protobuf.Value value) {
      *
      * .google.protobuf.Value value = 2;
      */
-    public Builder setValue(
-        com.google.protobuf.Value.Builder builderForValue) {
+    public Builder setValue(com.google.protobuf.Value.Builder builderForValue) {
       if (valueBuilder_ == null) {
         value_ = builderForValue.build();
         onChanged();
@@ -1138,6 +1264,8 @@ public Builder setValue(
       return this;
     }
     /**
+     *
+     *
      * 
      * The predicted value of the row's
      * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -1152,8 +1280,7 @@ public Builder setValue(
     public Builder mergeValue(com.google.protobuf.Value value) {
       if (valueBuilder_ == null) {
         if (value_ != null) {
-          value_ =
-            com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial();
+          value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial();
         } else {
           value_ = value;
         }
@@ -1165,6 +1292,8 @@ public Builder mergeValue(com.google.protobuf.Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The predicted value of the row's
      * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -1188,6 +1317,8 @@ public Builder clearValue() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The predicted value of the row's
      * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -1200,11 +1331,13 @@ public Builder clearValue() {
      * .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].
@@ -1220,11 +1353,12 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
       if (valueBuilder_ != null) {
         return valueBuilder_.getMessageOrBuilder();
       } else {
-        return value_ == null ?
-            com.google.protobuf.Value.getDefaultInstance() : value_;
+        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].
@@ -1237,32 +1371,42 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
      * .google.protobuf.Value value = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> 
+            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());
+        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 java.util.List
+        tablesModelColumnInfo_ = java.util.Collections.emptyList();
+
     private void ensureTablesModelColumnInfoIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        tablesModelColumnInfo_ = new java.util.ArrayList(tablesModelColumnInfo_);
+        tablesModelColumnInfo_ =
+            new java.util.ArrayList(
+                tablesModelColumnInfo_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     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_;
+            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]
@@ -1274,9 +1418,12 @@ private void ensureTablesModelColumnInfoIsMutable() {
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ - public java.util.List getTablesModelColumnInfoList() { + public java.util.List + getTablesModelColumnInfoList() { if (tablesModelColumnInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(tablesModelColumnInfo_); } else { @@ -1284,6 +1431,8 @@ public java.util.List get } } /** + * + * *
      * Output only. Auxiliary information for each of the model's
      * [input_feature_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
@@ -1295,7 +1444,9 @@ public java.util.List get
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ public int getTablesModelColumnInfoCount() { if (tablesModelColumnInfoBuilder_ == null) { @@ -1305,6 +1456,8 @@ public 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]
@@ -1316,9 +1469,12 @@ public int getTablesModelColumnInfoCount() {
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo(int index) { + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo( + int index) { if (tablesModelColumnInfoBuilder_ == null) { return tablesModelColumnInfo_.get(index); } else { @@ -1326,6 +1482,8 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColum } } /** + * + * *
      * Output only. Auxiliary information for each of the model's
      * [input_feature_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
@@ -1337,7 +1495,9 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColum
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ public Builder setTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { @@ -1354,6 +1514,8 @@ public Builder setTablesModelColumnInfo( 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]
@@ -1365,7 +1527,9 @@ public Builder setTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ public Builder setTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -1379,6 +1543,8 @@ public Builder setTablesModelColumnInfo( 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]
@@ -1390,9 +1556,12 @@ public Builder setTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ - public Builder addTablesModelColumnInfo(com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { + public Builder addTablesModelColumnInfo( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { if (tablesModelColumnInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1406,6 +1575,8 @@ public Builder addTablesModelColumnInfo(com.google.cloud.automl.v1beta1.TablesMo 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]
@@ -1417,7 +1588,9 @@ public Builder addTablesModelColumnInfo(com.google.cloud.automl.v1beta1.TablesMo
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ public Builder addTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { @@ -1434,6 +1607,8 @@ public Builder addTablesModelColumnInfo( 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]
@@ -1445,7 +1620,9 @@ public Builder addTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ public Builder addTablesModelColumnInfo( com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -1459,6 +1636,8 @@ public Builder addTablesModelColumnInfo( 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]
@@ -1470,7 +1649,9 @@ public Builder addTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ public Builder addTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -1484,6 +1665,8 @@ public Builder addTablesModelColumnInfo( 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]
@@ -1495,14 +1678,16 @@ public Builder addTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ public Builder addAllTablesModelColumnInfo( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (tablesModelColumnInfoBuilder_ == null) { ensureTablesModelColumnInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tablesModelColumnInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tablesModelColumnInfo_); onChanged(); } else { tablesModelColumnInfoBuilder_.addAllMessages(values); @@ -1510,6 +1695,8 @@ public Builder addAllTablesModelColumnInfo( 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]
@@ -1521,7 +1708,9 @@ public Builder addAllTablesModelColumnInfo(
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ public Builder clearTablesModelColumnInfo() { if (tablesModelColumnInfoBuilder_ == null) { @@ -1534,6 +1723,8 @@ public Builder clearTablesModelColumnInfo() { 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]
@@ -1545,7 +1736,9 @@ public Builder clearTablesModelColumnInfo() {
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ public Builder removeTablesModelColumnInfo(int index) { if (tablesModelColumnInfoBuilder_ == null) { @@ -1558,6 +1751,8 @@ public Builder removeTablesModelColumnInfo(int 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]
@@ -1569,13 +1764,17 @@ public Builder removeTablesModelColumnInfo(int index) {
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder getTablesModelColumnInfoBuilder( - int index) { + 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]
@@ -1587,16 +1786,21 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder getTablesMo
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder + getTablesModelColumnInfoOrBuilder(int index) { if (tablesModelColumnInfoBuilder_ == null) { - return tablesModelColumnInfo_.get(index); } else { + 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]
@@ -1608,10 +1812,12 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesM
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ - public java.util.List - getTablesModelColumnInfoOrBuilderList() { + public java.util.List + getTablesModelColumnInfoOrBuilderList() { if (tablesModelColumnInfoBuilder_ != null) { return tablesModelColumnInfoBuilder_.getMessageOrBuilderList(); } else { @@ -1619,6 +1825,8 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesM } } /** + * + * *
      * Output only. Auxiliary information for each of the model's
      * [input_feature_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
@@ -1630,13 +1838,18 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesM
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * 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()); + 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]
@@ -1648,14 +1861,19 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder addTablesMo
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * 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()); + 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]
@@ -1667,18 +1885,26 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder addTablesMo
      * would be populated, then this whole field is not.
      * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ - public java.util.List - getTablesModelColumnInfoBuilderList() { + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -1688,8 +1914,10 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder addTablesMo return tablesModelColumnInfoBuilder_; } - private float baselineScore_ ; + private float baselineScore_; /** + * + * *
      * Output only. Stores the prediction score for the baseline example, which
      * is defined as the example with all values set to their baseline values.
@@ -1701,6 +1929,7 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder addTablesMo
      * 
* * float baseline_score = 5; + * * @return The baselineScore. */ @java.lang.Override @@ -1708,6 +1937,8 @@ public float getBaselineScore() { return baselineScore_; } /** + * + * *
      * Output only. Stores the prediction score for the baseline example, which
      * is defined as the example with all values set to their baseline values.
@@ -1719,16 +1950,19 @@ public float getBaselineScore() {
      * 
* * float baseline_score = 5; + * * @param value The baselineScore to set. * @return This builder for chaining. */ public Builder setBaselineScore(float value) { - + baselineScore_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Stores the prediction score for the baseline example, which
      * is defined as the example with all values set to their baseline values.
@@ -1740,17 +1974,18 @@ public Builder setBaselineScore(float value) {
      * 
* * float baseline_score = 5; + * * @return This builder for chaining. */ public Builder clearBaselineScore() { - + baselineScore_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1760,12 +1995,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1774,16 +2009,16 @@ public static com.google.cloud.automl.v1beta1.TablesAnnotation getDefaultInstanc 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); - } - }; + 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; @@ -1798,6 +2033,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TablesAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java similarity index 87% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java index e59c4ae84..674df0db9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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.
@@ -17,11 +35,14 @@ public interface TablesAnnotationOrBuilder extends
    * 
* * float score = 1; + * * @return The score. */ float getScore(); /** + * + * *
    * Output only. Only populated when
    * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -30,10 +51,13 @@ public interface TablesAnnotationOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + * * @return Whether the predictionInterval field is set. */ boolean hasPredictionInterval(); /** + * + * *
    * Output only. Only populated when
    * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -42,10 +66,13 @@ public interface TablesAnnotationOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + * * @return The predictionInterval. */ com.google.cloud.automl.v1beta1.DoubleRange getPredictionInterval(); /** + * + * *
    * Output only. Only populated when
    * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
@@ -58,6 +85,8 @@ public interface TablesAnnotationOrBuilder extends
   com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionIntervalOrBuilder();
 
   /**
+   *
+   *
    * 
    * The predicted value of the row's
    * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -68,10 +97,13 @@ public interface TablesAnnotationOrBuilder extends
    * 
* * .google.protobuf.Value value = 2; + * * @return Whether the value field is set. */ boolean hasValue(); /** + * + * *
    * The predicted value of the row's
    * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -82,10 +114,13 @@ public interface TablesAnnotationOrBuilder extends
    * 
* * .google.protobuf.Value value = 2; + * * @return The value. */ com.google.protobuf.Value getValue(); /** + * + * *
    * The predicted value of the row's
    * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
@@ -100,6 +135,8 @@ public interface TablesAnnotationOrBuilder extends
   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]
@@ -111,11 +148,14 @@ public interface TablesAnnotationOrBuilder extends
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ - java.util.List + 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]
@@ -127,10 +167,13 @@ public interface TablesAnnotationOrBuilder extends
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * 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]
@@ -142,10 +185,13 @@ public interface TablesAnnotationOrBuilder extends
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * 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]
@@ -157,11 +203,14 @@ public interface TablesAnnotationOrBuilder extends
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ - java.util.List + 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]
@@ -173,12 +222,15 @@ public interface TablesAnnotationOrBuilder extends
    * would be populated, then this whole field is not.
    * 
* - * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * */ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( int index); /** + * + * *
    * Output only. Stores the prediction score for the baseline example, which
    * is defined as the example with all values set to their baseline values.
@@ -190,6 +242,7 @@ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelCol
    * 
* * float baseline_score = 5; + * * @return The baselineScore. */ float getBaselineScore(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java index 671d0c9c7..0747fe2d2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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_ = ""; @@ -28,16 +46,15 @@ private TablesDatasetMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TablesDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TablesDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,108 +74,125 @@ private TablesDatasetMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - primaryTableSpecId_ = s; - break; - } - case 18: { - 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(); + targetColumnSpecId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - weightColumnSpecId_ = s; - break; - } - case 34: { - 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_ & 0x00000001) != 0)) { - targetColumnCorrelations_ = com.google.protobuf.MapField.newMapField( - TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + mlUseColumnSpecId_ = s; + break; } - com.google.protobuf.MapEntry - 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(); + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targetColumnCorrelations_ = + com.google.protobuf.MapField.newMapField( + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + 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; } - statsUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(statsUpdateTime_); - statsUpdateTime_ = subBuilder.buildPartial(); + 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; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetTargetColumnCorrelations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder.class); } 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; + * * @return The primaryTableSpecId. */ @java.lang.Override @@ -167,29 +201,29 @@ public java.lang.String getPrimaryTableSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for primaryTableSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrimaryTableSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); primaryTableSpecId_ = b; return b; } else { @@ -200,6 +234,8 @@ public java.lang.String getPrimaryTableSpecId() { 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.
@@ -214,6 +250,7 @@ public java.lang.String getPrimaryTableSpecId() {
    * 
* * string target_column_spec_id = 2; + * * @return The targetColumnSpecId. */ @java.lang.Override @@ -222,14 +259,15 @@ public java.lang.String getTargetColumnSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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.
@@ -244,16 +282,15 @@ public java.lang.String getTargetColumnSpecId() {
    * 
* * string target_column_spec_id = 2; + * * @return The bytes for targetColumnSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetColumnSpecId_ = b; return b; } else { @@ -264,6 +301,8 @@ public java.lang.String getTargetColumnSpecId() { 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
@@ -277,6 +316,7 @@ public java.lang.String getTargetColumnSpecId() {
    * 
* * string weight_column_spec_id = 3; + * * @return The weightColumnSpecId. */ @java.lang.Override @@ -285,14 +325,15 @@ public java.lang.String getWeightColumnSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -306,16 +347,15 @@ public java.lang.String getWeightColumnSpecId() {
    * 
* * string weight_column_spec_id = 3; + * * @return The bytes for weightColumnSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWeightColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); weightColumnSpecId_ = b; return b; } else { @@ -326,6 +366,8 @@ public java.lang.String getWeightColumnSpecId() { 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,
@@ -343,6 +385,7 @@ public java.lang.String getWeightColumnSpecId() {
    * 
* * string ml_use_column_spec_id = 4; + * * @return The mlUseColumnSpecId. */ @java.lang.Override @@ -351,14 +394,15 @@ public java.lang.String getMlUseColumnSpecId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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,
@@ -376,16 +420,15 @@ public java.lang.String getMlUseColumnSpecId() {
    * 
* * string ml_use_column_spec_id = 4; + * * @return The bytes for mlUseColumnSpecId. */ @java.lang.Override - public com.google.protobuf.ByteString - getMlUseColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mlUseColumnSpecId_ = b; return b; } else { @@ -394,21 +437,29 @@ public java.lang.String getMlUseColumnSpecId() { } 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 = + 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()); + . + 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 - internalGetTargetColumnCorrelations() { + 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); @@ -420,6 +471,8 @@ public int getTargetColumnCorrelationsCount() { return internalGetTargetColumnCorrelations().getMap().size(); } /** + * + * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -431,24 +484,27 @@ public int getTargetColumnCorrelationsCount() {
    * for the timestamp at which these stats were last updated.
    * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * */ - @java.lang.Override - public boolean containsTargetColumnCorrelations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsTargetColumnCorrelations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetTargetColumnCorrelations().getMap().containsKey(key); } - /** - * Use {@link #getTargetColumnCorrelationsMap()} instead. - */ + /** Use {@link #getTargetColumnCorrelationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getTargetColumnCorrelations() { + public java.util.Map + getTargetColumnCorrelations() { return getTargetColumnCorrelationsMap(); } /** + * + * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -460,14 +516,18 @@ public java.util.Map
    *
-   * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6;
+   * 
+   * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6;
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getTargetColumnCorrelationsMap() {
+  public java.util.Map
+      getTargetColumnCorrelationsMap() {
     return internalGetTargetColumnCorrelations().getMap();
   }
   /**
+   *
+   *
    * 
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -479,19 +539,23 @@ public java.util.Map
    *
-   * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6;
+   * 
+   * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6;
+   * 
    */
   @java.lang.Override
-
   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.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
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -503,13 +567,16 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelati
    * for the timestamp at which these stats were last updated.
    * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetTargetColumnCorrelations().getMap(); if (!map.containsKey(key)) { @@ -521,6 +588,8 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelati public static final int STATS_UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp statsUpdateTime_; /** + * + * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
@@ -531,6 +600,7 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelati
    * 
* * .google.protobuf.Timestamp stats_update_time = 7; + * * @return Whether the statsUpdateTime field is set. */ @java.lang.Override @@ -538,6 +608,8 @@ public boolean hasStatsUpdateTime() { return statsUpdateTime_ != null; } /** + * + * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
@@ -548,13 +620,18 @@ public boolean hasStatsUpdateTime() {
    * 
* * .google.protobuf.Timestamp stats_update_time = 7; + * * @return The statsUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStatsUpdateTime() { - return statsUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : statsUpdateTime_; + return statsUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : statsUpdateTime_; } /** + * + * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
@@ -572,6 +649,7 @@ public com.google.protobuf.TimestampOrBuilder getStatsUpdateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -583,8 +661,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryTableSpecId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, primaryTableSpecId_);
     }
@@ -597,8 +674,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mlUseColumnSpecId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mlUseColumnSpecId_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
         output,
         internalGetTargetColumnCorrelations(),
         TargetColumnCorrelationsDefaultEntryHolder.defaultEntry,
@@ -627,19 +703,21 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mlUseColumnSpecId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mlUseColumnSpecId_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetTargetColumnCorrelations().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      targetColumnCorrelations__ = TargetColumnCorrelationsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(6, targetColumnCorrelations__);
+    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 += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStatsUpdateTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -649,27 +727,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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;
+    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 (!getStatsUpdateTime().equals(other.getStatsUpdateTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -704,139 +778,147 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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)
+      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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.automl.v1beta1.TablesDatasetMetadata prototype) {
+
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetTargetColumnCorrelations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableTargetColumnCorrelations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TablesDatasetMetadata.newBuilder() @@ -844,16 +926,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -876,9 +957,9 @@ public Builder clear() { } @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; + 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 @@ -897,7 +978,8 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadata build() { @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); + com.google.cloud.automl.v1beta1.TablesDatasetMetadata result = + new com.google.cloud.automl.v1beta1.TablesDatasetMetadata(this); int from_bitField0_ = bitField0_; result.primaryTableSpecId_ = primaryTableSpecId_; result.targetColumnSpecId_ = targetColumnSpecId_; @@ -918,38 +1000,39 @@ public com.google.cloud.automl.v1beta1.TablesDatasetMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TablesDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -957,7 +1040,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesDatasetMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance()) + return this; if (!other.getPrimaryTableSpecId().isEmpty()) { primaryTableSpecId_ = other.primaryTableSpecId_; onChanged(); @@ -974,8 +1058,8 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesDatasetMetadata o mlUseColumnSpecId_ = other.mlUseColumnSpecId_; onChanged(); } - internalGetMutableTargetColumnCorrelations().mergeFrom( - other.internalGetTargetColumnCorrelations()); + internalGetMutableTargetColumnCorrelations() + .mergeFrom(other.internalGetTargetColumnCorrelations()); if (other.hasStatsUpdateTime()) { mergeStatsUpdateTime(other.getStatsUpdateTime()); } @@ -998,7 +1082,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1007,22 +1092,25 @@ public Builder mergeFrom( } 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; + * * @return The primaryTableSpecId. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); primaryTableSpecId_ = s; return s; @@ -1031,20 +1119,21 @@ public java.lang.String getPrimaryTableSpecId() { } } /** + * + * *
      * Output only. The table_spec_id of the primary table of this dataset.
      * 
* * string primary_table_spec_id = 1; + * * @return The bytes for primaryTableSpecId. */ - public com.google.protobuf.ByteString - getPrimaryTableSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); primaryTableSpecId_ = b; return b; } else { @@ -1052,54 +1141,61 @@ public java.lang.String getPrimaryTableSpecId() { } } /** + * + * *
      * Output only. The table_spec_id of the primary table of this dataset.
      * 
* * string primary_table_spec_id = 1; + * * @param value The primaryTableSpecId to set. * @return This builder for chaining. */ - public Builder setPrimaryTableSpecId( - java.lang.String value) { + public Builder setPrimaryTableSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for primaryTableSpecId to set. * @return This builder for chaining. */ - public Builder setPrimaryTableSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder setPrimaryTableSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryTableSpecId_ = value; onChanged(); return this; @@ -1107,6 +1203,8 @@ public Builder setPrimaryTableSpecIdBytes( private java.lang.Object targetColumnSpecId_ = ""; /** + * + * *
      * column_spec_id of the primary table's column that should be used as the
      * training & prediction target.
@@ -1121,13 +1219,13 @@ public Builder setPrimaryTableSpecIdBytes(
      * 
* * string target_column_spec_id = 2; + * * @return The targetColumnSpecId. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetColumnSpecId_ = s; return s; @@ -1136,6 +1234,8 @@ public java.lang.String getTargetColumnSpecId() { } } /** + * + * *
      * column_spec_id of the primary table's column that should be used as the
      * training & prediction target.
@@ -1150,15 +1250,14 @@ public java.lang.String getTargetColumnSpecId() {
      * 
* * string target_column_spec_id = 2; + * * @return The bytes for targetColumnSpecId. */ - public com.google.protobuf.ByteString - getTargetColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetColumnSpecId_ = b; return b; } else { @@ -1166,6 +1265,8 @@ public java.lang.String getTargetColumnSpecId() { } } /** + * + * *
      * column_spec_id of the primary table's column that should be used as the
      * training & prediction target.
@@ -1180,20 +1281,22 @@ public java.lang.String getTargetColumnSpecId() {
      * 
* * string target_column_spec_id = 2; + * * @param value The targetColumnSpecId to set. * @return This builder for chaining. */ - public Builder setTargetColumnSpecId( - java.lang.String value) { + public Builder setTargetColumnSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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.
@@ -1208,15 +1311,18 @@ public Builder setTargetColumnSpecId(
      * 
* * string target_column_spec_id = 2; + * * @return This builder for chaining. */ 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.
@@ -1231,16 +1337,16 @@ public Builder clearTargetColumnSpecId() {
      * 
* * string target_column_spec_id = 2; + * * @param value The bytes for targetColumnSpecId to set. * @return This builder for chaining. */ - public Builder setTargetColumnSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetColumnSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetColumnSpecId_ = value; onChanged(); return this; @@ -1248,6 +1354,8 @@ public Builder setTargetColumnSpecIdBytes( 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
@@ -1261,13 +1369,13 @@ public Builder setTargetColumnSpecIdBytes(
      * 
* * string weight_column_spec_id = 3; + * * @return The weightColumnSpecId. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); weightColumnSpecId_ = s; return s; @@ -1276,6 +1384,8 @@ public 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
@@ -1289,15 +1399,14 @@ public java.lang.String getWeightColumnSpecId() {
      * 
* * string weight_column_spec_id = 3; + * * @return The bytes for weightColumnSpecId. */ - public com.google.protobuf.ByteString - getWeightColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); weightColumnSpecId_ = b; return b; } else { @@ -1305,6 +1414,8 @@ public 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
@@ -1318,20 +1429,22 @@ public java.lang.String getWeightColumnSpecId() {
      * 
* * string weight_column_spec_id = 3; + * * @param value The weightColumnSpecId to set. * @return This builder for chaining. */ - public Builder setWeightColumnSpecId( - java.lang.String value) { + public Builder setWeightColumnSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -1345,15 +1458,18 @@ public Builder setWeightColumnSpecId(
      * 
* * string weight_column_spec_id = 3; + * * @return This builder for chaining. */ 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
@@ -1367,16 +1483,16 @@ public Builder clearWeightColumnSpecId() {
      * 
* * string weight_column_spec_id = 3; + * * @param value The bytes for weightColumnSpecId to set. * @return This builder for chaining. */ - public Builder setWeightColumnSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder setWeightColumnSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + weightColumnSpecId_ = value; onChanged(); return this; @@ -1384,6 +1500,8 @@ public Builder setWeightColumnSpecIdBytes( 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,
@@ -1401,13 +1519,13 @@ public Builder setWeightColumnSpecIdBytes(
      * 
* * string ml_use_column_spec_id = 4; + * * @return The mlUseColumnSpecId. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mlUseColumnSpecId_ = s; return s; @@ -1416,6 +1534,8 @@ public 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,
@@ -1433,15 +1553,14 @@ public java.lang.String getMlUseColumnSpecId() {
      * 
* * string ml_use_column_spec_id = 4; + * * @return The bytes for mlUseColumnSpecId. */ - public com.google.protobuf.ByteString - getMlUseColumnSpecIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mlUseColumnSpecId_ = b; return b; } else { @@ -1449,6 +1568,8 @@ public 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,
@@ -1466,20 +1587,22 @@ public java.lang.String getMlUseColumnSpecId() {
      * 
* * string ml_use_column_spec_id = 4; + * * @param value The mlUseColumnSpecId to set. * @return This builder for chaining. */ - public Builder setMlUseColumnSpecId( - java.lang.String value) { + public Builder setMlUseColumnSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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,
@@ -1497,15 +1620,18 @@ public Builder setMlUseColumnSpecId(
      * 
* * string ml_use_column_spec_id = 4; + * * @return This builder for chaining. */ 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,
@@ -1523,37 +1649,44 @@ public Builder clearMlUseColumnSpecId() {
      * 
* * string ml_use_column_spec_id = 4; + * * @param value The bytes for mlUseColumnSpecId to set. * @return This builder for chaining. */ - public Builder setMlUseColumnSpecIdBytes( - com.google.protobuf.ByteString value) { + public Builder setMlUseColumnSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + 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 - internalGetTargetColumnCorrelations() { + 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 - internalGetMutableTargetColumnCorrelations() { - onChanged();; + + 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); + targetColumnCorrelations_ = + com.google.protobuf.MapField.newMapField( + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); } if (!targetColumnCorrelations_.isMutable()) { targetColumnCorrelations_ = targetColumnCorrelations_.copy(); @@ -1565,6 +1698,8 @@ public int getTargetColumnCorrelationsCount() { return internalGetTargetColumnCorrelations().getMap().size(); } /** + * + * *
      * Output only. Correlations between
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1576,24 +1711,27 @@ public int getTargetColumnCorrelationsCount() {
      * for the timestamp at which these stats were last updated.
      * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * */ - @java.lang.Override - public boolean containsTargetColumnCorrelations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsTargetColumnCorrelations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetTargetColumnCorrelations().getMap().containsKey(key); } - /** - * Use {@link #getTargetColumnCorrelationsMap()} instead. - */ + /** Use {@link #getTargetColumnCorrelationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getTargetColumnCorrelations() { + public java.util.Map + getTargetColumnCorrelations() { return getTargetColumnCorrelationsMap(); } /** + * + * *
      * Output only. Correlations between
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1605,14 +1743,18 @@ public java.util.Map
      *
-     * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6;
+     * 
+     * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6;
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getTargetColumnCorrelationsMap() {
+    public java.util.Map
+        getTargetColumnCorrelationsMap() {
       return internalGetTargetColumnCorrelations().getMap();
     }
     /**
+     *
+     *
      * 
      * Output only. Correlations between
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1624,19 +1766,23 @@ public java.util.Map
      *
-     * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6;
+     * 
+     * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6;
+     * 
      */
     @java.lang.Override
-
     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.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
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1648,13 +1794,16 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelati
      * for the timestamp at which these stats were last updated.
      * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetTargetColumnCorrelations().getMap(); if (!map.containsKey(key)) { @@ -1664,11 +1813,12 @@ public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelati } public Builder clearTargetColumnCorrelations() { - internalGetMutableTargetColumnCorrelations().getMutableMap() - .clear(); + internalGetMutableTargetColumnCorrelations().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. Correlations between
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1680,25 +1830,26 @@ public Builder clearTargetColumnCorrelations() {
      * for the timestamp at which these stats were last updated.
      * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * 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); + 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. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableTargetColumnCorrelations() { + getMutableTargetColumnCorrelations() { return internalGetMutableTargetColumnCorrelations().getMutableMap(); } /** + * + * *
      * Output only. Correlations between
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1710,18 +1861,24 @@ public Builder removeTargetColumnCorrelations(
      * for the timestamp at which these stats were last updated.
      * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * 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); + 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
      * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -1733,20 +1890,25 @@ public Builder putTargetColumnCorrelations(
      * for the timestamp at which these stats were last updated.
      * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * */ - public Builder putAllTargetColumnCorrelations( java.util.Map values) { - internalGetMutableTargetColumnCorrelations().getMutableMap() - .putAll(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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + statsUpdateTimeBuilder_; /** + * + * *
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1757,12 +1919,15 @@ public Builder putAllTargetColumnCorrelations(
      * 
* * .google.protobuf.Timestamp stats_update_time = 7; + * * @return Whether the statsUpdateTime field is set. */ public boolean hasStatsUpdateTime() { return statsUpdateTimeBuilder_ != null || statsUpdateTime_ != null; } /** + * + * *
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1773,16 +1938,21 @@ public boolean hasStatsUpdateTime() {
      * 
* * .google.protobuf.Timestamp stats_update_time = 7; + * * @return The statsUpdateTime. */ public com.google.protobuf.Timestamp getStatsUpdateTime() { if (statsUpdateTimeBuilder_ == null) { - return statsUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : statsUpdateTime_; + return statsUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : statsUpdateTime_; } else { return statsUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1808,6 +1978,8 @@ public Builder setStatsUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1819,8 +1991,7 @@ public Builder setStatsUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp stats_update_time = 7;
      */
-    public Builder setStatsUpdateTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStatsUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (statsUpdateTimeBuilder_ == null) {
         statsUpdateTime_ = builderForValue.build();
         onChanged();
@@ -1831,6 +2002,8 @@ public Builder setStatsUpdateTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1846,7 +2019,9 @@ public Builder mergeStatsUpdateTime(com.google.protobuf.Timestamp value) {
       if (statsUpdateTimeBuilder_ == null) {
         if (statsUpdateTime_ != null) {
           statsUpdateTime_ =
-            com.google.protobuf.Timestamp.newBuilder(statsUpdateTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(statsUpdateTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           statsUpdateTime_ = value;
         }
@@ -1858,6 +2033,8 @@ public Builder mergeStatsUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1881,6 +2058,8 @@ public Builder clearStatsUpdateTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1893,11 +2072,13 @@ public Builder clearStatsUpdateTime() {
      * .google.protobuf.Timestamp stats_update_time = 7;
      */
     public com.google.protobuf.Timestamp.Builder getStatsUpdateTimeBuilder() {
-      
+
       onChanged();
       return getStatsUpdateTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1913,11 +2094,14 @@ public com.google.protobuf.TimestampOrBuilder getStatsUpdateTimeOrBuilder() {
       if (statsUpdateTimeBuilder_ != null) {
         return statsUpdateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return statsUpdateTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : statsUpdateTime_;
+        return statsUpdateTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : statsUpdateTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. The most recent timestamp when target_column_correlations
      * field and all descendant ColumnSpec.data_stats and
@@ -1930,21 +2114,24 @@ public com.google.protobuf.TimestampOrBuilder getStatsUpdateTimeOrBuilder() {
      * .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> 
+            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());
+        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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1954,12 +2141,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -1968,16 +2155,16 @@ public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata getDefaultIn
     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);
-    }
-  };
+  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;
@@ -1992,6 +2179,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java
index 2882e2eac..8de254bf8 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java
@@ -1,33 +1,56 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+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; + * * @return The primaryTableSpecId. */ java.lang.String getPrimaryTableSpecId(); /** + * + * *
    * Output only. The table_spec_id of the primary table of this dataset.
    * 
* * string primary_table_spec_id = 1; + * * @return The bytes for primaryTableSpecId. */ - com.google.protobuf.ByteString - getPrimaryTableSpecIdBytes(); + com.google.protobuf.ByteString getPrimaryTableSpecIdBytes(); /** + * + * *
    * column_spec_id of the primary table's column that should be used as the
    * training & prediction target.
@@ -42,10 +65,13 @@ public interface TablesDatasetMetadataOrBuilder extends
    * 
* * string target_column_spec_id = 2; + * * @return The targetColumnSpecId. */ java.lang.String getTargetColumnSpecId(); /** + * + * *
    * column_spec_id of the primary table's column that should be used as the
    * training & prediction target.
@@ -60,12 +86,14 @@ public interface TablesDatasetMetadataOrBuilder extends
    * 
* * string target_column_spec_id = 2; + * * @return The bytes for targetColumnSpecId. */ - com.google.protobuf.ByteString - getTargetColumnSpecIdBytes(); + 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
@@ -79,10 +107,13 @@ public interface TablesDatasetMetadataOrBuilder extends
    * 
* * string weight_column_spec_id = 3; + * * @return The weightColumnSpecId. */ 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
@@ -96,12 +127,14 @@ public interface TablesDatasetMetadataOrBuilder extends
    * 
* * string weight_column_spec_id = 3; + * * @return The bytes for weightColumnSpecId. */ - com.google.protobuf.ByteString - getWeightColumnSpecIdBytes(); + 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,
@@ -119,10 +152,13 @@ public interface TablesDatasetMetadataOrBuilder extends
    * 
* * string ml_use_column_spec_id = 4; + * * @return The mlUseColumnSpecId. */ 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,
@@ -140,12 +176,14 @@ public interface TablesDatasetMetadataOrBuilder extends
    * 
* * string ml_use_column_spec_id = 4; + * * @return The bytes for mlUseColumnSpecId. */ - com.google.protobuf.ByteString - getMlUseColumnSpecIdBytes(); + com.google.protobuf.ByteString getMlUseColumnSpecIdBytes(); /** + * + * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -157,10 +195,14 @@ public interface TablesDatasetMetadataOrBuilder extends
    * for the timestamp at which these stats were last updated.
    * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * */ int getTargetColumnCorrelationsCount(); /** + * + * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -172,17 +214,18 @@ public interface TablesDatasetMetadataOrBuilder extends
    * 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. + * + * 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(); + getTargetColumnCorrelations(); /** + * + * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -194,11 +237,15 @@ boolean containsTargetColumnCorrelations(
    * for the timestamp at which these stats were last updated.
    * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * */ java.util.Map - getTargetColumnCorrelationsMap(); + getTargetColumnCorrelationsMap(); /** + * + * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -210,13 +257,15 @@ boolean containsTargetColumnCorrelations(
    * for the timestamp at which these stats were last updated.
    * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * 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); + java.lang.String key, com.google.cloud.automl.v1beta1.CorrelationStats defaultValue); /** + * + * *
    * Output only. Correlations between
    * [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
@@ -228,13 +277,16 @@ com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrDe
    * for the timestamp at which these stats were last updated.
    * 
* - * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * */ - com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrThrow( java.lang.String key); /** + * + * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
@@ -245,10 +297,13 @@ com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrTh
    * 
* * .google.protobuf.Timestamp stats_update_time = 7; + * * @return Whether the statsUpdateTime field is set. */ boolean hasStatsUpdateTime(); /** + * + * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
@@ -259,10 +314,13 @@ com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrTh
    * 
* * .google.protobuf.Timestamp stats_update_time = 7; + * * @return The statsUpdateTime. */ com.google.protobuf.Timestamp getStatsUpdateTime(); /** + * + * *
    * Output only. The most recent timestamp when target_column_correlations
    * field and all descendant ColumnSpec.data_stats and
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java
similarity index 74%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java
index 901a1aab8..52353260f 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.TablesModelColumnInfo}
  */
-public final class TablesModelColumnInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  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_ = "";
@@ -27,16 +45,15 @@ private TablesModelColumnInfo() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TablesModelColumnInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TablesModelColumnInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,64 +72,71 @@ private TablesModelColumnInfo(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            columnSpecName_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            columnDisplayName_ = s;
-            break;
-          }
-          case 29: {
+              columnSpecName_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            featureImportance_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              columnDisplayName_ = s;
+              break;
+            }
+          case 29:
+            {
+              featureImportance_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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;
+
+  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
+    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);
+            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; + * * @return The columnSpecName. */ @java.lang.Override @@ -121,30 +145,30 @@ public java.lang.String getColumnSpecName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for columnSpecName. */ @java.lang.Override - public com.google.protobuf.ByteString - getColumnSpecNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnSpecName_ = b; return b; } else { @@ -155,12 +179,15 @@ public java.lang.String getColumnSpecName() { 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; + * * @return The columnDisplayName. */ @java.lang.Override @@ -169,30 +196,30 @@ public java.lang.String getColumnDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for columnDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getColumnDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnDisplayName_ = b; return b; } else { @@ -203,6 +230,8 @@ public java.lang.String getColumnDisplayName() { public static final int FEATURE_IMPORTANCE_FIELD_NUMBER = 3; private float featureImportance_; /** + * + * *
    * Output only. When given as part of a Model (always populated):
    * Measurement of how much model predictions correctness on the TEST data
@@ -223,6 +252,7 @@ public java.lang.String getColumnDisplayName() {
    * 
* * float feature_importance = 3; + * * @return The featureImportance. */ @java.lang.Override @@ -231,6 +261,7 @@ public float getFeatureImportance() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,8 +273,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnSpecName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnSpecName_); } @@ -269,8 +299,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, columnDisplayName_); } if (featureImportance_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, featureImportance_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, featureImportance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -280,20 +309,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; + != java.lang.Float.floatToIntBits(other.getFeatureImportance())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -310,104 +337,111 @@ public int 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 = (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 { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TablesModelColumnInfo prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.
@@ -415,21 +449,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.TablesModelColumnInfo}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.TablesModelColumnInfo.class,
+              com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.automl.v1beta1.TablesModelColumnInfo.newBuilder()
@@ -437,16 +473,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -460,9 +495,9 @@ public Builder clear() {
     }
 
     @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;
+    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
@@ -481,7 +516,8 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo build() {
 
     @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);
+      com.google.cloud.automl.v1beta1.TablesModelColumnInfo result =
+          new com.google.cloud.automl.v1beta1.TablesModelColumnInfo(this);
       result.columnSpecName_ = columnSpecName_;
       result.columnDisplayName_ = columnDisplayName_;
       result.featureImportance_ = featureImportance_;
@@ -493,38 +529,39 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        return mergeFrom((com.google.cloud.automl.v1beta1.TablesModelColumnInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -532,7 +569,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelColumnInfo other) {
-      if (other == com.google.cloud.automl.v1beta1.TablesModelColumnInfo.getDefaultInstance()) return this;
+      if (other == com.google.cloud.automl.v1beta1.TablesModelColumnInfo.getDefaultInstance())
+        return this;
       if (!other.getColumnSpecName().isEmpty()) {
         columnSpecName_ = other.columnSpecName_;
         onChanged();
@@ -563,7 +601,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1beta1.TablesModelColumnInfo) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1beta1.TablesModelColumnInfo) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -575,19 +614,21 @@ public Builder mergeFrom(
 
     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; + * * @return The columnSpecName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnSpecName_ = s; return s; @@ -596,21 +637,22 @@ public 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; + * * @return The bytes for columnSpecName. */ - public com.google.protobuf.ByteString - getColumnSpecNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnSpecName_ = b; return b; } else { @@ -618,57 +660,64 @@ public 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; + * * @param value The columnSpecName to set. * @return This builder for chaining. */ - public Builder setColumnSpecName( - java.lang.String value) { + public Builder setColumnSpecName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for columnSpecName to set. * @return This builder for chaining. */ - public Builder setColumnSpecNameBytes( - com.google.protobuf.ByteString value) { + public Builder setColumnSpecNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + columnSpecName_ = value; onChanged(); return this; @@ -676,19 +725,21 @@ public Builder setColumnSpecNameBytes( 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; + * * @return The columnDisplayName. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnDisplayName_ = s; return s; @@ -697,21 +748,22 @@ public 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; + * * @return The bytes for columnDisplayName. */ - public com.google.protobuf.ByteString - getColumnDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnDisplayName_ = b; return b; } else { @@ -719,64 +771,73 @@ public 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; + * * @param value The columnDisplayName to set. * @return This builder for chaining. */ - public Builder setColumnDisplayName( - java.lang.String value) { + public Builder setColumnDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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; + * * @return This builder for chaining. */ 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; + * * @param value The bytes for columnDisplayName to set. * @return This builder for chaining. */ - public Builder setColumnDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setColumnDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + columnDisplayName_ = value; onChanged(); return this; } - private float featureImportance_ ; + private float featureImportance_; /** + * + * *
      * Output only. When given as part of a Model (always populated):
      * Measurement of how much model predictions correctness on the TEST data
@@ -797,6 +858,7 @@ public Builder setColumnDisplayNameBytes(
      * 
* * float feature_importance = 3; + * * @return The featureImportance. */ @java.lang.Override @@ -804,6 +866,8 @@ public float getFeatureImportance() { return featureImportance_; } /** + * + * *
      * Output only. When given as part of a Model (always populated):
      * Measurement of how much model predictions correctness on the TEST data
@@ -824,16 +888,19 @@ public float getFeatureImportance() {
      * 
* * float feature_importance = 3; + * * @param value The featureImportance to set. * @return This builder for chaining. */ public Builder setFeatureImportance(float value) { - + featureImportance_ = value; onChanged(); return this; } /** + * + * *
      * Output only. When given as part of a Model (always populated):
      * Measurement of how much model predictions correctness on the TEST data
@@ -854,17 +921,18 @@ public Builder setFeatureImportance(float value) {
      * 
* * float feature_importance = 3; + * * @return This builder for chaining. */ public Builder clearFeatureImportance() { - + featureImportance_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -874,12 +942,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -888,16 +956,16 @@ public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo getDefaultIn 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); - } - }; + 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; @@ -912,6 +980,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java index f2e7c117c..4b234297d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java @@ -1,57 +1,85 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return The columnSpecName. */ 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; + * * @return The bytes for columnSpecName. */ - com.google.protobuf.ByteString - getColumnSpecNameBytes(); + 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; + * * @return The columnDisplayName. */ 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; + * * @return The bytes for columnDisplayName. */ - com.google.protobuf.ByteString - getColumnDisplayNameBytes(); + com.google.protobuf.ByteString getColumnDisplayNameBytes(); /** + * + * *
    * Output only. When given as part of a Model (always populated):
    * Measurement of how much model predictions correctness on the TEST data
@@ -72,6 +100,7 @@ public interface TablesModelColumnInfoOrBuilder extends
    * 
* * float feature_importance = 3; + * * @return The featureImportance. */ float getFeatureImportance(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java index a6a8387ab..71592001a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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_ = ""; @@ -27,16 +45,15 @@ private TablesModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TablesModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TablesModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,82 +73,95 @@ private TablesModelMetadata( case 0: done = true; break; - case 18: { - com.google.cloud.automl.v1beta1.ColumnSpec.Builder subBuilder = null; - if (targetColumnSpec_ != null) { - subBuilder = targetColumnSpec_.toBuilder(); + 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; } - targetColumnSpec_ = input.readMessage(com.google.cloud.automl.v1beta1.ColumnSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetColumnSpec_); - targetColumnSpec_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + inputFeatureColumnSpecs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + inputFeatureColumnSpecs_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.ColumnSpec.parser(), extensionRegistry)); + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - inputFeatureColumnSpecs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + optimizationObjective_ = s; + break; } - 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_ & 0x00000002) != 0)) { - tablesModelColumnInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + tablesModelColumnInfo_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.TablesModelColumnInfo>(); + mutable_bitField0_ |= 0x00000002; + } + tablesModelColumnInfo_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.parser(), + extensionRegistry)); + break; } - 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; - } - case 96: { - - disableEarlyStopping_ = input.readBool(); - break; - } - case 141: { - additionalOptimizationObjectiveConfigCase_ = 17; - additionalOptimizationObjectiveConfig_ = input.readFloat(); - break; - } - case 149: { - additionalOptimizationObjectiveConfigCase_ = 18; - additionalOptimizationObjectiveConfig_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 48: + { + trainBudgetMilliNodeHours_ = input.readInt64(); + break; + } + case 56: + { + trainCostMilliNodeHours_ = input.readInt64(); + break; + } + case 96: + { + disableEarlyStopping_ = input.readBool(); + break; + } + case 141: + { + additionalOptimizationObjectiveConfigCase_ = 17; + additionalOptimizationObjectiveConfig_ = input.readFloat(); + break; + } + case 149: + { + additionalOptimizationObjectiveConfigCase_ = 18; + additionalOptimizationObjectiveConfig_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { inputFeatureColumnSpecs_ = java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_); @@ -143,28 +173,34 @@ private TablesModelMetadata( 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.TablesModelMetadata.class, + com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder.class); } private int additionalOptimizationObjectiveConfigCase_ = 0; private java.lang.Object additionalOptimizationObjectiveConfig_; + public enum AdditionalOptimizationObjectiveConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { OPTIMIZATION_OBJECTIVE_RECALL_VALUE(17), OPTIMIZATION_OBJECTIVE_PRECISION_VALUE(18), ADDITIONALOPTIMIZATIONOBJECTIVECONFIG_NOT_SET(0); private final int value; + private AdditionalOptimizationObjectiveConfigCase(int value) { this.value = value; } @@ -180,31 +216,38 @@ public static AdditionalOptimizationObjectiveConfigCase valueOf(int value) { public static AdditionalOptimizationObjectiveConfigCase forNumber(int value) { switch (value) { - case 17: return OPTIMIZATION_OBJECTIVE_RECALL_VALUE; - case 18: return OPTIMIZATION_OBJECTIVE_PRECISION_VALUE; - case 0: return ADDITIONALOPTIMIZATIONOBJECTIVECONFIG_NOT_SET; - default: return null; + case 17: + return OPTIMIZATION_OBJECTIVE_RECALL_VALUE; + case 18: + return OPTIMIZATION_OBJECTIVE_PRECISION_VALUE; + case 0: + return ADDITIONALOPTIMIZATIONOBJECTIVECONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AdditionalOptimizationObjectiveConfigCase - getAdditionalOptimizationObjectiveConfigCase() { + public AdditionalOptimizationObjectiveConfigCase getAdditionalOptimizationObjectiveConfigCase() { return AdditionalOptimizationObjectiveConfigCase.forNumber( additionalOptimizationObjectiveConfigCase_); } public static final int OPTIMIZATION_OBJECTIVE_RECALL_VALUE_FIELD_NUMBER = 17; /** + * + * *
    * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_recall_value = 17; + * * @return Whether the optimizationObjectiveRecallValue field is set. */ @java.lang.Override @@ -212,12 +255,15 @@ public boolean hasOptimizationObjectiveRecallValue() { return additionalOptimizationObjectiveConfigCase_ == 17; } /** + * + * *
    * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_recall_value = 17; + * * @return The optimizationObjectiveRecallValue. */ @java.lang.Override @@ -230,12 +276,15 @@ public float getOptimizationObjectiveRecallValue() { public static final int OPTIMIZATION_OBJECTIVE_PRECISION_VALUE_FIELD_NUMBER = 18; /** + * + * *
    * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_precision_value = 18; + * * @return Whether the optimizationObjectivePrecisionValue field is set. */ @java.lang.Override @@ -243,12 +292,15 @@ public boolean hasOptimizationObjectivePrecisionValue() { return additionalOptimizationObjectiveConfigCase_ == 18; } /** + * + * *
    * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_precision_value = 18; + * * @return The optimizationObjectivePrecisionValue. */ @java.lang.Override @@ -262,6 +314,8 @@ public float getOptimizationObjectivePrecisionValue() { 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.
@@ -275,6 +329,7 @@ public float getOptimizationObjectivePrecisionValue() {
    * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + * * @return Whether the targetColumnSpec field is set. */ @java.lang.Override @@ -282,6 +337,8 @@ 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.
@@ -295,13 +352,18 @@ public boolean hasTargetColumnSpec() {
    * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + * * @return The targetColumnSpec. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ColumnSpec getTargetColumnSpec() { - return targetColumnSpec_ == null ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() : targetColumnSpec_; + 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.
@@ -324,6 +386,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOr
   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.
@@ -345,10 +409,13 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOr
    * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
    */
   @java.lang.Override
-  public java.util.List getInputFeatureColumnSpecsList() {
+  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.
@@ -370,11 +437,13 @@ public java.util.List getInputFeatur
    * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  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.
@@ -400,6 +469,8 @@ 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.
@@ -425,6 +496,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getInputFeatureColumnSpecs(int
     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.
@@ -454,6 +527,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumn
   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
@@ -478,6 +553,7 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumn
    * 
* * string optimization_objective = 4; + * * @return The optimizationObjective. */ @java.lang.Override @@ -486,14 +562,15 @@ public java.lang.String getOptimizationObjective() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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
@@ -518,16 +595,15 @@ public java.lang.String getOptimizationObjective() {
    * 
* * string optimization_objective = 4; + * * @return The bytes for optimizationObjective. */ @java.lang.Override - public com.google.protobuf.ByteString - getOptimizationObjectiveBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); optimizationObjective_ = b; return b; } else { @@ -536,73 +612,92 @@ public java.lang.String getOptimizationObjective() { } public static final int TABLES_MODEL_COLUMN_INFO_FIELD_NUMBER = 5; - private java.util.List tablesModelColumnInfo_; + 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; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ @java.lang.Override - public java.util.List getTablesModelColumnInfoList() { + 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; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ @java.lang.Override - public java.util.List + 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; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ @java.lang.Override 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; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ @java.lang.Override 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; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( - int index) { + 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_; /** + * + * *
    * Required. The train budget of creating this model, expressed in milli node
    * hours i.e. 1,000 value in this field means 1 node hour.
@@ -618,6 +713,7 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesM
    * 
* * int64 train_budget_milli_node_hours = 6; + * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -628,6 +724,8 @@ public long getTrainBudgetMilliNodeHours() { 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
@@ -635,6 +733,7 @@ public long getTrainBudgetMilliNodeHours() {
    * 
* * int64 train_cost_milli_node_hours = 7; + * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -645,6 +744,8 @@ public long getTrainCostMilliNodeHours() { public static final int DISABLE_EARLY_STOPPING_FIELD_NUMBER = 12; private boolean disableEarlyStopping_; /** + * + * *
    * Use the entire training budget. This disables the early stopping feature.
    * By default, the early stopping feature is enabled, which means that AutoML
@@ -652,6 +753,7 @@ public long getTrainCostMilliNodeHours() {
    * 
* * bool disable_early_stopping = 12; + * * @return The disableEarlyStopping. */ @java.lang.Override @@ -660,6 +762,7 @@ public boolean getDisableEarlyStopping() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -671,8 +774,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (targetColumnSpec_ != null) { output.writeMessage(2, getTargetColumnSpec()); } @@ -695,12 +797,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeBool(12, disableEarlyStopping_); } if (additionalOptimizationObjectiveConfigCase_ == 17) { - output.writeFloat( - 17, (float)((java.lang.Float) additionalOptimizationObjectiveConfig_)); + output.writeFloat(17, (float) ((java.lang.Float) additionalOptimizationObjectiveConfig_)); } if (additionalOptimizationObjectiveConfigCase_ == 18) { - output.writeFloat( - 18, (float)((java.lang.Float) additionalOptimizationObjectiveConfig_)); + output.writeFloat(18, (float) ((java.lang.Float) additionalOptimizationObjectiveConfig_)); } unknownFields.writeTo(output); } @@ -712,41 +812,39 @@ public int getSerializedSize() { size = 0; if (targetColumnSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTargetColumnSpec()); + 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)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, inputFeatureColumnSpecs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(optimizationObjective_)) { 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)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, tablesModelColumnInfo_.get(i)); } if (trainBudgetMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, trainBudgetMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, trainBudgetMilliNodeHours_); } if (trainCostMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, trainCostMilliNodeHours_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, trainCostMilliNodeHours_); } if (disableEarlyStopping_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, disableEarlyStopping_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, disableEarlyStopping_); } if (additionalOptimizationObjectiveConfigCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 17, (float)((java.lang.Float) additionalOptimizationObjectiveConfig_)); + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 17, (float) ((java.lang.Float) additionalOptimizationObjectiveConfig_)); } if (additionalOptimizationObjectiveConfigCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 18, (float)((java.lang.Float) additionalOptimizationObjectiveConfig_)); + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 18, (float) ((java.lang.Float) additionalOptimizationObjectiveConfig_)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -756,41 +854,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (getDisableEarlyStopping() - != other.getDisableEarlyStopping()) return false; - if (!getAdditionalOptimizationObjectiveConfigCase().equals(other.getAdditionalOptimizationObjectiveConfigCase())) return false; + 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 (getDisableEarlyStopping() != other.getDisableEarlyStopping()) return false; + if (!getAdditionalOptimizationObjectiveConfigCase() + .equals(other.getAdditionalOptimizationObjectiveConfigCase())) return false; switch (additionalOptimizationObjectiveConfigCase_) { case 17: if (java.lang.Float.floatToIntBits(getOptimizationObjectiveRecallValue()) - != java.lang.Float.floatToIntBits( - other.getOptimizationObjectiveRecallValue())) return false; + != java.lang.Float.floatToIntBits(other.getOptimizationObjectiveRecallValue())) + return false; break; case 18: if (java.lang.Float.floatToIntBits(getOptimizationObjectivePrecisionValue()) - != java.lang.Float.floatToIntBits( - other.getOptimizationObjectivePrecisionValue())) return false; + != java.lang.Float.floatToIntBits(other.getOptimizationObjectivePrecisionValue())) + return false; break; case 0: default: @@ -821,24 +915,20 @@ public int hashCode() { 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 = (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 = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainCostMilliNodeHours()); hash = (37 * hash) + DISABLE_EARLY_STOPPING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableEarlyStopping()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableEarlyStopping()); switch (additionalOptimizationObjectiveConfigCase_) { case 17: hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_RECALL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getOptimizationObjectiveRecallValue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getOptimizationObjectiveRecallValue()); break; case 18: hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_PRECISION_VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getOptimizationObjectivePrecisionValue()); + hash = + (53 * hash) + java.lang.Float.floatToIntBits(getOptimizationObjectivePrecisionValue()); break; case 0: default: @@ -849,117 +939,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TablesModelMetadata.class, + com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TablesModelMetadata.newBuilder() @@ -967,18 +1066,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInputFeatureColumnSpecsFieldBuilder(); getTablesModelColumnInfoFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1014,9 +1113,9 @@ public Builder clear() { } @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; + 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 @@ -1035,7 +1134,8 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata build() { @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); + com.google.cloud.automl.v1beta1.TablesModelMetadata result = + new com.google.cloud.automl.v1beta1.TablesModelMetadata(this); int from_bitField0_ = bitField0_; if (additionalOptimizationObjectiveConfigCase_ == 17) { result.additionalOptimizationObjectiveConfig_ = additionalOptimizationObjectiveConfig_; @@ -1050,7 +1150,8 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata buildPartial() { } if (inputFeatureColumnSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - inputFeatureColumnSpecs_ = java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_); + inputFeatureColumnSpecs_ = + java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_); bitField0_ = (bitField0_ & ~0x00000001); } result.inputFeatureColumnSpecs_ = inputFeatureColumnSpecs_; @@ -1070,7 +1171,8 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata buildPartial() { result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; result.disableEarlyStopping_ = disableEarlyStopping_; - result.additionalOptimizationObjectiveConfigCase_ = additionalOptimizationObjectiveConfigCase_; + result.additionalOptimizationObjectiveConfigCase_ = + additionalOptimizationObjectiveConfigCase_; onBuilt(); return result; } @@ -1079,38 +1181,39 @@ public com.google.cloud.automl.v1beta1.TablesModelMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TablesModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -1118,7 +1221,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance()) + return this; if (other.hasTargetColumnSpec()) { mergeTargetColumnSpec(other.getTargetColumnSpec()); } @@ -1140,9 +1244,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelMetadata oth inputFeatureColumnSpecsBuilder_ = null; inputFeatureColumnSpecs_ = other.inputFeatureColumnSpecs_; bitField0_ = (bitField0_ & ~0x00000001); - inputFeatureColumnSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputFeatureColumnSpecsFieldBuilder() : null; + inputFeatureColumnSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputFeatureColumnSpecsFieldBuilder() + : null; } else { inputFeatureColumnSpecsBuilder_.addAllMessages(other.inputFeatureColumnSpecs_); } @@ -1170,9 +1275,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelMetadata oth tablesModelColumnInfoBuilder_ = null; tablesModelColumnInfo_ = other.tablesModelColumnInfo_; bitField0_ = (bitField0_ & ~0x00000002); - tablesModelColumnInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTablesModelColumnInfoFieldBuilder() : null; + tablesModelColumnInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTablesModelColumnInfoFieldBuilder() + : null; } else { tablesModelColumnInfoBuilder_.addAllMessages(other.tablesModelColumnInfo_); } @@ -1188,17 +1294,20 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelMetadata oth setDisableEarlyStopping(other.getDisableEarlyStopping()); } switch (other.getAdditionalOptimizationObjectiveConfigCase()) { - case OPTIMIZATION_OBJECTIVE_RECALL_VALUE: { - setOptimizationObjectiveRecallValue(other.getOptimizationObjectiveRecallValue()); - break; - } - case OPTIMIZATION_OBJECTIVE_PRECISION_VALUE: { - setOptimizationObjectivePrecisionValue(other.getOptimizationObjectivePrecisionValue()); - break; - } - case ADDITIONALOPTIMIZATIONOBJECTIVECONFIG_NOT_SET: { - break; - } + case OPTIMIZATION_OBJECTIVE_RECALL_VALUE: + { + setOptimizationObjectiveRecallValue(other.getOptimizationObjectiveRecallValue()); + break; + } + case OPTIMIZATION_OBJECTIVE_PRECISION_VALUE: + { + setOptimizationObjectivePrecisionValue(other.getOptimizationObjectivePrecisionValue()); + break; + } + case ADDITIONALOPTIMIZATIONOBJECTIVECONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1219,7 +1328,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TablesModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TablesModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1228,8 +1338,10 @@ public Builder mergeFrom( } return this; } + private int additionalOptimizationObjectiveConfigCase_ = 0; private java.lang.Object additionalOptimizationObjectiveConfig_; + public AdditionalOptimizationObjectiveConfigCase getAdditionalOptimizationObjectiveConfigCase() { return AdditionalOptimizationObjectiveConfigCase.forNumber( @@ -1246,24 +1358,30 @@ public Builder clearAdditionalOptimizationObjectiveConfig() { private int bitField0_; /** + * + * *
      * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_recall_value = 17; + * * @return Whether the optimizationObjectiveRecallValue field is set. */ public boolean hasOptimizationObjectiveRecallValue() { return additionalOptimizationObjectiveConfigCase_ == 17; } /** + * + * *
      * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_recall_value = 17; + * * @return The optimizationObjectiveRecallValue. */ public float getOptimizationObjectiveRecallValue() { @@ -1273,12 +1391,15 @@ public float getOptimizationObjectiveRecallValue() { return 0F; } /** + * + * *
      * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_recall_value = 17; + * * @param value The optimizationObjectiveRecallValue to set. * @return This builder for chaining. */ @@ -1289,12 +1410,15 @@ public Builder setOptimizationObjectiveRecallValue(float value) { return this; } /** + * + * *
      * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_recall_value = 17; + * * @return This builder for chaining. */ public Builder clearOptimizationObjectiveRecallValue() { @@ -1307,24 +1431,30 @@ public Builder clearOptimizationObjectiveRecallValue() { } /** + * + * *
      * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_precision_value = 18; + * * @return Whether the optimizationObjectivePrecisionValue field is set. */ public boolean hasOptimizationObjectivePrecisionValue() { return additionalOptimizationObjectiveConfigCase_ == 18; } /** + * + * *
      * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_precision_value = 18; + * * @return The optimizationObjectivePrecisionValue. */ public float getOptimizationObjectivePrecisionValue() { @@ -1334,12 +1464,15 @@ public float getOptimizationObjectivePrecisionValue() { return 0F; } /** + * + * *
      * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_precision_value = 18; + * * @param value The optimizationObjectivePrecisionValue to set. * @return This builder for chaining. */ @@ -1350,12 +1483,15 @@ public Builder setOptimizationObjectivePrecisionValue(float value) { return this; } /** + * + * *
      * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
      * Must be between 0 and 1, inclusive.
      * 
* * float optimization_objective_precision_value = 18; + * * @return This builder for chaining. */ public Builder clearOptimizationObjectivePrecisionValue() { @@ -1369,8 +1505,13 @@ public Builder clearOptimizationObjectivePrecisionValue() { 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_; + 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.
@@ -1384,12 +1525,15 @@ public Builder clearOptimizationObjectivePrecisionValue() {
      * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + * * @return Whether the targetColumnSpec field is set. */ 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.
@@ -1403,16 +1547,21 @@ public boolean hasTargetColumnSpec() {
      * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + * * @return The targetColumnSpec. */ public com.google.cloud.automl.v1beta1.ColumnSpec getTargetColumnSpec() { if (targetColumnSpecBuilder_ == null) { - return targetColumnSpec_ == null ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() : targetColumnSpec_; + 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.
@@ -1441,6 +1590,8 @@ public Builder setTargetColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec va
       return this;
     }
     /**
+     *
+     *
      * 
      * Column spec of the dataset's primary table's column the model is
      * predicting. Snapshotted when model creation started.
@@ -1467,6 +1618,8 @@ public Builder setTargetColumnSpec(
       return this;
     }
     /**
+     *
+     *
      * 
      * Column spec of the dataset's primary table's column the model is
      * predicting. Snapshotted when model creation started.
@@ -1485,7 +1638,9 @@ public Builder mergeTargetColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec
       if (targetColumnSpecBuilder_ == null) {
         if (targetColumnSpec_ != null) {
           targetColumnSpec_ =
-            com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder(targetColumnSpec_).mergeFrom(value).buildPartial();
+              com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder(targetColumnSpec_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           targetColumnSpec_ = value;
         }
@@ -1497,6 +1652,8 @@ public Builder mergeTargetColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec
       return this;
     }
     /**
+     *
+     *
      * 
      * Column spec of the dataset's primary table's column the model is
      * predicting. Snapshotted when model creation started.
@@ -1523,6 +1680,8 @@ public Builder clearTargetColumnSpec() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Column spec of the dataset's primary table's column the model is
      * predicting. Snapshotted when model creation started.
@@ -1538,11 +1697,13 @@ public Builder clearTargetColumnSpec() {
      * .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.
@@ -1561,11 +1722,14 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOr
       if (targetColumnSpecBuilder_ != null) {
         return targetColumnSpecBuilder_.getMessageOrBuilder();
       } else {
-        return targetColumnSpec_ == null ?
-            com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() : targetColumnSpec_;
+        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.
@@ -1581,32 +1745,43 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOr
      * .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> 
+            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());
+        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();
+        java.util.Collections.emptyList();
+
     private void ensureInputFeatureColumnSpecsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        inputFeatureColumnSpecs_ = new java.util.ArrayList(inputFeatureColumnSpecs_);
+        inputFeatureColumnSpecs_ =
+            new java.util.ArrayList(
+                inputFeatureColumnSpecs_);
         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> inputFeatureColumnSpecsBuilder_;
+            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.
@@ -1627,7 +1802,8 @@ private void ensureInputFeatureColumnSpecsIsMutable() {
      *
      * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
      */
-    public java.util.List getInputFeatureColumnSpecsList() {
+    public java.util.List
+        getInputFeatureColumnSpecsList() {
       if (inputFeatureColumnSpecsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_);
       } else {
@@ -1635,6 +1811,8 @@ public java.util.List getInputFeatur
       }
     }
     /**
+     *
+     *
      * 
      * 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.
@@ -1663,6 +1841,8 @@ public 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.
@@ -1691,6 +1871,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getInputFeatureColumnSpecs(int
       }
     }
     /**
+     *
+     *
      * 
      * 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.
@@ -1726,6 +1908,8 @@ public Builder setInputFeatureColumnSpecs(
       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.
@@ -1758,6 +1942,8 @@ public Builder setInputFeatureColumnSpecs(
       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.
@@ -1792,6 +1978,8 @@ public Builder addInputFeatureColumnSpecs(com.google.cloud.automl.v1beta1.Column
       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.
@@ -1827,6 +2015,8 @@ public Builder addInputFeatureColumnSpecs(
       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.
@@ -1859,6 +2049,8 @@ public Builder addInputFeatureColumnSpecs(
       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.
@@ -1891,6 +2083,8 @@ public Builder addInputFeatureColumnSpecs(
       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.
@@ -1915,8 +2109,7 @@ public Builder addAllInputFeatureColumnSpecs(
         java.lang.Iterable values) {
       if (inputFeatureColumnSpecsBuilder_ == null) {
         ensureInputFeatureColumnSpecsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, inputFeatureColumnSpecs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputFeatureColumnSpecs_);
         onChanged();
       } else {
         inputFeatureColumnSpecsBuilder_.addAllMessages(values);
@@ -1924,6 +2117,8 @@ public Builder addAllInputFeatureColumnSpecs(
       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.
@@ -1955,6 +2150,8 @@ public Builder clearInputFeatureColumnSpecs() {
       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.
@@ -1986,6 +2183,8 @@ public Builder removeInputFeatureColumnSpecs(int 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.
@@ -2011,6 +2210,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder getInputFeatureColumnS
       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.
@@ -2034,11 +2235,14 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder getInputFeatureColumnS
     public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOrBuilder(
         int index) {
       if (inputFeatureColumnSpecsBuilder_ == null) {
-        return inputFeatureColumnSpecs_.get(index);  } else {
+        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.
@@ -2059,8 +2263,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumn
      *
      * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
      */
-    public java.util.List 
-         getInputFeatureColumnSpecsOrBuilderList() {
+    public java.util.List
+        getInputFeatureColumnSpecsOrBuilderList() {
       if (inputFeatureColumnSpecsBuilder_ != null) {
         return inputFeatureColumnSpecsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2068,6 +2272,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumn
       }
     }
     /**
+     *
+     *
      * 
      * 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.
@@ -2089,10 +2295,12 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumn
      * 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());
+      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.
@@ -2115,10 +2323,12 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnS
      */
     public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnSpecsBuilder(
         int index) {
-      return getInputFeatureColumnSpecsFieldBuilder().addBuilder(
-          index, com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance());
+      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.
@@ -2139,16 +2349,22 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnS
      *
      * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
      */
-    public java.util.List 
-         getInputFeatureColumnSpecsBuilderList() {
+    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> 
+            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>(
+        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_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2160,6 +2376,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnS
 
     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
@@ -2184,13 +2402,13 @@ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnS
      * 
* * string optimization_objective = 4; + * * @return The optimizationObjective. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); optimizationObjective_ = s; return s; @@ -2199,6 +2417,8 @@ public 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
@@ -2223,15 +2443,14 @@ public java.lang.String getOptimizationObjective() {
      * 
* * string optimization_objective = 4; + * * @return The bytes for optimizationObjective. */ - public com.google.protobuf.ByteString - getOptimizationObjectiveBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); optimizationObjective_ = b; return b; } else { @@ -2239,6 +2458,8 @@ public 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
@@ -2263,20 +2484,22 @@ public java.lang.String getOptimizationObjective() {
      * 
* * string optimization_objective = 4; + * * @param value The optimizationObjective to set. * @return This builder for chaining. */ - public Builder setOptimizationObjective( - java.lang.String value) { + public Builder setOptimizationObjective(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -2301,15 +2524,18 @@ public Builder setOptimizationObjective(
      * 
* * string optimization_objective = 4; + * * @return This builder for chaining. */ 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
@@ -2334,42 +2560,53 @@ public Builder clearOptimizationObjective() {
      * 
* * string optimization_objective = 4; + * * @param value The bytes for optimizationObjective to set. * @return This builder for chaining. */ - public Builder setOptimizationObjectiveBytes( - com.google.protobuf.ByteString value) { + public Builder setOptimizationObjectiveBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + optimizationObjective_ = value; onChanged(); return this; } - private java.util.List tablesModelColumnInfo_ = - java.util.Collections.emptyList(); + private java.util.List + tablesModelColumnInfo_ = java.util.Collections.emptyList(); + private void ensureTablesModelColumnInfoIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - tablesModelColumnInfo_ = new java.util.ArrayList(tablesModelColumnInfo_); + tablesModelColumnInfo_ = + new java.util.ArrayList( + tablesModelColumnInfo_); bitField0_ |= 0x00000002; - } + } } 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_; + 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ - public java.util.List getTablesModelColumnInfoList() { + public java.util.List + getTablesModelColumnInfoList() { if (tablesModelColumnInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(tablesModelColumnInfo_); } else { @@ -2377,12 +2614,16 @@ public java.util.List get } } /** + * + * *
      * 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ public int getTablesModelColumnInfoCount() { if (tablesModelColumnInfoBuilder_ == null) { @@ -2392,14 +2633,19 @@ public 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo(int index) { + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo( + int index) { if (tablesModelColumnInfoBuilder_ == null) { return tablesModelColumnInfo_.get(index); } else { @@ -2407,12 +2653,16 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColum } } /** + * + * *
      * 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ public Builder setTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { @@ -2429,12 +2679,16 @@ public Builder setTablesModelColumnInfo( 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ public Builder setTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -2448,14 +2702,19 @@ public Builder setTablesModelColumnInfo( 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ - public Builder addTablesModelColumnInfo(com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { + public Builder addTablesModelColumnInfo( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { if (tablesModelColumnInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2469,12 +2728,16 @@ public Builder addTablesModelColumnInfo(com.google.cloud.automl.v1beta1.TablesMo 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ public Builder addTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { @@ -2491,12 +2754,16 @@ public Builder addTablesModelColumnInfo( 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ public Builder addTablesModelColumnInfo( com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -2510,12 +2777,16 @@ public Builder addTablesModelColumnInfo( 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ public Builder addTablesModelColumnInfo( int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { @@ -2529,19 +2800,23 @@ public Builder addTablesModelColumnInfo( 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ public Builder addAllTablesModelColumnInfo( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (tablesModelColumnInfoBuilder_ == null) { ensureTablesModelColumnInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tablesModelColumnInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tablesModelColumnInfo_); onChanged(); } else { tablesModelColumnInfoBuilder_.addAllMessages(values); @@ -2549,12 +2824,16 @@ public Builder addAllTablesModelColumnInfo( 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ public Builder clearTablesModelColumnInfo() { if (tablesModelColumnInfoBuilder_ == null) { @@ -2567,12 +2846,16 @@ public Builder clearTablesModelColumnInfo() { 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ public Builder removeTablesModelColumnInfo(int index) { if (tablesModelColumnInfoBuilder_ == null) { @@ -2585,42 +2868,55 @@ public Builder removeTablesModelColumnInfo(int 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder getTablesModelColumnInfoBuilder( - int index) { + 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ - public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder + getTablesModelColumnInfoOrBuilder(int index) { if (tablesModelColumnInfoBuilder_ == null) { - return tablesModelColumnInfo_.get(index); } else { + 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ - public java.util.List - getTablesModelColumnInfoOrBuilderList() { + public java.util.List + getTablesModelColumnInfoOrBuilderList() { if (tablesModelColumnInfoBuilder_ != null) { return tablesModelColumnInfoBuilder_.getMessageOrBuilderList(); } else { @@ -2628,48 +2924,68 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesM } } /** + * + * *
      * 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; + * + * 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()); + 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; + * + * 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()); + 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; + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ - public java.util.List - getTablesModelColumnInfoBuilderList() { + 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> + 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>( + 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_ & 0x00000002) != 0), getParentForChildren(), @@ -2679,8 +2995,10 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder addTablesMo return tablesModelColumnInfoBuilder_; } - private long trainBudgetMilliNodeHours_ ; + private long trainBudgetMilliNodeHours_; /** + * + * *
      * Required. The train budget of creating this model, expressed in milli node
      * hours i.e. 1,000 value in this field means 1 node hour.
@@ -2696,6 +3014,7 @@ public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder addTablesMo
      * 
* * int64 train_budget_milli_node_hours = 6; + * * @return The trainBudgetMilliNodeHours. */ @java.lang.Override @@ -2703,6 +3022,8 @@ public long getTrainBudgetMilliNodeHours() { return trainBudgetMilliNodeHours_; } /** + * + * *
      * Required. The train budget of creating this model, expressed in milli node
      * hours i.e. 1,000 value in this field means 1 node hour.
@@ -2718,16 +3039,19 @@ public long getTrainBudgetMilliNodeHours() {
      * 
* * int64 train_budget_milli_node_hours = 6; + * * @param value The trainBudgetMilliNodeHours to set. * @return This builder for chaining. */ public Builder setTrainBudgetMilliNodeHours(long value) { - + trainBudgetMilliNodeHours_ = value; onChanged(); return this; } /** + * + * *
      * Required. The train budget of creating this model, expressed in milli node
      * hours i.e. 1,000 value in this field means 1 node hour.
@@ -2743,17 +3067,20 @@ public Builder setTrainBudgetMilliNodeHours(long value) {
      * 
* * int64 train_budget_milli_node_hours = 6; + * * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; } - private long trainCostMilliNodeHours_ ; + 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
@@ -2761,6 +3088,7 @@ public Builder clearTrainBudgetMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; + * * @return The trainCostMilliNodeHours. */ @java.lang.Override @@ -2768,6 +3096,8 @@ 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
@@ -2775,16 +3105,19 @@ public long getTrainCostMilliNodeHours() {
      * 
* * int64 train_cost_milli_node_hours = 7; + * * @param value The trainCostMilliNodeHours to set. * @return This builder for chaining. */ 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
@@ -2792,17 +3125,20 @@ public Builder setTrainCostMilliNodeHours(long value) {
      * 
* * int64 train_cost_milli_node_hours = 7; + * * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + trainCostMilliNodeHours_ = 0L; onChanged(); return this; } - private boolean disableEarlyStopping_ ; + private boolean disableEarlyStopping_; /** + * + * *
      * Use the entire training budget. This disables the early stopping feature.
      * By default, the early stopping feature is enabled, which means that AutoML
@@ -2810,6 +3146,7 @@ public Builder clearTrainCostMilliNodeHours() {
      * 
* * bool disable_early_stopping = 12; + * * @return The disableEarlyStopping. */ @java.lang.Override @@ -2817,6 +3154,8 @@ public boolean getDisableEarlyStopping() { return disableEarlyStopping_; } /** + * + * *
      * Use the entire training budget. This disables the early stopping feature.
      * By default, the early stopping feature is enabled, which means that AutoML
@@ -2824,16 +3163,19 @@ public boolean getDisableEarlyStopping() {
      * 
* * bool disable_early_stopping = 12; + * * @param value The disableEarlyStopping to set. * @return This builder for chaining. */ public Builder setDisableEarlyStopping(boolean value) { - + disableEarlyStopping_ = value; onChanged(); return this; } /** + * + * *
      * Use the entire training budget. This disables the early stopping feature.
      * By default, the early stopping feature is enabled, which means that AutoML
@@ -2841,17 +3183,18 @@ public Builder setDisableEarlyStopping(boolean value) {
      * 
* * bool disable_early_stopping = 12; + * * @return This builder for chaining. */ public Builder clearDisableEarlyStopping() { - + disableEarlyStopping_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2861,12 +3204,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -2875,16 +3218,16 @@ public static com.google.cloud.automl.v1beta1.TablesModelMetadata getDefaultInst 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); - } - }; + 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; @@ -2899,6 +3242,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TablesModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java similarity index 90% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java index 333f420fa..a9e1098cd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java @@ -1,55 +1,85 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +public interface TablesModelMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TablesModelMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_recall_value = 17; + * * @return Whether the optimizationObjectiveRecallValue field is set. */ boolean hasOptimizationObjectiveRecallValue(); /** + * + * *
    * Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_recall_value = 17; + * * @return The optimizationObjectiveRecallValue. */ float getOptimizationObjectiveRecallValue(); /** + * + * *
    * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_precision_value = 18; + * * @return Whether the optimizationObjectivePrecisionValue field is set. */ boolean hasOptimizationObjectivePrecisionValue(); /** + * + * *
    * Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
    * Must be between 0 and 1, inclusive.
    * 
* * float optimization_objective_precision_value = 18; + * * @return The optimizationObjectivePrecisionValue. */ float getOptimizationObjectivePrecisionValue(); /** + * + * *
    * Column spec of the dataset's primary table's column the model is
    * predicting. Snapshotted when model creation started.
@@ -63,10 +93,13 @@ public interface TablesModelMetadataOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + * * @return Whether the targetColumnSpec field is set. */ boolean hasTargetColumnSpec(); /** + * + * *
    * Column spec of the dataset's primary table's column the model is
    * predicting. Snapshotted when model creation started.
@@ -80,10 +113,13 @@ public interface TablesModelMetadataOrBuilder extends
    * 
* * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + * * @return The targetColumnSpec. */ 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.
@@ -101,6 +137,8 @@ public interface TablesModelMetadataOrBuilder extends
   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.
@@ -121,9 +159,10 @@ public interface TablesModelMetadataOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
    */
-  java.util.List 
-      getInputFeatureColumnSpecsList();
+  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.
@@ -146,6 +185,8 @@ public interface TablesModelMetadataOrBuilder extends
    */
   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.
@@ -168,6 +209,8 @@ public interface TablesModelMetadataOrBuilder extends
    */
   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.
@@ -188,9 +231,11 @@ public interface TablesModelMetadataOrBuilder extends
    *
    * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3;
    */
-  java.util.List 
+  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.
@@ -215,6 +260,8 @@ com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOr
       int index);
 
   /**
+   *
+   *
    * 
    * Objective function the model is optimizing towards. The training process
    * creates a model that maximizes/minimizes the value of the objective
@@ -239,10 +286,13 @@ com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOr
    * 
* * string optimization_objective = 4; + * * @return The optimizationObjective. */ 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
@@ -267,61 +317,78 @@ com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOr
    * 
* * string optimization_objective = 4; + * * @return The bytes for optimizationObjective. */ - com.google.protobuf.ByteString - getOptimizationObjectiveBytes(); + 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; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ - java.util.List + 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; + * 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; + * 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; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ - java.util.List + 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; + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * */ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( int index); /** + * + * *
    * Required. The train budget of creating this model, expressed in milli node
    * hours i.e. 1,000 value in this field means 1 node hour.
@@ -337,11 +404,14 @@ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelCol
    * 
* * int64 train_budget_milli_node_hours = 6; + * * @return The trainBudgetMilliNodeHours. */ 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
@@ -349,11 +419,14 @@ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelCol
    * 
* * int64 train_cost_milli_node_hours = 7; + * * @return The trainCostMilliNodeHours. */ long getTrainCostMilliNodeHours(); /** + * + * *
    * Use the entire training budget. This disables the early stopping feature.
    * By default, the early stopping feature is enabled, which means that AutoML
@@ -361,9 +434,12 @@ com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelCol
    * 
* * bool disable_early_stopping = 12; + * * @return The disableEarlyStopping. */ boolean getDisableEarlyStopping(); - public com.google.cloud.automl.v1beta1.TablesModelMetadata.AdditionalOptimizationObjectiveConfigCase getAdditionalOptimizationObjectiveConfigCase(); + public com.google.cloud.automl.v1beta1.TablesModelMetadata + .AdditionalOptimizationObjectiveConfigCase + getAdditionalOptimizationObjectiveConfigCase(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java new file mode 100644 index 000000000..d095e6df2 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java @@ -0,0 +1,75 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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\036googl" + + "e/protobuf/duration.proto\032\034google/api/an" + + "notations.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\245\001\n\037com.google.cloud.au" + + "toml.v1beta1P\001ZAgoogle.golang.org/genpro" + + "to/googleapis/cloud/automl/v1beta1;autom" + + "l\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002\036Google" + + "::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java index 22b3e922c..1a4c8f6ce 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 classification.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextClassificationDatasetMetadata} */ -public final class TextClassificationDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextClassificationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) TextClassificationDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextClassificationDatasetMetadata.newBuilder() to construct. - private TextClassificationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextClassificationDatasetMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextClassificationDatasetMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextClassificationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextClassificationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,72 +71,89 @@ private TextClassificationDatasetMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + classificationType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_TextClassificationDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.class, com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 1; private int classificationType_; /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The classificationType. */ - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { + @java.lang.Override + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); - return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( + classificationType_); + return result == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,9 +165,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (classificationType_ + != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + .CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, classificationType_); } unknownFields.writeTo(output); @@ -144,9 +181,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, classificationType_); + if (classificationType_ + != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + .CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -156,12 +195,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata other = (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) obj; + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata other = + (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -183,134 +223,145 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TextClassificationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata 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.TextClassificationDatasetMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata 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.TextClassificationDatasetMetadata + 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.TextClassificationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Dataset metadata for classification.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextClassificationDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.class, com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder.class); } - // Construct using com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,13 +371,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance(); } @@ -341,7 +393,8 @@ public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata build() @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata result = new com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata(this); + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata result = + new com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -351,46 +404,50 @@ public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TextClassificationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata)other); + return mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance()) + return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -413,7 +470,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -425,80 +484,102 @@ public Builder mergeFrom( private int classificationType_ = 0; /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The classificationType. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); - return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( + classificationType_); + return result == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @param value The classificationType to set. * @return This builder for chaining. */ - public Builder setClassificationType(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { + public Builder setClassificationType( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -508,30 +589,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) - private static final com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata(); } - public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -543,9 +626,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java index 7d81a97bf..e325c9c8d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadataOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/text.proto package com.google.cloud.automl.v1beta1; -public interface TextClassificationDatasetMetadataOrBuilder extends +public interface TextClassificationDatasetMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** + * + * *
    * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; + * * @return The classificationType. */ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java index 06f102c97..de41d144a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.TextClassificationModelMetadata} */ -public final class TextClassificationModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextClassificationModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextClassificationModelMetadata) TextClassificationModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextClassificationModelMetadata.newBuilder() to construct. - private TextClassificationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextClassificationModelMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextClassificationModelMetadata() { classificationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextClassificationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextClassificationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,72 +71,89 @@ private TextClassificationModelMetadata( case 0: done = true; break; - case 24: { - int rawValue = input.readEnum(); + case 24: + { + int rawValue = input.readEnum(); - classificationType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + classificationType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_TextClassificationModelMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.class, com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.class, + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder.class); } public static final int CLASSIFICATION_TYPE_FIELD_NUMBER = 3; private int classificationType_; /** + * + * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; + * * @return The classificationType. */ - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { + @java.lang.Override + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); - return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( + classificationType_); + return result == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,9 +165,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (classificationType_ + != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + .CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, classificationType_); } unknownFields.writeTo(output); @@ -144,9 +181,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, classificationType_); + if (classificationType_ + != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + .CLASSIFICATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, classificationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -156,12 +195,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TextClassificationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata other = (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) obj; + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata other = + (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) obj; if (classificationType_ != other.classificationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -183,117 +223,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TextClassificationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata 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.TextClassificationModelMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextClassificationModelMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.TextClassificationModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextClassificationModelMetadata) com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.class, com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.class, + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.newBuilder() @@ -301,16 +351,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,13 +369,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); } @@ -341,7 +391,8 @@ public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata buildPartial() { - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata result = new com.google.cloud.automl.v1beta1.TextClassificationModelMetadata(this); + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata result = + new com.google.cloud.automl.v1beta1.TextClassificationModelMetadata(this); result.classificationType_ = classificationType_; onBuilt(); return result; @@ -351,46 +402,50 @@ public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TextClassificationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata)other); + return mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextClassificationModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance()) + return this; if (other.classificationType_ != 0) { setClassificationTypeValue(other.getClassificationTypeValue()); } @@ -413,7 +468,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -425,80 +482,102 @@ public Builder mergeFrom( private int classificationType_ = 0; /** + * + * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; + * * @return The enum numeric value on the wire for classificationType. */ - @java.lang.Override public int getClassificationTypeValue() { + @java.lang.Override + public int getClassificationTypeValue() { return classificationType_; } /** + * + * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; + * * @param value The enum numeric value on the wire for classificationType to set. * @return This builder for chaining. */ public Builder setClassificationTypeValue(int value) { - + classificationType_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; + * * @return The classificationType. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType + getClassificationType() { @SuppressWarnings("deprecation") - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); - return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf( + classificationType_); + return result == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; + * * @param value The classificationType to set. * @return This builder for chaining. */ - public Builder setClassificationType(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { + public Builder setClassificationType( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType value) { if (value == null) { throw new NullPointerException(); } - + classificationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Classification type of the dataset used to train this model.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; + * * @return This builder for chaining. */ public Builder clearClassificationType() { - + classificationType_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -508,30 +587,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextClassificationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextClassificationModelMetadata) - private static final com.google.cloud.automl.v1beta1.TextClassificationModelMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.TextClassificationModelMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextClassificationModelMetadata(); } - public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -543,9 +624,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java index 79b956456..ff15e530c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadataOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/text.proto package com.google.cloud.automl.v1beta1; -public interface TextClassificationModelMetadataOrBuilder extends +public interface TextClassificationModelMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextClassificationModelMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; + * * @return The enum numeric value on the wire for classificationType. */ int getClassificationTypeValue(); /** + * + * *
    * Output only. Classification type of the dataset used to train this model.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 3; + * * @return The classificationType. */ com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java new file mode 100644 index 000000000..9cc378d9e --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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.google/cloud/automl/v1beta1/text_segme" + + "nt.proto\032\034google/api/annotations.proto\"y" + + "\n\030TextExtractionAnnotation\022@\n\014text_segme" + + "nt\030\003 \001(\0132(.google.cloud.automl.v1beta1.T" + + "extSegmentH\000\022\r\n\005score\030\001 \001(\002B\014\n\nannotatio" + + "n\"\227\002\n\037TextExtractionEvaluationMetrics\022\016\n" + + "\006au_prc\030\001 \001(\002\022w\n\032confidence_metrics_entr" + + "ies\030\002 \003(\0132S.google.cloud.automl.v1beta1." + + "TextExtractionEvaluationMetrics.Confiden" + + "ceMetricsEntry\032k\n\026ConfidenceMetricsEntry" + + "\022\034\n\024confidence_threshold\030\001 \001(\002\022\016\n\006recall" + + "\030\003 \001(\002\022\021\n\tprecision\030\004 \001(\002\022\020\n\010f1_score\030\005 " + + "\001(\002B\245\001\n\037com.google.cloud.automl.v1beta1P" + + "\001ZAgoogle.golang.org/genproto/googleapis" + + "/cloud/automl/v1beta1;automl\312\002\033Google\\Cl" + + "oud\\AutoMl\\V1beta1\352\002\036Google::Cloud::Auto" + + "ML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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[] { + "TextSegment", "Score", "Annotation", + }); + 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.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java index baee52c53..2ba72ef9d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use TextExtractionAnnotation.newBuilder() to construct. private TextExtractionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextExtractionAnnotation() { - } + + private TextExtractionAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextExtractionAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextExtractionAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,65 +68,73 @@ private TextExtractionAnnotation( case 0: done = true; break; - case 13: { - - score_ = input.readFloat(); - break; - } - case 26: { - com.google.cloud.automl.v1beta1.TextSegment.Builder subBuilder = null; - if (annotationCase_ == 3) { - subBuilder = ((com.google.cloud.automl.v1beta1.TextSegment) annotation_).toBuilder(); + case 13: + { + score_ = input.readFloat(); + break; } - annotation_ = - input.readMessage(com.google.cloud.automl.v1beta1.TextSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextSegment) annotation_); - annotation_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.automl.v1beta1.TextSegment.Builder subBuilder = null; + if (annotationCase_ == 3) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TextSegment) annotation_).toBuilder(); + } + annotation_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TextSegment) annotation_); + annotation_ = subBuilder.buildPartial(); + } + annotationCase_ = 3; + break; } - annotationCase_ = 3; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.class, + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder.class); } private int annotationCase_ = 0; private java.lang.Object annotation_; + public enum AnnotationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT_SEGMENT(3), ANNOTATION_NOT_SET(0); private final int value; + private AnnotationCase(int value) { this.value = value; } @@ -126,30 +150,35 @@ public static AnnotationCase valueOf(int value) { public static AnnotationCase forNumber(int value) { switch (value) { - case 3: return TEXT_SEGMENT; - case 0: return ANNOTATION_NOT_SET; - default: return null; + case 3: + return TEXT_SEGMENT; + case 0: + return ANNOTATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AnnotationCase - getAnnotationCase() { - return AnnotationCase.forNumber( - annotationCase_); + public AnnotationCase getAnnotationCase() { + return AnnotationCase.forNumber(annotationCase_); } public static final int TEXT_SEGMENT_FIELD_NUMBER = 3; /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -157,22 +186,27 @@ public boolean hasTextSegment() { return annotationCase_ == 3; } /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + * * @return The textSegment. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() { if (annotationCase_ == 3) { - return (com.google.cloud.automl.v1beta1.TextSegment) annotation_; + return (com.google.cloud.automl.v1beta1.TextSegment) annotation_; } return com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance(); } /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
@@ -183,7 +217,7 @@ public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() {
   @java.lang.Override
   public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuilder() {
     if (annotationCase_ == 3) {
-       return (com.google.cloud.automl.v1beta1.TextSegment) annotation_;
+      return (com.google.cloud.automl.v1beta1.TextSegment) annotation_;
     }
     return com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance();
   }
@@ -191,12 +225,15 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
   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; + * * @return The score. */ @java.lang.Override @@ -205,6 +242,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (score_ != 0F) { output.writeFloat(1, score_); } @@ -234,12 +271,12 @@ public int getSerializedSize() { size = 0; if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } if (annotationCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.automl.v1beta1.TextSegment) annotation_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.automl.v1beta1.TextSegment) annotation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -249,21 +286,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!getAnnotationCase().equals(other.getAnnotationCase())) return false; switch (annotationCase_) { case 3: - if (!getTextSegment() - .equals(other.getTextSegment())) return false; + if (!getTextSegment().equals(other.getTextSegment())) return false; break; case 0: default: @@ -280,8 +316,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); switch (annotationCase_) { case 3: hash = (37 * hash) + TEXT_SEGMENT_FIELD_NUMBER; @@ -296,117 +331,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextExtractionAnnotation prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.class, + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextExtractionAnnotation.newBuilder() @@ -414,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +479,9 @@ public Builder clear() { } @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; + 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 @@ -456,7 +500,8 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotation build() { @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); + com.google.cloud.automl.v1beta1.TextExtractionAnnotation result = + new com.google.cloud.automl.v1beta1.TextExtractionAnnotation(this); if (annotationCase_ == 3) { if (textSegmentBuilder_ == null) { result.annotation_ = annotation_; @@ -474,38 +519,39 @@ public com.google.cloud.automl.v1beta1.TextExtractionAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextExtractionAnnotation) other); } else { super.mergeFrom(other); return this; @@ -513,18 +559,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextExtractionAnnotation other) { - if (other == com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance()) + return this; if (other.getScore() != 0F) { setScore(other.getScore()); } switch (other.getAnnotationCase()) { - case TEXT_SEGMENT: { - mergeTextSegment(other.getTextSegment()); - break; - } - case ANNOTATION_NOT_SET: { - break; - } + case TEXT_SEGMENT: + { + mergeTextSegment(other.getTextSegment()); + break; + } + case ANNOTATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -545,7 +594,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,12 +604,12 @@ public Builder mergeFrom( } return this; } + private int annotationCase_ = 0; private java.lang.Object annotation_; - public AnnotationCase - getAnnotationCase() { - return AnnotationCase.forNumber( - annotationCase_); + + public AnnotationCase getAnnotationCase() { + return AnnotationCase.forNumber(annotationCase_); } public Builder clearAnnotation() { @@ -569,16 +619,21 @@ public Builder clearAnnotation() { return this; } - 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_; + com.google.cloud.automl.v1beta1.TextSegment, + com.google.cloud.automl.v1beta1.TextSegment.Builder, + com.google.cloud.automl.v1beta1.TextSegmentOrBuilder> + textSegmentBuilder_; /** + * + * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + * * @return Whether the textSegment field is set. */ @java.lang.Override @@ -586,12 +641,15 @@ public boolean hasTextSegment() { return annotationCase_ == 3; } /** + * + * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
      * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + * * @return The textSegment. */ @java.lang.Override @@ -609,6 +667,8 @@ public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() { } } /** + * + * *
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -630,6 +690,8 @@ public Builder setTextSegment(com.google.cloud.automl.v1beta1.TextSegment value)
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -649,6 +711,8 @@ public Builder setTextSegment(
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -658,10 +722,13 @@ public Builder setTextSegment(
      */
     public Builder mergeTextSegment(com.google.cloud.automl.v1beta1.TextSegment value) {
       if (textSegmentBuilder_ == null) {
-        if (annotationCase_ == 3 &&
-            annotation_ != com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance()) {
-          annotation_ = com.google.cloud.automl.v1beta1.TextSegment.newBuilder((com.google.cloud.automl.v1beta1.TextSegment) annotation_)
-              .mergeFrom(value).buildPartial();
+        if (annotationCase_ == 3
+            && annotation_ != com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance()) {
+          annotation_ =
+              com.google.cloud.automl.v1beta1.TextSegment.newBuilder(
+                      (com.google.cloud.automl.v1beta1.TextSegment) annotation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           annotation_ = value;
         }
@@ -676,6 +743,8 @@ public Builder mergeTextSegment(com.google.cloud.automl.v1beta1.TextSegment valu
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -700,6 +769,8 @@ public Builder clearTextSegment() {
       return this;
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -711,6 +782,8 @@ public com.google.cloud.automl.v1beta1.TextSegment.Builder getTextSegmentBuilder
       return getTextSegmentFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -730,6 +803,8 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
       }
     }
     /**
+     *
+     *
      * 
      * An entity annotation will set this, which is the part of the original
      * text to which the annotation pertains.
@@ -738,32 +813,41 @@ public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuil
      * .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> 
+            com.google.cloud.automl.v1beta1.TextSegment,
+            com.google.cloud.automl.v1beta1.TextSegment.Builder,
+            com.google.cloud.automl.v1beta1.TextSegmentOrBuilder>
         getTextSegmentFieldBuilder() {
       if (textSegmentBuilder_ == null) {
         if (!(annotationCase_ == 3)) {
           annotation_ = com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance();
         }
-        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>(
+        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>(
                 (com.google.cloud.automl.v1beta1.TextSegment) annotation_,
                 getParentForChildren(),
                 isClean());
         annotation_ = null;
       }
       annotationCase_ = 3;
-      onChanged();;
+      onChanged();
+      ;
       return textSegmentBuilder_;
     }
 
-    private float score_ ;
+    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; + * * @return The score. */ @java.lang.Override @@ -771,39 +855,45 @@ 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; + * * @param value The score to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -813,12 +903,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -827,16 +917,16 @@ public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation getDefaul 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); - } - }; + 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; @@ -851,6 +941,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TextExtractionAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java index 187383558..53f020bca 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +public interface TextExtractionAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextExtractionAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + * * @return Whether the textSegment field is set. */ boolean hasTextSegment(); /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
    * 
* * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + * * @return The textSegment. */ com.google.cloud.automl.v1beta1.TextSegment getTextSegment(); /** + * + * *
    * An entity annotation will set this, which is the part of the original
    * text to which the annotation pertains.
@@ -38,15 +62,19 @@ public interface TextExtractionAnnotationOrBuilder extends
   com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuilder();
 
   /**
+   *
+   *
    * 
    * 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; + * * @return The score. */ float getScore(); - public com.google.cloud.automl.v1beta1.TextExtractionAnnotation.AnnotationCase getAnnotationCase(); + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation.AnnotationCase + getAnnotationCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java index 97ed5e292..129646dc2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use TextExtractionDatasetMetadata.newBuilder() to construct. private TextExtractionDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextExtractionDatasetMetadata() { - } + + private TextExtractionDatasetMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextExtractionDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextExtractionDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private TextExtractionDatasetMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata other = + (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,13 +302,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance(); } @@ -295,7 +324,8 @@ public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata build() { @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); + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata result = + new com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata(this); onBuilt(); return result; } @@ -304,38 +334,39 @@ public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +374,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +396,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +407,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +419,13 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata(); } @@ -398,16 +434,16 @@ public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getD 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); - } - }; + 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; @@ -422,6 +458,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java new file mode 100644 index 000000000..602cb5b6a --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java index 5d0e5a8df..b34cded99 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use TextExtractionEvaluationMetrics.newBuilder() to construct. - private TextExtractionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextExtractionEvaluationMetrics( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextExtractionEvaluationMetrics() { confidenceMetricsEntries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextExtractionEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextExtractionEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,60 +72,73 @@ private TextExtractionEvaluationMetrics( case 0: done = true; break; - case 13: { - - auPrc_ = input.readFloat(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 13: + { + auPrc_ = input.readFloat(); + break; } - confidenceMetricsEntries_.add( - input.readMessage(com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry>(); + mutable_bitField0_ |= 0x00000001; + } + confidenceMetricsEntries_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.class, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder.class); } - public interface ConfidenceMetricsEntryOrBuilder extends + 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
@@ -115,71 +146,83 @@ public interface ConfidenceMetricsEntryOrBuilder extends
      * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** + * + * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 3; + * * @return The recall. */ float getRecall(); /** + * + * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 4; + * * @return The precision. */ float getPrecision(); /** + * + * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 5; + * * @return The f1Score. */ float getF1Score(); } /** + * + * *
    * Metrics for a single confidence threshold.
    * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code + * google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends - com.google.protobuf.GeneratedMessageV3 implements + 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; + private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfidenceMetricsEntry() { - } + + private ConfidenceMetricsEntry() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfidenceMetricsEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -198,61 +241,67 @@ private ConfidenceMetricsEntry( 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; + 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; } - 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); + 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; + + 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 + 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); + 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
@@ -260,6 +309,7 @@ private ConfidenceMetricsEntry(
      * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -270,11 +320,14 @@ public float getConfidenceThreshold() { public static final int RECALL_FIELD_NUMBER = 3; private float recall_; /** + * + * *
      * Output only. Recall under the given confidence threshold.
      * 
* * float recall = 3; + * * @return The recall. */ @java.lang.Override @@ -285,11 +338,14 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 4; private float precision_; /** + * + * *
      * Output only. Precision under the given confidence threshold.
      * 
* * float precision = 4; + * * @return The precision. */ @java.lang.Override @@ -300,11 +356,14 @@ public float getPrecision() { 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; + * * @return The f1Score. */ @java.lang.Override @@ -313,6 +372,7 @@ public float getF1Score() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +384,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } @@ -348,20 +407,16 @@ public int getSerializedSize() { size = 0; if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, recall_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, recall_); } if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, precision_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, precision_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, f1Score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, f1Score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -371,25 +426,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry)) { + 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; + 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; + != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits( - other.getRecall())) return false; + != java.lang.Float.floatToIntBits(other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) - != java.lang.Float.floatToIntBits( - other.getPrecision())) return false; + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits( - other.getF1Score())) return false; + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -402,104 +457,126 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidenceThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1Score()); + 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 { + 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 { + + 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 { + + 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 { + + 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 { + + 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 { + + 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) 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 + 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) 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 + 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) 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); + + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -509,44 +586,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metrics for a single confidence threshold.
      * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} + * Protobuf type {@code + * google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -562,19 +648,23 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + build() { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -582,8 +672,12 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Confidenc } @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); + 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_; @@ -596,46 +690,59 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Confidenc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -663,11 +770,15 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -677,8 +788,10 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_ ; + 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
@@ -686,6 +799,7 @@ public Builder mergeFrom(
        * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -693,6 +807,8 @@ 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
@@ -700,16 +816,19 @@ public float getConfidenceThreshold() {
        * 
* * float confidence_threshold = 1; + * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ 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
@@ -717,22 +836,26 @@ public Builder setConfidenceThreshold(float value) {
        * 
* * float confidence_threshold = 1; + * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private float recall_ ; + private float recall_; /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; + * * @return The recall. */ @java.lang.Override @@ -740,42 +863,51 @@ public float getRecall() { return recall_; } /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; + * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Recall under the given confidence threshold.
        * 
* * float recall = 3; + * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_ ; + private float precision_; /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; + * * @return The precision. */ @java.lang.Override @@ -783,42 +915,51 @@ public float getPrecision() { return precision_; } /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Precision under the given confidence threshold.
        * 
* * float precision = 4; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float f1Score_ ; + private float f1Score_; /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; + * * @return The f1Score. */ @java.lang.Override @@ -826,34 +967,41 @@ public float getF1Score() { return f1Score_; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; + * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 5; + * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -866,30 +1014,36 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry(); } - public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstance() { + 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); - } - }; + 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; @@ -901,20 +1055,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } 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; + * * @return The auPrc. */ @java.lang.Override @@ -923,71 +1080,101 @@ public float getAuPrc() { } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 2; - private java.util.List confidenceMetricsEntries_; + 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ @java.lang.Override - public java.util.List getConfidenceMetricsEntriesList() { + 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ @java.lang.Override - public java.util.List + 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ @java.lang.Override 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { + 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index) { + 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; @@ -999,8 +1186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (auPrc_ != 0F) { output.writeFloat(1, auPrc_); } @@ -1017,12 +1203,12 @@ public int getSerializedSize() { size = 0; if (auPrc_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, auPrc_); + 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 += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, confidenceMetricsEntries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1032,18 +1218,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + != java.lang.Float.floatToIntBits(other.getAuPrc())) return false; + if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1056,8 +1242,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AU_PRC_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAuPrc()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuPrc()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); @@ -1068,117 +1253,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.class, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.newBuilder() @@ -1186,17 +1381,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConfidenceMetricsEntriesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1212,13 +1407,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); } @@ -1233,12 +1429,14 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics build() { @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); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics result = + new com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics(this); int from_bitField0_ = bitField0_; result.auPrc_ = auPrc_; if (confidenceMetricsEntriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + confidenceMetricsEntries_ = + java.util.Collections.unmodifiableList(confidenceMetricsEntries_); bitField0_ = (bitField0_ & ~0x00000001); } result.confidenceMetricsEntries_ = confidenceMetricsEntries_; @@ -1253,46 +1451,50 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -1314,9 +1516,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextExtractionEvaluatio confidenceMetricsEntriesBuilder_ = null; confidenceMetricsEntries_ = other.confidenceMetricsEntries_; bitField0_ = (bitField0_ & ~0x00000001); - confidenceMetricsEntriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfidenceMetricsEntriesFieldBuilder() : null; + confidenceMetricsEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConfidenceMetricsEntriesFieldBuilder() + : null; } else { confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_); } @@ -1341,7 +1544,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1350,15 +1555,19 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private float auPrc_ ; + private float auPrc_; /** + * + * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; + * * @return The auPrc. */ @java.lang.Override @@ -1366,56 +1575,78 @@ public float getAuPrc() { return auPrc_; } /** + * + * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; + * * @param value The auPrc to set. * @return This builder for chaining. */ public Builder setAuPrc(float value) { - + auPrc_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The Area under precision recall curve metric.
      * 
* * float au_prc = 1; + * * @return This builder for chaining. */ public Builder clearAuPrc() { - + auPrc_ = 0F; onChanged(); return this; } - private java.util.List confidenceMetricsEntries_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + private void ensureConfidenceMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = new java.util.ArrayList(confidenceMetricsEntries_); + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry>(confidenceMetricsEntries_); bitField0_ |= 0x00000001; - } + } } 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_; + 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public java.util.List getConfidenceMetricsEntriesList() { + public java.util.List< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + getConfidenceMetricsEntriesList() { if (confidenceMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } else { @@ -1423,12 +1654,16 @@ public java.util.List * 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1438,14 +1673,19 @@ public 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { @@ -1453,15 +1693,21 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Confidenc } } /** + * + * *
      * 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder setConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1475,15 +1721,22 @@ public Builder setConfidenceMetricsEntries( 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; + * + * 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) { + int index, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); @@ -1494,14 +1747,20 @@ public Builder setConfidenceMetricsEntries( 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntries( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1515,15 +1774,21 @@ public Builder addConfidenceMetricsEntries(com.google.cloud.automl.v1beta1.TextE 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder addConfidenceMetricsEntries( - int index, com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value) { + int index, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1537,15 +1802,21 @@ public Builder addConfidenceMetricsEntries( 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder addConfidenceMetricsEntries( - com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); @@ -1556,15 +1827,22 @@ public Builder addConfidenceMetricsEntries( 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; + * + * 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) { + int index, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); @@ -1575,19 +1853,26 @@ public Builder addConfidenceMetricsEntries( 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder addAllConfidenceMetricsEntries( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry> + values) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, confidenceMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); onChanged(); } else { confidenceMetricsEntriesBuilder_.addAllMessages(values); @@ -1595,12 +1880,16 @@ public Builder addAllConfidenceMetricsEntries( 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1613,12 +1902,16 @@ public Builder clearConfidenceMetricsEntries() { 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { @@ -1631,42 +1924,60 @@ public Builder removeConfidenceMetricsEntries(int 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder( - int index) { + 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { if (confidenceMetricsEntriesBuilder_ == null) { - return confidenceMetricsEntries_.get(index); } else { + 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public java.util.List - getConfidenceMetricsEntriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1674,48 +1985,81 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Confidenc } } /** + * + * *
      * 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; + * + * 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()); + 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; + * + * 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()); + 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; + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * */ - public java.util.List - getConfidenceMetricsEntriesBuilderList() { + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -1724,9 +2068,9 @@ public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Confidenc } return confidenceMetricsEntriesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1736,30 +2080,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -1771,9 +2117,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000..6bba49fec --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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; + * + * @return The auPrc. + */ + 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java index fd70dc98a..904273cb9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use TextExtractionModelMetadata.newBuilder() to construct. private TextExtractionModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextExtractionModelMetadata() { modelHint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextExtractionModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextExtractionModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private TextExtractionModelMetadata( case 0: done = true; break; - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - modelHint_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + modelHint_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.class, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder.class); } public static final int MODEL_HINT_FIELD_NUMBER = 3; private volatile java.lang.Object modelHint_; /** + * + * *
    * Indicates the scope of model use case.
    * * `default`: Use to train a general text extraction model. Default value.
@@ -102,6 +124,7 @@ private TextExtractionModelMetadata(
    * 
* * string model_hint = 3; + * * @return The modelHint. */ @java.lang.Override @@ -110,14 +133,15 @@ public java.lang.String getModelHint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelHint_ = s; return s; } } /** + * + * *
    * Indicates the scope of model use case.
    * * `default`: Use to train a general text extraction model. Default value.
@@ -126,16 +150,15 @@ public java.lang.String getModelHint() {
    * 
* * string model_hint = 3; + * * @return The bytes for modelHint. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelHintBytes() { + public com.google.protobuf.ByteString getModelHintBytes() { java.lang.Object ref = modelHint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelHint_ = b; return b; } else { @@ -144,6 +167,7 @@ public java.lang.String getModelHint() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelHint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modelHint_); } @@ -180,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata other = + (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) obj; - if (!getModelHint() - .equals(other.getModelHint())) return false; + if (!getModelHint().equals(other.getModelHint())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextExtractionModelMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.class, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.newBuilder() @@ -326,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +377,9 @@ public Builder clear() { } @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; + 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 @@ -366,7 +398,8 @@ public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata build() { @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); + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata result = + new com.google.cloud.automl.v1beta1.TextExtractionModelMetadata(this); result.modelHint_ = modelHint_; onBuilt(); return result; @@ -376,38 +409,39 @@ public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -415,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextExtractionModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance()) + return this; if (!other.getModelHint().isEmpty()) { modelHint_ = other.modelHint_; onChanged(); @@ -439,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +487,8 @@ public Builder mergeFrom( private java.lang.Object modelHint_ = ""; /** + * + * *
      * Indicates the scope of model use case.
      * * `default`: Use to train a general text extraction model. Default value.
@@ -459,13 +497,13 @@ public Builder mergeFrom(
      * 
* * string model_hint = 3; + * * @return The modelHint. */ public java.lang.String getModelHint() { java.lang.Object ref = modelHint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelHint_ = s; return s; @@ -474,6 +512,8 @@ public java.lang.String getModelHint() { } } /** + * + * *
      * Indicates the scope of model use case.
      * * `default`: Use to train a general text extraction model. Default value.
@@ -482,15 +522,14 @@ public java.lang.String getModelHint() {
      * 
* * string model_hint = 3; + * * @return The bytes for modelHint. */ - public com.google.protobuf.ByteString - getModelHintBytes() { + public com.google.protobuf.ByteString getModelHintBytes() { java.lang.Object ref = modelHint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelHint_ = b; return b; } else { @@ -498,6 +537,8 @@ public java.lang.String getModelHint() { } } /** + * + * *
      * Indicates the scope of model use case.
      * * `default`: Use to train a general text extraction model. Default value.
@@ -506,20 +547,22 @@ public java.lang.String getModelHint() {
      * 
* * string model_hint = 3; + * * @param value The modelHint to set. * @return This builder for chaining. */ - public Builder setModelHint( - java.lang.String value) { + public Builder setModelHint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + modelHint_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the scope of model use case.
      * * `default`: Use to train a general text extraction model. Default value.
@@ -528,15 +571,18 @@ public Builder setModelHint(
      * 
* * string model_hint = 3; + * * @return This builder for chaining. */ public Builder clearModelHint() { - + modelHint_ = getDefaultInstance().getModelHint(); onChanged(); return this; } /** + * + * *
      * Indicates the scope of model use case.
      * * `default`: Use to train a general text extraction model. Default value.
@@ -545,23 +591,23 @@ public Builder clearModelHint() {
      * 
* * string model_hint = 3; + * * @param value The bytes for modelHint to set. * @return This builder for chaining. */ - public Builder setModelHintBytes( - com.google.protobuf.ByteString value) { + public Builder setModelHintBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelHint_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -571,12 +617,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -585,16 +631,16 @@ public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getDef 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); - } - }; + 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; @@ -609,6 +655,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java index d79f8fa1a..be64161f3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +public interface TextExtractionModelMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextExtractionModelMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Indicates the scope of model use case.
    * * `default`: Use to train a general text extraction model. Default value.
@@ -16,10 +34,13 @@ public interface TextExtractionModelMetadataOrBuilder extends
    * 
* * string model_hint = 3; + * * @return The modelHint. */ java.lang.String getModelHint(); /** + * + * *
    * Indicates the scope of model use case.
    * * `default`: Use to train a general text extraction model. Default value.
@@ -28,8 +49,8 @@ public interface TextExtractionModelMetadataOrBuilder extends
    * 
* * string model_hint = 3; + * * @return The bytes for modelHint. */ - com.google.protobuf.ByteString - getModelHintBytes(); + com.google.protobuf.ByteString getModelHintBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java new file mode 100644 index 000000000..0457c2bd3 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java @@ -0,0 +1,139 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text.proto + +package com.google.cloud.automl.v1beta1; + +public final class TextProto { + private TextProto() {} + + 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_TextClassificationDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/automl/v1beta1/text.proto" + + "\022\033google.cloud.automl.v1beta1\0320google/cl" + + "oud/automl/v1beta1/classification.proto\032" + + "\034google/api/annotations.proto\"q\n!TextCla" + + "ssificationDatasetMetadata\022L\n\023classifica" + + "tion_type\030\001 \001(\0162/.google.cloud.automl.v1" + + "beta1.ClassificationType\"o\n\037TextClassifi" + + "cationModelMetadata\022L\n\023classification_ty" + + "pe\030\003 \001(\0162/.google.cloud.automl.v1beta1.C" + + "lassificationType\"\037\n\035TextExtractionDatas" + + "etMetadata\"1\n\033TextExtractionModelMetadat" + + "a\022\022\n\nmodel_hint\030\003 \001(\t\"5\n\034TextSentimentDa" + + "tasetMetadata\022\025\n\rsentiment_max\030\001 \001(\005\"\034\n\032" + + "TextSentimentModelMetadataB\260\001\n\037com.googl" + + "e.cloud.automl.v1beta1B\tTextProtoP\001ZAgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" + + "toMl\\V1beta1\352\002\036Google::Cloud::AutoML::V1" + + "beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor, + new java.lang.String[] { + "ClassificationType", + }); + internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor, + new java.lang.String[] { + "ClassificationType", + }); + 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[] { + "ModelHint", + }); + 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.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java index f39543ce7..3fe4fdbe6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + 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 @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSegment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSegment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,62 +70,68 @@ private TextSegment( 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(); + 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; + content_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; + * * @return The content. */ @java.lang.Override @@ -117,29 +140,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -150,12 +173,15 @@ public java.lang.String getContent() { 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; + * * @return The startOffset. */ @java.lang.Override @@ -166,6 +192,8 @@ public long getStartOffset() { 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).
@@ -173,6 +201,7 @@ public long getStartOffset() {
    * 
* * int64 end_offset = 2; + * * @return The endOffset. */ @java.lang.Override @@ -181,6 +210,7 @@ public long getEndOffset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,8 +222,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startOffset_ != 0L) { output.writeInt64(1, startOffset_); } @@ -213,12 +242,10 @@ public int getSerializedSize() { size = 0; if (startOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, startOffset_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, startOffset_); } if (endOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, endOffset_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, endOffset_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); @@ -231,19 +258,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; } @@ -258,128 +283,135 @@ public int 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 = (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 = (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) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextSegment.class, + com.google.cloud.automl.v1beta1.TextSegment.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextSegment.newBuilder() @@ -387,16 +419,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +441,9 @@ public Builder clear() { } @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; + 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 @@ -431,7 +462,8 @@ public com.google.cloud.automl.v1beta1.TextSegment build() { @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); + com.google.cloud.automl.v1beta1.TextSegment result = + new com.google.cloud.automl.v1beta1.TextSegment(this); result.content_ = content_; result.startOffset_ = startOffset_; result.endOffset_ = endOffset_; @@ -443,38 +475,39 @@ public com.google.cloud.automl.v1beta1.TextSegment buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextSegment) other); } else { super.mergeFrom(other); return this; @@ -524,18 +557,20 @@ public Builder mergeFrom( private java.lang.Object content_ = ""; /** + * + * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; + * * @return The content. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -544,20 +579,21 @@ public java.lang.String getContent() { } } /** + * + * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -565,67 +601,77 @@ public java.lang.String getContent() { } } /** + * + * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { + public Builder setContent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** + * + * *
      * Output only. The content of the TextSegment.
      * 
* * string content = 3; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { + public Builder setContentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; onChanged(); return this; } - private long startOffset_ ; + 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; + * * @return The startOffset. */ @java.lang.Override @@ -633,39 +679,47 @@ 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; + * * @param value The startOffset to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearStartOffset() { - + startOffset_ = 0L; onChanged(); return this; } - private long endOffset_ ; + 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).
@@ -673,6 +727,7 @@ public Builder clearStartOffset() {
      * 
* * int64 end_offset = 2; + * * @return The endOffset. */ @java.lang.Override @@ -680,6 +735,8 @@ 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).
@@ -687,16 +744,19 @@ public long getEndOffset() {
      * 
* * int64 end_offset = 2; + * * @param value The endOffset to set. * @return This builder for chaining. */ 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).
@@ -704,17 +764,18 @@ public Builder setEndOffset(long value) {
      * 
* * int64 end_offset = 2; + * * @return This builder for chaining. */ public Builder clearEndOffset() { - + endOffset_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -724,12 +785,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -738,16 +799,16 @@ 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); - } - }; + 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; @@ -762,6 +823,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TextSegment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java index 2ad8a5110..b962b39db 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java @@ -1,44 +1,70 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * Output only. The content of the TextSegment.
    * 
* * string content = 3; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + 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; + * * @return The startOffset. */ 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).
@@ -46,6 +72,7 @@ public interface TextSegmentOrBuilder extends
    * 
* * int64 end_offset = 2; + * * @return The endOffset. */ long getEndOffset(); diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java new file mode 100644 index 000000000..8b48229f9 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java @@ -0,0 +1,72 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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\267\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\\V1beta1\352\002\036Google::Cloud::AutoML::" + + "V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java index 0ecaaeb03..798cbb294 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use TextSentimentDatasetMetadata.newBuilder() to construct. private TextSentimentDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextSentimentDatasetMetadata() { - } + + private TextSentimentDatasetMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSentimentDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSentimentDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,46 +68,50 @@ private TextSentimentDatasetMetadata( case 0: done = true; break; - case 8: { - - sentimentMax_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + sentimentMax_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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
@@ -102,6 +122,7 @@ private TextSentimentDatasetMetadata(
    * 
* * int32 sentiment_max = 1; + * * @return The sentimentMax. */ @java.lang.Override @@ -110,6 +131,7 @@ public int getSentimentMax() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +143,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sentimentMax_ != 0) { output.writeInt32(1, sentimentMax_); } @@ -136,8 +157,7 @@ public int getSerializedSize() { size = 0; if (sentimentMax_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sentimentMax_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentimentMax_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -147,15 +167,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata other = + (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) obj; - if (getSentimentMax() - != other.getSentimentMax()) return false; + if (getSentimentMax() != other.getSentimentMax()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -175,117 +195,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.newBuilder() @@ -293,16 +323,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,13 +341,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance(); } @@ -333,7 +363,8 @@ public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata build() { @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); + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata result = + new com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata(this); result.sentimentMax_ = sentimentMax_; onBuilt(); return result; @@ -343,38 +374,39 @@ public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -382,7 +414,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance()) + return this; if (other.getSentimentMax() != 0) { setSentimentMax(other.getSentimentMax()); } @@ -405,7 +439,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -415,8 +450,10 @@ public Builder mergeFrom( return this; } - private int sentimentMax_ ; + 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
@@ -427,6 +464,7 @@ public Builder mergeFrom(
      * 
* * int32 sentiment_max = 1; + * * @return The sentimentMax. */ @java.lang.Override @@ -434,6 +472,8 @@ 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
@@ -444,16 +484,19 @@ public int getSentimentMax() {
      * 
* * int32 sentiment_max = 1; + * * @param value The sentimentMax to set. * @return This builder for chaining. */ 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
@@ -464,17 +507,18 @@ public Builder setSentimentMax(int value) {
      * 
* * int32 sentiment_max = 1; + * * @return This builder for chaining. */ public Builder clearSentimentMax() { - + sentimentMax_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -484,12 +528,13 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata(); } @@ -498,16 +543,16 @@ public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getDe 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); - } - }; + 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; @@ -522,6 +567,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java index e380f89ca..e6e98f5c3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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
@@ -18,6 +36,7 @@ public interface TextSentimentDatasetMetadataOrBuilder extends
    * 
* * int32 sentiment_max = 1; + * * @return The sentimentMax. */ int getSentimentMax(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java index 3ee35150f..7898d9f11 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 sentiment.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentModelMetadata} */ -public final class TextSentimentModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +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; + private static final long serialVersionUID = 0L; // Use TextSentimentModelMetadata.newBuilder() to construct. private TextSentimentModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextSentimentModelMetadata() { - } + + private TextSentimentModelMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSentimentModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSentimentModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private TextSentimentModelMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata other = + (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +158,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextSentimentModelMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model metadata that is specific to text sentiment.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.class, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.newBuilder() @@ -257,16 +286,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +302,9 @@ public Builder clear() { } @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; + 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 @@ -295,7 +323,8 @@ public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata build() { @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); + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata result = + new com.google.cloud.automl.v1beta1.TextSentimentModelMetadata(this); onBuilt(); return result; } @@ -304,38 +333,39 @@ public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +373,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextSentimentModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +404,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +416,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -398,16 +430,16 @@ public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getDefa 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); - } - }; + 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; @@ -422,6 +454,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java new file mode 100644 index 000000000..37e17f5c2 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java index 683d6544c..668a34064 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/text_sentiment.proto @@ -5,20 +20,21 @@ 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 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 + + 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
@@ -35,41 +51,43 @@ public interface TextSentimentAnnotationOrBuilder extends
      * 
* * int32 sentiment = 1; + * * @return The sentiment. */ 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 + 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; + private static final long serialVersionUID = 0L; // Use TextSentimentAnnotation.newBuilder() to construct. private TextSentimentAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextSentimentAnnotation() { - } + + private TextSentimentAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSentimentAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSentimentAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -88,46 +106,51 @@ private TextSentimentAnnotation( case 0: done = true; break; - case 8: { - - sentiment_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + sentiment_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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
@@ -144,6 +167,7 @@ private TextSentimentAnnotation(
      * 
* * int32 sentiment = 1; + * * @return The sentiment. */ @java.lang.Override @@ -152,6 +176,7 @@ public int getSentiment() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sentiment_ != 0) { output.writeInt32(1, sentiment_); } @@ -178,8 +202,7 @@ public int getSerializedSize() { size = 0; if (sentiment_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sentiment_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentiment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -189,15 +212,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation)) { + 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; + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation other = + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) obj; - if (getSentiment() - != other.getSentiment()) return false; + if (getSentiment() != other.getSentiment()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -216,88 +240,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + + 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 { + + 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 { + + 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 { + + 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 { + + 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) 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 + 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) 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 + 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) 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); + + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -307,44 +344,50 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,19 +397,22 @@ public Builder clear() { } @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; + 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(); + 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(); + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -374,8 +420,10 @@ public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotatio } @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); + 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; @@ -385,46 +433,54 @@ public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -443,11 +499,14 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -457,8 +516,10 @@ public Builder mergeFrom( return this; } - private int sentiment_ ; + 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
@@ -475,6 +536,7 @@ public Builder mergeFrom(
        * 
* * int32 sentiment = 1; + * * @return The sentiment. */ @java.lang.Override @@ -482,6 +544,8 @@ 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
@@ -498,16 +562,19 @@ public int getSentiment() {
        * 
* * int32 sentiment = 1; + * * @param value The sentiment to set. * @return This builder for chaining. */ 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
@@ -524,14 +591,16 @@ public Builder setSentiment(int value) {
        * 
* * int32 sentiment = 1; + * * @return This builder for chaining. */ public Builder clearSentiment() { - + sentiment_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -544,30 +613,33 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation(); } - public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation getDefaultInstance() { + 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); - } - }; + 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; @@ -579,200 +651,258 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TextSentimentEvaluationMetricsOrBuilder extends + public interface TextSentimentEvaluationMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. Precision.
      * 
* * float precision = 1; + * * @return The precision. */ float getPrecision(); /** + * + * *
      * Output only. Recall.
      * 
* * float recall = 2; + * * @return The recall. */ float getRecall(); /** + * + * *
      * Output only. The harmonic mean of recall and precision.
      * 
* * float f1_score = 3; + * * @return The f1Score. */ 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; + * * @return The meanAbsoluteError. */ 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; + * * @return The meanSquaredError. */ 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; + * * @return The linearKappa. */ 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; + * * @return The quadraticKappa. */ 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return Whether the confusionMatrix field is set. */ 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return The confusionMatrix. */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix(); + 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder(); /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @return A list containing the annotationSpecId. */ - @java.lang.Deprecated java.util.List - getAnnotationSpecIdList(); + @java.lang.Deprecated + java.util.List getAnnotationSpecIdList(); /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @return The count of annotationSpecId. */ - @java.lang.Deprecated int getAnnotationSpecIdCount(); + @java.lang.Deprecated + int getAnnotationSpecIdCount(); /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ - @java.lang.Deprecated java.lang.String getAnnotationSpecId(int index); + @java.lang.Deprecated + java.lang.String getAnnotationSpecId(int index); /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index); + @java.lang.Deprecated + 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 + 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; + private static final long serialVersionUID = 0L; // Use TextSentimentEvaluationMetrics.newBuilder() to construct. - private TextSentimentEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextSentimentEvaluationMetrics( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextSentimentEvaluationMetrics() { annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSentimentEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSentimentEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -792,77 +922,84 @@ private TextSentimentEvaluationMetrics( 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(); + case 13: + { + precision_ = input.readFloat(); + break; } - confusionMatrix_ = input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confusionMatrix_); - confusionMatrix_ = subBuilder.buildPartial(); + case 21: + { + recall_ = input.readFloat(); + break; } - - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 29: + { + f1Score_ = input.readFloat(); + break; } - annotationSpecId_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + 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_ & 0x00000001) != 0)) { + annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + annotationSpecId_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); @@ -871,27 +1008,35 @@ private TextSentimentEvaluationMetrics( 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; + + 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 + 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); + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .class, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .Builder.class); } public static final int PRECISION_FIELD_NUMBER = 1; private float precision_; /** + * + * *
      * Output only. Precision.
      * 
* * float precision = 1; + * * @return The precision. */ @java.lang.Override @@ -902,11 +1047,14 @@ public float getPrecision() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** + * + * *
      * Output only. Recall.
      * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -917,11 +1065,14 @@ public float getRecall() { 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; + * * @return The f1Score. */ @java.lang.Override @@ -932,12 +1083,15 @@ public float getF1Score() { 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; + * * @return The meanAbsoluteError. */ @java.lang.Override @@ -948,12 +1102,15 @@ public float getMeanAbsoluteError() { 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; + * * @return The meanSquaredError. */ @java.lang.Override @@ -964,12 +1121,15 @@ public float getMeanSquaredError() { 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; + * * @return The linearKappa. */ @java.lang.Override @@ -980,12 +1140,15 @@ public float getLinearKappa() { 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; + * * @return The quadraticKappa. */ @java.lang.Override @@ -994,15 +1157,22 @@ public float getQuadraticKappa() { } public static final int CONFUSION_MATRIX_FIELD_NUMBER = 8; - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; + 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return Whether the confusionMatrix field is set. */ @java.lang.Override @@ -1010,89 +1180,120 @@ 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return The confusionMatrix. */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { - return confusionMatrix_ == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { + 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 .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @return A list containing the annotationSpecId. */ - @java.lang.Deprecated public com.google.protobuf.ProtocolStringList - getAnnotationSpecIdList() { + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { return annotationSpecId_; } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @return The count of annotationSpecId. */ - @java.lang.Deprecated public int getAnnotationSpecIdCount() { + @java.lang.Deprecated + public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ - @java.lang.Deprecated public java.lang.String getAnnotationSpecId(int index) { + @java.lang.Deprecated + public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** + * + * *
      * Output only. The annotation spec ids used for this evaluation.
      * Deprecated .
      * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index) { + @java.lang.Deprecated + 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; @@ -1104,8 +1305,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (precision_ != 0F) { output.writeFloat(1, precision_); } @@ -1143,36 +1343,28 @@ public int getSerializedSize() { size = 0; if (precision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, precision_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, precision_); } if (recall_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); } if (f1Score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, f1Score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, f1Score_); } if (meanAbsoluteError_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, meanAbsoluteError_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, meanAbsoluteError_); } if (meanSquaredError_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, meanSquaredError_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, meanSquaredError_); } if (linearKappa_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, linearKappa_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, linearKappa_); } if (quadraticKappa_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, quadraticKappa_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, quadraticKappa_); } if (confusionMatrix_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getConfusionMatrix()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConfusionMatrix()); } { int dataSize = 0; @@ -1190,41 +1382,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics)) { + 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; + 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; + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getRecall()) - != java.lang.Float.floatToIntBits( - other.getRecall())) return false; + != java.lang.Float.floatToIntBits(other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) - != java.lang.Float.floatToIntBits( - other.getF1Score())) return false; + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; if (java.lang.Float.floatToIntBits(getMeanAbsoluteError()) - != java.lang.Float.floatToIntBits( - other.getMeanAbsoluteError())) return false; + != java.lang.Float.floatToIntBits(other.getMeanAbsoluteError())) return false; if (java.lang.Float.floatToIntBits(getMeanSquaredError()) - != java.lang.Float.floatToIntBits( - other.getMeanSquaredError())) return false; + != java.lang.Float.floatToIntBits(other.getMeanSquaredError())) return false; if (java.lang.Float.floatToIntBits(getLinearKappa()) - != java.lang.Float.floatToIntBits( - other.getLinearKappa())) return false; + != java.lang.Float.floatToIntBits(other.getLinearKappa())) return false; if (java.lang.Float.floatToIntBits(getQuadraticKappa()) - != java.lang.Float.floatToIntBits( - other.getQuadraticKappa())) return false; + != java.lang.Float.floatToIntBits(other.getQuadraticKappa())) return false; if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; if (hasConfusionMatrix()) { - if (!getConfusionMatrix() - .equals(other.getConfusionMatrix())) return false; + if (!getConfusionMatrix().equals(other.getConfusionMatrix())) return false; } - if (!getAnnotationSpecIdList() - .equals(other.getAnnotationSpecIdList())) return false; + if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1237,26 +1423,19 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); hash = (37 * hash) + RECALL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRecall()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1Score()); + 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 = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAbsoluteError()); hash = (37 * hash) + MEAN_SQUARED_ERROR_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMeanSquaredError()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanSquaredError()); hash = (37 * hash) + LINEAR_KAPPA_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLinearKappa()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLinearKappa()); hash = (37 * hash) + QUADRATIC_KAPPA_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getQuadraticKappa()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getQuadraticKappa()); if (hasConfusionMatrix()) { hash = (37 * hash) + CONFUSION_MATRIX_FIELD_NUMBER; hash = (53 * hash) + getConfusionMatrix().hashCode(); @@ -1270,88 +1449,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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 { + + 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 { + + 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 { + + 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 { + + 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 { + + 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) 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 + 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) 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 + 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) 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); + + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1361,44 +1554,51 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() + // Construct using + // com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1428,19 +1628,23 @@ public Builder clear() { } @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; + 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(); + 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(); + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + build() { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1448,8 +1652,11 @@ public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluatio } @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); + 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_; result.precision_ = precision_; result.recall_ = recall_; @@ -1476,46 +1683,56 @@ public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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()); } @@ -1565,11 +1782,14 @@ 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; + 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(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1578,15 +1798,19 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private float precision_ ; + private float precision_; /** + * + * *
        * Output only. Precision.
        * 
* * float precision = 1; + * * @return The precision. */ @java.lang.Override @@ -1594,42 +1818,51 @@ public float getPrecision() { return precision_; } /** + * + * *
        * Output only. Precision.
        * 
* * float precision = 1; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Precision.
        * 
* * float precision = 1; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float recall_ ; + private float recall_; /** + * + * *
        * Output only. Recall.
        * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -1637,42 +1870,51 @@ public float getRecall() { return recall_; } /** + * + * *
        * Output only. Recall.
        * 
* * float recall = 2; + * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Recall.
        * 
* * float recall = 2; + * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float f1Score_ ; + private float f1Score_; /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 3; + * * @return The f1Score. */ @java.lang.Override @@ -1680,43 +1922,52 @@ public float getF1Score() { return f1Score_; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 3; + * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { - + f1Score_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The harmonic mean of recall and precision.
        * 
* * float f1_score = 3; + * * @return This builder for chaining. */ public Builder clearF1Score() { - + f1Score_ = 0F; onChanged(); return this; } - private float meanAbsoluteError_ ; + 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; + * * @return The meanAbsoluteError. */ @java.lang.Override @@ -1724,45 +1975,54 @@ 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; + * * @param value The meanAbsoluteError to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearMeanAbsoluteError() { - + meanAbsoluteError_ = 0F; onChanged(); return this; } - private float meanSquaredError_ ; + 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; + * * @return The meanSquaredError. */ @java.lang.Override @@ -1770,45 +2030,54 @@ 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; + * * @param value The meanSquaredError to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearMeanSquaredError() { - + meanSquaredError_ = 0F; onChanged(); return this; } - private float linearKappa_ ; + 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; + * * @return The linearKappa. */ @java.lang.Override @@ -1816,45 +2085,54 @@ 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; + * * @param value The linearKappa to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearLinearKappa() { - + linearKappa_ = 0F; onChanged(); return this; } - private float quadraticKappa_ ; + 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; + * * @return The quadraticKappa. */ @java.lang.Override @@ -1862,80 +2140,116 @@ 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; + * * @param value The quadraticKappa to set. * @return This builder for chaining. */ 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; + * * @return This builder for chaining. */ public Builder clearQuadraticKappa() { - + quadraticKappa_ = 0F; onChanged(); return this; } - private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix confusionMatrix_; + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return Whether the confusionMatrix field is set. */ 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + * * @return The confusionMatrix. */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix() { + 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_; + 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ - public Builder setConfusionMatrix(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix value) { + public Builder setConfusionMatrix( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + value) { if (confusionMatrixBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1949,16 +2263,22 @@ public Builder setConfusionMatrix(com.google.cloud.automl.v1beta1.Classification 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ public Builder setConfusionMatrix( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue) { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Builder + builderForValue) { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = builderForValue.build(); onChanged(); @@ -1969,19 +2289,29 @@ public Builder setConfusionMatrix( 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ - public Builder mergeConfusionMatrix(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix value) { + 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(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.newBuilder(confusionMatrix_) + .mergeFrom(value) + .buildPartial(); } else { confusionMatrix_ = value; } @@ -1993,13 +2323,17 @@ public Builder mergeConfusionMatrix(com.google.cloud.automl.v1beta1.Classificati 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ public Builder clearConfusionMatrix() { if (confusionMatrixBuilder_ == null) { @@ -2013,213 +2347,272 @@ public Builder clearConfusionMatrix() { 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder getConfusionMatrixBuilder() { - + 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; + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { + 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_; + 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; + * + * .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> + 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()); + 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 com.google.protobuf.LazyStringList annotationSpecId_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAnnotationSpecIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @return A list containing the annotationSpecId. */ - @java.lang.Deprecated public com.google.protobuf.ProtocolStringList - getAnnotationSpecIdList() { + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { return annotationSpecId_.getUnmodifiableView(); } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @return The count of annotationSpecId. */ - @java.lang.Deprecated public int getAnnotationSpecIdCount() { + @java.lang.Deprecated + public int getAnnotationSpecIdCount() { return annotationSpecId_.size(); } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @param index The index of the element to return. * @return The annotationSpecId at the given index. */ - @java.lang.Deprecated public java.lang.String getAnnotationSpecId(int index) { + @java.lang.Deprecated + public java.lang.String getAnnotationSpecId(int index) { return annotationSpecId_.get(index); } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @param index The index of the value to return. * @return The bytes of the annotationSpecId at the given index. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getAnnotationSpecIdBytes(int index) { + @java.lang.Deprecated + public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { return annotationSpecId_.getByteString(index); } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @param index The index to set the value at. * @param value The annotationSpecId to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setAnnotationSpecId( - int index, java.lang.String value) { + @java.lang.Deprecated + public Builder setAnnotationSpecId(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.set(index, value); onChanged(); return this; } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @param value The annotationSpecId to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addAnnotationSpecId( - java.lang.String value) { + @java.lang.Deprecated + public Builder addAnnotationSpecId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecIdIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); annotationSpecId_.add(value); onChanged(); return this; } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @param values The annotationSpecId to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addAllAnnotationSpecId( - java.lang.Iterable values) { + @java.lang.Deprecated + public Builder addAllAnnotationSpecId(java.lang.Iterable values) { ensureAnnotationSpecIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, annotationSpecId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); onChanged(); return this; } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearAnnotationSpecId() { + @java.lang.Deprecated + public Builder clearAnnotationSpecId() { annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** + * + * *
        * Output only. The annotation spec ids used for this evaluation.
        * Deprecated .
        * 
* * repeated string annotation_spec_id = 9 [deprecated = true]; + * * @param value The bytes of the annotationSpecId to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addAnnotationSpecIdBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { @@ -2232,30 +2625,34 @@ public final Builder mergeUnknownFields( 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; + private static final com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetrics + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics(); + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics(); } - public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics getDefaultInstance() { + 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); - } - }; + 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; @@ -2267,69 +2664,80 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics getDefaultInstanceForType() { + 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_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_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() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - 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" + - "0google/cloud/automl/v1beta1/classificat" + - "ion.proto\032\034google/api/annotations.proto\"" + - ",\n\027TextSentimentAnnotation\022\021\n\tsentiment\030" + - "\001 \001(\005\"\305\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\036\n\022annotation_spec" + - "_id\030\t \003(\tB\002\030\001B\267\001\n\037com.google.cloud.autom" + - "l.v1beta1B\022TextSentimentProtoZAgoogle.go" + - "lang.org/genproto/googleapis/cloud/autom" + - "l/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V" + - "1beta1\352\002\036Google::Cloud::AutoML::V1beta1b" + - "\006proto3" + "\n0google/cloud/automl/v1beta1/text_senti" + + "ment.proto\022\033google.cloud.automl.v1beta1\032" + + "0google/cloud/automl/v1beta1/classificat" + + "ion.proto\032\034google/api/annotations.proto\"" + + ",\n\027TextSentimentAnnotation\022\021\n\tsentiment\030" + + "\001 \001(\005\"\305\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\036\n\022annotation_spec" + + "_id\030\t \003(\tB\002\030\001B\267\001\n\037com.google.cloud.autom" + + "l.v1beta1B\022TextSentimentProtoZAgoogle.go" + + "lang.org/genproto/googleapis/cloud/autom" + + "l/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V" + + "1beta1\352\002\036Google::Cloud::AutoML::V1beta1b" + + "\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); 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", }); + 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", }); + 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.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java index ed30e457c..74f861d99 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 text snippet.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextSnippet} */ -public final class TextSnippet extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextSnippet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextSnippet) TextSnippetOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextSnippet.newBuilder() to construct. private TextSnippet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextSnippet() { content_ = ""; mimeType_ = ""; @@ -27,16 +45,15 @@ private TextSnippet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextSnippet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextSnippet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,65 +72,73 @@ private TextSnippet( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - content_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + content_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - contentUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + contentUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_TextSnippet_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextSnippet.class, com.google.cloud.automl.v1beta1.TextSnippet.Builder.class); + com.google.cloud.automl.v1beta1.TextSnippet.class, + com.google.cloud.automl.v1beta1.TextSnippet.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private volatile java.lang.Object content_; /** + * + * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -122,30 +147,30 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -156,6 +181,8 @@ public java.lang.String getContent() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -163,6 +190,7 @@ public java.lang.String getContent() {
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -171,14 +199,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -186,16 +215,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -206,11 +234,14 @@ public java.lang.String getMimeType() { public static final int CONTENT_URI_FIELD_NUMBER = 4; private volatile java.lang.Object contentUri_; /** + * + * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; + * * @return The contentUri. */ @java.lang.Override @@ -219,29 +250,29 @@ public java.lang.String getContentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentUri_ = s; return s; } } /** + * + * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; + * * @return The bytes for contentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentUriBytes() { + public com.google.protobuf.ByteString getContentUriBytes() { java.lang.Object ref = contentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentUri_ = b; return b; } else { @@ -250,6 +281,7 @@ public java.lang.String getContentUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +293,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -298,19 +329,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TextSnippet)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TextSnippet other = (com.google.cloud.automl.v1beta1.TextSnippet) obj; + com.google.cloud.automl.v1beta1.TextSnippet other = + (com.google.cloud.automl.v1beta1.TextSnippet) obj; - if (!getContent() - .equals(other.getContent())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; - if (!getContentUri() - .equals(other.getContentUri())) return false; + if (!getContent().equals(other.getContent())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getContentUri().equals(other.getContentUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,118 +362,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TextSnippet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TextSnippet 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.TextSnippet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TextSnippet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TextSnippet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TextSnippet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextSnippet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A representation of a text snippet.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TextSnippet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextSnippet) com.google.cloud.automl.v1beta1.TextSnippetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TextSnippet.class, com.google.cloud.automl.v1beta1.TextSnippet.Builder.class); + com.google.cloud.automl.v1beta1.TextSnippet.class, + com.google.cloud.automl.v1beta1.TextSnippet.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TextSnippet.newBuilder() @@ -452,16 +490,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; } @java.lang.Override @@ -496,7 +533,8 @@ public com.google.cloud.automl.v1beta1.TextSnippet build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet buildPartial() { - com.google.cloud.automl.v1beta1.TextSnippet result = new com.google.cloud.automl.v1beta1.TextSnippet(this); + com.google.cloud.automl.v1beta1.TextSnippet result = + new com.google.cloud.automl.v1beta1.TextSnippet(this); result.content_ = content_; result.mimeType_ = mimeType_; result.contentUri_ = contentUri_; @@ -508,38 +546,39 @@ public com.google.cloud.automl.v1beta1.TextSnippet buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TextSnippet) { - return mergeFrom((com.google.cloud.automl.v1beta1.TextSnippet)other); + return mergeFrom((com.google.cloud.automl.v1beta1.TextSnippet) other); } else { super.mergeFrom(other); return this; @@ -591,19 +630,21 @@ public Builder mergeFrom( private java.lang.Object content_ = ""; /** + * + * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; + * * @return The content. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -612,21 +653,22 @@ public java.lang.String getContent() { } } /** + * + * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -634,57 +676,64 @@ public java.lang.String getContent() { } } /** + * + * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { + public Builder setContent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** + * + * *
      * Required. The content of the text snippet as a string. Up to 250000
      * characters long.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { + public Builder setContentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; onChanged(); return this; @@ -692,6 +741,8 @@ public Builder setContentBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -699,13 +750,13 @@ public Builder setContentBytes(
      * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -714,6 +765,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -721,15 +774,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -737,6 +789,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -744,20 +798,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -765,15 +821,18 @@ public Builder setMimeType(
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
      * values are "text/html" and "text/plain". If left blank, the format is
@@ -781,16 +840,16 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -798,18 +857,20 @@ public Builder setMimeTypeBytes( private java.lang.Object contentUri_ = ""; /** + * + * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; + * * @return The contentUri. */ public java.lang.String getContentUri() { java.lang.Object ref = contentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentUri_ = s; return s; @@ -818,20 +879,21 @@ public java.lang.String getContentUri() { } } /** + * + * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; + * * @return The bytes for contentUri. */ - public com.google.protobuf.ByteString - getContentUriBytes() { + public com.google.protobuf.ByteString getContentUriBytes() { java.lang.Object ref = contentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentUri_ = b; return b; } else { @@ -839,61 +901,68 @@ public java.lang.String getContentUri() { } } /** + * + * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; + * * @param value The contentUri to set. * @return This builder for chaining. */ - public Builder setContentUri( - java.lang.String value) { + public Builder setContentUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; + * * @return This builder for chaining. */ public Builder clearContentUri() { - + contentUri_ = getDefaultInstance().getContentUri(); onChanged(); return this; } /** + * + * *
      * Output only. HTTP URI where you can download the content.
      * 
* * string content_uri = 4; + * * @param value The bytes for contentUri to set. * @return This builder for chaining. */ - public Builder setContentUriBytes( - com.google.protobuf.ByteString value) { + public Builder setContentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -903,12 +972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextSnippet) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextSnippet) private static final com.google.cloud.automl.v1beta1.TextSnippet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSnippet(); } @@ -917,16 +986,16 @@ public static com.google.cloud.automl.v1beta1.TextSnippet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextSnippet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextSnippet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSnippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSnippet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -941,6 +1010,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TextSnippet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java index 68bdbbaf8..8dfa8873e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 TextSnippetOrBuilder extends +public interface TextSnippetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextSnippet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * Required. The content of the text snippet as a string. Up to 250000
    * characters long.
    * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -37,10 +60,13 @@ public interface TextSnippetOrBuilder extends
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
    * values are "text/html" and "text/plain". If left blank, the format is
@@ -48,28 +74,33 @@ public interface TextSnippetOrBuilder extends
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; + * * @return The contentUri. */ java.lang.String getContentUri(); /** + * + * *
    * Output only. HTTP URI where you can download the content.
    * 
* * string content_uri = 4; + * * @return The bytes for contentUri. */ - com.google.protobuf.ByteString - getContentUriBytes(); + com.google.protobuf.ByteString getContentUriBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java index 685001d2a..bdad36880 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use TimeSegment.newBuilder() to construct. private TimeSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimeSegment() { - } + + private TimeSegment() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimeSegment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TimeSegment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,73 +68,82 @@ private TimeSegment( 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(); - } + 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; } + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; + * * @return Whether the startTimeOffset field is set. */ @java.lang.Override @@ -126,19 +151,26 @@ 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; + * * @return The startTimeOffset. */ @java.lang.Override public com.google.protobuf.Duration getStartTimeOffset() { - return startTimeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTimeOffset_; + return startTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : startTimeOffset_; } /** + * + * *
    * Start of the time segment (inclusive), represented as the duration since
    * the example start.
@@ -154,12 +186,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() {
   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; + * * @return Whether the endTimeOffset field is set. */ @java.lang.Override @@ -167,19 +202,26 @@ 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; + * * @return The endTimeOffset. */ @java.lang.Override public com.google.protobuf.Duration getEndTimeOffset() { - return endTimeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTimeOffset_; + return endTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endTimeOffset_; } /** + * + * *
    * End of the time segment (exclusive), represented as the duration since the
    * example start.
@@ -193,6 +235,7 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -204,8 +247,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (startTimeOffset_ != null) {
       output.writeMessage(1, getStartTimeOffset());
     }
@@ -222,12 +264,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (startTimeOffset_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getStartTimeOffset());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTimeOffset());
     }
     if (endTimeOffset_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getEndTimeOffset());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTimeOffset());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -237,22 +277,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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;
+    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 (!getStartTimeOffset().equals(other.getStartTimeOffset())) return false;
     }
     if (hasEndTimeOffset() != other.hasEndTimeOffset()) return false;
     if (hasEndTimeOffset()) {
-      if (!getEndTimeOffset()
-          .equals(other.getEndTimeOffset())) return false;
+      if (!getEndTimeOffset().equals(other.getEndTimeOffset())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,118 +317,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom(
-      java.nio.ByteBuffer data)
+  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)
+      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)
+      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);
+    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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.TimeSegment.class, + com.google.cloud.automl.v1beta1.TimeSegment.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TimeSegment.newBuilder() @@ -397,16 +445,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +473,9 @@ public Builder clear() { } @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; + 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 @@ -447,7 +494,8 @@ public com.google.cloud.automl.v1beta1.TimeSegment build() { @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); + com.google.cloud.automl.v1beta1.TimeSegment result = + new com.google.cloud.automl.v1beta1.TimeSegment(this); if (startTimeOffsetBuilder_ == null) { result.startTimeOffset_ = startTimeOffset_; } else { @@ -466,38 +514,39 @@ public com.google.cloud.automl.v1beta1.TimeSegment buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TimeSegment) other); } else { super.mergeFrom(other); return this; @@ -543,36 +592,49 @@ public Builder mergeFrom( 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_; + 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; + * * @return Whether the startTimeOffset field is set. */ 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; + * * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { if (startTimeOffsetBuilder_ == null) { - return startTimeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTimeOffset_; + 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.
@@ -594,6 +656,8 @@ public Builder setStartTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -601,8 +665,7 @@ public Builder setStartTimeOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time_offset = 1;
      */
-    public Builder setStartTimeOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeOffsetBuilder_ == null) {
         startTimeOffset_ = builderForValue.build();
         onChanged();
@@ -613,6 +676,8 @@ public Builder setStartTimeOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -624,7 +689,9 @@ public Builder mergeStartTimeOffset(com.google.protobuf.Duration value) {
       if (startTimeOffsetBuilder_ == null) {
         if (startTimeOffset_ != null) {
           startTimeOffset_ =
-            com.google.protobuf.Duration.newBuilder(startTimeOffset_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(startTimeOffset_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           startTimeOffset_ = value;
         }
@@ -636,6 +703,8 @@ public Builder mergeStartTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -655,6 +724,8 @@ public Builder clearStartTimeOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -663,11 +734,13 @@ public Builder clearStartTimeOffset() {
      * .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.
@@ -679,11 +752,14 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() {
       if (startTimeOffsetBuilder_ != null) {
         return startTimeOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return startTimeOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : startTimeOffset_;
+        return startTimeOffset_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : startTimeOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -692,14 +768,17 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() {
      * .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> 
+            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());
+        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_;
@@ -707,36 +786,49 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() {
 
     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_;
+            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; + * * @return Whether the endTimeOffset field is set. */ 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; + * * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { if (endTimeOffsetBuilder_ == null) { - return endTimeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTimeOffset_; + 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.
@@ -758,6 +850,8 @@ public Builder setEndTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -765,8 +859,7 @@ public Builder setEndTimeOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time_offset = 2;
      */
-    public Builder setEndTimeOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeOffsetBuilder_ == null) {
         endTimeOffset_ = builderForValue.build();
         onChanged();
@@ -777,6 +870,8 @@ public Builder setEndTimeOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -788,7 +883,9 @@ public Builder mergeEndTimeOffset(com.google.protobuf.Duration value) {
       if (endTimeOffsetBuilder_ == null) {
         if (endTimeOffset_ != null) {
           endTimeOffset_ =
-            com.google.protobuf.Duration.newBuilder(endTimeOffset_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(endTimeOffset_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           endTimeOffset_ = value;
         }
@@ -800,6 +897,8 @@ public Builder mergeEndTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -819,6 +918,8 @@ public Builder clearEndTimeOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -827,11 +928,13 @@ public Builder clearEndTimeOffset() {
      * .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.
@@ -843,11 +946,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() {
       if (endTimeOffsetBuilder_ != null) {
         return endTimeOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return endTimeOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : endTimeOffset_;
+        return endTimeOffset_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : endTimeOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -856,21 +962,24 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() {
      * .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> 
+            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());
+        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) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -880,12 +989,12 @@ public final Builder mergeUnknownFields(
       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();
   }
@@ -894,16 +1003,16 @@ 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);
-    }
-  };
+  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;
@@ -918,6 +1027,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.automl.v1beta1.TimeSegment getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java
index 763ce8ffe..b174a798a 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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
+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; + * * @return Whether the startTimeOffset field is set. */ boolean hasStartTimeOffset(); /** + * + * *
    * Start of the time segment (inclusive), represented as the duration since
    * the example start.
    * 
* * .google.protobuf.Duration start_time_offset = 1; + * * @return The startTimeOffset. */ com.google.protobuf.Duration getStartTimeOffset(); /** + * + * *
    * Start of the time segment (inclusive), represented as the duration since
    * the example start.
@@ -38,26 +62,34 @@ public interface TimeSegmentOrBuilder extends
   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; + * * @return Whether the endTimeOffset field is set. */ boolean hasEndTimeOffset(); /** + * + * *
    * End of the time segment (exclusive), represented as the duration since the
    * example start.
    * 
* * .google.protobuf.Duration end_time_offset = 2; + * * @return The endTimeOffset. */ com.google.protobuf.Duration getEndTimeOffset(); /** + * + * *
    * End of the time segment (exclusive), represented as the duration since the
    * example start.
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java
similarity index 63%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java
index 593b2114b..a1c9d991f 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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 +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; + private static final long serialVersionUID = 0L; // Use TimestampStats.newBuilder() to construct. private TimestampStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimestampStats() { - } + + private TimestampStats() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimestampStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TimestampStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,68 +69,79 @@ private TimestampStats( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - granularStats_ = com.google.protobuf.MapField.newMapField( - GranularStatsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + 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; } - com.google.protobuf.MapEntry - granularStats__ = input.readMessage( - GranularStatsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - granularStats_.getMutableMap().put( - granularStats__.getKey(), granularStats__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetGranularStats(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.TimestampStats.class, + com.google.cloud.automl.v1beta1.TimestampStats.Builder.class); } - public interface GranularStatsOrBuilder extends + 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).
@@ -124,6 +151,8 @@ public interface GranularStatsOrBuilder extends
      */
     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).
@@ -131,15 +160,13 @@ public interface GranularStatsOrBuilder extends
      *
      * map<int32, int64> buckets = 1;
      */
-    boolean containsBuckets(
-        int key);
-    /**
-     * Use {@link #getBucketsMap()} instead.
-     */
+    boolean containsBuckets(int key);
+    /** Use {@link #getBucketsMap()} instead. */
     @java.lang.Deprecated
-    java.util.Map
-    getBuckets();
+    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).
@@ -147,9 +174,10 @@ boolean containsBuckets(
      *
      * map<int32, int64> buckets = 1;
      */
-    java.util.Map
-    getBucketsMap();
+    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).
@@ -157,11 +185,10 @@ boolean containsBuckets(
      *
      * map<int32, int64> buckets = 1;
      */
-
-    long getBucketsOrDefault(
-        int key,
-        long defaultValue);
+    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).
@@ -169,41 +196,40 @@ long getBucketsOrDefault(
      *
      * map<int32, int64> buckets = 1;
      */
-
-    long getBucketsOrThrow(
-        int key);
+    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 + 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; + private static final long serialVersionUID = 0L; // Use GranularStats.newBuilder() to construct. private GranularStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GranularStats() { - } + + private GranularStats() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GranularStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GranularStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -223,82 +249,84 @@ private GranularStats( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - buckets_ = com.google.protobuf.MapField.newMapField( - BucketsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + 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; } - 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; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetBuckets(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + 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< - java.lang.Integer, java.lang.Long> 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); + 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< - java.lang.Integer, java.lang.Long> buckets_; - private com.google.protobuf.MapField - internalGetBuckets() { + + private com.google.protobuf.MapField buckets_; + + private com.google.protobuf.MapField internalGetBuckets() { if (buckets_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BucketsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(BucketsDefaultEntryHolder.defaultEntry); } return buckets_; } @@ -307,6 +335,8 @@ 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).
@@ -314,22 +344,20 @@ public int getBucketsCount() {
      *
      * map<int32, int64> buckets = 1;
      */
-
     @java.lang.Override
-    public boolean containsBuckets(
-        int key) {
-      
+    public boolean containsBuckets(int key) {
+
       return internalGetBuckets().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getBucketsMap()} instead.
-     */
+    /** Use {@link #getBucketsMap()} instead. */
     @java.lang.Override
     @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).
@@ -338,11 +366,12 @@ public java.util.Map getBuckets() {
      * map<int32, int64> buckets = 1;
      */
     @java.lang.Override
-
     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).
@@ -351,16 +380,14 @@ public java.util.Map getBucketsMap() {
      * map<int32, int64> buckets = 1;
      */
     @java.lang.Override
+    public long getBucketsOrDefault(int key, long defaultValue) {
 
-    public long getBucketsOrDefault(
-        int key,
-        long defaultValue) {
-      
-      java.util.Map map =
-          internalGetBuckets().getMap();
+      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).
@@ -369,12 +396,9 @@ public long getBucketsOrDefault(
      * map<int32, int64> buckets = 1;
      */
     @java.lang.Override
+    public long getBucketsOrThrow(int key) {
 
-    public long getBucketsOrThrow(
-        int key) {
-      
-      java.util.Map map =
-          internalGetBuckets().getMap();
+      java.util.Map map = internalGetBuckets().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -382,6 +406,7 @@ public long getBucketsOrThrow(
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -393,14 +418,9 @@ public final boolean isInitialized() {
     }
 
     @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);
+    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);
     }
 
@@ -410,15 +430,15 @@ public int getSerializedSize() {
       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__);
+      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;
@@ -428,15 +448,15 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        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;
+      com.google.cloud.automl.v1beta1.TimestampStats.GranularStats other =
+          (com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) obj;
 
-      if (!internalGetBuckets().equals(
-          other.internalGetBuckets())) return false;
+      if (!internalGetBuckets().equals(other.internalGetBuckets())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -458,87 +478,94 @@ public int hashCode() {
     }
 
     public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        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)
+        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 {
+
+    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)
+        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) 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)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      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) 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)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      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);
+        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);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    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) {
+
+    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);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -548,49 +575,52 @@ protected Builder newBuilderForType(
       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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetBuckets(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableBuckets(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + 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() @@ -598,16 +628,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -616,13 +645,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.getDefaultInstance(); } @@ -637,7 +667,8 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats build() { @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); + 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(); @@ -649,38 +680,41 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) other); } else { super.mergeFrom(other); return this; @@ -688,9 +722,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } 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()); + if (other + == com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.getDefaultInstance()) + return this; + internalGetMutableBuckets().mergeFrom(other.internalGetBuckets()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -710,7 +745,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -719,24 +756,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Long> buckets_; - private com.google.protobuf.MapField - internalGetBuckets() { + private com.google.protobuf.MapField buckets_; + + private com.google.protobuf.MapField internalGetBuckets() { if (buckets_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BucketsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(BucketsDefaultEntryHolder.defaultEntry); } return buckets_; } + private com.google.protobuf.MapField - internalGetMutableBuckets() { - onChanged();; + internalGetMutableBuckets() { + onChanged(); + ; if (buckets_ == null) { - buckets_ = com.google.protobuf.MapField.newMapField( - BucketsDefaultEntryHolder.defaultEntry); + buckets_ = + com.google.protobuf.MapField.newMapField(BucketsDefaultEntryHolder.defaultEntry); } if (!buckets_.isMutable()) { buckets_ = buckets_.copy(); @@ -748,6 +786,8 @@ 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).
@@ -755,22 +795,20 @@ public int getBucketsCount() {
        *
        * map<int32, int64> buckets = 1;
        */
-
       @java.lang.Override
-      public boolean containsBuckets(
-          int key) {
-        
+      public boolean containsBuckets(int key) {
+
         return internalGetBuckets().getMap().containsKey(key);
       }
-      /**
-       * Use {@link #getBucketsMap()} instead.
-       */
+      /** Use {@link #getBucketsMap()} instead. */
       @java.lang.Override
       @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).
@@ -779,11 +817,12 @@ public java.util.Map getBuckets() {
        * map<int32, int64> buckets = 1;
        */
       @java.lang.Override
-
       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).
@@ -792,16 +831,14 @@ public java.util.Map getBucketsMap() {
        * map<int32, int64> buckets = 1;
        */
       @java.lang.Override
+      public long getBucketsOrDefault(int key, long defaultValue) {
 
-      public long getBucketsOrDefault(
-          int key,
-          long defaultValue) {
-        
-        java.util.Map map =
-            internalGetBuckets().getMap();
+        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).
@@ -810,12 +847,9 @@ public long getBucketsOrDefault(
        * map<int32, int64> buckets = 1;
        */
       @java.lang.Override
+      public long getBucketsOrThrow(int key) {
 
-      public long getBucketsOrThrow(
-          int key) {
-        
-        java.util.Map map =
-            internalGetBuckets().getMap();
+        java.util.Map map = internalGetBuckets().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
@@ -823,11 +857,12 @@ public long getBucketsOrThrow(
       }
 
       public Builder clearBuckets() {
-        internalGetMutableBuckets().getMutableMap()
-            .clear();
+        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).
@@ -835,23 +870,19 @@ public Builder clearBuckets() {
        *
        * map<int32, int64> buckets = 1;
        */
+      public Builder removeBuckets(int key) {
 
-      public Builder removeBuckets(
-          int key) {
-        
-        internalGetMutableBuckets().getMutableMap()
-            .remove(key);
+        internalGetMutableBuckets().getMutableMap().remove(key);
         return this;
       }
-      /**
-       * Use alternate mutation accessors instead.
-       */
+      /** Use alternate mutation accessors instead. */
       @java.lang.Deprecated
-      public java.util.Map
-      getMutableBuckets() {
+      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).
@@ -859,16 +890,14 @@ public Builder removeBuckets(
        *
        * map<int32, int64> buckets = 1;
        */
-      public Builder putBuckets(
-          int key,
-          long value) {
-        
-        
-        internalGetMutableBuckets().getMutableMap()
-            .put(key, value);
+      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).
@@ -876,13 +905,11 @@ public Builder putBuckets(
        *
        * map<int32, int64> buckets = 1;
        */
-
-      public Builder putAllBuckets(
-          java.util.Map values) {
-        internalGetMutableBuckets().getMutableMap()
-            .putAll(values);
+      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) {
@@ -895,30 +922,32 @@ public final Builder mergeUnknownFields(
         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;
+    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() {
+    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);
-      }
-    };
+    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;
@@ -930,28 +959,37 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getDefaultInstanceForType() {
+    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 =
+            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());
+                .
+                    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> granularStats_;
-  private com.google.protobuf.MapField
-  internalGetGranularStats() {
+          java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats>
+      internalGetGranularStats() {
     if (granularStats_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           GranularStatsDefaultEntryHolder.defaultEntry);
@@ -963,6 +1001,8 @@ 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.
@@ -971,24 +1011,28 @@ public int getGranularStatsCount() {
    * is not populated).
    * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * */ - @java.lang.Override - public boolean containsGranularStats( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsGranularStats(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetGranularStats().getMap().containsKey(key); } - /** - * Use {@link #getGranularStatsMap()} instead. - */ + /** Use {@link #getGranularStatsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGranularStats() { + 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.
@@ -997,14 +1041,19 @@ public java.util.Map
    *
-   * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
+   * 
+   * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getGranularStatsMap() {
+  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.
@@ -1013,19 +1062,24 @@ public java.util.Map
    *
-   * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
+   * 
+   * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
+   * 
    */
   @java.lang.Override
-
   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();
+    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.
@@ -1034,15 +1088,18 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularS
    * is not populated).
    * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * */ @java.lang.Override - 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 (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetGranularStats().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1050,6 +1107,7 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularS } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1061,14 +1119,9 @@ public final boolean isInitialized() { } @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); + 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); } @@ -1078,15 +1131,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetGranularStats().getMap().entrySet()) { - com.google.protobuf.MapEntry - granularStats__ = GranularStatsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, granularStats__); + 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; @@ -1096,15 +1152,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.TimestampStats other = + (com.google.cloud.automl.v1beta1.TimestampStats) obj; - if (!internalGetGranularStats().equals( - other.internalGetGranularStats())) return false; + if (!internalGetGranularStats().equals(other.internalGetGranularStats())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1125,140 +1181,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom( - java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetGranularStats(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableGranularStats(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + 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 + 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); + com.google.cloud.automl.v1beta1.TimestampStats.class, + com.google.cloud.automl.v1beta1.TimestampStats.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TimestampStats.newBuilder() @@ -1266,16 +1329,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1284,9 +1346,9 @@ public Builder clear() { } @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; + 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 @@ -1305,7 +1367,8 @@ public com.google.cloud.automl.v1beta1.TimestampStats build() { @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); + 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(); @@ -1317,38 +1380,39 @@ public com.google.cloud.automl.v1beta1.TimestampStats buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.TimestampStats) other); } else { super.mergeFrom(other); return this; @@ -1357,8 +1421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { 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()); + internalGetMutableGranularStats().mergeFrom(other.internalGetGranularStats()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1387,24 +1450,31 @@ public Builder mergeFrom( } 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 - internalGetGranularStats() { + 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 - internalGetMutableGranularStats() { - onChanged();; + + 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); + granularStats_ = + com.google.protobuf.MapField.newMapField(GranularStatsDefaultEntryHolder.defaultEntry); } if (!granularStats_.isMutable()) { granularStats_ = granularStats_.copy(); @@ -1416,6 +1486,8 @@ 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.
@@ -1424,24 +1496,28 @@ public int getGranularStatsCount() {
      * is not populated).
      * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * */ - @java.lang.Override - public boolean containsGranularStats( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsGranularStats(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetGranularStats().getMap().containsKey(key); } - /** - * Use {@link #getGranularStatsMap()} instead. - */ + /** Use {@link #getGranularStatsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGranularStats() { + 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.
@@ -1450,14 +1526,19 @@ public java.util.Map
      *
-     * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
+     * 
+     * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getGranularStatsMap() {
+    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.
@@ -1466,19 +1547,24 @@ public java.util.Map
      *
-     * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
+     * 
+     * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
+     * 
      */
     @java.lang.Override
-
     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();
+      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.
@@ -1487,15 +1573,18 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularS
      * is not populated).
      * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * */ @java.lang.Override - 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 (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetGranularStats().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1503,11 +1592,12 @@ public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularS } public Builder clearGranularStats() { - internalGetMutableGranularStats().getMutableMap() - .clear(); + internalGetMutableGranularStats().getMutableMap().clear(); return this; } /** + * + * *
      * The string key is the pre-defined granularity. Currently supported:
      * hour_of_day, day_of_week, month_of_year.
@@ -1516,25 +1606,27 @@ public Builder clearGranularStats() {
      * is not populated).
      * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * 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); + 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. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableGranularStats() { + 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.
@@ -1543,18 +1635,24 @@ public Builder removeGranularStats(
      * is not populated).
      * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * 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); + 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.
@@ -1563,18 +1661,20 @@ public Builder putGranularStats(
      * is not populated).
      * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * */ - public Builder putAllGranularStats( - java.util.Map values) { - internalGetMutableGranularStats().getMutableMap() - .putAll(values); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1584,12 +1684,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1598,16 +1698,16 @@ 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); - } - }; + 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; @@ -1622,6 +1722,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TimestampStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java index c827be131..2501d2593 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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.
@@ -16,10 +34,14 @@ public interface TimestampStatsOrBuilder extends
    * is not populated).
    * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * 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.
@@ -28,17 +50,18 @@ public interface TimestampStatsOrBuilder extends
    * is not populated).
    * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; - */ - boolean containsGranularStats( - java.lang.String key); - /** - * Use {@link #getGranularStatsMap()} instead. + * + * 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(); + getGranularStats(); /** + * + * *
    * The string key is the pre-defined granularity. Currently supported:
    * hour_of_day, day_of_week, month_of_year.
@@ -47,11 +70,15 @@ boolean containsGranularStats(
    * is not populated).
    * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * */ java.util.Map - getGranularStatsMap(); + getGranularStatsMap(); /** + * + * *
    * The string key is the pre-defined granularity. Currently supported:
    * hour_of_day, day_of_week, month_of_year.
@@ -60,13 +87,16 @@ boolean containsGranularStats(
    * is not populated).
    * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * 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.
@@ -75,9 +105,10 @@ com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularStatsOrD
    * is not populated).
    * 
* - * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + * 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java index ea07fc1d4..9d629433d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Annotation details specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationAnnotation} */ -public final class TranslationAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslationAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TranslationAnnotation) TranslationAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslationAnnotation.newBuilder() to construct. private TranslationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslationAnnotation() { - } + + private TranslationAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,59 +68,67 @@ private TranslationAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; - if (translatedContent_ != null) { - subBuilder = translatedContent_.toBuilder(); + case 10: + { + com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; + if (translatedContent_ != null) { + subBuilder = translatedContent_.toBuilder(); + } + translatedContent_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(translatedContent_); + translatedContent_ = subBuilder.buildPartial(); + } + + break; } - translatedContent_ = input.readMessage(com.google.cloud.automl.v1beta1.TextSnippet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(translatedContent_); - translatedContent_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationAnnotation.class, com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder.class); + com.google.cloud.automl.v1beta1.TranslationAnnotation.class, + com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder.class); } public static final int TRANSLATED_CONTENT_FIELD_NUMBER = 1; private com.google.cloud.automl.v1beta1.TextSnippet translatedContent_; /** + * + * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; + * * @return Whether the translatedContent field is set. */ @java.lang.Override @@ -112,18 +136,25 @@ public boolean hasTranslatedContent() { return translatedContent_ != null; } /** + * + * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; + * * @return The translatedContent. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet getTranslatedContent() { - return translatedContent_ == null ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : translatedContent_; + return translatedContent_ == null + ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() + : translatedContent_; } /** + * + * *
    * Output only . The translated content.
    * 
@@ -136,6 +167,7 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTranslatedContent } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (translatedContent_ != null) { output.writeMessage(1, getTranslatedContent()); } @@ -162,8 +193,7 @@ public int getSerializedSize() { size = 0; if (translatedContent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTranslatedContent()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTranslatedContent()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,17 +203,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TranslationAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TranslationAnnotation other = (com.google.cloud.automl.v1beta1.TranslationAnnotation) obj; + com.google.cloud.automl.v1beta1.TranslationAnnotation other = + (com.google.cloud.automl.v1beta1.TranslationAnnotation) obj; if (hasTranslatedContent() != other.hasTranslatedContent()) return false; if (hasTranslatedContent()) { - if (!getTranslatedContent() - .equals(other.getTranslatedContent())) return false; + if (!getTranslatedContent().equals(other.getTranslatedContent())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -206,117 +236,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TranslationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationAnnotation 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.TranslationAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TranslationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Annotation details specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TranslationAnnotation) com.google.cloud.automl.v1beta1.TranslationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationAnnotation.class, com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder.class); + com.google.cloud.automl.v1beta1.TranslationAnnotation.class, + com.google.cloud.automl.v1beta1.TranslationAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TranslationAnnotation.newBuilder() @@ -324,16 +364,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; } @java.lang.Override @@ -368,7 +407,8 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationAnnotation buildPartial() { - com.google.cloud.automl.v1beta1.TranslationAnnotation result = new com.google.cloud.automl.v1beta1.TranslationAnnotation(this); + com.google.cloud.automl.v1beta1.TranslationAnnotation result = + new com.google.cloud.automl.v1beta1.TranslationAnnotation(this); if (translatedContentBuilder_ == null) { result.translatedContent_ = translatedContent_; } else { @@ -382,38 +422,39 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TranslationAnnotation) { - return mergeFrom((com.google.cloud.automl.v1beta1.TranslationAnnotation)other); + return mergeFrom((com.google.cloud.automl.v1beta1.TranslationAnnotation) other); } else { super.mergeFrom(other); return this; @@ -421,7 +462,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationAnnotation other) { - if (other == com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance()) + return this; if (other.hasTranslatedContent()) { mergeTranslatedContent(other.getTranslatedContent()); } @@ -444,7 +486,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TranslationAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TranslationAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -456,34 +499,47 @@ public Builder mergeFrom( private com.google.cloud.automl.v1beta1.TextSnippet translatedContent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> translatedContentBuilder_; + com.google.cloud.automl.v1beta1.TextSnippet, + com.google.cloud.automl.v1beta1.TextSnippet.Builder, + com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> + translatedContentBuilder_; /** + * + * *
      * Output only . The translated content.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; + * * @return Whether the translatedContent field is set. */ public boolean hasTranslatedContent() { return translatedContentBuilder_ != null || translatedContent_ != null; } /** + * + * *
      * Output only . The translated content.
      * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; + * * @return The translatedContent. */ public com.google.cloud.automl.v1beta1.TextSnippet getTranslatedContent() { if (translatedContentBuilder_ == null) { - return translatedContent_ == null ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : translatedContent_; + return translatedContent_ == null + ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() + : translatedContent_; } else { return translatedContentBuilder_.getMessage(); } } /** + * + * *
      * Output only . The translated content.
      * 
@@ -504,6 +560,8 @@ public Builder setTranslatedContent(com.google.cloud.automl.v1beta1.TextSnippet return this; } /** + * + * *
      * Output only . The translated content.
      * 
@@ -522,6 +580,8 @@ public Builder setTranslatedContent( return this; } /** + * + * *
      * Output only . The translated content.
      * 
@@ -532,7 +592,9 @@ public Builder mergeTranslatedContent(com.google.cloud.automl.v1beta1.TextSnippe if (translatedContentBuilder_ == null) { if (translatedContent_ != null) { translatedContent_ = - com.google.cloud.automl.v1beta1.TextSnippet.newBuilder(translatedContent_).mergeFrom(value).buildPartial(); + com.google.cloud.automl.v1beta1.TextSnippet.newBuilder(translatedContent_) + .mergeFrom(value) + .buildPartial(); } else { translatedContent_ = value; } @@ -544,6 +606,8 @@ public Builder mergeTranslatedContent(com.google.cloud.automl.v1beta1.TextSnippe return this; } /** + * + * *
      * Output only . The translated content.
      * 
@@ -562,6 +626,8 @@ public Builder clearTranslatedContent() { return this; } /** + * + * *
      * Output only . The translated content.
      * 
@@ -569,11 +635,13 @@ public Builder clearTranslatedContent() { * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; */ public com.google.cloud.automl.v1beta1.TextSnippet.Builder getTranslatedContentBuilder() { - + onChanged(); return getTranslatedContentFieldBuilder().getBuilder(); } /** + * + * *
      * Output only . The translated content.
      * 
@@ -584,11 +652,14 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTranslatedContent if (translatedContentBuilder_ != null) { return translatedContentBuilder_.getMessageOrBuilder(); } else { - return translatedContent_ == null ? - com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() : translatedContent_; + return translatedContent_ == null + ? com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance() + : translatedContent_; } } /** + * + * *
      * Output only . The translated content.
      * 
@@ -596,21 +667,24 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTranslatedContent * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> + com.google.cloud.automl.v1beta1.TextSnippet, + com.google.cloud.automl.v1beta1.TextSnippet.Builder, + com.google.cloud.automl.v1beta1.TextSnippetOrBuilder> getTranslatedContentFieldBuilder() { if (translatedContentBuilder_ == null) { - translatedContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextSnippet, com.google.cloud.automl.v1beta1.TextSnippet.Builder, com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( - getTranslatedContent(), - getParentForChildren(), - isClean()); + translatedContentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSnippet, + com.google.cloud.automl.v1beta1.TextSnippet.Builder, + com.google.cloud.automl.v1beta1.TextSnippetOrBuilder>( + getTranslatedContent(), getParentForChildren(), isClean()); translatedContent_ = null; } return translatedContentBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -620,12 +694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TranslationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TranslationAnnotation) private static final com.google.cloud.automl.v1beta1.TranslationAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TranslationAnnotation(); } @@ -634,16 +708,16 @@ public static com.google.cloud.automl.v1beta1.TranslationAnnotation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -658,6 +732,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TranslationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java index 5d5b88721..e983c0245 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotationOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; -public interface TranslationAnnotationOrBuilder extends +public interface TranslationAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TranslationAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; + * * @return Whether the translatedContent field is set. */ boolean hasTranslatedContent(); /** + * + * *
    * Output only . The translated content.
    * 
* * .google.cloud.automl.v1beta1.TextSnippet translated_content = 1; + * * @return The translatedContent. */ com.google.cloud.automl.v1beta1.TextSnippet getTranslatedContent(); /** + * + * *
    * Output only . The translated content.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java index 74478b278..154c53136 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Dataset metadata that is specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationDatasetMetadata} */ -public final class TranslationDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TranslationDatasetMetadata) TranslationDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslationDatasetMetadata.newBuilder() to construct. private TranslationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslationDatasetMetadata() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -26,16 +44,15 @@ private TranslationDatasetMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslationDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslationDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,65 @@ private TranslationDatasetMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + targetLanguageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.class, com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceLanguageCode_; /** + * + * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -114,29 +138,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -147,11 +171,14 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object targetLanguageCode_; /** + * + * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -160,29 +187,29 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -191,6 +218,7 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +230,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -233,17 +260,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TranslationDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata other = (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) obj; + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata other = + (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) obj; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode() - .equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,117 +291,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TranslationDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata 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.TranslationDatasetMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Dataset metadata that is specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TranslationDatasetMetadata) com.google.cloud.automl.v1beta1.TranslationDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.class, com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.newBuilder() @@ -383,16 +419,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -404,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; } @java.lang.Override @@ -425,7 +460,8 @@ public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata buildPartial() { - com.google.cloud.automl.v1beta1.TranslationDatasetMetadata result = new com.google.cloud.automl.v1beta1.TranslationDatasetMetadata(this); + com.google.cloud.automl.v1beta1.TranslationDatasetMetadata result = + new com.google.cloud.automl.v1beta1.TranslationDatasetMetadata(this); result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; onBuilt(); @@ -436,38 +472,39 @@ public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TranslationDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata)other); + return mergeFrom((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -475,7 +512,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance()) + return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; onChanged(); @@ -503,7 +541,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -515,18 +554,20 @@ public Builder mergeFrom( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -535,20 +576,21 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -556,54 +598,61 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code of the source language.
      * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -611,18 +660,20 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -631,20 +682,21 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -652,61 +704,68 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { + public Builder setTargetLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code of the target language.
      * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -716,12 +775,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TranslationDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TranslationDatasetMetadata) private static final com.google.cloud.automl.v1beta1.TranslationDatasetMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TranslationDatasetMetadata(); } @@ -730,16 +789,16 @@ public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -754,6 +813,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java index c9b22461f..edbdb4c32 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadataOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; -public interface TranslationDatasetMetadataOrBuilder extends +public interface TranslationDatasetMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TranslationDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Required. The BCP-47 language code of the source language.
    * 
* * string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Required. The BCP-47 language code of the target language.
    * 
* * string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java index 4573511a9..2eff5811c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Evaluation metrics for the dataset.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationEvaluationMetrics} */ -public final class TranslationEvaluationMetrics extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslationEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) TranslationEvaluationMetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslationEvaluationMetrics.newBuilder() to construct. private TranslationEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslationEvaluationMetrics() { - } + + private TranslationEvaluationMetrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslationEvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslationEvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,56 +68,61 @@ private TranslationEvaluationMetrics( case 0: done = true; break; - case 9: { - - bleuScore_ = input.readDouble(); - break; - } - case 17: { - - baseBleuScore_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 9: + { + bleuScore_ = input.readDouble(); + break; + } + case 17: + { + baseBleuScore_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.class, com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.class, + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder.class); } public static final int BLEU_SCORE_FIELD_NUMBER = 1; private double bleuScore_; /** + * + * *
    * Output only. BLEU score.
    * 
* * double bleu_score = 1; + * * @return The bleuScore. */ @java.lang.Override @@ -112,11 +133,14 @@ public double getBleuScore() { public static final int BASE_BLEU_SCORE_FIELD_NUMBER = 2; private double baseBleuScore_; /** + * + * *
    * Output only. BLEU score for base model.
    * 
* * double base_bleu_score = 2; + * * @return The baseBleuScore. */ @java.lang.Override @@ -125,6 +149,7 @@ public double getBaseBleuScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +161,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (bleuScore_ != 0D) { output.writeDouble(1, bleuScore_); } @@ -154,12 +178,10 @@ public int getSerializedSize() { size = 0; if (bleuScore_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, bleuScore_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, bleuScore_); } if (baseBleuScore_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, baseBleuScore_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, baseBleuScore_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -169,19 +191,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics other = (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) obj; + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics other = + (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) obj; if (java.lang.Double.doubleToLongBits(getBleuScore()) - != java.lang.Double.doubleToLongBits( - other.getBleuScore())) return false; + != java.lang.Double.doubleToLongBits(other.getBleuScore())) return false; if (java.lang.Double.doubleToLongBits(getBaseBleuScore()) - != java.lang.Double.doubleToLongBits( - other.getBaseBleuScore())) return false; + != java.lang.Double.doubleToLongBits(other.getBaseBleuScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -194,128 +215,142 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLEU_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBleuScore())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBleuScore())); hash = (37 * hash) + BASE_BLEU_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBaseBleuScore())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBaseBleuScore())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TranslationEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics 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.TranslationEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Evaluation metrics for the dataset.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationEvaluationMetrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.class, com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder.class); + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.class, + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.newBuilder() @@ -323,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -344,13 +378,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); } @@ -365,7 +400,8 @@ public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics buildPartial() { - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics result = new com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics(this); + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics result = + new com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics(this); result.bleuScore_ = bleuScore_; result.baseBleuScore_ = baseBleuScore_; onBuilt(); @@ -376,38 +412,39 @@ public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TranslationEvaluationMetrics) { - return mergeFrom((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics)other); + return mergeFrom((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics other) { - if (other == com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance()) + return this; if (other.getBleuScore() != 0D) { setBleuScore(other.getBleuScore()); } @@ -441,7 +480,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,13 +491,16 @@ public Builder mergeFrom( return this; } - private double bleuScore_ ; + private double bleuScore_; /** + * + * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; + * * @return The bleuScore. */ @java.lang.Override @@ -465,42 +508,51 @@ public double getBleuScore() { return bleuScore_; } /** + * + * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; + * * @param value The bleuScore to set. * @return This builder for chaining. */ public Builder setBleuScore(double value) { - + bleuScore_ = value; onChanged(); return this; } /** + * + * *
      * Output only. BLEU score.
      * 
* * double bleu_score = 1; + * * @return This builder for chaining. */ public Builder clearBleuScore() { - + bleuScore_ = 0D; onChanged(); return this; } - private double baseBleuScore_ ; + private double baseBleuScore_; /** + * + * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; + * * @return The baseBleuScore. */ @java.lang.Override @@ -508,37 +560,43 @@ public double getBaseBleuScore() { return baseBleuScore_; } /** + * + * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; + * * @param value The baseBleuScore to set. * @return This builder for chaining. */ public Builder setBaseBleuScore(double value) { - + baseBleuScore_ = value; onChanged(); return this; } /** + * + * *
      * Output only. BLEU score for base model.
      * 
* * double base_bleu_score = 2; + * * @return This builder for chaining. */ public Builder clearBaseBleuScore() { - + baseBleuScore_ = 0D; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -548,12 +606,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) - private static final com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics(); } @@ -562,16 +621,16 @@ public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationEvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationEvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationEvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +645,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000..f673fe07e --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetricsOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/translation.proto + +package com.google.cloud.automl.v1beta1; + +public interface TranslationEvaluationMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TranslationEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. BLEU score.
+   * 
+ * + * double bleu_score = 1; + * + * @return The bleuScore. + */ + double getBleuScore(); + + /** + * + * + *
+   * Output only. BLEU score for base model.
+   * 
+ * + * double base_bleu_score = 2; + * + * @return The baseBleuScore. + */ + double getBaseBleuScore(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java index 1f9880d56..72d86d2bf 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; /** + * + * *
  * Model metadata that is specific to translation.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationModelMetadata} */ -public final class TranslationModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslationModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TranslationModelMetadata) TranslationModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslationModelMetadata.newBuilder() to construct. private TranslationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslationModelMetadata() { baseModel_ = ""; sourceLanguageCode_ = ""; @@ -27,16 +45,15 @@ private TranslationModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,66 @@ private TranslationModelMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - baseModel_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + baseModel_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + targetLanguageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationModelMetadata.class, com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TranslationModelMetadata.class, + com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder.class); } public static final int BASE_MODEL_FIELD_NUMBER = 1; private volatile java.lang.Object baseModel_; /** + * + * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -116,6 +140,7 @@ private TranslationModelMetadata(
    * 
* * string base_model = 1; + * * @return The baseModel. */ @java.lang.Override @@ -124,14 +149,15 @@ public java.lang.String getBaseModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModel_ = s; return s; } } /** + * + * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -140,16 +166,15 @@ public java.lang.String getBaseModel() {
    * 
* * string base_model = 1; + * * @return The bytes for baseModel. */ @java.lang.Override - public com.google.protobuf.ByteString - getBaseModelBytes() { + public com.google.protobuf.ByteString getBaseModelBytes() { java.lang.Object ref = baseModel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseModel_ = b; return b; } else { @@ -160,12 +185,15 @@ public java.lang.String getBaseModel() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceLanguageCode_; /** + * + * *
    * Output only. Inferred from the dataset.
    * The source languge (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -174,30 +202,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Output only. Inferred from the dataset.
    * The source languge (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -208,12 +236,15 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object targetLanguageCode_; /** + * + * *
    * Output only. The target languge (The BCP-47 language code) that is used for
    * training.
    * 
* * string target_language_code = 3; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -222,30 +253,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Output only. The target languge (The BCP-47 language code) that is used for
    * training.
    * 
* * string target_language_code = 3; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -254,6 +285,7 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseModel_); } @@ -302,19 +333,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.TranslationModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.TranslationModelMetadata other = (com.google.cloud.automl.v1beta1.TranslationModelMetadata) obj; + com.google.cloud.automl.v1beta1.TranslationModelMetadata other = + (com.google.cloud.automl.v1beta1.TranslationModelMetadata) obj; - if (!getBaseModel() - .equals(other.getBaseModel())) return false; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode() - .equals(other.getTargetLanguageCode())) return false; + if (!getBaseModel().equals(other.getBaseModel())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,117 +367,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TranslationModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata 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.TranslationModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationModelMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TranslationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model metadata that is specific to translation.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.TranslationModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TranslationModelMetadata) com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.TranslationModelMetadata.class, com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.TranslationModelMetadata.class, + com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.TranslationModelMetadata.newBuilder() @@ -456,16 +495,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +517,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TranslationProto + .internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; } @java.lang.Override @@ -500,7 +538,8 @@ public com.google.cloud.automl.v1beta1.TranslationModelMetadata build() { @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationModelMetadata buildPartial() { - com.google.cloud.automl.v1beta1.TranslationModelMetadata result = new com.google.cloud.automl.v1beta1.TranslationModelMetadata(this); + com.google.cloud.automl.v1beta1.TranslationModelMetadata result = + new com.google.cloud.automl.v1beta1.TranslationModelMetadata(this); result.baseModel_ = baseModel_; result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; @@ -512,38 +551,39 @@ public com.google.cloud.automl.v1beta1.TranslationModelMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TranslationModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.TranslationModelMetadata)other); + return mergeFrom((com.google.cloud.automl.v1beta1.TranslationModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -551,7 +591,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance()) + return this; if (!other.getBaseModel().isEmpty()) { baseModel_ = other.baseModel_; onChanged(); @@ -583,7 +624,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.TranslationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.TranslationModelMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,6 +637,8 @@ public Builder mergeFrom( private java.lang.Object baseModel_ = ""; /** + * + * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -603,13 +647,13 @@ public Builder mergeFrom(
      * 
* * string base_model = 1; + * * @return The baseModel. */ public java.lang.String getBaseModel() { java.lang.Object ref = baseModel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseModel_ = s; return s; @@ -618,6 +662,8 @@ public java.lang.String getBaseModel() { } } /** + * + * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -626,15 +672,14 @@ public java.lang.String getBaseModel() {
      * 
* * string base_model = 1; + * * @return The bytes for baseModel. */ - public com.google.protobuf.ByteString - getBaseModelBytes() { + public com.google.protobuf.ByteString getBaseModelBytes() { java.lang.Object ref = baseModel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseModel_ = b; return b; } else { @@ -642,6 +687,8 @@ public java.lang.String getBaseModel() { } } /** + * + * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -650,20 +697,22 @@ public java.lang.String getBaseModel() {
      * 
* * string base_model = 1; + * * @param value The baseModel to set. * @return This builder for chaining. */ - public Builder setBaseModel( - java.lang.String value) { + public Builder setBaseModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + baseModel_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -672,15 +721,18 @@ public Builder setBaseModel(
      * 
* * string base_model = 1; + * * @return This builder for chaining. */ public Builder clearBaseModel() { - + baseModel_ = getDefaultInstance().getBaseModel(); onChanged(); return this; } /** + * + * *
      * The resource name of the model to use as a baseline to train the custom
      * model. If unset, we use the default base model provided by Google
@@ -689,16 +741,16 @@ public Builder clearBaseModel() {
      * 
* * string base_model = 1; + * * @param value The bytes for baseModel to set. * @return This builder for chaining. */ - public Builder setBaseModelBytes( - com.google.protobuf.ByteString value) { + public Builder setBaseModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseModel_ = value; onChanged(); return this; @@ -706,19 +758,21 @@ public Builder setBaseModelBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Output only. Inferred from the dataset.
      * The source languge (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -727,21 +781,22 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Output only. Inferred from the dataset.
      * The source languge (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -749,57 +804,64 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Output only. Inferred from the dataset.
      * The source languge (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Inferred from the dataset.
      * The source languge (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. Inferred from the dataset.
      * The source languge (The BCP-47 language code) that is used for training.
      * 
* * string source_language_code = 2; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -807,19 +869,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Output only. The target languge (The BCP-47 language code) that is used for
      * training.
      * 
* * string target_language_code = 3; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -828,21 +892,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Output only. The target languge (The BCP-47 language code) that is used for
      * training.
      * 
* * string target_language_code = 3; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -850,64 +915,71 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Output only. The target languge (The BCP-47 language code) that is used for
      * training.
      * 
* * string target_language_code = 3; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { + public Builder setTargetLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The target languge (The BCP-47 language code) that is used for
      * training.
      * 
* * string target_language_code = 3; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The target languge (The BCP-47 language code) that is used for
      * training.
      * 
* * string target_language_code = 3; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -917,12 +989,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TranslationModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TranslationModelMetadata) private static final com.google.cloud.automl.v1beta1.TranslationModelMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TranslationModelMetadata(); } @@ -931,16 +1003,16 @@ public static com.google.cloud.automl.v1beta1.TranslationModelMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslationModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -955,6 +1027,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.TranslationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java index 594e93bf8..177d6ac4c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/translation.proto package com.google.cloud.automl.v1beta1; -public interface TranslationModelMetadataOrBuilder extends +public interface TranslationModelMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TranslationModelMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -16,10 +34,13 @@ public interface TranslationModelMetadataOrBuilder extends
    * 
* * string base_model = 1; + * * @return The baseModel. */ java.lang.String getBaseModel(); /** + * + * *
    * The resource name of the model to use as a baseline to train the custom
    * model. If unset, we use the default base model provided by Google
@@ -28,52 +49,62 @@ public interface TranslationModelMetadataOrBuilder extends
    * 
* * string base_model = 1; + * * @return The bytes for baseModel. */ - com.google.protobuf.ByteString - getBaseModelBytes(); + com.google.protobuf.ByteString getBaseModelBytes(); /** + * + * *
    * Output only. Inferred from the dataset.
    * The source languge (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Output only. Inferred from the dataset.
    * The source languge (The BCP-47 language code) that is used for training.
    * 
* * string source_language_code = 2; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Output only. The target languge (The BCP-47 language code) that is used for
    * training.
    * 
* * string target_language_code = 3; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Output only. The target languge (The BCP-47 language code) that is used for
    * training.
    * 
* * string target_language_code = 3; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); } diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java new file mode 100644 index 000000000..d31470471 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/translation.proto + +package com.google.cloud.automl.v1beta1; + +public final class TranslationProto { + private TranslationProto() {} + + 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_TranslationDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_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/translatio" + + "n.proto\022\033google.cloud.automl.v1beta1\032\037go" + + "ogle/api/field_behavior.proto\032,google/cl" + + "oud/automl/v1beta1/data_items.proto\032\034goo" + + "gle/api/annotations.proto\"b\n\032Translation" + + "DatasetMetadata\022!\n\024source_language_code\030" + + "\001 \001(\tB\003\340A\002\022!\n\024target_language_code\030\002 \001(\t" + + "B\003\340A\002\"K\n\034TranslationEvaluationMetrics\022\022\n" + + "\nbleu_score\030\001 \001(\001\022\027\n\017base_bleu_score\030\002 \001" + + "(\001\"j\n\030TranslationModelMetadata\022\022\n\nbase_m" + + "odel\030\001 \001(\t\022\034\n\024source_language_code\030\002 \001(\t" + + "\022\034\n\024target_language_code\030\003 \001(\t\"]\n\025Transl" + + "ationAnnotation\022D\n\022translated_content\030\001 " + + "\001(\0132(.google.cloud.automl.v1beta1.TextSn" + + "ippetB\267\001\n\037com.google.cloud.automl.v1beta" + + "1B\020TranslationProtoP\001ZAgoogle.golang.org" + + "/genproto/googleapis/cloud/automl/v1beta" + + "1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1\352\002" + + "\036Google::Cloud::AutoML::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.automl.v1beta1.DataItems.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor, + new java.lang.String[] { + "SourceLanguageCode", "TargetLanguageCode", + }); + internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor, + new java.lang.String[] { + "BleuScore", "BaseBleuScore", + }); + internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor, + new java.lang.String[] { + "BaseModel", "SourceLanguageCode", "TargetLanguageCode", + }); + internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor, + new java.lang.String[] { + "TranslatedContent", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.automl.v1beta1.DataItems.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java index 95a63a5e5..4eb423867 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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].
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.automl.v1beta1.TypeCode}
  */
-public enum TypeCode
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Not specified. Should not be used.
    * 
@@ -22,6 +40,8 @@ public enum TypeCode */ TYPE_CODE_UNSPECIFIED(0), /** + * + * *
    * Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
    * `"-Infinity"`.
@@ -31,6 +51,8 @@ public enum TypeCode
    */
   FLOAT64(3),
   /**
+   *
+   *
    * 
    * Must be between 0AD and 9999AD. Encoded as `string` according to
    * [time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if
@@ -42,6 +64,8 @@ public enum TypeCode
    */
   TIMESTAMP(4),
   /**
+   *
+   *
    * 
    * Encoded as `string`.
    * 
@@ -50,6 +74,8 @@ public enum TypeCode */ STRING(6), /** + * + * *
    * Encoded as `list`, where the list elements are represented according to
    * [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].
@@ -59,6 +85,8 @@ public enum TypeCode
    */
   ARRAY(8),
   /**
+   *
+   *
    * 
    * Encoded as `struct`, where field values are represented according to
    * [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
@@ -68,6 +96,8 @@ public enum TypeCode
    */
   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
@@ -84,6 +114,8 @@ public enum TypeCode
   ;
 
   /**
+   *
+   *
    * 
    * Not specified. Should not be used.
    * 
@@ -92,6 +124,8 @@ public enum TypeCode */ public static final int TYPE_CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
    * `"-Infinity"`.
@@ -101,6 +135,8 @@ public enum TypeCode
    */
   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
@@ -112,6 +148,8 @@ public enum TypeCode
    */
   public static final int TIMESTAMP_VALUE = 4;
   /**
+   *
+   *
    * 
    * Encoded as `string`.
    * 
@@ -120,6 +158,8 @@ public enum TypeCode */ 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].
@@ -129,6 +169,8 @@ public enum TypeCode
    */
   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].
@@ -138,6 +180,8 @@ public enum TypeCode
    */
   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
@@ -151,7 +195,6 @@ public enum TypeCode
    */
   public static final int CATEGORY_VALUE = 10;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -176,53 +219,57 @@ public static TypeCode valueOf(int 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;
+      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() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      TypeCode> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public TypeCode findValueByNumber(int number) {
-            return TypeCode.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  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() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      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) {
+  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.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -238,4 +285,3 @@ private TypeCode(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.automl.v1beta1.TypeCode)
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java
similarity index 62%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java
index 4e87fe477..8996eab89 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java
@@ -1,39 +1,56 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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 +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; + private static final long serialVersionUID = 0L; // Use UndeployModelOperationMetadata.newBuilder() to construct. - private UndeployModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UndeployModelOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UndeployModelOperationMetadata() { - } + + private UndeployModelOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UndeployModelOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UndeployModelOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,42 @@ private UndeployModelOperationMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; @@ -96,8 +116,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +134,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata other = + (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +159,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.newBuilder() @@ -257,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,13 +303,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); } @@ -295,7 +325,8 @@ public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata build() { @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); + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata result = + new com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata(this); onBuilt(); return result; } @@ -304,38 +335,39 @@ public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -343,7 +375,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +397,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +408,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,30 +420,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -419,9 +457,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000..0f421fce9 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java index 301018e14..4a6860a73 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.UndeployModelRequest} */ -public final class UndeployModelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UndeployModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.UndeployModelRequest) UndeployModelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UndeployModelRequest.newBuilder() to construct. private UndeployModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UndeployModelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UndeployModelRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UndeployModelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private UndeployModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_UndeployModelRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.UndeployModelRequest.class, com.google.cloud.automl.v1beta1.UndeployModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.UndeployModelRequest.class, + com.google.cloud.automl.v1beta1.UndeployModelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the model to undeploy.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the model to undeploy.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.UndeployModelRequest)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.UndeployModelRequest other = (com.google.cloud.automl.v1beta1.UndeployModelRequest) obj; + com.google.cloud.automl.v1beta1.UndeployModelRequest other = + (com.google.cloud.automl.v1beta1.UndeployModelRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UndeployModelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.UndeployModelRequest 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.UndeployModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.automl.v1beta1.UndeployModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.UndeployModelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.UndeployModelRequest) com.google.cloud.automl.v1beta1.UndeployModelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.UndeployModelRequest.class, com.google.cloud.automl.v1beta1.UndeployModelRequest.Builder.class); + com.google.cloud.automl.v1beta1.UndeployModelRequest.class, + com.google.cloud.automl.v1beta1.UndeployModelRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.UndeployModelRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.automl.v1beta1.UndeployModelRequest build() { @java.lang.Override public com.google.cloud.automl.v1beta1.UndeployModelRequest buildPartial() { - com.google.cloud.automl.v1beta1.UndeployModelRequest result = new com.google.cloud.automl.v1beta1.UndeployModelRequest(this); + com.google.cloud.automl.v1beta1.UndeployModelRequest result = + new com.google.cloud.automl.v1beta1.UndeployModelRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.automl.v1beta1.UndeployModelRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.UndeployModelRequest) { - return mergeFrom((com.google.cloud.automl.v1beta1.UndeployModelRequest)other); + return mergeFrom((com.google.cloud.automl.v1beta1.UndeployModelRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.UndeployModelRequest other) { - if (other == com.google.cloud.automl.v1beta1.UndeployModelRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.UndeployModelRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.UndeployModelRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.UndeployModelRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the model to undeploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +508,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model to undeploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +532,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the model to undeploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to undeploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the model to undeploy.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.UndeployModelRequest) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.UndeployModelRequest) private static final com.google.cloud.automl.v1beta1.UndeployModelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.UndeployModelRequest(); } @@ -564,16 +623,16 @@ public static com.google.cloud.automl.v1beta1.UndeployModelRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeployModelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UndeployModelRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeployModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeployModelRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.UndeployModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java new file mode 100644 index 000000000..6ae823272 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface UndeployModelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UndeployModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the model to undeploy.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the model to undeploy.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java index c4a68d0d9..78846e10a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use UpdateColumnSpecRequest.newBuilder() to construct. private UpdateColumnSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateColumnSpecRequest() { - } + + private UpdateColumnSpecRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateColumnSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateColumnSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,84 @@ private UpdateColumnSpecRequest( 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(); - } + 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; } + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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_; /** + * + * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the columnSpec field is set. */ @java.lang.Override @@ -125,23 +153,34 @@ public boolean hasColumnSpec() { return columnSpec_ != null; } /** + * + * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The columnSpec. */ @java.lang.Override public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec() { - return columnSpec_ == null ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() : columnSpec_; + return columnSpec_ == null + ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() + : columnSpec_; } /** + * + * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilder() { @@ -151,11 +190,14 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -163,11 +205,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -175,6 +220,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The update mask applies to the resource.
    * 
@@ -187,6 +234,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +246,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (columnSpec_ != null) { output.writeMessage(1, getColumnSpec()); } @@ -216,12 +263,10 @@ public int getSerializedSize() { size = 0; if (columnSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getColumnSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColumnSpec()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +276,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getColumnSpec().equals(other.getColumnSpec())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +317,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.class, + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.newBuilder() @@ -391,16 +445,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +473,9 @@ public Builder clear() { } @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; + 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 @@ -441,7 +494,8 @@ public com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest build() { @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); + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest result = + new com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest(this); if (columnSpecBuilder_ == null) { result.columnSpec_ = columnSpec_; } else { @@ -460,38 +514,39 @@ public com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) other); } else { super.mergeFrom(other); return this; @@ -499,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest other) { - if (other == com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.getDefaultInstance()) + return this; if (other.hasColumnSpec()) { mergeColumnSpec(other.getColumnSpec()); } @@ -525,7 +581,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,39 +594,58 @@ public Builder mergeFrom( 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_; + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + columnSpecBuilder_; /** + * + * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the columnSpec field is set. */ public boolean hasColumnSpec() { return columnSpecBuilder_ != null || columnSpec_ != null; } /** + * + * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The columnSpec. */ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec() { if (columnSpecBuilder_ == null) { - return columnSpec_ == null ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() : columnSpec_; + return columnSpec_ == null + ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() + : columnSpec_; } else { return columnSpecBuilder_.getMessage(); } } /** + * + * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec value) { if (columnSpecBuilder_ == null) { @@ -585,11 +661,15 @@ public Builder setColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec value) { return this; } /** + * + * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setColumnSpec( com.google.cloud.automl.v1beta1.ColumnSpec.Builder builderForValue) { @@ -603,17 +683,23 @@ public Builder setColumnSpec( return this; } /** + * + * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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(); + com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder(columnSpec_) + .mergeFrom(value) + .buildPartial(); } else { columnSpec_ = value; } @@ -625,11 +711,15 @@ public Builder mergeColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec value) return this; } /** + * + * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearColumnSpec() { if (columnSpecBuilder_ == null) { @@ -643,48 +733,64 @@ public Builder clearColumnSpec() { return this; } /** + * + * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.ColumnSpec.Builder getColumnSpecBuilder() { - + onChanged(); return getColumnSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; + return columnSpec_ == null + ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() + : columnSpec_; } } /** + * + * *
      * Required. The column spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ColumnSpec, com.google.cloud.automl.v1beta1.ColumnSpec.Builder, com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + 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()); + 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_; @@ -692,34 +798,47 @@ public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilde 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -740,14 +859,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -758,6 +878,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -768,7 +890,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -780,6 +902,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -798,6 +922,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -805,11 +931,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -820,11 +948,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -832,21 +963,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,12 +990,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -870,16 +1004,16 @@ public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest getDefault 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); - } - }; + 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; @@ -894,6 +1028,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java index ce8887f9f..1b174356b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java @@ -1,58 +1,96 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +public interface UpdateColumnSpecRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UpdateColumnSpecRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the columnSpec field is set. */ boolean hasColumnSpec(); /** + * + * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The columnSpec. */ com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec(); /** + * + * *
    * Required. The column spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilder(); /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The update mask applies to the resource.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java index e17b490c8..048237470 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use UpdateDatasetRequest.newBuilder() to construct. private UpdateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateDatasetRequest() { - } + + private UpdateDatasetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,84 @@ private UpdateDatasetRequest( 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(); - } + 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; } + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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_; /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ @java.lang.Override @@ -125,23 +153,34 @@ public boolean hasDataset() { return dataset_ != null; } /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ @java.lang.Override public com.google.cloud.automl.v1beta1.Dataset getDataset() { - return dataset_ == null ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() + : dataset_; } /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { @@ -151,11 +190,14 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -163,11 +205,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -175,6 +220,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The update mask applies to the resource.
    * 
@@ -187,6 +234,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +246,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dataset_ != null) { output.writeMessage(1, getDataset()); } @@ -216,12 +263,10 @@ public int getSerializedSize() { size = 0; if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataset()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +276,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getDataset().equals(other.getDataset())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +317,126 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.UpdateDatasetRequest.class, + com.google.cloud.automl.v1beta1.UpdateDatasetRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.UpdateDatasetRequest.newBuilder() @@ -391,16 +444,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +472,9 @@ public Builder clear() { } @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; + 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 @@ -441,7 +493,8 @@ public com.google.cloud.automl.v1beta1.UpdateDatasetRequest build() { @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); + com.google.cloud.automl.v1beta1.UpdateDatasetRequest result = + new com.google.cloud.automl.v1beta1.UpdateDatasetRequest(this); if (datasetBuilder_ == null) { result.dataset_ = dataset_; } else { @@ -460,38 +513,39 @@ public com.google.cloud.automl.v1beta1.UpdateDatasetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.UpdateDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -499,7 +553,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.UpdateDatasetRequest other) { - if (other == com.google.cloud.automl.v1beta1.UpdateDatasetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.UpdateDatasetRequest.getDefaultInstance()) + return this; if (other.hasDataset()) { mergeDataset(other.getDataset()); } @@ -525,7 +580,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.UpdateDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.UpdateDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,39 +593,58 @@ public Builder mergeFrom( 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_; + com.google.cloud.automl.v1beta1.Dataset, + com.google.cloud.automl.v1beta1.Dataset.Builder, + com.google.cloud.automl.v1beta1.DatasetOrBuilder> + datasetBuilder_; /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ public boolean hasDataset() { return datasetBuilder_ != null || dataset_ != null; } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ public com.google.cloud.automl.v1beta1.Dataset getDataset() { if (datasetBuilder_ == null) { - return dataset_ == null ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() + : dataset_; } else { return datasetBuilder_.getMessage(); } } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset value) { if (datasetBuilder_ == null) { @@ -585,14 +660,17 @@ public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset value) { return this; } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDataset( - com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { + public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); onChanged(); @@ -603,17 +681,23 @@ public Builder setDataset( return this; } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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(); + com.google.cloud.automl.v1beta1.Dataset.newBuilder(dataset_) + .mergeFrom(value) + .buildPartial(); } else { dataset_ = value; } @@ -625,11 +709,15 @@ public Builder mergeDataset(com.google.cloud.automl.v1beta1.Dataset value) { return this; } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -643,48 +731,64 @@ public Builder clearDataset() { return this; } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.Dataset.Builder getDatasetBuilder() { - + onChanged(); return getDatasetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; + return dataset_ == null + ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() + : dataset_; } } /** + * + * *
      * Required. The dataset which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.Dataset, com.google.cloud.automl.v1beta1.Dataset.Builder, com.google.cloud.automl.v1beta1.DatasetOrBuilder> + 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()); + 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_; @@ -692,34 +796,47 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -740,14 +857,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -758,6 +876,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -768,7 +888,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -780,6 +900,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -798,6 +920,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -805,11 +929,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -820,11 +946,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -832,21 +961,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,12 +988,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -870,16 +1002,16 @@ public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest getDefaultIns 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); - } - }; + 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; @@ -894,6 +1026,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.UpdateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java index 7f490fe6d..9919af6b5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java @@ -1,58 +1,96 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +public interface UpdateDatasetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UpdateDatasetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ boolean hasDataset(); /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ com.google.cloud.automl.v1beta1.Dataset getDataset(); /** + * + * *
    * Required. The dataset which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The update mask applies to the resource.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java index 4e30b0bb4..6ed58d144 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +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; + private static final long serialVersionUID = 0L; // Use UpdateTableSpecRequest.newBuilder() to construct. private UpdateTableSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateTableSpecRequest() { - } + + private UpdateTableSpecRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateTableSpecRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateTableSpecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,84 @@ private UpdateTableSpecRequest( 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(); - } + 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; } + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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_; /** + * + * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tableSpec field is set. */ @java.lang.Override @@ -125,23 +153,34 @@ public boolean hasTableSpec() { return tableSpec_ != null; } /** + * + * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tableSpec. */ @java.lang.Override public com.google.cloud.automl.v1beta1.TableSpec getTableSpec() { - return tableSpec_ == null ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() : tableSpec_; + return tableSpec_ == null + ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() + : tableSpec_; } /** + * + * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder() { @@ -151,11 +190,14 @@ public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -163,11 +205,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -175,6 +220,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The update mask applies to the resource.
    * 
@@ -187,6 +234,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +246,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tableSpec_ != null) { output.writeMessage(1, getTableSpec()); } @@ -216,12 +263,10 @@ public int getSerializedSize() { size = 0; if (tableSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTableSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTableSpec()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +276,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getTableSpec().equals(other.getTableSpec())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +317,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.class, + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.newBuilder() @@ -391,16 +445,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +473,9 @@ public Builder clear() { } @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; + 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 @@ -441,7 +494,8 @@ public com.google.cloud.automl.v1beta1.UpdateTableSpecRequest build() { @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); + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest result = + new com.google.cloud.automl.v1beta1.UpdateTableSpecRequest(this); if (tableSpecBuilder_ == null) { result.tableSpec_ = tableSpec_; } else { @@ -460,38 +514,39 @@ public com.google.cloud.automl.v1beta1.UpdateTableSpecRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) other); } else { super.mergeFrom(other); return this; @@ -499,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest other) { - if (other == com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.getDefaultInstance()) + return this; if (other.hasTableSpec()) { mergeTableSpec(other.getTableSpec()); } @@ -525,7 +581,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,39 +594,58 @@ public Builder mergeFrom( 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_; + com.google.cloud.automl.v1beta1.TableSpec, + com.google.cloud.automl.v1beta1.TableSpec.Builder, + com.google.cloud.automl.v1beta1.TableSpecOrBuilder> + tableSpecBuilder_; /** + * + * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tableSpec field is set. */ public boolean hasTableSpec() { return tableSpecBuilder_ != null || tableSpec_ != null; } /** + * + * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tableSpec. */ public com.google.cloud.automl.v1beta1.TableSpec getTableSpec() { if (tableSpecBuilder_ == null) { - return tableSpec_ == null ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() : tableSpec_; + return tableSpec_ == null + ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() + : tableSpec_; } else { return tableSpecBuilder_.getMessage(); } } /** + * + * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTableSpec(com.google.cloud.automl.v1beta1.TableSpec value) { if (tableSpecBuilder_ == null) { @@ -585,14 +661,17 @@ public Builder setTableSpec(com.google.cloud.automl.v1beta1.TableSpec value) { return this; } /** + * + * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTableSpec( - com.google.cloud.automl.v1beta1.TableSpec.Builder builderForValue) { + public Builder setTableSpec(com.google.cloud.automl.v1beta1.TableSpec.Builder builderForValue) { if (tableSpecBuilder_ == null) { tableSpec_ = builderForValue.build(); onChanged(); @@ -603,17 +682,23 @@ public Builder setTableSpec( return this; } /** + * + * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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(); + com.google.cloud.automl.v1beta1.TableSpec.newBuilder(tableSpec_) + .mergeFrom(value) + .buildPartial(); } else { tableSpec_ = value; } @@ -625,11 +710,15 @@ public Builder mergeTableSpec(com.google.cloud.automl.v1beta1.TableSpec value) { return this; } /** + * + * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTableSpec() { if (tableSpecBuilder_ == null) { @@ -643,48 +732,64 @@ public Builder clearTableSpec() { return this; } /** + * + * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.automl.v1beta1.TableSpec.Builder getTableSpecBuilder() { - + onChanged(); return getTableSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; + return tableSpec_ == null + ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() + : tableSpec_; } } /** + * + * *
      * Required. The table spec which replaces the resource on the server.
      * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TableSpec, com.google.cloud.automl.v1beta1.TableSpec.Builder, com.google.cloud.automl.v1beta1.TableSpecOrBuilder> + 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()); + 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_; @@ -692,34 +797,47 @@ public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder( 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -740,14 +858,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -758,6 +877,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -768,7 +889,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -780,6 +901,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -798,6 +921,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -805,11 +930,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -820,11 +947,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The update mask applies to the resource.
      * 
@@ -832,21 +962,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,12 +989,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -870,16 +1003,16 @@ public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest getDefaultI 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); - } - }; + 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; @@ -894,6 +1027,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.automl.v1beta1.UpdateTableSpecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java index 313ffb666..bd28582e1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java @@ -1,58 +1,96 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 +public interface UpdateTableSpecRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UpdateTableSpecRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tableSpec field is set. */ boolean hasTableSpec(); /** + * + * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tableSpec. */ com.google.cloud.automl.v1beta1.TableSpec getTableSpec(); /** + * + * *
    * Required. The table spec which replaces the resource on the server.
    * 
* - * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder(); /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The update mask applies to the resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The update mask applies to the resource.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java index 1f7d9930c..c238cd3c4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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.
@@ -11,30 +28,30 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata}
  */
-public final class VideoClassificationDatasetMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+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;
+  private static final long serialVersionUID = 0L;
   // Use VideoClassificationDatasetMetadata.newBuilder() to construct.
-  private VideoClassificationDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private VideoClassificationDatasetMetadata(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private VideoClassificationDatasetMetadata() {
-  }
+
+  private VideoClassificationDatasetMetadata() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VideoClassificationDatasetMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private VideoClassificationDatasetMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,39 +70,42 @@ private VideoClassificationDatasetMetadata(
           case 0:
             done = true;
             break;
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      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;
+
+  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
+    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);
+            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;
@@ -97,8 +117,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     unknownFields.writeTo(output);
   }
 
@@ -116,12 +135,13 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      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;
+    com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata other =
+        (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) obj;
 
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -140,96 +160,105 @@ public int hashCode() {
   }
 
   public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      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)
+      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 {
+
+  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)
+      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) 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)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    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) 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
+      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);
+      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);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata prototype) {
+
+  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);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  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.
@@ -237,38 +266,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  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;
+    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
+      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);
+              com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.class,
+              com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder.class);
     }
 
-    // Construct using com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.newBuilder()
+    // Construct using
+    // com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -276,14 +307,16 @@ public Builder clear() {
     }
 
     @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;
+    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();
+    public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata
+        getDefaultInstanceForType() {
+      return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -297,7 +330,8 @@ public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata build(
 
     @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);
+      com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata result =
+          new com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata(this);
       onBuilt();
       return result;
     }
@@ -306,46 +340,51 @@ public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata buildP
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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);
+        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;
+    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;
@@ -365,7 +404,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -374,9 +415,9 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -386,30 +427,32 @@ public final Builder mergeUnknownFields(
       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;
+  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() {
+  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);
-    }
-  };
+  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;
@@ -421,9 +464,8 @@ public com.google.protobuf.Parser getParserF
   }
 
   @java.lang.Override
-  public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata getDefaultInstanceForType() {
+  public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java
new file mode 100644
index 000000000..61778ba6a
--- /dev/null
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
+// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java
similarity index 61%
rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java
rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java
index 289e6d104..07955ce65 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java
+++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java
@@ -1,39 +1,56 @@
+/*
+ * Copyright 2020 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
+ *
+ *     https://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.
+ */
 // 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 +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; + private static final long serialVersionUID = 0L; // Use VideoClassificationModelMetadata.newBuilder() to construct. - private VideoClassificationModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private VideoClassificationModelMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VideoClassificationModelMetadata() { - } + + private VideoClassificationModelMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VideoClassificationModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VideoClassificationModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,42 @@ private VideoClassificationModelMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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; + + 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 + 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); + 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; @@ -96,8 +116,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +134,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata other = + (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +159,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata prototype) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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; + 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 + 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); + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.class, + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.newBuilder() @@ -257,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,13 +303,14 @@ public Builder clear() { } @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; + 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() { + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } @@ -295,7 +325,8 @@ public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata build() @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); + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata result = + new com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata(this); onBuilt(); return result; } @@ -304,46 +335,50 @@ public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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; @@ -363,7 +398,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +409,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,30 +421,32 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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); - } - }; + 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; @@ -419,9 +458,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java new file mode 100644 index 000000000..7de1b00d2 --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java index 897d5dc2f..23ca35252 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 video object tracking.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation} */ -public final class VideoObjectTrackingAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VideoObjectTrackingAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) VideoObjectTrackingAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VideoObjectTrackingAnnotation.newBuilder() to construct. private VideoObjectTrackingAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VideoObjectTrackingAnnotation() { instanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VideoObjectTrackingAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VideoObjectTrackingAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,78 +70,88 @@ private VideoObjectTrackingAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - instanceId_ = s; - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeOffset_ != null) { - subBuilder = timeOffset_.toBuilder(); + instanceId_ = s; + break; } - timeOffset_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeOffset_); - timeOffset_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + 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 26: { - com.google.cloud.automl.v1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.automl.v1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 37: + { + score_ = input.readFloat(); + break; } - - break; - } - case 37: { - - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_VideoObjectTrackingAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.class, + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** + * + * *
    * Optional. The instance of the object, expressed as a positive integer. Used to tell
    * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -136,6 +163,7 @@ private VideoObjectTrackingAnnotation(
    * 
* * string instance_id = 1; + * * @return The instanceId. */ @java.lang.Override @@ -144,14 +172,15 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** + * + * *
    * Optional. The instance of the object, expressed as a positive integer. Used to tell
    * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -163,16 +192,15 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 1; + * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceId_ = b; return b; } else { @@ -183,12 +211,15 @@ public java.lang.String getInstanceId() { public static final int TIME_OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Duration timeOffset_; /** + * + * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
    * 
* * .google.protobuf.Duration time_offset = 2; + * * @return Whether the timeOffset field is set. */ @java.lang.Override @@ -196,12 +227,15 @@ public boolean hasTimeOffset() { return timeOffset_ != null; } /** + * + * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
    * 
* * .google.protobuf.Duration time_offset = 2; + * * @return The timeOffset. */ @java.lang.Override @@ -209,6 +243,8 @@ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; } /** + * + * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
@@ -224,12 +260,15 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
   public static final int BOUNDING_BOX_FIELD_NUMBER = 3;
   private com.google.cloud.automl.v1beta1.BoundingPoly boundingBox_;
   /**
+   *
+   *
    * 
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -237,19 +276,26 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
@@ -265,6 +311,8 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui
   public static final int SCORE_FIELD_NUMBER = 4;
   private float score_;
   /**
+   *
+   *
    * 
    * Output only. The confidence that this annotation is positive for the video at
    * the time_offset, value in [0, 1], higher means higher positivity
@@ -274,6 +322,7 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui
    * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -282,6 +331,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +343,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } @@ -320,16 +369,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_); } if (timeOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTimeOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeOffset()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoundingBox()); } if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -339,28 +385,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation other = (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) obj; + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation other = + (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) obj; - if (!getInstanceId() - .equals(other.getInstanceId())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; if (hasTimeOffset() != other.hasTimeOffset()) return false; if (hasTimeOffset()) { - if (!getTimeOffset() - .equals(other.getTimeOffset())) return false; + if (!getTimeOffset().equals(other.getTimeOffset())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -383,125 +426,134 @@ public int hashCode() { hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.VideoObjectTrackingAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation 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.VideoObjectTrackingAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Annotation details for video object tracking.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.class, + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.newBuilder() @@ -509,16 +561,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -542,13 +593,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } @@ -563,7 +615,8 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation build() { @java.lang.Override public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation buildPartial() { - com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation result = new com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation(this); + com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation result = + new com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation(this); result.instanceId_ = instanceId_; if (timeOffsetBuilder_ == null) { result.timeOffset_ = timeOffset_; @@ -584,38 +637,39 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.VideoObjectTrackingAnnotation) { - return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation)other); + return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) other); } else { super.mergeFrom(other); return this; @@ -623,7 +677,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation other) { - if (other == com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance()) return this; + if (other + == com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance()) + return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); @@ -656,7 +712,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -668,6 +726,8 @@ public Builder mergeFrom( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Optional. The instance of the object, expressed as a positive integer. Used to tell
      * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -679,13 +739,13 @@ public Builder mergeFrom(
      * 
* * string instance_id = 1; + * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -694,6 +754,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Optional. The instance of the object, expressed as a positive integer. Used to tell
      * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -705,15 +767,14 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 1; + * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceId_ = b; return b; } else { @@ -721,6 +782,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Optional. The instance of the object, expressed as a positive integer. Used to tell
      * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -732,20 +795,22 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 1; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The instance of the object, expressed as a positive integer. Used to tell
      * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -757,15 +822,18 @@ public Builder setInstanceId(
      * 
* * string instance_id = 1; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Optional. The instance of the object, expressed as a positive integer. Used to tell
      * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -777,16 +845,16 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 1; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -794,36 +862,49 @@ public Builder setInstanceIdBytes( private com.google.protobuf.Duration timeOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeOffsetBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeOffsetBuilder_; /** + * + * *
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
      * 
* * .google.protobuf.Duration time_offset = 2; + * * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; } /** + * + * *
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
      * 
* * .google.protobuf.Duration time_offset = 2; + * * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { - return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; } else { return timeOffsetBuilder_.getMessage(); } } /** + * + * *
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -845,6 +926,8 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -852,8 +935,7 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration time_offset = 2;
      */
-    public Builder setTimeOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (timeOffsetBuilder_ == null) {
         timeOffset_ = builderForValue.build();
         onChanged();
@@ -864,6 +946,8 @@ public Builder setTimeOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -875,7 +959,7 @@ public Builder mergeTimeOffset(com.google.protobuf.Duration value) {
       if (timeOffsetBuilder_ == null) {
         if (timeOffset_ != null) {
           timeOffset_ =
-            com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial();
         } else {
           timeOffset_ = value;
         }
@@ -887,6 +971,8 @@ public Builder mergeTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -906,6 +992,8 @@ public Builder clearTimeOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -914,11 +1002,13 @@ public Builder clearTimeOffset() {
      * .google.protobuf.Duration time_offset = 2;
      */
     public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() {
-      
+
       onChanged();
       return getTimeOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -930,11 +1020,14 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
       if (timeOffsetBuilder_ != null) {
         return timeOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return timeOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : timeOffset_;
+        return timeOffset_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : timeOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. A time (frame) of a video to which this annotation pertains.
      * Represented as the duration since the video's start.
@@ -943,14 +1036,17 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
      * .google.protobuf.Duration time_offset = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTimeOffsetFieldBuilder() {
       if (timeOffsetBuilder_ == null) {
-        timeOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTimeOffset(),
-                getParentForChildren(),
-                isClean());
+        timeOffsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTimeOffset(), getParentForChildren(), isClean());
         timeOffset_ = null;
       }
       return timeOffsetBuilder_;
@@ -958,36 +1054,49 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
 
     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_;
+            com.google.cloud.automl.v1beta1.BoundingPoly,
+            com.google.cloud.automl.v1beta1.BoundingPoly.Builder,
+            com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder>
+        boundingBoxBuilder_;
     /**
+     *
+     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
      * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; + * * @return The boundingBox. */ public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1009,6 +1118,8 @@ public Builder setBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly value
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1028,6 +1139,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1039,7 +1152,9 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly val
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1051,6 +1166,8 @@ public Builder mergeBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1070,6 +1187,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1078,11 +1197,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3;
      */
     public com.google.cloud.automl.v1beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1094,11 +1215,14 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. The rectangle representing the object location on the frame (i.e.
      * at the time_offset of the video).
@@ -1107,21 +1231,26 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui
      * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.automl.v1beta1.BoundingPoly, com.google.cloud.automl.v1beta1.BoundingPoly.Builder, com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder> 
+            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());
+        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_ ;
+    private float score_;
     /**
+     *
+     *
      * 
      * Output only. The confidence that this annotation is positive for the video at
      * the time_offset, value in [0, 1], higher means higher positivity
@@ -1131,6 +1260,7 @@ public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBui
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1138,6 +1268,8 @@ public float getScore() { return score_; } /** + * + * *
      * Output only. The confidence that this annotation is positive for the video at
      * the time_offset, value in [0, 1], higher means higher positivity
@@ -1147,16 +1279,19 @@ public float getScore() {
      * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The confidence that this annotation is positive for the video at
      * the time_offset, value in [0, 1], higher means higher positivity
@@ -1166,17 +1301,18 @@ public Builder setScore(float value) {
      * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1186,12 +1322,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) - private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation(); } @@ -1200,16 +1337,16 @@ public static com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoObjectTrackingAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoObjectTrackingAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoObjectTrackingAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoObjectTrackingAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1224,6 +1361,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java index 0ecdb3404..2547cb92d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/detection.proto package com.google.cloud.automl.v1beta1; -public interface VideoObjectTrackingAnnotationOrBuilder extends +public interface VideoObjectTrackingAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The instance of the object, expressed as a positive integer. Used to tell
    * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -19,10 +37,13 @@ public interface VideoObjectTrackingAnnotationOrBuilder extends
    * 
* * string instance_id = 1; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Optional. The instance of the object, expressed as a positive integer. Used to tell
    * apart objects of the same type (i.e. AnnotationSpec) when multiple are
@@ -34,32 +55,40 @@ public interface VideoObjectTrackingAnnotationOrBuilder extends
    * 
* * string instance_id = 1; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); /** + * + * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
    * 
* * .google.protobuf.Duration time_offset = 2; + * * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** + * + * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
    * 
* * .google.protobuf.Duration time_offset = 2; + * * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** + * + * *
    * Required. A time (frame) of a video to which this annotation pertains.
    * Represented as the duration since the video's start.
@@ -70,26 +99,34 @@ public interface VideoObjectTrackingAnnotationOrBuilder extends
   com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
    * 
* * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; + * * @return The boundingBox. */ com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * Required. The rectangle representing the object location on the frame (i.e.
    * at the time_offset of the video).
@@ -100,6 +137,8 @@ public interface VideoObjectTrackingAnnotationOrBuilder extends
   com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The confidence that this annotation is positive for the video at
    * the time_offset, value in [0, 1], higher means higher positivity
@@ -109,6 +148,7 @@ public interface VideoObjectTrackingAnnotationOrBuilder extends
    * 
* * float score = 4; + * * @return The score. */ float getScore(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java index dbc16ad6c..573e718fb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadata.java @@ -1,39 +1,56 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 object tracking.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata} */ -public final class VideoObjectTrackingDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VideoObjectTrackingDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) VideoObjectTrackingDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VideoObjectTrackingDatasetMetadata.newBuilder() to construct. - private VideoObjectTrackingDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private VideoObjectTrackingDatasetMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VideoObjectTrackingDatasetMetadata() { - } + + private VideoObjectTrackingDatasetMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VideoObjectTrackingDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VideoObjectTrackingDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,42 @@ private VideoObjectTrackingDatasetMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_VideoObjectTrackingDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.class, + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +116,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +134,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata other = (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) obj; + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata other = + (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,134 +159,145 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.VideoObjectTrackingDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata 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.VideoObjectTrackingDatasetMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata 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.VideoObjectTrackingDatasetMetadata + 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.VideoObjectTrackingDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Dataset metadata specific to video object tracking.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.class, + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.Builder.class); } - // Construct using com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.newBuilder() + // Construct using + // com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,14 +305,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance(); + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + .getDefaultInstance(); } @java.lang.Override @@ -295,7 +328,8 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata build( @java.lang.Override public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata buildPartial() { - com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata result = new com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata(this); + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata result = + new com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata(this); onBuilt(); return result; } @@ -304,46 +338,51 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.VideoObjectTrackingDatasetMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata)other); + return mergeFrom( + (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata other) { - if (other == com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + .getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +402,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +413,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,30 +425,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) - private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata(); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoObjectTrackingDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoObjectTrackingDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoObjectTrackingDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoObjectTrackingDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -419,9 +462,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java new file mode 100644 index 000000000..f9075c2fe --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingDatasetMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/video.proto + +package com.google.cloud.automl.v1beta1; + +public interface VideoObjectTrackingDatasetMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java index 143b0e480..0c76f6d41 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetrics.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 video object tracking problems.
  * Evaluates prediction quality of both labeled bounding boxes and labeled
@@ -12,31 +29,33 @@
  *
  * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics}
  */
-public final class VideoObjectTrackingEvaluationMetrics extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VideoObjectTrackingEvaluationMetrics
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)
     VideoObjectTrackingEvaluationMetricsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VideoObjectTrackingEvaluationMetrics.newBuilder() to construct.
-  private VideoObjectTrackingEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private VideoObjectTrackingEvaluationMetrics(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VideoObjectTrackingEvaluationMetrics() {
     boundingBoxMetricsEntries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VideoObjectTrackingEvaluationMetrics();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private VideoObjectTrackingEvaluationMetrics(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,73 +75,84 @@ private VideoObjectTrackingEvaluationMetrics(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            evaluatedFrameCount_ = input.readInt32();
-            break;
-          }
-          case 16: {
-
-            evaluatedBoundingBoxCount_ = input.readInt32();
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              boundingBoxMetricsEntries_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 8:
+            {
+              evaluatedFrameCount_ = input.readInt32();
+              break;
             }
-            boundingBoxMetricsEntries_.add(
-                input.readMessage(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.parser(), extensionRegistry));
-            break;
-          }
-          case 53: {
-
-            boundingBoxMeanAveragePrecision_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 16:
+            {
+              evaluatedBoundingBoxCount_ = input.readInt32();
+              break;
+            }
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                boundingBoxMetricsEntries_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              boundingBoxMetricsEntries_.add(
+                  input.readMessage(
+                      com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 53:
+            {
+              boundingBoxMeanAveragePrecision_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        boundingBoxMetricsEntries_ = java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+        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_VideoObjectTrackingEvaluationMetrics_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.automl.v1beta1.Detection
+        .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable
+    return com.google.cloud.automl.v1beta1.Detection
+        .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder.class);
+            com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.class,
+            com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder.class);
   }
 
   public static final int EVALUATED_FRAME_COUNT_FIELD_NUMBER = 1;
   private int evaluatedFrameCount_;
   /**
+   *
+   *
    * 
    * Output only. The number of video frames used to create this evaluation.
    * 
* * int32 evaluated_frame_count = 1; + * * @return The evaluatedFrameCount. */ @java.lang.Override @@ -133,12 +163,15 @@ public int getEvaluatedFrameCount() { public static final int EVALUATED_BOUNDING_BOX_COUNT_FIELD_NUMBER = 2; private int evaluatedBoundingBoxCount_; /** + * + * *
    * Output only. The total number of bounding boxes (i.e. summed over all
    * frames) the ground truth used to create this evaluation had.
    * 
* * int32 evaluated_bounding_box_count = 2; + * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -147,8 +180,11 @@ public int getEvaluatedBoundingBoxCount() { } public static final int BOUNDING_BOX_METRICS_ENTRIES_FIELD_NUMBER = 4; - private java.util.List boundingBoxMetricsEntries_; + 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
@@ -156,13 +192,18 @@ public int getEvaluatedBoundingBoxCount() {
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ @java.lang.Override - public java.util.List getBoundingBoxMetricsEntriesList() { + 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
@@ -170,14 +211,18 @@ public java.util.List g
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ @java.lang.Override - public java.util.List + 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
@@ -185,13 +230,17 @@ public java.util.List g
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ @java.lang.Override 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
@@ -199,13 +248,18 @@ public int getBoundingBoxMetricsEntriesCount() {
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index) { + 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
@@ -213,23 +267,28 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ @java.lang.Override - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( - int index) { + 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 = 6; 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 = 6; + * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -238,6 +297,7 @@ public float getBoundingBoxMeanAveragePrecision() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (evaluatedFrameCount_ != 0) { output.writeInt32(1, evaluatedFrameCount_); } @@ -273,20 +332,20 @@ public int getSerializedSize() { size = 0; if (evaluatedFrameCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, evaluatedFrameCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, evaluatedFrameCount_); } if (evaluatedBoundingBoxCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, evaluatedBoundingBoxCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, evaluatedBoundingBoxCount_); } for (int i = 0; i < boundingBoxMetricsEntries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, boundingBoxMetricsEntries_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, boundingBoxMetricsEntries_.get(i)); } if (boundingBoxMeanAveragePrecision_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, boundingBoxMeanAveragePrecision_); + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 6, boundingBoxMeanAveragePrecision_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -296,22 +355,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics other = (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) obj; + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics other = + (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) obj; - if (getEvaluatedFrameCount() - != other.getEvaluatedFrameCount()) return false; - if (getEvaluatedBoundingBoxCount() - != other.getEvaluatedBoundingBoxCount()) return false; - if (!getBoundingBoxMetricsEntriesList() - .equals(other.getBoundingBoxMetricsEntriesList())) return false; + if (getEvaluatedFrameCount() != other.getEvaluatedFrameCount()) return false; + 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; + != java.lang.Float.floatToIntBits(other.getBoundingBoxMeanAveragePrecision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -332,104 +389,112 @@ public int hashCode() { hash = (53 * hash) + getBoundingBoxMetricsEntriesList().hashCode(); } hash = (37 * hash) + BOUNDING_BOX_MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoundingBoxMeanAveragePrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoundingBoxMeanAveragePrecision()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.VideoObjectTrackingEvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics 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.VideoObjectTrackingEvaluationMetrics parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics 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.VideoObjectTrackingEvaluationMetrics + 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.VideoObjectTrackingEvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model evaluation metrics for video object tracking problems.
    * Evaluates prediction quality of both labeled bounding boxes and labeled
@@ -438,39 +503,42 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)
       com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetricsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.automl.v1beta1.Detection
+          .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable
+      return com.google.cloud.automl.v1beta1.Detection
+          .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder.class);
+              com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.class,
+              com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.Builder.class);
     }
 
-    // Construct using com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.newBuilder()
+    // Construct using
+    // com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getBoundingBoxMetricsEntriesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -490,14 +558,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.automl.v1beta1.Detection.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.automl.v1beta1.Detection
+          .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingEvaluationMetrics_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getDefaultInstanceForType() {
-      return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance();
+    public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
+        getDefaultInstanceForType() {
+      return com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -511,13 +581,15 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics buil
 
     @java.lang.Override
     public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics buildPartial() {
-      com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics result = new com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics(this);
+      com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics result =
+          new com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics(this);
       int from_bitField0_ = bitField0_;
       result.evaluatedFrameCount_ = evaluatedFrameCount_;
       result.evaluatedBoundingBoxCount_ = evaluatedBoundingBoxCount_;
       if (boundingBoxMetricsEntriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          boundingBoxMetricsEntries_ = java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
+          boundingBoxMetricsEntries_ =
+              java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.boundingBoxMetricsEntries_ = boundingBoxMetricsEntries_;
@@ -533,46 +605,51 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics buil
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.VideoObjectTrackingEvaluationMetrics) {
-        return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)other);
+        return mergeFrom(
+            (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics other) {
-      if (other == com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics other) {
+      if (other
+          == com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
+              .getDefaultInstance()) return this;
       if (other.getEvaluatedFrameCount() != 0) {
         setEvaluatedFrameCount(other.getEvaluatedFrameCount());
       }
@@ -597,9 +674,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.VideoObjectTrackingEval
             boundingBoxMetricsEntriesBuilder_ = null;
             boundingBoxMetricsEntries_ = other.boundingBoxMetricsEntries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingBoxMetricsEntriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBoundingBoxMetricsEntriesFieldBuilder() : null;
+            boundingBoxMetricsEntriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBoundingBoxMetricsEntriesFieldBuilder()
+                    : null;
           } else {
             boundingBoxMetricsEntriesBuilder_.addAllMessages(other.boundingBoxMetricsEntries_);
           }
@@ -627,7 +705,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -636,15 +716,19 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private int evaluatedFrameCount_ ;
+    private int evaluatedFrameCount_;
     /**
+     *
+     *
      * 
      * Output only. The number of video frames used to create this evaluation.
      * 
* * int32 evaluated_frame_count = 1; + * * @return The evaluatedFrameCount. */ @java.lang.Override @@ -652,43 +736,52 @@ public int getEvaluatedFrameCount() { return evaluatedFrameCount_; } /** + * + * *
      * Output only. The number of video frames used to create this evaluation.
      * 
* * int32 evaluated_frame_count = 1; + * * @param value The evaluatedFrameCount to set. * @return This builder for chaining. */ public Builder setEvaluatedFrameCount(int value) { - + evaluatedFrameCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of video frames used to create this evaluation.
      * 
* * int32 evaluated_frame_count = 1; + * * @return This builder for chaining. */ public Builder clearEvaluatedFrameCount() { - + evaluatedFrameCount_ = 0; onChanged(); return this; } - private int evaluatedBoundingBoxCount_ ; + private int evaluatedBoundingBoxCount_; /** + * + * *
      * Output only. The total number of bounding boxes (i.e. summed over all
      * frames) the ground truth used to create this evaluation had.
      * 
* * int32 evaluated_bounding_box_count = 2; + * * @return The evaluatedBoundingBoxCount. */ @java.lang.Override @@ -696,50 +789,64 @@ public int getEvaluatedBoundingBoxCount() { return evaluatedBoundingBoxCount_; } /** + * + * *
      * Output only. The total number of bounding boxes (i.e. summed over all
      * frames) the ground truth used to create this evaluation had.
      * 
* * int32 evaluated_bounding_box_count = 2; + * * @param value The evaluatedBoundingBoxCount to set. * @return This builder for chaining. */ public Builder setEvaluatedBoundingBoxCount(int value) { - + evaluatedBoundingBoxCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The total number of bounding boxes (i.e. summed over all
      * frames) the ground truth used to create this evaluation had.
      * 
* * int32 evaluated_bounding_box_count = 2; + * * @return This builder for chaining. */ public Builder clearEvaluatedBoundingBoxCount() { - + evaluatedBoundingBoxCount_ = 0; onChanged(); return this; } - private java.util.List boundingBoxMetricsEntries_ = - java.util.Collections.emptyList(); + private java.util.List + boundingBoxMetricsEntries_ = java.util.Collections.emptyList(); + private void ensureBoundingBoxMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingBoxMetricsEntries_ = new java.util.ArrayList(boundingBoxMetricsEntries_); + boundingBoxMetricsEntries_ = + new java.util.ArrayList( + boundingBoxMetricsEntries_); bitField0_ |= 0x00000001; - } + } } 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_; + 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
@@ -747,9 +854,12 @@ private void ensureBoundingBoxMetricsEntriesIsMutable() {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - public java.util.List getBoundingBoxMetricsEntriesList() { + public java.util.List + getBoundingBoxMetricsEntriesList() { if (boundingBoxMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_); } else { @@ -757,6 +867,8 @@ public java.util.List g } } /** + * + * *
      * 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
@@ -764,7 +876,9 @@ public java.util.List g
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ public int getBoundingBoxMetricsEntriesCount() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -774,6 +888,8 @@ public 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
@@ -781,9 +897,12 @@ public int getBoundingBoxMetricsEntriesCount() {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( + int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { return boundingBoxMetricsEntries_.get(index); } else { @@ -791,6 +910,8 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet } } /** + * + * *
      * 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
@@ -798,7 +919,9 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMet
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ public Builder setBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { @@ -815,6 +938,8 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -822,10 +947,13 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ public Builder setBoundingBoxMetricsEntries( - int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); boundingBoxMetricsEntries_.set(index, builderForValue.build()); @@ -836,6 +964,8 @@ public Builder setBoundingBoxMetricsEntries( 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
@@ -843,9 +973,12 @@ public Builder setBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { + public Builder addBoundingBoxMetricsEntries( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { if (boundingBoxMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -859,6 +992,8 @@ public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1beta1.Boun 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
@@ -866,7 +1001,9 @@ public Builder addBoundingBoxMetricsEntries(com.google.cloud.automl.v1beta1.Boun
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ public Builder addBoundingBoxMetricsEntries( int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { @@ -883,6 +1020,8 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -890,7 +1029,9 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ public Builder addBoundingBoxMetricsEntries( com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { @@ -904,6 +1045,8 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -911,10 +1054,13 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ public Builder addBoundingBoxMetricsEntries( - int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); boundingBoxMetricsEntries_.add(index, builderForValue.build()); @@ -925,6 +1071,8 @@ public Builder addBoundingBoxMetricsEntries( 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
@@ -932,14 +1080,16 @@ public Builder addBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ public Builder addAllBoundingBoxMetricsEntries( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (boundingBoxMetricsEntriesBuilder_ == null) { ensureBoundingBoxMetricsEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, boundingBoxMetricsEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingBoxMetricsEntries_); onChanged(); } else { boundingBoxMetricsEntriesBuilder_.addAllMessages(values); @@ -947,6 +1097,8 @@ public Builder addAllBoundingBoxMetricsEntries( 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
@@ -954,7 +1106,9 @@ public Builder addAllBoundingBoxMetricsEntries(
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ public Builder clearBoundingBoxMetricsEntries() { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -967,6 +1121,8 @@ public Builder clearBoundingBoxMetricsEntries() { 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
@@ -974,7 +1130,9 @@ public Builder clearBoundingBoxMetricsEntries() {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ public Builder removeBoundingBoxMetricsEntries(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { @@ -987,6 +1145,8 @@ public Builder removeBoundingBoxMetricsEntries(int 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
@@ -994,13 +1154,17 @@ public Builder removeBoundingBoxMetricsEntries(int index) {
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder getBoundingBoxMetricsEntriesBuilder( - int index) { + 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
@@ -1008,16 +1172,21 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder getBoundi
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder + getBoundingBoxMetricsEntriesOrBuilder(int index) { if (boundingBoxMetricsEntriesBuilder_ == null) { - return boundingBoxMetricsEntries_.get(index); } else { + 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
@@ -1025,10 +1194,13 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBound
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - public java.util.List - getBoundingBoxMetricsEntriesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder> + getBoundingBoxMetricsEntriesOrBuilderList() { if (boundingBoxMetricsEntriesBuilder_ != null) { return boundingBoxMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1036,6 +1208,8 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBound } } /** + * + * *
      * 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
@@ -1043,13 +1217,18 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBound
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder addBoundingBoxMetricsEntriesBuilder() { - return getBoundingBoxMetricsEntriesFieldBuilder().addBuilder( - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance()); + 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
@@ -1057,14 +1236,19 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder addBoundi
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder addBoundingBoxMetricsEntriesBuilder( - int index) { - return getBoundingBoxMetricsEntriesFieldBuilder().addBuilder( - index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance()); + 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
@@ -1072,18 +1256,26 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder addBoundi
      * pair.
      * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - public java.util.List - getBoundingBoxMetricsEntriesBuilderList() { + 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> + 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>( + 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_ & 0x00000001) != 0), getParentForChildren(), @@ -1093,14 +1285,17 @@ public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder addBoundi return boundingBoxMetricsEntriesBuilder_; } - private float boundingBoxMeanAveragePrecision_ ; + 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 = 6; + * * @return The boundingBoxMeanAveragePrecision. */ @java.lang.Override @@ -1108,39 +1303,45 @@ 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 = 6; + * * @param value The boundingBoxMeanAveragePrecision to set. * @return This builder for chaining. */ 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 = 6; + * * @return This builder for chaining. */ public Builder clearBoundingBoxMeanAveragePrecision() { - + boundingBoxMeanAveragePrecision_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1150,30 +1351,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) - private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics(); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoObjectTrackingEvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoObjectTrackingEvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoObjectTrackingEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoObjectTrackingEvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,9 +1388,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java index 197bd3d86..92490f52c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingEvaluationMetricsOrBuilder.java @@ -1,34 +1,58 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/automl/v1beta1/detection.proto package com.google.cloud.automl.v1beta1; -public interface VideoObjectTrackingEvaluationMetricsOrBuilder extends +public interface VideoObjectTrackingEvaluationMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The number of video frames used to create this evaluation.
    * 
* * int32 evaluated_frame_count = 1; + * * @return The evaluatedFrameCount. */ int getEvaluatedFrameCount(); /** + * + * *
    * Output only. The total number of bounding boxes (i.e. summed over all
    * frames) the ground truth used to create this evaluation had.
    * 
* * int32 evaluated_bounding_box_count = 2; + * * @return The evaluatedBoundingBoxCount. */ 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
@@ -36,11 +60,15 @@ public interface VideoObjectTrackingEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - java.util.List + 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
@@ -48,10 +76,14 @@ public interface VideoObjectTrackingEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ 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
@@ -59,10 +91,14 @@ public interface VideoObjectTrackingEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ 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
@@ -70,11 +106,15 @@ public interface VideoObjectTrackingEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - java.util.List + 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
@@ -82,18 +122,23 @@ public interface VideoObjectTrackingEvaluationMetricsOrBuilder extends
    * pair.
    * 
* - * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4; + * */ - com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder( - int index); + 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 = 6; + * * @return The boundingBoxMeanAveragePrecision. */ float getBoundingBoxMeanAveragePrecision(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java rename to proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java index 8c5c72f70..a7c34adb2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadata.java @@ -1,39 +1,56 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ // 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 object tracking.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata} */ -public final class VideoObjectTrackingModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VideoObjectTrackingModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) VideoObjectTrackingModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VideoObjectTrackingModelMetadata.newBuilder() to construct. - private VideoObjectTrackingModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private VideoObjectTrackingModelMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VideoObjectTrackingModelMetadata() { - } + + private VideoObjectTrackingModelMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VideoObjectTrackingModelMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VideoObjectTrackingModelMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,42 @@ private VideoObjectTrackingModelMetadata( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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); + 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_VideoObjectTrackingModelMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.class, + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +116,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +134,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata)) { return super.equals(obj); } - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata other = (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) obj; + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata other = + (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -139,117 +159,127 @@ public int hashCode() { } public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.VideoObjectTrackingModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata 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.VideoObjectTrackingModelMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model metadata specific to video object tracking.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.class, com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder.class); + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.class, + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.Builder.class); } // Construct using com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.newBuilder() @@ -257,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,13 +303,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.automl.v1beta1.VideoProto.internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance(); } @@ -295,7 +325,8 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata build() @java.lang.Override public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata buildPartial() { - com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata result = new com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata(this); + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata result = + new com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata(this); onBuilt(); return result; } @@ -304,46 +335,50 @@ public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.VideoObjectTrackingModelMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata)other); + return mergeFrom((com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata other) { - if (other == com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -363,7 +398,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -372,9 +409,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,30 +421,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) - private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata(); } - public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getDefaultInstance() { + public static com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoObjectTrackingModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoObjectTrackingModelMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoObjectTrackingModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoObjectTrackingModelMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -419,9 +458,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata getDefaultInstanceForType() { + public com.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java new file mode 100644 index 000000000..c0eb46acb --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoObjectTrackingModelMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/video.proto + +package com.google.cloud.automl.v1beta1; + +public interface VideoObjectTrackingModelMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java new file mode 100644 index 000000000..5148ea56c --- /dev/null +++ b/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java @@ -0,0 +1,105 @@ +/* + * Copyright 2020 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 + * + * https://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. + */ +// 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_VideoObjectTrackingDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_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\0320google/c" + + "loud/automl/v1beta1/classification.proto" + + "\032\034google/api/annotations.proto\"$\n\"VideoC" + + "lassificationDatasetMetadata\"$\n\"VideoObj" + + "ectTrackingDatasetMetadata\"\"\n VideoClass" + + "ificationModelMetadata\"\"\n VideoObjectTra" + + "ckingModelMetadataB\261\001\n\037com.google.cloud." + + "automl.v1beta1B\nVideoProtoP\001ZAgoogle.gol" + + "ang.org/genproto/googleapis/cloud/automl" + + "/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1" + + "beta1\352\002\036Google::Cloud::AutoML::V1beta1b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + 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_VideoObjectTrackingDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingDatasetMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + 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[] {}); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoObjectTrackingModelMetadata_descriptor, + new java.lang.String[] {}); + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_spec.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_spec.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_spec.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_spec.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto b/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto rename to proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto